summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2020-01-30 09:37:18 -0800
committerU. Artie Eoff <ullysses.a.eoff@intel.com>2020-02-05 10:16:16 -0800
commitc01f2e30d6bb531c9c8a27ed0beb34d12c68ad9a (patch)
tree877df60a233f921e002c39410a455587241b9c95 /gst
parent1c7e820805b49a89357de7ef6df975b4a5b42c72 (diff)
vaapipostproc: set vpp filter colorimetry
Set the input and output colorimetry for vpp filter.
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapipostproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index d9d15619..a9378776 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -1654,7 +1654,11 @@ gst_vaapipostproc_set_caps (GstBaseTransform * trans, GstCaps * caps,
gst_vaapipostproc_set_passthrough (trans);
}
- ret = TRUE;
+ ret = gst_vaapi_filter_set_colorimetry (postproc->filter,
+ &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SINK_PAD_INFO
+ (postproc)),
+ &GST_VIDEO_INFO_COLORIMETRY (GST_VAAPI_PLUGIN_BASE_SRC_PAD_INFO
+ (postproc)));
done:
g_mutex_unlock (&postproc->postproc_lock);