[FFmpeg-devel] [PATCH] libswscale: Extend the generic path of the yuv2rgb converter with support for rgb444 output format

Janusz Krzysztofik jkrzyszt
Thu Mar 18 23:28:22 CET 2010


Thursday 18 March 2010 17:31:40 Michael Niedermayer wrote:
> On Sat, Mar 06, 2010 at 02:43:03AM +0100, Janusz Krzysztofik wrote:
> > In order to play different video sources on a 12-bit display, like OMAP1
> > frambuffer with 12-bit LCD controller that my Amstrad Delta videophone is
> > equipped with, more rgb444 support is required in addition to that
> > already added to the unaccelerated path of the unscaled yuv2rgb special
> > converter.
> >
> > This patch tries to provide necessary support for the generic (slower)
> > code path.
> >
> > Created and tested against libswscale svn revision 30842.
> >
> > Tested on Amstrad Delta, using patched mplayer video output drivers, with
> > 24bpp IJPG sourcers that required scaling and with 8bpp RGB (gif) source.
> >
> > Signed-off-by: Janusz Krzysztofik <jkrzyszt at tis.icnet.pl>
> > ---
> > --- trunk/libswscale/swscale.c.orig	2010-03-05 14:13:14.000000000 +0100
> > +++ trunk/libswscale/swscale.c	2010-03-05 20:31:46.000000000 +0100
>
> looks ok, if tested

Tested again on ffmpeg svn revision 22593/libswscale revision 30929.
Applies with one -1 line offset.
"make test" result: success.
Runtime test on OMAP1 Amstrad Delta: works as expected.
Temporarily commented out unscaled path, recompiled and retested with sources 
that don't require scaling. Result: works as expected, higher CPU load.

Thanks,
Janusz



More information about the ffmpeg-devel mailing list