{
GObjectClass *gobject_class;
GstBaseVideoDecoderClass *base_video_decoder_class;
- GstElementClass *element_class;
gobject_class = G_OBJECT_CLASS (klass);
- element_class = GST_ELEMENT_CLASS (klass);
base_video_decoder_class = GST_BASE_VIDEO_DECODER_CLASS (klass);
gobject_class->set_property = gst_schro_dec_set_property;
GstSchroDec *schro_dec;
int schro_ret;
SchroBuffer *input_buffer;
- GstVideoState *state;
schro_dec = GST_SCHRO_DEC (base_video_decoder);
GST_DEBUG ("handle frame");
- state = gst_base_video_decoder_get_state (base_video_decoder);
-
gst_base_video_decoder_set_src_caps (base_video_decoder);
input_buffer = gst_schro_wrap_gst_buffer (frame->sink_buffer);
gst_schro_enc_class_init (GstSchroEncClass * klass)
{
GObjectClass *gobject_class;
- GstElementClass *gstelement_class;
GstBaseVideoEncoderClass *basevideocoder_class;
int i;
gobject_class = G_OBJECT_CLASS (klass);
- gstelement_class = GST_ELEMENT_CLASS (klass);
basevideocoder_class = GST_BASE_VIDEO_ENCODER_CLASS (klass);
gobject_class->set_property = gst_schro_enc_set_property;
ARG_0
};
-static void gst_schro_parse_finalize (GObject * object);
-
static gboolean gst_schro_parse_start (GstBaseVideoParse * base_video_parse);
static gboolean gst_schro_parse_stop (GstBaseVideoParse * base_video_parse);
static gboolean gst_schro_parse_reset (GstBaseVideoParse * base_video_parse);
static void
gst_schro_parse_class_init (GstSchroParseClass * klass)
{
- GObjectClass *gobject_class;
- GstElementClass *element_class;
GstBaseVideoParseClass *base_video_parse_class;
- gobject_class = G_OBJECT_CLASS (klass);
- element_class = GST_ELEMENT_CLASS (klass);
base_video_parse_class = GST_BASE_VIDEO_PARSE_CLASS (klass);
- gobject_class->finalize = gst_schro_parse_finalize;
-
base_video_parse_class->start = GST_DEBUG_FUNCPTR (gst_schro_parse_start);
base_video_parse_class->stop = GST_DEBUG_FUNCPTR (gst_schro_parse_stop);
base_video_parse_class->reset = GST_DEBUG_FUNCPTR (gst_schro_parse_reset);
static gboolean
gst_schro_parse_reset (GstBaseVideoParse * base_video_parse)
{
- GstSchroParse *schro_parse;
-
- schro_parse = GST_SCHRO_PARSE (base_video_parse);
-
GST_DEBUG ("reset");
return TRUE;
}
-static void
-gst_schro_parse_finalize (GObject * object)
-{
- GstSchroParse *schro_parse;
-
- g_return_if_fail (GST_IS_SCHRO_PARSE (object));
- schro_parse = GST_SCHRO_PARSE (object);
-
- G_OBJECT_CLASS (parent_class)->finalize (object);
-}
-
static gboolean
gst_schro_parse_start (GstBaseVideoParse * base_video_parse)
{
GstVideoFrame * frame)
{
GstBuffer *buf = frame->src_buffer;
- const GstVideoState *state;
-
- state = gst_base_video_parse_get_state (base_video_parse);
return gst_base_video_parse_push (base_video_parse, buf);
}