Fredrik Mellbin <[email protected]> writes:

> I was talking to BBB about adding colorspace flags to
> AVPixFmtDescriptor and how to do it. While doing this we tried to
> figure out the exact meaning of the PIX_FMT_PAL flag that already
> exists, however we failed to come up with an explanation.
>
> Currently it just seems to be a property applied to all formats that
> have 8 bpp or less and do not have the PIX_FMT_BITSTREAM flag set. So
> what kind of check is this flag supposed to be used for? what was its
> original purpose?  why does it exist?

It was supposed to indicate formats using a palette.  Then someone
thought it made sense to pretend all 8-bit formats have a palette and
refused anything resembling a discussion on the matter.  The lunacy you
encountered is the result of that.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to