mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
postproc/postprocess: Remove unused argument from reallocAlign()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
27f936eca8
commit
d9b141c05f
@ -853,7 +853,7 @@ void pp_free_mode(pp_mode *mode){
|
||||
av_free(mode);
|
||||
}
|
||||
|
||||
static void reallocAlign(void **p, int alignment, int size){
|
||||
static void reallocAlign(void **p, int size){
|
||||
av_free(*p);
|
||||
*p= av_mallocz(size);
|
||||
}
|
||||
@ -866,23 +866,23 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int
|
||||
c->stride= stride;
|
||||
c->qpStride= qpStride;
|
||||
|
||||
reallocAlign((void **)&c->tempDst, 8, stride*24+32);
|
||||
reallocAlign((void **)&c->tempSrc, 8, stride*24);
|
||||
reallocAlign((void **)&c->tempBlocks, 8, 2*16*8);
|
||||
reallocAlign((void **)&c->yHistogram, 8, 256*sizeof(uint64_t));
|
||||
reallocAlign((void **)&c->tempDst, stride*24+32);
|
||||
reallocAlign((void **)&c->tempSrc, stride*24);
|
||||
reallocAlign((void **)&c->tempBlocks, 2*16*8);
|
||||
reallocAlign((void **)&c->yHistogram, 256*sizeof(uint64_t));
|
||||
for(i=0; i<256; i++)
|
||||
c->yHistogram[i]= width*height/64*15/256;
|
||||
|
||||
for(i=0; i<3; i++){
|
||||
//Note: The +17*1024 is just there so I do not have to worry about r/w over the end.
|
||||
reallocAlign((void **)&c->tempBlurred[i], 8, stride*mbHeight*16 + 17*1024);
|
||||
reallocAlign((void **)&c->tempBlurredPast[i], 8, 256*((height+7)&(~7))/2 + 17*1024);//FIXME size
|
||||
reallocAlign((void **)&c->tempBlurred[i], stride*mbHeight*16 + 17*1024);
|
||||
reallocAlign((void **)&c->tempBlurredPast[i], 256*((height+7)&(~7))/2 + 17*1024);//FIXME size
|
||||
}
|
||||
|
||||
reallocAlign((void **)&c->deintTemp, 8, 2*width+32);
|
||||
reallocAlign((void **)&c->nonBQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T));
|
||||
reallocAlign((void **)&c->stdQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T));
|
||||
reallocAlign((void **)&c->forcedQPTable, 8, mbWidth*sizeof(QP_STORE_T));
|
||||
reallocAlign((void **)&c->deintTemp, 2*width+32);
|
||||
reallocAlign((void **)&c->nonBQPTable, qpStride*mbHeight*sizeof(QP_STORE_T));
|
||||
reallocAlign((void **)&c->stdQPTable, qpStride*mbHeight*sizeof(QP_STORE_T));
|
||||
reallocAlign((void **)&c->forcedQPTable, mbWidth*sizeof(QP_STORE_T));
|
||||
}
|
||||
|
||||
static const char * context_to_name(void * ptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user