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 *
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,
g_return_if_fail (pad_template != NULL);
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),
base_video_codec->sinkpad);
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->output_adapter);
GstBuffer * buf);
static gboolean gst_base_video_decoder_sink_query (GstPad * pad,
GstQuery * query);
-//static GstFlowReturn gst_base_video_decoder_process (GstBaseVideoDecoder *base_video_decoder);
static GstStateChangeReturn gst_base_video_decoder_change_state (GstElement *
element, GstStateChange transition);
static const GstQueryType *gst_base_video_decoder_get_query_types (GstPad *
frame->presentation_frame_number =
base_video_decoder->presentation_frame_number;
frame->presentation_duration = 0;
- //frame->presentation_duration = 0;
base_video_decoder->presentation_frame_number++;
base_video_decoder->frames =
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,
update, rate, applied_rate, format, start, stop, position);
gst_base_video_decoder_get_query_types (GstPad * pad)
{
static const GstQueryType query_types[] = {
- //GST_QUERY_POSITION,
- //GST_QUERY_DURATION,
GST_QUERY_CONVERT,
0
};
gst_caps_unref (base_video_decoder->caps);
base_video_decoder->caps = NULL;
}
- //gst_segment_init (&base_video_decoder->state.segment, GST_FORMAT_TIME);
if (base_video_decoder->current_frame) {
gst_base_video_decoder_free_frame (base_video_decoder->current_frame);
GstEvent * event);
static GstFlowReturn gst_base_video_encoder_chain (GstPad * pad,
GstBuffer * buf);
-//static GstFlowReturn gst_base_video_encoder_process (GstBaseVideoEncoder *base_video_encoder);
static GstStateChangeReturn gst_base_video_encoder_change_state (GstElement *
element, GstStateChange transition);
static const GstQueryType *gst_base_video_encoder_get_query_types (GstPad *
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_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);
base_video_encoder->presentation_frame_number;
frame->presentation_duration = 0;
frame->is_eos = TRUE;
- //frame->presentation_duration = 0;
base_video_encoder->presentation_frame_number++;
base_video_encoder->frames =
gst_base_video_encoder_get_query_types (GstPad * pad)
{
static const GstQueryType query_types[] = {
- //GST_QUERY_POSITION,
- //GST_QUERY_DURATION,
GST_QUERY_CONVERT,
GST_QUERY_LATENCY,
0
buffer = gst_adapter_get_buffer (base_video_parse->input_adapter);
- //base_video_parse->buffer_timestamp = GST_BUFFER_TIMESTAMP (buffer);
gst_buffer_unref (buffer);
/* FIXME check klass->parse_data */