Commit d9b141c0 authored by Michael Niedermayer's avatar Michael Niedermayer

postproc/postprocess: Remove unused argument from reallocAlign()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 27f936ec
...@@ -853,7 +853,7 @@ void pp_free_mode(pp_mode *mode){ ...@@ -853,7 +853,7 @@ void pp_free_mode(pp_mode *mode){
av_free(mode); av_free(mode);
} }
static void reallocAlign(void **p, int alignment, int size){ static void reallocAlign(void **p, int size){
av_free(*p); av_free(*p);
*p= av_mallocz(size); *p= av_mallocz(size);
} }
...@@ -866,23 +866,23 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int ...@@ -866,23 +866,23 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int
c->stride= stride; c->stride= stride;
c->qpStride= qpStride; c->qpStride= qpStride;
reallocAlign((void **)&c->tempDst, 8, stride*24+32); reallocAlign((void **)&c->tempDst, stride*24+32);
reallocAlign((void **)&c->tempSrc, 8, stride*24); reallocAlign((void **)&c->tempSrc, stride*24);
reallocAlign((void **)&c->tempBlocks, 8, 2*16*8); reallocAlign((void **)&c->tempBlocks, 2*16*8);
reallocAlign((void **)&c->yHistogram, 8, 256*sizeof(uint64_t)); reallocAlign((void **)&c->yHistogram, 256*sizeof(uint64_t));
for(i=0; i<256; i++) for(i=0; i<256; i++)
c->yHistogram[i]= width*height/64*15/256; c->yHistogram[i]= width*height/64*15/256;
for(i=0; i<3; i++){ 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. //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->tempBlurred[i], stride*mbHeight*16 + 17*1024);
reallocAlign((void **)&c->tempBlurredPast[i], 8, 256*((height+7)&(~7))/2 + 17*1024);//FIXME size 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->deintTemp, 2*width+32);
reallocAlign((void **)&c->nonBQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T)); reallocAlign((void **)&c->nonBQPTable, qpStride*mbHeight*sizeof(QP_STORE_T));
reallocAlign((void **)&c->stdQPTable, 8, qpStride*mbHeight*sizeof(QP_STORE_T)); reallocAlign((void **)&c->stdQPTable, qpStride*mbHeight*sizeof(QP_STORE_T));
reallocAlign((void **)&c->forcedQPTable, 8, mbWidth*sizeof(QP_STORE_T)); reallocAlign((void **)&c->forcedQPTable, mbWidth*sizeof(QP_STORE_T));
} }
static const char * context_to_name(void * ptr) { static const char * context_to_name(void * ptr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment