[FFmpeg-devel] [PATCH] enable yuv422p to uyvy422 in libswscale

Baptiste Coudurier baptiste.coudurier
Fri Sep 5 03:44:50 CEST 2008


Michael Niedermayer wrote:
> On Thu, Sep 04, 2008 at 05:29:42PM -0700, Baptiste Coudurier wrote:
>> Michael Niedermayer wrote:
>>> 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
>>>
>> Changed and applied, is this patch ok too then ?
> 
> ok
> 

Applied.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA




More information about the ffmpeg-devel mailing list