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

Michael Niedermayer michaelni
Fri Sep 5 03:33:30 CEST 2008


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- 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/5d506512/attachment.pgp>



More information about the ffmpeg-devel mailing list