[FFmpeg-devel] [PATCH] swscale alpha channel support

Cédric Schieli cschieli
Tue Mar 24 10:24:40 CET 2009

2009/3/24 C?dric Schieli <cschieli at gmail.com>:
> 2009/3/24 Michael Niedermayer <michaelni at gmx.at>:
>> On Mon, Mar 23, 2009 at 03:53:28PM +0100, C?dric Schieli wrote:
>>> Hi all,


>>> #4 : palette8topacked32.patch
>>> use default value of 255 for the alpha channel in unscaled paletted to
>>> rgb32 converters
>> a very quick looks gives me the feeling this is wrong?
>> isnt the alpha supposed to be in the palette already?
> true for PAL8, but not for BGR8/RGB8/BGR4_BYTE/RGB4_BYTE
> so a separate code path seems needed for PAL8 (what is the index for
> the alpha color in PAL8 ?)

Ok, it's better to read the code before replying.
Attached is a new patch that use the alpha stored in the PAL8 palette,
and default to 255 for the BGR8/RGB8/BGR4_BYTE/RGB4_BYTE case.

C?dric Schieli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: palette_has_alpha.patch
Type: text/x-patch
Size: 2661 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090324/4aa6a942/attachment.bin>

More information about the ffmpeg-devel mailing list