[FFmpeg-devel] [PATCH] Make decoding alpha optional for some codecs.
donmoir at comcast.net
Thu Sep 19 23:37:29 CEST 2013
>> > 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)
If you have say an ARGB value of 0,255,0,0 alpha value 0, and red value of 255, and assuming black background, what does
disrecarding the alpha value mean? Does it mean the value is now a solid red of 255 or does it mean value is black ? If alpha is
completely disregarded display will be terrible and mostly useless.
More information about the ffmpeg-devel