[FFmpeg-devel] [PATCH] Is gray8 a paletted format?

Reimar Döffinger Reimar.Doeffinger
Mon Feb 1 22:24:12 CET 2010


On Mon, Feb 01, 2010 at 09:41:21PM +0100, Stefano Sabatini wrote:
> > Why *would* gray8 be a paletted?
> 
> ------------------------------------------------------------------------
> r17018 | michael | 2009-02-06 13:59:50 +0100 (Fri, 06 Feb 2009) | 3 lines
> 
> Ensure that the palette is set in data[1] for all 8bit formats.
> Also document it.
> 
> ------------------------------------------------------------------------
> 
> And no to be honest I cannot understand that patch.
> 
> Also why and how should PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE,
> PIX_FMT_BGR4_BYTE be considered paletted formats?

That doesn't make them paletted, the palette is just provided so that
when it is convenient or speed does not matter or whatever you don't
need a special case for each of those formats but can just treat them
all as if they were PAL8.



More information about the ffmpeg-devel mailing list