Mercurial > libavcodec.hg
diff libpostproc/postprocess_template.c @ 113:3e0dcdb6b340 libavcodec
added compiletime option to turn width%8==0 on
author | michael |
---|---|
date | Fri, 19 Oct 2001 13:56:12 +0000 |
parents | a2c063b6ecf9 |
children | 4514b8e7f0f1 |
line wrap: on
line diff
--- a/libpostproc/postprocess_template.c Fri Oct 19 13:41:38 2001 +0000 +++ b/libpostproc/postprocess_template.c Fri Oct 19 13:56:12 2001 +0000 @@ -2561,6 +2561,7 @@ if(!isColor) yHistogram[ srcBlock[srcStride*5] ]++; +#ifdef PP_FUNNY_STRIDE //can we mess with a 8x16 block, if not use a temp buffer, yes again if(x+7 >= width) { @@ -2577,6 +2578,7 @@ dstBlock= tempDstBlock; srcBlock= tempSrcBlock; } +#endif blockCopy(dstBlock + dstStride*5, dstStride, srcBlock + srcStride*5, srcStride, 8, mode & LEVEL_FIX); @@ -2657,6 +2659,7 @@ dering(dstBlock - stride*9 + width-9, stride, QP); //FIXME dering filter will not be applied to last block (bottom right) +#ifdef PP_FUNNY_STRIDE /* did we use a tmp-block buffer */ if(x+7 >= width) { @@ -2669,6 +2672,7 @@ memcpy(dstBlock+i*dstStride, tempDstBlock+i*dstStride, width-x); } } +#endif dstBlock+=8; srcBlock+=8;