# HG changeset patch # User ramiro # Date 1284215454 0 # Node ID b793cbb9afd1c4f963c90664947bf291334c3fae # Parent 54b48f83d02ba43823ba67ee06c4445353160c2a swscale: remove unused code yvu9ToYv12Wrapper() used to support yv12 with the chroma planes either in the uv order or the vu order. FFmpeg no longer has a pixel format in vu order. diff -r 54b48f83d02b -r b793cbb9afd1 libswscale/swscale.c --- a/libswscale/swscale.c Sat Sep 11 14:29:55 2010 +0000 +++ b/libswscale/swscale.c Sat Sep 11 14:30:54 2010 +0000 @@ -1599,17 +1599,10 @@ } } - if (c->dstFormat==PIX_FMT_YUV420P || c->dstFormat==PIX_FMT_YUVA420P) { planar2x(src[1], dst[1] + dstStride[1]*(srcSliceY >> 1), c->chrSrcW, srcSliceH >> 2, srcStride[1], dstStride[1]); planar2x(src[2], dst[2] + dstStride[2]*(srcSliceY >> 1), c->chrSrcW, srcSliceH >> 2, srcStride[2], dstStride[2]); - } else { - planar2x(src[1], dst[2] + dstStride[2]*(srcSliceY >> 1), c->chrSrcW, - srcSliceH >> 2, srcStride[1], dstStride[2]); - planar2x(src[2], dst[1] + dstStride[1]*(srcSliceY >> 1), c->chrSrcW, - srcSliceH >> 2, srcStride[2], dstStride[1]); - } if (dst[3]) fillPlane(dst[3], dstStride[3], c->srcW, srcSliceH, srcSliceY, 255); return srcSliceH;