From c7a810cc25bd0a6f9c784e20895d833a8dfa3119 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 23 Jun 2002 10:36:18 +0000 Subject: selftest support bugfixes Originally committed as revision 6518 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/swscale_template.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'postproc/swscale_template.c') diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index 38a94fe63d..5a8b25cd77 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -2669,6 +2669,19 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar dstStride[1]= dstStrideParam[1]; dstStride[2]= dstStrideParam[2]; } + +// printf("swscale %X %X %X -> %X %X %X\n", (int)src[0], (int)src[1], (int)src[2], +// (int)dst[0], (int)dst[1], (int)dst[2]); + +#if 0 //self test FIXME move to a vfilter or something +{ +static volatile int i=0; +i++; +if(srcFormat==IMGFMT_YV12 && i==1 && srcSliceH>= c->srcH) + selfTest(src, srcStride, c->srcW, c->srcH); +i--; +} +#endif //printf("sws Strides:%d %d %d -> %d %d %d\n", srcStride[0],srcStride[1],srcStride[2], //dstStride[0],dstStride[1],dstStride[2]); -- cgit v1.2.3