mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-07 07:55:41 +00:00
vabaseenc: delete the useless frame counter fields
They are used to calculate the PTS and DTS before, no usage now. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6786>
This commit is contained in:
parent
3c26c0bc33
commit
a084bedd58
3 changed files with 0 additions and 11 deletions
|
@ -170,8 +170,6 @@ struct _GstVaAV1EncFrame
|
||||||
gint frame_num;
|
gint frame_num;
|
||||||
guint32 flags;
|
guint32 flags;
|
||||||
guint pyramid_level;
|
guint pyramid_level;
|
||||||
/* The total frame count we handled. */
|
|
||||||
guint total_frame_count;
|
|
||||||
gboolean bidir_ref;
|
gboolean bidir_ref;
|
||||||
gint8 ref_frame_idx[GST_AV1_NUM_REF_FRAMES];
|
gint8 ref_frame_idx[GST_AV1_NUM_REF_FRAMES];
|
||||||
/* The index in reference list to update */
|
/* The index in reference list to update */
|
||||||
|
@ -510,7 +508,6 @@ gst_va_av1_enc_frame_new (void)
|
||||||
frame->temporal_id = 0;
|
frame->temporal_id = 0;
|
||||||
frame->spatial_id = 0;
|
frame->spatial_id = 0;
|
||||||
frame->picture = NULL;
|
frame->picture = NULL;
|
||||||
frame->total_frame_count = 0;
|
|
||||||
frame->pyramid_level = 0;
|
frame->pyramid_level = 0;
|
||||||
frame->flags = 0;
|
frame->flags = 0;
|
||||||
frame->bidir_ref = FALSE;
|
frame->bidir_ref = FALSE;
|
||||||
|
@ -537,7 +534,6 @@ gst_va_av1_enc_new_frame (GstVaBaseEnc * base, GstVideoCodecFrame * frame)
|
||||||
GstVaAV1EncFrame *frame_in;
|
GstVaAV1EncFrame *frame_in;
|
||||||
|
|
||||||
frame_in = gst_va_av1_enc_frame_new ();
|
frame_in = gst_va_av1_enc_frame_new ();
|
||||||
frame_in->total_frame_count = base->input_frame_count++;
|
|
||||||
gst_video_codec_frame_set_user_data (frame, frame_in,
|
gst_video_codec_frame_set_user_data (frame, frame_in,
|
||||||
gst_va_av1_enc_frame_free);
|
gst_va_av1_enc_frame_free);
|
||||||
|
|
||||||
|
@ -4054,7 +4050,6 @@ gst_va_av1_enc_prepare_output (GstVaBaseEnc * base,
|
||||||
}
|
}
|
||||||
|
|
||||||
*complete = TRUE;
|
*complete = TRUE;
|
||||||
base->output_frame_count++;
|
|
||||||
|
|
||||||
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_MARKER);
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_MARKER);
|
||||||
if (frame_enc->frame_num == 0) {
|
if (frame_enc->frame_num == 0) {
|
||||||
|
|
|
@ -125,9 +125,6 @@ gst_va_base_enc_start (GstVideoEncoder * venc)
|
||||||
|
|
||||||
gst_va_base_enc_reset_state (base);
|
gst_va_base_enc_reset_state (base);
|
||||||
|
|
||||||
base->input_frame_count = 0;
|
|
||||||
base->output_frame_count = 0;
|
|
||||||
|
|
||||||
base->input_state = NULL;
|
base->input_state = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -57,9 +57,6 @@ struct _GstVaBaseEnc
|
||||||
|
|
||||||
GstClockTime start_pts;
|
GstClockTime start_pts;
|
||||||
GstClockTime frame_duration;
|
GstClockTime frame_duration;
|
||||||
/* Total frames we handled since reconfig. */
|
|
||||||
guint input_frame_count;
|
|
||||||
guint output_frame_count;
|
|
||||||
|
|
||||||
GQueue reorder_list;
|
GQueue reorder_list;
|
||||||
GQueue ref_list;
|
GQueue ref_list;
|
||||||
|
|
Loading…
Reference in a new issue