[FFmpeg-devel] [PATCH] Make decoding alpha optional for some codecs.

Michael Niedermayer michaelni at gmx.at
Wed Sep 18 22:39:22 CEST 2013


On Wed, Sep 18, 2013 at 10:27:34PM +0200, Reimar Döffinger wrote:
> On Wed, Sep 18, 2013 at 10:11:29PM +0200, Michael Niedermayer wrote:
[...]
> It probably is something worth considering in order to clean up the
> pix_fmt selection code in ffv1 though, whether it helps for this patch
> or not.

there are several places where pix fmt select has become a ugly long
list ffv1 and mjpeg are 2 but we probably have more.
Havng a function that would choose a yuv pixel format based on
chroma subsample factors, bps, alpha and colorrange value could
probably simplify these lists
could probably be implemented more or less easily by scanning
av_pix_fmt_descriptors
and theres also libopenjpeg_matches_pix_fmt() which is somewhat related


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- 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/20130918/1fdd75ea/attachment.asc>


More information about the ffmpeg-devel mailing list