GstMapInfo bitstream_map;
};
-G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecH264Dec,
- gst_v4l2_codec_h264_dec, GST_TYPE_H264_DECODER,
- GST_DEBUG_CATEGORY_INIT (v4l2_h264dec_debug, "v4l2codecs-h264dec", 0,
- "V4L2 stateless h264 decoder"));
+G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecH264Dec, gst_v4l2_codec_h264_dec,
+ GST_TYPE_H264_DECODER);
+
#define parent_class gst_v4l2_codec_h264_dec_parent_class
static gboolean
{
GstCaps *src_caps;
+ GST_DEBUG_CATEGORY_INIT (v4l2_h264dec_debug, "v4l2codecs-h264dec", 0,
+ "V4L2 stateless h264 decoder");
+
if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_H264_SLICE,
320, 240, 8))
return;
gboolean copy_frames;
};
-G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecMpeg2Dec,
- gst_v4l2_codec_mpeg2_dec, GST_TYPE_MPEG2_DECODER,
- GST_DEBUG_CATEGORY_INIT (v4l2_mpeg2dec_debug, "v4l2codecs-mpeg2dec", 0,
- "V4L2 stateless mpeg2 decoder"));
+G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecMpeg2Dec, gst_v4l2_codec_mpeg2_dec,
+ GST_TYPE_MPEG2_DECODER);
+
#define parent_class gst_v4l2_codec_mpeg2_dec_parent_class
static guint
{
GstCaps *src_caps;
+ GST_DEBUG_CATEGORY_INIT (v4l2_mpeg2dec_debug, "v4l2codecs-mpeg2dec", 0,
+ "V4L2 stateless mpeg2 decoder");
+
if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_MPEG2_SLICE,
320, 240, 8))
return;
GstMapInfo bitstream_map;
};
-G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecVp8Dec,
- gst_v4l2_codec_vp8_dec, GST_TYPE_VP8_DECODER,
- GST_DEBUG_CATEGORY_INIT (v4l2_vp8dec_debug, "v4l2codecs-vp8dec", 0,
- "V4L2 stateless VP8 decoder"));
+G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecVp8Dec, gst_v4l2_codec_vp8_dec,
+ GST_TYPE_VP8_DECODER);
+
#define parent_class gst_v4l2_codec_vp8_dec_parent_class
static guint
gchar *element_name;
GstCaps *src_caps, *alpha_caps;
+ GST_DEBUG_CATEGORY_INIT (v4l2_vp8dec_debug, "v4l2codecs-vp8dec", 0,
+ "V4L2 stateless VP8 decoder");
+
if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_VP8_FRAME,
320, 240, 8))
return;
guint subsampling_y;
};
-#define parent_class gst_v4l2_codec_vp9_dec_parent_class
-G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecVp9Dec,
- gst_v4l2_codec_vp9_dec, GST_TYPE_VP9_DECODER,
- GST_DEBUG_CATEGORY_INIT (v4l2_vp9dec_debug, "v4l2codecs-vp9dec", 0,
- "V4L2 stateless VP9 decoder"));
+G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecVp9Dec, gst_v4l2_codec_vp9_dec,
+ GST_TYPE_VP9_DECODER);
+#define parent_class gst_v4l2_codec_vp9_dec_parent_class
static guint
gst_v4l2_codec_vp9_dec_get_preferred_output_delay (GstVp9Decoder * decoder,
gchar *element_name;
GstCaps *src_caps, *alpha_caps;
+ GST_DEBUG_CATEGORY_INIT (v4l2_vp9dec_debug, "v4l2codecs-vp9dec", 0,
+ "V4L2 stateless VP9 decoder");
+
if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_VP9_FRAME,
320, 240, 8))
return;