d3d11window: Remove hack related to color space selection
authorSeungha Yang <seungha@centricular.com>
Thu, 9 Dec 2021 10:55:04 +0000 (19:55 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 9 Dec 2021 11:12:12 +0000 (20:12 +0900)
commite8c923ebdeb1760f6a0593400aa19eeb0efd8d87
tree2bdbc39475714bc0fa8a15ba742b97308a28d05d
parent1a128839934916068074a8ba580ce689d8004fe7
d3d11window: Remove hack related to color space selection

Use input GstVideoColorPrimaries without any special case handling
otherwise rendered image color would be very wrong.

The hack was added to work around an issue that some Intel driver
couldn't handle wide color gamut image without HDR10 metadata, specifically PQ image.
But device capability can be checked via a method added in
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1723
so there's no issue now.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1175
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1430>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11pluginutils.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11pluginutils.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window.cpp