summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorUng, Teng En <teng.en.ung@intel.com>2020-12-21 05:36:29 +0000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-01-11 11:01:57 +0000
commit4ccb37fe37dbb939cc148b4dfb596119c3cfa05e (patch)
tree4a9f028d685aaa1573fe126149191a86ebb48529 /gst-libs/gst
parent5e3fde85692221d42d93ec98fffa0d6f1aa308f7 (diff)
vaapipostproc: Added gstreamer BT2020 color standard support.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/407>
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiutils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiutils.c b/gst-libs/gst/vaapi/gstvaapiutils.c
index 46bb65ef..b4b680aa 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils.c
@@ -989,7 +989,9 @@ from_GstVideoColorimetry (const GstVideoColorimetry * const colorimetry)
/* NOTE: VAProcColorStandardBT2020 in VAAPI is the same as
* GST_VIDEO_COLORIMETRY_BT2020_10 in gstreamer. */
if (gst_video_colorimetry_matches (colorimetry,
- GST_VIDEO_COLORIMETRY_BT2020_10))
+ GST_VIDEO_COLORIMETRY_BT2020_10) ||
+ gst_video_colorimetry_matches (colorimetry,
+ GST_VIDEO_COLORIMETRY_BT2020))
return VAProcColorStandardBT2020;
if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_BT601))
return VAProcColorStandardBT601;