mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
basevideoencoder: remove unused code
This commit is contained in:
parent
404f491c19
commit
8aa9d83eb4
2 changed files with 0 additions and 29 deletions
|
@ -604,37 +604,12 @@ gst_base_video_encoder_finish_frame (GstBaseVideoEncoder * base_video_encoder,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
gst_base_video_encoder_get_height (GstBaseVideoEncoder * base_video_encoder)
|
|
||||||
{
|
|
||||||
return GST_BASE_VIDEO_CODEC (base_video_encoder)->state.height;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
gst_base_video_encoder_get_width (GstBaseVideoEncoder * base_video_encoder)
|
|
||||||
{
|
|
||||||
return GST_BASE_VIDEO_CODEC (base_video_encoder)->state.width;
|
|
||||||
}
|
|
||||||
|
|
||||||
const GstVideoState *
|
const GstVideoState *
|
||||||
gst_base_video_encoder_get_state (GstBaseVideoEncoder * base_video_encoder)
|
gst_base_video_encoder_get_state (GstBaseVideoEncoder * base_video_encoder)
|
||||||
{
|
{
|
||||||
return &GST_BASE_VIDEO_CODEC (base_video_encoder)->state;
|
return &GST_BASE_VIDEO_CODEC (base_video_encoder)->state;
|
||||||
}
|
}
|
||||||
|
|
||||||
GstFlowReturn
|
|
||||||
gst_base_video_encoder_end_of_stream (GstBaseVideoEncoder * base_video_encoder,
|
|
||||||
GstBuffer * buffer)
|
|
||||||
{
|
|
||||||
|
|
||||||
if (GST_BASE_VIDEO_CODEC (base_video_encoder)->frames) {
|
|
||||||
GST_WARNING_OBJECT (base_video_encoder, "EOS with frames left over");
|
|
||||||
}
|
|
||||||
|
|
||||||
return gst_pad_push (GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder),
|
|
||||||
buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gst_base_video_encoder_set_latency (GstBaseVideoEncoder * base_video_encoder,
|
gst_base_video_encoder_set_latency (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GstClockTime min_latency, GstClockTime max_latency)
|
GstClockTime min_latency, GstClockTime max_latency)
|
||||||
|
|
|
@ -105,15 +105,11 @@ struct _GstBaseVideoEncoderClass
|
||||||
|
|
||||||
GType gst_base_video_encoder_get_type (void);
|
GType gst_base_video_encoder_get_type (void);
|
||||||
|
|
||||||
int gst_base_video_encoder_get_width (GstBaseVideoEncoder *coder);
|
|
||||||
int gst_base_video_encoder_get_height (GstBaseVideoEncoder *coder);
|
|
||||||
const GstVideoState *gst_base_video_encoder_get_state (GstBaseVideoEncoder *coder);
|
const GstVideoState *gst_base_video_encoder_get_state (GstBaseVideoEncoder *coder);
|
||||||
|
|
||||||
GstVideoFrame *gst_base_video_encoder_get_oldest_frame (GstBaseVideoEncoder *coder);
|
GstVideoFrame *gst_base_video_encoder_get_oldest_frame (GstBaseVideoEncoder *coder);
|
||||||
GstFlowReturn gst_base_video_encoder_finish_frame (GstBaseVideoEncoder *base_video_encoder,
|
GstFlowReturn gst_base_video_encoder_finish_frame (GstBaseVideoEncoder *base_video_encoder,
|
||||||
GstVideoFrame *frame);
|
GstVideoFrame *frame);
|
||||||
GstFlowReturn gst_base_video_encoder_end_of_stream (GstBaseVideoEncoder *base_video_encoder,
|
|
||||||
GstBuffer *buffer);
|
|
||||||
|
|
||||||
void gst_base_video_encoder_set_latency (GstBaseVideoEncoder *base_video_encoder,
|
void gst_base_video_encoder_set_latency (GstBaseVideoEncoder *base_video_encoder,
|
||||||
GstClockTime min_latency, GstClockTime max_latency);
|
GstClockTime min_latency, GstClockTime max_latency);
|
||||||
|
|
Loading…
Reference in a new issue