[FFmpeg-devel] [PATCH] Make decoding alpha optional for some codecs.
Reimar.Doeffinger at gmx.de
Thu Sep 19 20:21:44 CEST 2013
On Thu, Sep 19, 2013 at 10:32:08AM +0100, Mark Himsley wrote:
> On 18 September 2013 13:04, Robert Krüger <krueger at lesspain.de> wrote:
> > and basically every video player. E.g. quicktime displays full
> > transparency in Prores4444 as black and so does FCP.
> You have to decode the alpha to use the alpha mask any picture content
> which is under transparent regions.
> You cannot display the video correctly without multiplying the alpha
> with the video content - unless the alpha is 100% across the whole
> picture, which you don't know until you've decoded the alpha..
Well, as you said yourself later strictly speaking you can't
decode it without the proper background image.
And there can be some value to see just the color part,
even if in some cases it looks quite bad.
For quite a few of the flash videos they look just fine
after throwing away alpha.
I admit that you are right in principle, but for a lot
of players discarding alpha will not make anything worse,
and for players that multiply the color with alpha an
option to discard the alpha becomes even more valuable IMHO,
since it can save even more processing in cases where
"correctness" (in quotation marks because 100% correct needs the
intended background after all and players usually don't have that)
More information about the ffmpeg-devel