[FFmpeg-devel] [PATCH v2] libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special converter with support for rgb444 output format
Wed Mar 3 16:58:49 CET 2010
On Wed, Mar 03, 2010 at 01:48:55PM +0100, Janusz Krzysztofik wrote:
> In order to play video on a 12-bit display, like OMAP1 frambuffer with 12-bit
> LCD controller that my Amstrad Delta videophone is equipped with, one or more
> libswscale converters with rgb444 output pixel format support are required.
> This patch adds such support to the unaccelerated path of the unscaled yuv2rgb
> special converter.
> Created and tested against ffmpeg svn revision 22167, on top of
> [PATCH v2] Add initial support for 12-bit color mode.
> Tested on Amstrad Delta with 24bpp IJPG and MP43 sourcers using patched
> mplayer video output drivers.
> Signed-off-by: Janusz Krzysztofik <jkrzyszt at tis.icnet.pl>
> Changes since v1:
> - do not add info on global rgb12 output format support yet,
> - add support for dithering.
> You were right. It looks better with dithering. Thanks for your hints.
> @@ -351,6 +352,32 @@ CLOSEYUV2RGBFUNC(8)
> // r, g, b, dst_1, dst_2
> +YUV2RGBFUNC(yuv2rgb_c_12_dither, uint16_t, 0)
> + const uint8_t *d16 = dither_8x8_16[y&7];
&3 and cutting the table size down by 2 should result in the identical
i think the patch should be ok after this
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel