We don't need to preserve input color range for transformed target
color space. Also some GPUs doesn't seem to be happy with 16-235
color range for RGB color space.
Also, since our default display target color space is
DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709, choosing full color range
would make more sense.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1814>
window->render_info.colorimetry.primaries =
window->info.colorimetry.primaries;
window->render_info.colorimetry.transfer = window->info.colorimetry.transfer;
- window->render_info.colorimetry.range = window->info.colorimetry.range;
+ /* prefer FULL range RGB. STUDIO range doesn't seem to be well supported
+ * color space by GPUs and we don't need to preserve color range for
+ * target display color space type */
+ window->render_info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255;
#if (DXGI_HEADER_VERSION >= 4)
{