[MPlayer-dev-eng] Packed YUV -> RGB Conversion; Speed Freak
Michael Niedermayer
michaelni at gmx.at
Fri Mar 1 16:58:06 CET 2002
Hi
On Friday 01 March 2002 16:31, Mike Melanson wrote:
> On Fri, 1 Mar 2002, Michael Niedermayer wrote:
> > the swscaler can convert from yuy2 -> bgr* but its not as fast as a non
> > scaling converter ... allthough all important yuv based codecs support
> > yv12 so it doesnt matter imho
>
> Fortunately, speed is not a concern since I'm only concerned about
> testing YUY2 on PPC via PNG files. I modified the vo_png.c module last
> night to recognize BGR32 data. How can I modify it to deal with YUY2 (and
> UYVY, for that matter)?
u can use yuy2toyv12() and then the yv12 -> bgr converter or simply use the
swscaler
context= getSwsContext(srcW, srcH, IMGFMT_YUY2, dstW, dstH, IMGFMT_BGR32,
SWS_BICUBIC, NULL, NULL);
context->swScale(context, src, srcStride, 0, height, dst, dstStride);
but i dunno if these work correctly on big endian systems (they should but
they are untested afaik)
[...]
Michael
More information about the MPlayer-dev-eng
mailing list