[Libva] [PATCH] vdpau-driver: Set surface background to almost black (try #3)

Holger Kaelberer hk at elberer.de
Wed Feb 20 04:40:07 PST 2013



On 02/15/2013 02:36 PM, Holger Kaelberer wrote:
>
> On 02/15/2013 02:10 PM, Holger Kaelberer wrote:
>> 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.
>
> The attached patch implements this approach.

Updated patch attached after testing with mplayer-vaapi: Also check va_display_attrs_mtime to avoid 
setting background unintentionally to initialization value of va_display_attrs (which would be plain 
black :-(.

Thanks,
   Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Initialize-surface-background-from-VADisplayAttribBackgroundColor.patch
Type: text/x-diff
Size: 2324 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libva/attachments/20130220/cf438ab6/attachment.patch>


More information about the Libva mailing list