[FFmpeg-devel] [PATCH] pixdesc: remove PIX_FMT_FLAG flag from pixel formats which are *not* paletted

Michael Niedermayer michaelni at gmx.at
Mon Aug 1 09:01:32 CEST 2011

On Thu, Jul 28, 2011 at 01:27:31PM +0200, Stefano Sabatini wrote:
> The flag was required for an hack in libswscale. Since now libswscale
> distinguishes between formats which store palette in the image, and
> formats which use it internally in libswscale, the flag is no longer
> required.

treating 8 bit per pixel formats like paletted formats is not only
usefull in swscale. But also can be usefull in other filters, like
contrast/brightness/gamma filters. For them for example its just needed
to apply the change to the palette and then switch the pix format to

of course that can be done  without the flag too but the flag 
might lead to slightly simpler code somewhere, not a major thing though

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110801/f391b3bc/attachment.asc>

More information about the ffmpeg-devel mailing list