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

Rich Felker dalias at aerifal.cx
Sun May 29 20:59:01 CEST 2005


On Sun, May 29, 2005 at 09:45:32AM -0400, Jason Tackaberry wrote:
> I'm using SwScaler to scale and convert between YV12 and BGR32
> colorspaces.  I'm noticing that the alpha channel of the resulting BGR32
> image is completely zeroed, which means in order to do anything useful
> with it (when using it with code that pays attention to per-pixel alpha)
> I need to loop through the buffer and adjust every fourth byte, which
> is, I think, needless overhead.

there is no alpha channel. swscaler converts to bgr32, not some bgra
nonsense. certainly the input has no alpha, so what do you expect??

rich




More information about the MPlayer-dev-eng mailing list