From 9d865453e1593cfc993fe277101bfc5ac2f0a179 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Mon, 10 Feb 2020 09:31:15 -0800 Subject: [PATCH] libs: utils: WA: use explicit for sRGB colorimetry Addresses #228 on iHD side. It seems iHD can't handle VAProcColorStandardSRGB in all situations for vpp. But it has no problem when we specify the sRGB parameters via VAProcColorStandardExplicit parameters. --- gst-libs/gst/vaapi/gstvaapiutils.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiutils.c b/gst-libs/gst/vaapi/gstvaapiutils.c index 33c1372..2a100ab 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils.c +++ b/gst-libs/gst/vaapi/gstvaapiutils.c @@ -982,8 +982,6 @@ from_GstVideoColorimetry (const GstVideoColorimetry * const colorimetry) if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_SMPTE240M)) return VAProcColorStandardSMPTE240M; - if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_SRGB)) - return VAProcColorStandardSRGB; return VAProcColorStandardExplicit; } -- 2.7.4