Hi,

On Mon, Apr 2, 2012 at 10:07 AM, Derek Buitenhuis
<[email protected]> wrote:
> On 02/04/2012 12:46 PM, Ronald S. Bultje wrote:
>> New macro, isPackedRGB and isPlanarRGB.
>>
>> #define isPlanarRGB(x) ((av_pix_fmt_descriptors[x].flags &
>> (PIX_FMT_PLANAR | PIX_FMT_RGB)) == (PIX_FMT_PLANAR | PIX_FMT_RGB))
>> #define isPackedRGB(x) ((av_pix_fmt_descriptors[x].flags &
>> (PIX_FMT_PLANAR | PIX_FMT_RGB)) == PIX_FMT_RGB)
>
> Indeed... new patch incoming.
>
> This raises the question... if we have flags... why are there big
> lists of pix_fmts in that header at all?

Converting them to the obviously expected combination of flags breaks
in some unexpected way, probably. I've converted them to flags where
it did not break.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to