mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
video: remove // comments
This commit is contained in:
parent
45cf881f39
commit
17f3810f7b
4 changed files with 0 additions and 25 deletions
|
@ -42,15 +42,8 @@ enum
|
||||||
|
|
||||||
static void gst_base_video_codec_finalize (GObject * object);
|
static void gst_base_video_codec_finalize (GObject * object);
|
||||||
|
|
||||||
//static const GstQueryType *gst_base_video_codec_get_query_types (GstPad *pad);
|
|
||||||
//static gboolean gst_base_video_codec_src_query (GstPad *pad, GstQuery *query);
|
|
||||||
//static gboolean gst_base_video_codec_sink_query (GstPad *pad, GstQuery *query);
|
|
||||||
//static gboolean gst_base_video_codec_src_event (GstPad *pad, GstEvent *event);
|
|
||||||
//static gboolean gst_base_video_codec_sink_event (GstPad *pad, GstEvent *event);
|
|
||||||
static GstStateChangeReturn gst_base_video_codec_change_state (GstElement *
|
static GstStateChangeReturn gst_base_video_codec_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
//static GstFlowReturn gst_base_video_codec_push_all (GstBaseVideoCodec *base_video_codec,
|
|
||||||
// gboolean at_eos);
|
|
||||||
|
|
||||||
|
|
||||||
GST_BOILERPLATE (GstBaseVideoCodec, gst_base_video_codec, GstElement,
|
GST_BOILERPLATE (GstBaseVideoCodec, gst_base_video_codec, GstElement,
|
||||||
|
@ -91,8 +84,6 @@ gst_base_video_codec_init (GstBaseVideoCodec * base_video_codec,
|
||||||
g_return_if_fail (pad_template != NULL);
|
g_return_if_fail (pad_template != NULL);
|
||||||
|
|
||||||
base_video_codec->sinkpad = gst_pad_new_from_template (pad_template, "sink");
|
base_video_codec->sinkpad = gst_pad_new_from_template (pad_template, "sink");
|
||||||
//gst_pad_set_query_function (base_video_codec->sinkpad,
|
|
||||||
// gst_base_video_codec_sink_query);
|
|
||||||
gst_element_add_pad (GST_ELEMENT (base_video_codec),
|
gst_element_add_pad (GST_ELEMENT (base_video_codec),
|
||||||
base_video_codec->sinkpad);
|
base_video_codec->sinkpad);
|
||||||
|
|
||||||
|
@ -116,7 +107,6 @@ gst_base_video_codec_reset (GstBaseVideoCodec * base_video_codec)
|
||||||
|
|
||||||
base_video_codec->system_frame_number = 0;
|
base_video_codec->system_frame_number = 0;
|
||||||
|
|
||||||
//gst_segment_init (&base_video_codec->state.segment, GST_FORMAT_TIME);
|
|
||||||
gst_adapter_clear (base_video_codec->input_adapter);
|
gst_adapter_clear (base_video_codec->input_adapter);
|
||||||
gst_adapter_clear (base_video_codec->output_adapter);
|
gst_adapter_clear (base_video_codec->output_adapter);
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ static GstFlowReturn gst_base_video_decoder_chain (GstPad * pad,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
static gboolean gst_base_video_decoder_sink_query (GstPad * pad,
|
static gboolean gst_base_video_decoder_sink_query (GstPad * pad,
|
||||||
GstQuery * query);
|
GstQuery * query);
|
||||||
//static GstFlowReturn gst_base_video_decoder_process (GstBaseVideoDecoder *base_video_decoder);
|
|
||||||
static GstStateChangeReturn gst_base_video_decoder_change_state (GstElement *
|
static GstStateChangeReturn gst_base_video_decoder_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
static const GstQueryType *gst_base_video_decoder_get_query_types (GstPad *
|
static const GstQueryType *gst_base_video_decoder_get_query_types (GstPad *
|
||||||
|
@ -193,7 +192,6 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event)
|
||||||
frame->presentation_frame_number =
|
frame->presentation_frame_number =
|
||||||
base_video_decoder->presentation_frame_number;
|
base_video_decoder->presentation_frame_number;
|
||||||
frame->presentation_duration = 0;
|
frame->presentation_duration = 0;
|
||||||
//frame->presentation_duration = 0;
|
|
||||||
base_video_decoder->presentation_frame_number++;
|
base_video_decoder->presentation_frame_number++;
|
||||||
|
|
||||||
base_video_decoder->frames =
|
base_video_decoder->frames =
|
||||||
|
@ -225,10 +223,6 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event)
|
||||||
|
|
||||||
GST_DEBUG ("new segment %lld %lld", start, position);
|
GST_DEBUG ("new segment %lld %lld", start, position);
|
||||||
|
|
||||||
//gst_base_video_decoder_reset (base_video_decoder);
|
|
||||||
|
|
||||||
//base_video_decoder->timestamp_offset = start;
|
|
||||||
|
|
||||||
gst_segment_set_newsegment_full (&base_video_decoder->state.segment,
|
gst_segment_set_newsegment_full (&base_video_decoder->state.segment,
|
||||||
update, rate, applied_rate, format, start, stop, position);
|
update, rate, applied_rate, format, start, stop, position);
|
||||||
|
|
||||||
|
@ -453,8 +447,6 @@ static const GstQueryType *
|
||||||
gst_base_video_decoder_get_query_types (GstPad * pad)
|
gst_base_video_decoder_get_query_types (GstPad * pad)
|
||||||
{
|
{
|
||||||
static const GstQueryType query_types[] = {
|
static const GstQueryType query_types[] = {
|
||||||
//GST_QUERY_POSITION,
|
|
||||||
//GST_QUERY_DURATION,
|
|
||||||
GST_QUERY_CONVERT,
|
GST_QUERY_CONVERT,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
@ -584,7 +576,6 @@ gst_base_video_decoder_reset (GstBaseVideoDecoder * base_video_decoder)
|
||||||
gst_caps_unref (base_video_decoder->caps);
|
gst_caps_unref (base_video_decoder->caps);
|
||||||
base_video_decoder->caps = NULL;
|
base_video_decoder->caps = NULL;
|
||||||
}
|
}
|
||||||
//gst_segment_init (&base_video_decoder->state.segment, GST_FORMAT_TIME);
|
|
||||||
|
|
||||||
if (base_video_decoder->current_frame) {
|
if (base_video_decoder->current_frame) {
|
||||||
gst_base_video_decoder_free_frame (base_video_decoder->current_frame);
|
gst_base_video_decoder_free_frame (base_video_decoder->current_frame);
|
||||||
|
|
|
@ -35,7 +35,6 @@ static gboolean gst_base_video_encoder_sink_event (GstPad * pad,
|
||||||
GstEvent * event);
|
GstEvent * event);
|
||||||
static GstFlowReturn gst_base_video_encoder_chain (GstPad * pad,
|
static GstFlowReturn gst_base_video_encoder_chain (GstPad * pad,
|
||||||
GstBuffer * buf);
|
GstBuffer * buf);
|
||||||
//static GstFlowReturn gst_base_video_encoder_process (GstBaseVideoEncoder *base_video_encoder);
|
|
||||||
static GstStateChangeReturn gst_base_video_encoder_change_state (GstElement *
|
static GstStateChangeReturn gst_base_video_encoder_change_state (GstElement *
|
||||||
element, GstStateChange transition);
|
element, GstStateChange transition);
|
||||||
static const GstQueryType *gst_base_video_encoder_get_query_types (GstPad *
|
static const GstQueryType *gst_base_video_encoder_get_query_types (GstPad *
|
||||||
|
@ -82,7 +81,6 @@ gst_base_video_encoder_init (GstBaseVideoEncoder * base_video_encoder,
|
||||||
gst_pad_set_chain_function (pad, gst_base_video_encoder_chain);
|
gst_pad_set_chain_function (pad, gst_base_video_encoder_chain);
|
||||||
gst_pad_set_event_function (pad, gst_base_video_encoder_sink_event);
|
gst_pad_set_event_function (pad, gst_base_video_encoder_sink_event);
|
||||||
gst_pad_set_setcaps_function (pad, gst_base_video_encoder_sink_setcaps);
|
gst_pad_set_setcaps_function (pad, gst_base_video_encoder_sink_setcaps);
|
||||||
//gst_pad_set_query_function (pad, gst_base_video_encoder_sink_query);
|
|
||||||
|
|
||||||
pad = GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder);
|
pad = GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder);
|
||||||
|
|
||||||
|
@ -150,7 +148,6 @@ gst_base_video_encoder_sink_event (GstPad * pad, GstEvent * event)
|
||||||
base_video_encoder->presentation_frame_number;
|
base_video_encoder->presentation_frame_number;
|
||||||
frame->presentation_duration = 0;
|
frame->presentation_duration = 0;
|
||||||
frame->is_eos = TRUE;
|
frame->is_eos = TRUE;
|
||||||
//frame->presentation_duration = 0;
|
|
||||||
base_video_encoder->presentation_frame_number++;
|
base_video_encoder->presentation_frame_number++;
|
||||||
|
|
||||||
base_video_encoder->frames =
|
base_video_encoder->frames =
|
||||||
|
@ -212,8 +209,6 @@ static const GstQueryType *
|
||||||
gst_base_video_encoder_get_query_types (GstPad * pad)
|
gst_base_video_encoder_get_query_types (GstPad * pad)
|
||||||
{
|
{
|
||||||
static const GstQueryType query_types[] = {
|
static const GstQueryType query_types[] = {
|
||||||
//GST_QUERY_POSITION,
|
|
||||||
//GST_QUERY_DURATION,
|
|
||||||
GST_QUERY_CONVERT,
|
GST_QUERY_CONVERT,
|
||||||
GST_QUERY_LATENCY,
|
GST_QUERY_LATENCY,
|
||||||
0
|
0
|
||||||
|
|
|
@ -633,7 +633,6 @@ gst_base_video_parse_chain (GstPad * pad, GstBuffer * buf)
|
||||||
|
|
||||||
buffer = gst_adapter_get_buffer (base_video_parse->input_adapter);
|
buffer = gst_adapter_get_buffer (base_video_parse->input_adapter);
|
||||||
|
|
||||||
//base_video_parse->buffer_timestamp = GST_BUFFER_TIMESTAMP (buffer);
|
|
||||||
gst_buffer_unref (buffer);
|
gst_buffer_unref (buffer);
|
||||||
|
|
||||||
/* FIXME check klass->parse_data */
|
/* FIXME check klass->parse_data */
|
||||||
|
|
Loading…
Reference in a new issue