gst: Update for gst_video_transfer_function_*() function renaming

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/715>
This commit is contained in:
Sebastian Dröge 2020-09-07 12:13:18 +03:00
parent 2d08d16002
commit 47c43b29eb
4 changed files with 7 additions and 5 deletions

View file

@ -4260,7 +4260,8 @@ build_colr_extension (const GstVideoColorimetry * colorimetry, gboolean is_mp4)
guint16 matrix;
primaries = gst_video_color_primaries_to_iso (colorimetry->primaries);
transfer_function = gst_video_color_transfer_to_iso (colorimetry->transfer);
transfer_function =
gst_video_transfer_function_to_iso (colorimetry->transfer);
matrix = gst_video_color_matrix_to_iso (colorimetry->matrix);
atom_data_alloc_mem (atom_data, 10 + (is_mp4 ? 1 : 0));

View file

@ -10942,7 +10942,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
CUR_STREAM (stream)->colorimetry.primaries =
gst_video_color_primaries_from_iso (primaries);
CUR_STREAM (stream)->colorimetry.transfer =
gst_video_color_transfer_from_iso (transfer_function);
gst_video_transfer_function_from_iso (transfer_function);
CUR_STREAM (stream)->colorimetry.matrix =
gst_video_color_matrix_from_iso (matrix);
CUR_STREAM (stream)->colorimetry.range =
@ -11739,7 +11739,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
cinfo.primaries =
gst_video_color_primaries_from_iso (vpcc_data[15]);
cinfo.transfer =
gst_video_color_transfer_from_iso (vpcc_data[16]);
gst_video_transfer_function_from_iso (vpcc_data[16]);
cinfo.matrix =
gst_video_color_matrix_from_iso (vpcc_data[17]);

View file

@ -616,7 +616,8 @@ gst_matroska_demux_parse_colour (GstMatroskaDemux * demux, GstEbmlRead * ebml,
if ((ret = gst_ebml_read_uint (ebml, &id, &num)) != GST_FLOW_OK)
goto beach;
colorimetry.transfer = gst_video_color_transfer_from_iso ((guint) num);
colorimetry.transfer =
gst_video_transfer_function_from_iso ((guint) num);
break;
}

View file

@ -2626,7 +2626,7 @@ gst_matroska_mux_write_colour (GstMatroskaMux * mux,
matrix_id = gst_video_color_matrix_to_iso (videocontext->colorimetry.matrix);
transfer_id =
gst_video_color_transfer_to_iso (videocontext->colorimetry.transfer);
gst_video_transfer_function_to_iso (videocontext->colorimetry.transfer);
primaries_id =
gst_video_color_primaries_to_iso (videocontext->colorimetry.primaries);