msdkenc: Set VideoFullRange according to input colorimetry range

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6316>
This commit is contained in:
Mengkejiergeli Ba 2024-03-06 11:04:37 +08:00 committed by GStreamer Marge Bot
parent 3649f13bb3
commit 72bb59b37c

View file

@ -664,6 +664,8 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
gst_video_transfer_function_to_iso (info.colorimetry.transfer);
ext_vsi.MatrixCoefficients =
gst_video_color_matrix_to_iso (info.colorimetry.matrix);
ext_vsi.VideoFullRange =
(info.colorimetry.range == GST_VIDEO_COLOR_RANGE_0_255);
gst_msdkenc_add_extra_param (thiz, (mfxExtBuffer *) & ext_vsi);
}