[FFmpeg-devel] [PATCH] enable yuv422p to uyvy422 in libswscale
Michael Niedermayer
michaelni
Fri Sep 5 02:14:34 CEST 2008
On Thu, Sep 04, 2008 at 04:48:18PM -0700, Baptiste Coudurier wrote:
> Hi,
>
> $subject, I believe these converters falls under unscaled conversions.
[...]
> @@ -2233,6 +2251,15 @@
> && (!needsDither || (c->flags&(SWS_FAST_BILINEAR|SWS_POINT))))
> c->swScale= rgb2rgbWrapper;
>
> + if (srcFormat == PIX_FMT_YUV422P &&
> + (dstFormat == PIX_FMT_YUYV422 || dstFormat == PIX_FMT_UYVY422))
> + {
> + if (dstFormat == PIX_FMT_YUYV422)
> + c->swScale= YUV422PToYuy2Wrapper;
> + else
> + c->swScale= YUV422PToUyvyWrapper;
> + }
> +
if(srcFormat == PIX_FMT_YUV422P)
{
if(dstFormat == PIX_FMT_YUYV422)
c->swScale= YUV422PToYuy2Wrapper;
else if(dstFormat == PIX_FMT_UYVY422)
c->swScale= YUV422PToUyvyWrapper;
}
and the rest is ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080905/1699899c/attachment.pgp>
More information about the ffmpeg-devel
mailing list