From e1d96d0669eb533352bb7b4dc7f31571d92b292b Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 12 Sep 2022 11:17:25 +0800 Subject: [PATCH] codecparsers: av1: add ref_global_motion_params in frame header In order to ease the AV1 bit writer to write the global_motion_params when primary_ref_frame is enabled, we need to add this field to set the global_motion_params of the reference frame. Part-of: --- .../gst-libs/gst/codecparsers/gstav1parser.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.h b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.h index 0c65e27bb7..60de979127 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.h @@ -1536,6 +1536,7 @@ struct _GstAV1FilmGrainParams { * @tx_mode: specifies how the transform size is determined. * @skip_mode_frame: specifies the frames to use for compound prediction when @skip_mode is 1. * @expected_frame_id: specifies the frame id for each frame used for reference. (Since: 1.24) + * @ref_global_motion_params: specifies the global motion parameters of the reference. (Since: 1.24) */ struct _GstAV1FrameHeaderOBU { gboolean show_existing_frame; @@ -1614,6 +1615,15 @@ struct _GstAV1FrameHeaderOBU { * Since: 1.24 */ gint32 expected_frame_id[GST_AV1_REFS_PER_FRAME]; + + /** + * _GstAV1FrameHeaderOBU.ref_global_motion_params: + * + * Specifies the global motion parameters of the reference. + * + * Since: 1.24 + */ + GstAV1GlobalMotionParams ref_global_motion_params; }; /**