[Libva] [PATCH] vdpau-driver: Set surface background to almost black

Holger Kaelberer hk at elberer.de
Fri Feb 15 05:10:11 PST 2013


Hi,

this changes the background color of vdpau surfaces from default green to (almost) black in 
vdpau-driver to avoid the ugly green flickering during startup and after shutdown of a video playback.

Thinking about a good value for this background color, I wonder whether it could not be bound to, 
i.e. derived from VADisplayAttribBackgroundColor which is already mapped to 
VDP_VIDEO_MIXER_ATTRIBUTE_BACKGROUND_COLOR in vdpau-driver. This would probably go beyond 
VADisplayAttribBackgroundColor semantics but would have two advantages:

1. When a libva app uses VADisplayAttribBackgroundColor vdpau-driver could garantee to provide a 
*unique* bg color both for uncovered window background and surface background.

2. Provide a way for the libva user to configure surface background in environments where a default 
background value would trigger an unwanted bleed through into other windows through color keying. 
cf. [1]

Comments?

Thanks for considering,
regards,
   Holger

[1]
http://cgit.freedesktop.org/~aplattner/libvdpau/commit/?id=ca9e637c61e80145f0625a590c91429db67d0a40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Set-surface-background-to-almost-black.patch
Type: text/x-diff
Size: 1640 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libva/attachments/20130215/9ffdbbe1/attachment.patch>


More information about the Libva mailing list