summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-09-11 14:30:54 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-09-11 14:30:54 +0000
commit4d8617496f195fdc7fe9a4d373248921afe73302 (patch)
treeca160879c90bdab64c01fd1ab3b6ee12a73f7f82 /libswscale
parent4821b4456fadff48b188e96346432365411b80fe (diff)
downloadffmpeg-4d8617496f195fdc7fe9a4d373248921afe73302.tar.gz
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. Originally committed as revision 32156 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 6ceddfd550..dc4d749734 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1599,17 +1599,10 @@ static int yvu9ToYv12Wrapper(SwsContext *c, const uint8_t* src[], int srcStride[
}
}
- 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;