[Ffmpeg-devel] [PATCH] RGB555 without alpha and more converters

Alex Beregszaszi alex
Mon Nov 6 23:40:50 CET 2006


Hi,

I changed the to/from rgba32 converter glue code to work with non-alpha
formats too. Thus now we have optimized RGBA32->BGR24,RGB565,RGB555;
BGR24->RGBA32 and RGB565->RGBA32 converters with the old code (without
swscaler).

Then I removed the alpha bit setting in RGB555. We might add RGBA555,
with the alpha setting code, but Michael neglected addict obscure
formats. I dont need this one, however its one feature more :)

Also I was unsure about the versionbumping of the libraries, the
imgconverter is placed in libavcodec, and now the RGB555 MSB is not set,
thus a version bumb is needed, i think. On the other side, the PIX_FMT
is defined in libavutil.

According to Michael, swscaler doesnt follows the "set-msb-of-rgb555",
thus with this patch, both codes should output the same formats.

-- 
Alex Beregszaszi | alex at fsn.hu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgb555fix.diff
Type: text/x-patch
Size: 6065 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061106/30340e16/attachment.bin>



More information about the ffmpeg-devel mailing list