vaapipostproc: set vpp filter colorimetry

Set the input and output colorimetry for vpp filter.
This commit is contained in:
U. Artie Eoff 2020-01-30 09:37:18 -08:00
parent 1c7e820805
commit c01f2e30d6

View file

@ -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);