[FFmpeg-devel] [PATCH 2/2] pixdesc: clarify AV_PIX_FMT_FLAG_ALPHA doxygen
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Feb 9 23:34:21 CET 2015
wm4 <nfxjfg <at> googlemail.com> writes:
> + * If a codec or a filter does not support alpha, it should support the
> + * alpha-free format variants only, e.g. AV_PIX_FMT_RGB0 instead of
> + * AV_PIX_FMT_RGBA.
... or set the alpha channel to 0xFF.
I wonder if this isn't slightly misleading:
If a codec supports RGB24, it doesn't have
to support RGB0 (or RGBA). Some codecs
support both RGBA and RGB0 iirc.
But you have to decide if this sentence
makes the API easier to understand or not.
More information about the ffmpeg-devel