libs: filter: set vpp input/output color range
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 7 Feb 2020 19:25:31 +0000 (11:25 -0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 8 Feb 2020 10:07:58 +0000 (10:07 +0000)
We've always sent VA_SOURCE_RANGE_UNKNOWN to the driver.
And, the [iHD] driver essentially computes the same color
range as gstreamer when we send VA_SOURCE_RANGE_UNKNOWN for
cases were gstreamer computes it automatically.  But,
if the user wants to make it explicit, we should try
to honor it.

gst-libs/gst/vaapi/gstvaapifilter.c

index 0dad05d..5f41726 100644 (file)
@@ -1539,6 +1539,8 @@ fill_color_standard (GstVideoColorimetry * colorimetry,
     properties->matrix_coefficients =
         gst_video_color_matrix_to_iso (colorimetry->matrix);
   }
+
+  properties->color_range = from_GstVideoColorRange (colorimetry->range);
 }
 
 /**