libs: utils: WA: use explicit for sRGB colorimetry
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 10 Feb 2020 17:31:15 +0000 (09:31 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 10 Feb 2020 17:36:46 +0000 (09:36 -0800)
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

index 33c1372..2a100ab 100644 (file)
@@ -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;
 }