mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
msdkenc: Set VideoFullRange according to input colorimetry range
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6316>
This commit is contained in:
parent
3649f13bb3
commit
72bb59b37c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue