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

Reimar Döffinger Reimar.Doeffinger
Tue Mar 24 20:42:54 CET 2009


On Tue, Mar 24, 2009 at 05:20:06PM +0100, Michael Niedermayer wrote:
> On Tue, Mar 24, 2009 at 10:24:40AM +0100, C?dric Schieli wrote:
> > 2009/3/24 C?dric Schieli <cschieli at gmail.com>:
> > > 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.
> 
> i still think this is wrong
> BGR8/RGB8/BGR4_BYTE/RGB4_BYTE should have a valid palette set and that
> should include the alpha byte

Or to save you some time: fix imgconvert.c/ff_set_systematic_pal



More information about the ffmpeg-devel mailing list