d3d11videosink: Use only tested color space for swapchain
authorSeungha Yang <seungha@centricular.com>
Fri, 10 Dec 2021 12:58:33 +0000 (21:58 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 12 Dec 2021 11:00:24 +0000 (11:00 +0000)
commitf10867dfb5e70fa983bd32653f2c30596c5f2e68
tree631c338ccd0dcc8c9ba848471d99d036565c0d0f
parentd82efb47aa39abf713a33340777ceaefdfaa6b53
d3d11videosink: Use only tested color space for swapchain

We are querying supported swapchain colorspace via
CheckColorSpaceSupport() but it doesn't seem to be reliable.
Use only tested full-range RGB formats which are:
- sRGB
- BT709 primaries with linear RGB
- BT2020 primaries with PQ gamma

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1433>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11pluginutils.cpp