[Libva] [PATCH]: vdpau-driver: don't expect premultiplied alpha as subpicture data

Holger Kaelberer hk at getslash.de
Tue Feb 7 08:53:24 PST 2012


Hi,

the attached patch changes blending behaviour for the vdpau-driver to classical alpha blending.

So far it expects premultiplied alpha. This is not in line with, at least, what intel-driver expects.

Why would one need this change? In lack of an implementation of vaSetSubpictureGlobalAlpha() in the 
libva-backend/vdpau-driver, the only way to implement fading in/out of subpictures/OSD-elements is 
to change alpha values per-pixel. That is already expensive and becomes even more expensive if you 
need to premultiply RGB values. And makes it almost impossible to implement such a feature if 
blending is handled differently by different libva-backends.

Please redirect me, if I should open a ticket for that.

Thanks for reviewing and considering this patch,
    Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdpau-driver-alpha-blending.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libva/attachments/20120207/5f794e3e/attachment.bin>


More information about the Libva mailing list