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

Baptiste Coudurier baptiste.coudurier
Fri Sep 5 02:29:42 CEST 2008


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 ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale_simplify.patch
Type: text/x-diff
Size: 1307 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080904/490922ca/attachment.patch>



More information about the ffmpeg-devel mailing list