xvimagesink: Add support for the XV_COLORSPACE attribute.
authorJan Schmidt <jan@centricular.com>
Wed, 25 Nov 2020 12:54:08 +0000 (23:54 +1100)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 25 Nov 2020 12:58:48 +0000 (12:58 +0000)
commitc1f91ba004000e6e97ec736796089c829f86ad9f
tree1e583e6828a95bfe561113a4aa3bb6abc0d03dd6
parent0dc419197f95d8e1b7f8f5685d07fdeb21da3ea7
xvimagesink: Add support for the XV_COLORSPACE attribute.

The XV_COLORSPACE attribute exists on some Xv adapters, with the same
semantics as the XV_ITURBT_709 attribute that was already supported.

A value of 0 is bt601, and 1 is for bt709 colorspace.

Fixes color shifting issues displaying bt709 content on some Xv
adapters.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/941>
sys/xvimage/xvcontext.c
sys/xvimage/xvcontext.h