summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-07 11:25:31 -0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-02-08 10:07:58 +0000
commit5fe553f4c707003899c0bc17e3deb33edd89cb68 (patch)
treeb0adff40d45e2d89396a34ea9cc77ff59cb8b590 /gst-libs
parent9542d55efb2680dec81d11e7200f4479cf346427 (diff)
libs: filter: set vpp input/output color range
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.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapifilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapifilter.c b/gst-libs/gst/vaapi/gstvaapifilter.c
index 0dad05d4..5f41726d 100644
--- a/gst-libs/gst/vaapi/gstvaapifilter.c
+++ b/gst-libs/gst/vaapi/gstvaapifilter.c
@@ -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);
}
/**