mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gstreamer: Remove unused frame_count
and dts_offset
This commit is contained in:
parent
2d250439f1
commit
24d6027d2e
2 changed files with 2 additions and 8 deletions
|
@ -322,7 +322,6 @@ static void gst_svtav1enc_init(GstSvtAv1Enc *svtav1enc) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
memset(&svtav1enc->svt_encoder, 0, sizeof(svtav1enc->svt_encoder));
|
memset(&svtav1enc->svt_encoder, 0, sizeof(svtav1enc->svt_encoder));
|
||||||
svtav1enc->frame_count = 0;
|
|
||||||
|
|
||||||
EbErrorType res = svt_av1_enc_init_handle(&svtav1enc->svt_encoder, NULL, svtav1enc->svt_config);
|
EbErrorType res = svt_av1_enc_init_handle(&svtav1enc->svt_encoder, NULL, svtav1enc->svt_config);
|
||||||
if (res != EB_ErrorNone) {
|
if (res != EB_ErrorNone) {
|
||||||
|
@ -652,8 +651,8 @@ GstFlowReturn gst_svtav1enc_dequeue_encoded_frames(GstSvtAv1Enc *svtav1enc,
|
||||||
frame->pts = frame->output_buffer->pts = output_buf->pts;
|
frame->pts = frame->output_buffer->pts = output_buf->pts;
|
||||||
|
|
||||||
GST_LOG_OBJECT(svtav1enc,
|
GST_LOG_OBJECT(svtav1enc,
|
||||||
"#frame:%lld pts:%" G_GINT64_FORMAT " SliceType:%d\n",
|
"#frame:%u pts:%" G_GINT64_FORMAT " SliceType:%d\n",
|
||||||
svtav1enc->frame_count,
|
frame->system_frame_number,
|
||||||
(frame->pts),
|
(frame->pts),
|
||||||
output_buf->pic_type);
|
output_buf->pic_type);
|
||||||
|
|
||||||
|
@ -661,8 +660,6 @@ GstFlowReturn gst_svtav1enc_dequeue_encoded_frames(GstSvtAv1Enc *svtav1enc,
|
||||||
output_buf = NULL;
|
output_buf = NULL;
|
||||||
|
|
||||||
ret = gst_video_encoder_finish_frame(GST_VIDEO_ENCODER(svtav1enc), frame);
|
ret = gst_video_encoder_finish_frame(GST_VIDEO_ENCODER(svtav1enc), frame);
|
||||||
|
|
||||||
svtav1enc->frame_count++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (res == EB_ErrorNone && !encode_at_eos && ret == GST_FLOW_OK);
|
} while (res == EB_ErrorNone && !encode_at_eos && ret == GST_FLOW_OK);
|
||||||
|
|
|
@ -35,9 +35,6 @@ typedef struct _GstSvtAv1Enc {
|
||||||
EbSvtAv1EncConfiguration *svt_config;
|
EbSvtAv1EncConfiguration *svt_config;
|
||||||
|
|
||||||
EbBufferHeaderType *input_buf;
|
EbBufferHeaderType *input_buf;
|
||||||
|
|
||||||
long long int frame_count;
|
|
||||||
int dts_offset;
|
|
||||||
} GstSvtAv1Enc;
|
} GstSvtAv1Enc;
|
||||||
|
|
||||||
typedef struct _GstSvtAv1EncClass {
|
typedef struct _GstSvtAv1EncClass {
|
||||||
|
|
Loading…
Reference in a new issue