Originally committed as revision 2287 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
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)
{
dstBlock= tempDstBlock;
srcBlock= tempSrcBlock;
}
+#endif
blockCopy(dstBlock + dstStride*5, dstStride,
srcBlock + srcStride*5, srcStride, 8, mode & LEVEL_FIX);
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)
{
memcpy(dstBlock+i*dstStride, tempDstBlock+i*dstStride, width-x);
}
}
+#endif
dstBlock+=8;
srcBlock+=8;
#define GET_PP_QUALITY_MAX 6
+//must be defined if stride%8 != 0
+#define PP_FUNNY_STRIDE
+
//#define TIMING
//#define MORE_TIMING
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)
{
dstBlock= tempDstBlock;
srcBlock= tempSrcBlock;
}
+#endif
blockCopy(dstBlock + dstStride*5, dstStride,
srcBlock + srcStride*5, srcStride, 8, mode & LEVEL_FIX);
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)
{
memcpy(dstBlock+i*dstStride, tempDstBlock+i*dstStride, width-x);
}
}
+#endif
dstBlock+=8;
srcBlock+=8;