comparison libswscale/swscale.c @ 29540:0f86c85da42a

Restore comment that was partially removed.
author ramiro
date Sat, 29 Aug 2009 02:44:03 +0000
parents a0ba51e33912
children 3e7ffd70b12b
comparison
equal deleted inserted replaced
29539:bdeb4c732bc7 29540:0f86c85da42a
2906 if (c->vChrFilterPos[chrI] + c->vChrBufSize < (nextSlice>>c->chrSrcVSubSample)) 2906 if (c->vChrFilterPos[chrI] + c->vChrBufSize < (nextSlice>>c->chrSrcVSubSample))
2907 c->vChrBufSize= (nextSlice>>c->chrSrcVSubSample) - c->vChrFilterPos[chrI]; 2907 c->vChrBufSize= (nextSlice>>c->chrSrcVSubSample) - c->vChrFilterPos[chrI];
2908 } 2908 }
2909 2909
2910 // allocate pixbufs (we use dynamic allocation because otherwise we would need to 2910 // allocate pixbufs (we use dynamic allocation because otherwise we would need to
2911 // allocate several megabytes to handle all possible cases)
2911 c->lumPixBuf= av_malloc(c->vLumBufSize*2*sizeof(int16_t*)); 2912 c->lumPixBuf= av_malloc(c->vLumBufSize*2*sizeof(int16_t*));
2912 c->chrPixBuf= av_malloc(c->vChrBufSize*2*sizeof(int16_t*)); 2913 c->chrPixBuf= av_malloc(c->vChrBufSize*2*sizeof(int16_t*));
2913 if (CONFIG_SWSCALE_ALPHA && isALPHA(c->srcFormat) && isALPHA(c->dstFormat)) 2914 if (CONFIG_SWSCALE_ALPHA && isALPHA(c->srcFormat) && isALPHA(c->dstFormat))
2914 c->alpPixBuf= av_malloc(c->vLumBufSize*2*sizeof(int16_t*)); 2915 c->alpPixBuf= av_malloc(c->vLumBufSize*2*sizeof(int16_t*));
2915 //Note we need at least one pixel more at the end because of the MMX code (just in case someone wanna replace the 4000/8000) 2916 //Note we need at least one pixel more at the end because of the MMX code (just in case someone wanna replace the 4000/8000)