[MPlayer-dev-eng] SwScaler YV12 to BGR32 having zeroed alpha

Jason Tackaberry tack at sault.org
Sun May 29 21:31:55 CEST 2005


On Sun, 2005-05-29 at 14:59 -0400, Rich Felker wrote:
> there is no alpha channel. swscaler converts to bgr32, not some bgra
> nonsense. 

BGR32 _is_ BGRA, at least on little endian machines.  I have no idea why
you call BGRA "nonsense."  Yes, ok, the nomenclature is specific to
little endian, but I wanted to make the point that one of those bytes is
for alpha.

> certainly the input has no alpha, so what do you expect??

Yes, the alpha has to be created from thin air.  So why not initialize
those bytes to 255 (i.e. fully opaque) rather than 0 (i.e. fully
transparent)?  This makes much more sense.

I'm quite happy to submit a patch to make sws do this, but obviously I
first have to convince people that this isn't nonsense.

Cheers,
Jason.




More information about the MPlayer-dev-eng mailing list