mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
4821b4456f
commit
4d8617496f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user