mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
good: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763076
This commit is contained in:
parent
2b8b5f2246
commit
1071309870
243 changed files with 827 additions and 971 deletions
|
@ -209,8 +209,7 @@ gst_aasink_class_init (GstAASinkClass * klass)
|
|||
g_param_spec_int ("frame-time", "frame time", "frame time", G_MININT,
|
||||
G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"ASCII art video sink", "Sink/Video", "An ASCII art videosink",
|
||||
|
|
|
@ -242,10 +242,10 @@ gst_cairo_overlay_class_init (GstCairoOverlayClass * klass)
|
|||
"Render overlay on a video stream using Cairo",
|
||||
"Jon Nordby <jononor@gmail.com>");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_cairo_overlay_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_cairo_overlay_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_cairo_overlay_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_cairo_overlay_src_template);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -174,10 +174,8 @@ gst_dvdec_class_init (GstDVDecClass * klass)
|
|||
|
||||
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdec_change_state);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_temp));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_temp));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_temp);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_temp);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "DV video decoder",
|
||||
"Codec/Decoder/Video",
|
||||
|
|
|
@ -182,12 +182,9 @@ gst_dvdemux_class_init (GstDVDemuxClass * klass)
|
|||
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdemux_change_state);
|
||||
gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_dvdemux_send_event);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_temp));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&video_src_temp));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&audio_src_temp));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_temp);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &video_src_temp);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &audio_src_temp);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"DV system stream demuxer", "Codec/Demuxer",
|
||||
|
|
|
@ -164,10 +164,10 @@ gst_flac_dec_class_init (GstFlacDecClass * klass)
|
|||
audiodecoder_class->handle_frame =
|
||||
GST_DEBUG_FUNCPTR (gst_flac_dec_handle_frame);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&flac_dec_src_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&flac_dec_sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&flac_dec_src_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&flac_dec_sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "FLAC audio decoder",
|
||||
"Codec/Decoder/Audio", "Decodes FLAC lossless audio streams",
|
||||
|
|
|
@ -341,8 +341,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass)
|
|||
DEFAULT_SEEKPOINTS,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
|
||||
sink_caps = gst_flac_enc_generate_sink_caps ();
|
||||
sink_templ = gst_pad_template_new ("sink",
|
||||
|
|
|
@ -109,11 +109,10 @@ gst_flac_tag_class_init (GstFlacTagClass * klass)
|
|||
"Formatter/Metadata",
|
||||
"Rewrite tags in a FLAC file", "Christophe Fergeau <teuf@gnome.org>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&flac_tag_sink_template));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&flac_tag_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&flac_tag_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&flac_tag_src_template);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -180,10 +180,10 @@ gst_gdk_pixbuf_dec_class_init (GstGdkPixbufDecClass * klass)
|
|||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_gdk_pixbuf_dec_change_state);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_gdk_pixbuf_dec_src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_gdk_pixbuf_dec_sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_gdk_pixbuf_dec_src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_gdk_pixbuf_dec_sink_template);
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"GdkPixbuf image decoder", "Codec/Decoder/Image",
|
||||
"Decodes images in a video stream using GdkPixbuf",
|
||||
|
|
|
@ -240,10 +240,8 @@ gst_gdk_pixbuf_overlay_class_init (GstGdkPixbufOverlayClass * klass)
|
|||
GST_TYPE_GDK_PIXBUF_POSITIONING_MODE, DEFAULT_POSITIONING_MODE,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"GdkPixbuf Overlay", "Filter/Effect/Video",
|
||||
|
|
|
@ -149,8 +149,8 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass)
|
|||
"Sink/Video", "Output images as GdkPixbuf objects in bus messages",
|
||||
"Tim-Philipp Müller <tim centricular net>");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&pixbufsink_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&pixbufsink_sink_factory);
|
||||
|
||||
gobject_class->set_property = gst_gdk_pixbuf_sink_set_property;
|
||||
gobject_class->get_property = gst_gdk_pixbuf_sink_get_property;
|
||||
|
|
|
@ -785,8 +785,8 @@ gst_jack_audio_sink_class_init (GstJackAudioSinkClass * klass)
|
|||
"Sink/Audio", "Output audio to a JACK server",
|
||||
"Wim Taymans <wim.taymans@gmail.com>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&jackaudiosink_sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&jackaudiosink_sink_factory);
|
||||
|
||||
gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_jack_audio_sink_getcaps);
|
||||
|
||||
|
|
|
@ -801,8 +801,7 @@ gst_jack_audio_src_class_init (GstJackAudioSrcClass * klass)
|
|||
GST_TYPE_JACK_TRANSPORT, DEFAULT_PROP_TRANSPORT,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Audio Source (Jack)", "Source/Audio",
|
||||
|
|
|
@ -160,13 +160,13 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass)
|
|||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED));
|
||||
#endif
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_jpeg_dec_src_pad_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_jpeg_dec_sink_pad_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_jpeg_dec_src_pad_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_jpeg_dec_sink_pad_template);
|
||||
gst_element_class_set_static_metadata (element_class, "JPEG image decoder",
|
||||
"Codec/Decoder/Image",
|
||||
"Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>");
|
||||
"Codec/Decoder/Image", "Decode images from JPEG format",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
|
||||
vdec_class->start = gst_jpeg_dec_start;
|
||||
vdec_class->stop = gst_jpeg_dec_stop;
|
||||
|
|
|
@ -150,13 +150,13 @@ gst_jpegenc_class_init (GstJpegEncClass * klass)
|
|||
JPEG_DEFAULT_IDCT_METHOD,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_jpegenc_sink_pad_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_jpegenc_src_pad_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_jpegenc_sink_pad_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_jpegenc_src_pad_template);
|
||||
gst_element_class_set_static_metadata (element_class, "JPEG image encoder",
|
||||
"Codec/Encoder/Image",
|
||||
"Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>");
|
||||
"Codec/Encoder/Image", "Encode images in JPEG format",
|
||||
"Wim Taymans <wim.taymans@tvd.be>");
|
||||
|
||||
venc_class->start = gst_jpegenc_start;
|
||||
venc_class->stop = gst_jpegenc_stop;
|
||||
|
|
|
@ -106,13 +106,13 @@ gst_smokedec_base_init (gpointer g_class)
|
|||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_smokedec_src_pad_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_smokedec_sink_pad_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_smokedec_src_pad_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_smokedec_sink_pad_template);
|
||||
gst_element_class_set_static_metadata (element_class, "Smoke video decoder",
|
||||
"Codec/Decoder/Video",
|
||||
"Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>");
|
||||
"Codec/Decoder/Video", "Decode video from Smoke format",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -123,13 +123,13 @@ gst_smokeenc_base_init (gpointer g_class)
|
|||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_smokeenc_sink_pad_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_smokeenc_src_pad_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_smokeenc_sink_pad_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_smokeenc_src_pad_template);
|
||||
gst_element_class_set_static_metadata (element_class, "Smoke video encoder",
|
||||
"Codec/Encoder/Video",
|
||||
"Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>");
|
||||
"Codec/Encoder/Video", "Encode images into the Smoke format",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -152,8 +152,7 @@ gst_cacasink_class_init (GstCACASinkClass * klass)
|
|||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"A colored ASCII art video sink", "Sink/Video",
|
||||
"A colored ASCII art videosink", "Zeeshan Ali <zak147@yahoo.com>");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
|
||||
gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_cacasink_setcaps);
|
||||
gstbasesink_class->get_times = GST_DEBUG_FUNCPTR (gst_cacasink_get_times);
|
||||
|
|
|
@ -81,13 +81,12 @@ gst_pngdec_class_init (GstPngDecClass * klass)
|
|||
GstElementClass *element_class = (GstElementClass *) klass;
|
||||
GstVideoDecoderClass *vdec_class = (GstVideoDecoderClass *) klass;
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_pngdec_src_pad_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_pngdec_sink_pad_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_pngdec_src_pad_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_pngdec_sink_pad_template);
|
||||
gst_element_class_set_static_metadata (element_class, "PNG image decoder",
|
||||
"Codec/Decoder/Image",
|
||||
"Decode a png video frame to a raw image",
|
||||
"Codec/Decoder/Image", "Decode a png video frame to a raw image",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
|
||||
vdec_class->start = gst_pngdec_start;
|
||||
|
|
|
@ -128,10 +128,10 @@ gst_pngenc_class_init (GstPngEncClass * klass)
|
|||
DEFAULT_COMPRESSION_LEVEL,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template
|
||||
(element_class, gst_static_pad_template_get (&pngenc_sink_template));
|
||||
gst_element_class_add_pad_template
|
||||
(element_class, gst_static_pad_template_get (&pngenc_src_template));
|
||||
gst_element_class_add_static_pad_template
|
||||
(element_class, &pngenc_sink_template);
|
||||
gst_element_class_add_static_pad_template
|
||||
(element_class, &pngenc_src_template);
|
||||
gst_element_class_set_static_metadata (element_class, "PNG image encoder",
|
||||
"Codec/Encoder/Image",
|
||||
"Encode a video frame to a .png image",
|
||||
|
|
|
@ -1989,8 +1989,7 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass)
|
|||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"PulseAudio Audio Sink",
|
||||
"Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&pad_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &pad_template);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -222,8 +222,7 @@ gst_pulsesrc_class_init (GstPulseSrcClass * klass)
|
|||
"PulseAudio Audio Source",
|
||||
"Source/Audio",
|
||||
"Captures audio from a PulseAudio server", "Lennart Poettering");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&pad_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &pad_template);
|
||||
|
||||
/**
|
||||
* GstPulseSrc:volume:
|
||||
|
|
|
@ -218,8 +218,7 @@ gst_dv1394src_class_init (GstDV1394SrcClass * klass)
|
|||
|
||||
gstpushsrc_class->create = gst_dv1394src_create;
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Firewire (1394) DV video source", "Source/Video",
|
||||
|
|
|
@ -168,8 +168,7 @@ gst_hdv1394src_class_init (GstHDV1394SrcClass * klass)
|
|||
|
||||
gstpushsrc_class->create = gst_hdv1394src_create;
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Firewire (1394) HDV video source", "Source/Video",
|
||||
|
|
|
@ -223,8 +223,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass)
|
|||
gstbasesink_class->event = GST_DEBUG_FUNCPTR (gst_shout2send_event);
|
||||
gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_shout2send_setcaps);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Icecast network sink",
|
||||
|
|
|
@ -192,8 +192,8 @@ gst_soup_http_client_sink_class_init (GstSoupHttpClientSinkClass * klass)
|
|||
SOUP_TYPE_LOGGER_LOG_LEVEL, DEFAULT_SOUP_LOG_LEVEL,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_soup_http_client_sink_sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_soup_http_client_sink_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "HTTP client sink",
|
||||
"Generic", "Sends streams to HTTP server via PUT",
|
||||
|
|
|
@ -421,8 +421,7 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass)
|
|||
"The HTTP method to use (GET, HEAD, OPTIONS, etc)",
|
||||
DEFAULT_SOUP_METHOD, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&srctemplate));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "HTTP client source",
|
||||
"Source/Network",
|
||||
|
|
|
@ -114,10 +114,10 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass)
|
|||
g_param_spec_boolean ("enh", "Enh", "Enable perceptual enhancement",
|
||||
DEFAULT_ENH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&speex_dec_src_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&speex_dec_sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&speex_dec_src_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&speex_dec_sink_factory);
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Speex audio decoder", "Codec/Decoder/Audio",
|
||||
"decode speex streams to audio", "Wim Taymans <wim@fluendo.com>");
|
||||
|
|
|
@ -211,10 +211,8 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass)
|
|||
"The last status message", NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Speex audio encoder", "Codec/Encoder/Audio",
|
||||
"Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>");
|
||||
|
|
|
@ -86,10 +86,8 @@ gst_apev2_mux_class_init (GstApev2MuxClass * klass)
|
|||
GST_TAG_MUX_CLASS (klass)->render_end_tag =
|
||||
GST_DEBUG_FUNCPTR (gst_apev2_mux_render_end_tag);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"TagLib-based APEv2 Muxer", "Formatter/Metadata",
|
||||
|
|
|
@ -94,10 +94,8 @@ gst_id3v2_mux_class_init (GstId3v2MuxClass * klass)
|
|||
GST_TAG_MUX_CLASS (klass)->render_end_tag =
|
||||
GST_DEBUG_FUNCPTR (gst_id3v2_mux_render_end_tag);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"TagLib-based ID3v2 Muxer", "Formatter/Metadata",
|
||||
|
|
|
@ -87,11 +87,10 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass)
|
|||
element_class = GST_ELEMENT_CLASS (klass);
|
||||
vpx_class = GST_VPX_DEC_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp8_dec_sink_template));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp8_dec_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp8_dec_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp8_dec_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"On2 VP8 Decoder",
|
||||
|
|
|
@ -141,10 +141,10 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass)
|
|||
vpx_encoder_class = GST_VPX_ENC_CLASS (klass);
|
||||
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp8_enc_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp8_enc_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp8_enc_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp8_enc_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"On2 VP8 Encoder",
|
||||
|
|
|
@ -89,10 +89,10 @@ gst_vp9_dec_class_init (GstVP9DecClass * klass)
|
|||
element_class = GST_ELEMENT_CLASS (klass);
|
||||
vpx_class = GST_VPX_DEC_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp9_dec_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp9_dec_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp9_dec_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp9_dec_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"On2 VP9 Decoder",
|
||||
|
|
|
@ -111,10 +111,10 @@ gst_vp9_enc_class_init (GstVP9EncClass * klass)
|
|||
element_class = GST_ELEMENT_CLASS (klass);
|
||||
vpx_encoder_class = GST_VPX_ENC_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp9_enc_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_vp9_enc_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp9_enc_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_vp9_enc_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"On2 VP9 Encoder",
|
||||
|
|
|
@ -105,10 +105,8 @@ gst_wavpack_dec_class_init (GstWavpackDecClass * klass)
|
|||
GstElementClass *element_class = (GstElementClass *) (klass);
|
||||
GstAudioDecoderClass *base_class = (GstAudioDecoderClass *) (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
gst_element_class_set_static_metadata (element_class, "Wavpack audio decoder",
|
||||
"Codec/Decoder/Audio",
|
||||
"Decodes Wavpack audio data",
|
||||
|
|
|
@ -209,12 +209,9 @@ gst_wavpack_enc_class_init (GstWavpackEncClass * klass)
|
|||
GstAudioEncoderClass *base_class = (GstAudioEncoderClass *) (klass);
|
||||
|
||||
/* add pad templates */
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&wvcsrc_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &wvcsrc_factory);
|
||||
|
||||
/* set element details */
|
||||
gst_element_class_set_static_metadata (element_class, "Wavpack audio encoder",
|
||||
|
|
|
@ -273,10 +273,10 @@ gst_alpha_class_init (GstAlphaClass * klass)
|
|||
"Edward Hervey <edward.hervey@collabora.co.uk>\n"
|
||||
"Jan Schmidt <thaytan@noraisin.net>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_alpha_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_alpha_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_alpha_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_alpha_src_template);
|
||||
|
||||
btrans_class->before_transform =
|
||||
GST_DEBUG_FUNCPTR (gst_alpha_before_transform);
|
||||
|
|
|
@ -85,10 +85,8 @@ gst_alpha_color_class_init (GstAlphaColorClass * klass)
|
|||
"ARGB from/to AYUV colorspace conversion preserving the alpha channel",
|
||||
"Wim Taymans <wim.taymans@gmail.com>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
gstbasetransform_class->transform_caps =
|
||||
GST_DEBUG_FUNCPTR (gst_alpha_color_transform_caps);
|
||||
|
|
|
@ -91,8 +91,7 @@ gst_ape_demux_class_init (GstApeDemuxClass * klass)
|
|||
"Read and output APE tags while demuxing the contents",
|
||||
"Tim-Philipp Müller <tim centricular net>");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
|
||||
tagdemux_class->identify_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_identify_tag);
|
||||
tagdemux_class->parse_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_parse_tag);
|
||||
|
|
|
@ -199,10 +199,8 @@ gst_audio_panorama_class_init (GstAudioPanoramaClass * klass)
|
|||
"Positions audio streams in the stereo panorama",
|
||||
"Stefan Kost <ensonic@users.sf.net>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
|
||||
GST_BASE_TRANSFORM_CLASS (klass)->get_unit_size =
|
||||
GST_DEBUG_FUNCPTR (gst_audio_panorama_get_unit_size);
|
||||
|
|
|
@ -859,10 +859,8 @@ gst_scaletempo_class_init (GstScaletempoClass * klass)
|
|||
"Length in milliseconds to search for best overlap position", 0, 500,
|
||||
14, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Scaletempo",
|
||||
"Filter/Effect/Rate",
|
||||
"Sync audio tempo with playback rate",
|
||||
|
|
|
@ -114,10 +114,8 @@ gst_aac_parse_class_init (GstAacParseClass * klass)
|
|||
GST_DEBUG_CATEGORY_INIT (aacparse_debug, "aacparse", 0,
|
||||
"AAC audio stream parser");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"AAC audio stream parser", "Codec/Parser/Audio",
|
||||
|
|
|
@ -186,10 +186,8 @@ gst_ac3_parse_class_init (GstAc3ParseClass * klass)
|
|||
|
||||
object_class->finalize = gst_ac3_parse_finalize;
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"AC3 audio stream parser", "Codec/Parser/Converter/Audio",
|
||||
|
|
|
@ -100,10 +100,8 @@ gst_amr_parse_class_init (GstAmrParseClass * klass)
|
|||
GST_DEBUG_CATEGORY_INIT (amrparse_debug, "amrparse", 0,
|
||||
"AMR-NB audio stream parser");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"AMR audio stream parser", "Codec/Parser/Audio",
|
||||
|
|
|
@ -106,10 +106,8 @@ gst_dca_parse_class_init (GstDcaParseClass * klass)
|
|||
parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_get_sink_caps);
|
||||
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_set_sink_caps);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"DTS Coherent Acoustics audio stream parser", "Codec/Parser/Audio",
|
||||
|
|
|
@ -247,10 +247,8 @@ gst_flac_parse_class_init (GstFlacParseClass * klass)
|
|||
baseparse_class->get_sink_caps =
|
||||
GST_DEBUG_FUNCPTR (gst_flac_parse_get_sink_caps);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "FLAC audio parser",
|
||||
"Codec/Parser/Audio",
|
||||
|
|
|
@ -177,10 +177,8 @@ gst_mpeg_audio_parse_class_init (GstMpegAudioParseClass * klass)
|
|||
|
||||
g_type_class_ref (GST_TYPE_MPEG_AUDIO_CHANNEL_MODE);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "MPEG1 Audio Parser",
|
||||
"Codec/Parser/Audio",
|
||||
|
|
|
@ -98,10 +98,8 @@ gst_sbc_parse_class_init (GstSbcParseClass * klass)
|
|||
baseparse_class->get_sink_caps =
|
||||
GST_DEBUG_FUNCPTR (gst_sbc_parse_get_sink_caps);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "SBC audio parser",
|
||||
"Codec/Parser/Audio", "Parses an SBC bluetooth audio stream",
|
||||
|
|
|
@ -98,10 +98,8 @@ gst_wavpack_parse_class_init (GstWavpackParseClass * klass)
|
|||
parse_class->pre_push_frame =
|
||||
GST_DEBUG_FUNCPTR (gst_wavpack_parse_pre_push_frame);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"Wavpack audio stream parser", "Codec/Parser/Audio",
|
||||
|
|
|
@ -118,10 +118,8 @@ gst_au_parse_class_init (GstAuParseClass * klass)
|
|||
|
||||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_au_parse_change_state);
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"AU audio demuxer",
|
||||
"Codec/Demuxer/Audio",
|
||||
|
|
|
@ -81,8 +81,7 @@ gst_auto_audio_sink_class_init (GstAutoAudioSinkClass * klass)
|
|||
"Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64,
|
||||
DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (eklass,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (eklass, &sink_template);
|
||||
gst_element_class_set_static_metadata (eklass, "Auto audio sink",
|
||||
"Sink/Audio",
|
||||
"Wrapper audio sink for automatically detected audio sink",
|
||||
|
|
|
@ -75,8 +75,7 @@ gst_auto_audio_src_class_init (GstAutoAudioSrcClass * klass)
|
|||
GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass);
|
||||
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (eklass,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (eklass, &src_template);
|
||||
gst_element_class_set_static_metadata (eklass, "Auto audio source",
|
||||
"Source/Audio",
|
||||
"Wrapper audio source for automatically detected audio source",
|
||||
|
|
|
@ -81,8 +81,7 @@ gst_auto_video_sink_class_init (GstAutoVideoSinkClass * klass)
|
|||
"Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64,
|
||||
DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (eklass,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_static_pad_template (eklass, &sink_template);
|
||||
gst_element_class_set_static_metadata (eklass, "Auto video sink",
|
||||
"Sink/Video",
|
||||
"Wrapper video sink for automatically detected video sink",
|
||||
|
|
|
@ -74,8 +74,7 @@ gst_auto_video_src_class_init (GstAutoVideoSrcClass * klass)
|
|||
GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass);
|
||||
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (eklass,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (eklass, &src_template);
|
||||
gst_element_class_set_static_metadata (eklass, "Auto video source",
|
||||
"Source/Video",
|
||||
"Wrapper video source for automatically detected video source",
|
||||
|
|
|
@ -170,8 +170,7 @@ gst_avi_demux_class_init (GstAviDemuxClass * klass)
|
|||
gst_element_class_add_pad_template (gstelement_class, videosrctempl);
|
||||
gst_element_class_add_pad_template (gstelement_class, subsrctempl);
|
||||
gst_element_class_add_pad_template (gstelement_class, subpicsrctempl);
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_templ));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_templ);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Avi demuxer",
|
||||
"Codec/Demuxer",
|
||||
|
|
|
@ -252,12 +252,11 @@ gst_avi_mux_class_init (GstAviMuxClass * klass)
|
|||
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_avi_mux_release_pad);
|
||||
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_avi_mux_change_state);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&audio_sink_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&video_sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&audio_sink_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&video_sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Avi muxer",
|
||||
"Codec/Muxer",
|
||||
|
|
|
@ -327,10 +327,8 @@ gst_avi_subtitle_class_init (GstAviSubtitleClass * klass)
|
|||
gstelement_class->send_event =
|
||||
GST_DEBUG_FUNCPTR (gst_avi_subtitle_send_event);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"Avi subtitle parser", "Codec/Parser/Subtitle",
|
||||
|
|
|
@ -147,13 +147,12 @@ gst_cutter_class_init (GstCutterClass * klass)
|
|||
|
||||
GST_DEBUG_CATEGORY_INIT (cutter_debug, "cutter", 0, "Audio cutting");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&cutter_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&cutter_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&cutter_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&cutter_sink_factory);
|
||||
gst_element_class_set_static_metadata (element_class, "Audio cutter",
|
||||
"Filter/Editor/Audio",
|
||||
"Audio Cutter to split audio into non-silent bits",
|
||||
"Filter/Editor/Audio", "Audio Cutter to split audio into non-silent bits",
|
||||
"Thomas Vander Stichele <thomas at apestaart dot org>");
|
||||
element_class->change_state = gst_cutter_change_state;
|
||||
}
|
||||
|
|
|
@ -138,10 +138,10 @@ gst_break_my_data_class_init (GstBreakMyDataClass * klass)
|
|||
"probability for each byte in the buffer to be changed", 0.0, 1.0,
|
||||
0.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&bmd_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&bmd_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&bmd_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&bmd_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Break my data",
|
||||
"Testing",
|
||||
|
|
|
@ -72,10 +72,10 @@ gst_cpu_report_class_init (GstCpuReportClass * g_class)
|
|||
|
||||
gobject_class->finalize = gst_cpu_report_finalize;
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&cpu_report_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&cpu_report_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&cpu_report_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&cpu_report_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "CPU report",
|
||||
"Testing",
|
||||
|
|
|
@ -77,10 +77,10 @@ gst_caps_debug_class_init (GstCapsDebugClass * klass)
|
|||
GST_DEBUG_CATEGORY_INIT (gst_caps_debug_debug, "capsdebug", 0,
|
||||
"debug category for capsdebug element");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_caps_debug_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_caps_debug_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_caps_debug_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_caps_debug_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "Caps debug",
|
||||
"Generic", "Debug caps negotiation", "David Schleef <ds@schleef.org>");
|
||||
|
|
|
@ -136,10 +136,10 @@ gst_caps_setter_class_init (GstCapsSetterClass * g_class)
|
|||
"Set/merge caps on stream",
|
||||
"Mark Nauwelaerts <mnauw@users.sourceforge.net>");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_caps_setter_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_caps_setter_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_caps_setter_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_caps_setter_src_template);
|
||||
|
||||
trans_class->transform_size =
|
||||
GST_DEBUG_FUNCPTR (gst_caps_setter_transform_size);
|
||||
|
|
|
@ -242,10 +242,10 @@ gst_navigationtest_class_init (GstNavigationtestClass * klass)
|
|||
"Handle navigation events showing a black square following mouse pointer",
|
||||
"David Schleef <ds@schleef.org>");
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_navigationtest_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_navigationtest_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_navigationtest_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_navigationtest_src_template);
|
||||
|
||||
trans_class->src_event = GST_DEBUG_FUNCPTR (gst_navigationtest_src_event);
|
||||
|
||||
|
|
|
@ -84,10 +84,10 @@ gst_navseek_class_init (GstNavSeekClass * klass)
|
|||
"Time in seconds to seek by", 0.0, G_MAXDOUBLE, 5.0,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&navseek_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&navseek_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&navseek_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&navseek_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"Seek based on left-right arrows", "Filter/Video",
|
||||
|
|
|
@ -152,8 +152,7 @@ gst_push_file_src_class_init (GstPushFileSrcClass * g_class)
|
|||
"Applied rate to use in TIME SEGMENT", G_MINDOUBLE, G_MAXDOUBLE,
|
||||
DEFAULT_APPLIED_RATE, G_PARAM_READWRITE));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&srctemplate));
|
||||
gst_element_class_add_static_pad_template (element_class, &srctemplate);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "Push File Source",
|
||||
"Testing",
|
||||
|
|
|
@ -116,10 +116,8 @@ gst_tag_inject_class_init (GstTagInjectClass * klass)
|
|||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"TagInject",
|
||||
"Generic", "inject metadata tags", "Stefan Kost <ensonic@users.sf.net>");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&srctemplate));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sinktemplate));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
|
||||
|
||||
gstbasetrans_class->transform_ip =
|
||||
GST_DEBUG_FUNCPTR (gst_tag_inject_transform_ip);
|
||||
|
|
|
@ -165,10 +165,10 @@ gst_progress_report_class_init (GstProgressReportClass * g_class)
|
|||
"Format to use for the querying", DEFAULT_FORMAT,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&progress_report_sink_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&progress_report_src_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&progress_report_sink_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&progress_report_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "Progress report",
|
||||
"Testing",
|
||||
|
|
|
@ -120,10 +120,8 @@ gst_rnd_buffer_size_class_init (GstRndBufferSizeClass * klass)
|
|||
gobject_class->get_property = gst_rnd_buffer_size_get_property;
|
||||
gobject_class->finalize = gst_rnd_buffer_size_finalize;
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Random buffer size",
|
||||
"Testing", "pull random sized buffers",
|
||||
|
|
|
@ -112,8 +112,7 @@ gst_test_class_init (GstTestClass * klass)
|
|||
g_object_class_install_property (object_class, 2 * i + 2, spec);
|
||||
}
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sinktemplate));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "Test plugin",
|
||||
"Testing", "perform a number of tests", "Benjamin Otte <otte@gnome>");
|
||||
|
|
|
@ -486,10 +486,8 @@ gst_deinterlace_class_init (GstDeinterlaceClass * klass)
|
|||
|
||||
GstElementClass *element_class = (GstElementClass *) klass;
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&src_templ));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_templ));
|
||||
gst_element_class_add_static_pad_template (element_class, &src_templ);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_templ);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"Deinterlacer",
|
||||
|
|
|
@ -251,8 +251,8 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass)
|
|||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_dtmf_src_debug, "dtmfsrc", 0, "dtmfsrc element");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_dtmf_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_dtmf_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"DTMF tone generator", "Source/Audio", "Generates DTMF tones",
|
||||
|
|
|
@ -212,10 +212,10 @@ gst_rtp_dtmf_depay_class_init (GstRtpDTMFDepayClass * klass)
|
|||
gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||
gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rtp_dtmf_depay_src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rtp_dtmf_depay_sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rtp_dtmf_depay_src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rtp_dtmf_depay_sink_template);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug,
|
||||
"rtpdtmfdepay", 0, "rtpdtmfdepay element");
|
||||
|
|
|
@ -213,8 +213,8 @@ gst_rtp_dtmf_src_class_init (GstRTPDTMFSrcClass * klass)
|
|||
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_src_debug,
|
||||
"rtpdtmfsrc", 0, "rtpdtmfsrc element");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rtp_dtmf_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rtp_dtmf_src_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"RTP DTMF packet generator", "Source/Network",
|
||||
|
|
|
@ -381,10 +381,10 @@ gst_agingtv_class_init (GstAgingTVClass * klass)
|
|||
"AgingTV adds age to video input using scratches and dust",
|
||||
"Sam Lantinga <slouken@devolution.com>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_agingtv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_agingtv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_agingtv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_agingtv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_agingtv_start);
|
||||
|
||||
|
|
|
@ -294,10 +294,10 @@ gst_dicetv_class_init (GstDiceTVClass * klass)
|
|||
"'Dices' the screen up into many small squares",
|
||||
"Wim Taymans <wim.taymans@gmail.be>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_dicetv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_dicetv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_dicetv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_dicetv_src_template);
|
||||
|
||||
vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_dicetv_set_info);
|
||||
vfilter_class->transform_frame =
|
||||
|
|
|
@ -236,10 +236,10 @@ gst_edgetv_class_init (GstEdgeTVClass * klass)
|
|||
"Filter/Effect/Video",
|
||||
"Apply edge detect on video", "Wim Taymans <wim.taymans@chello.be>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_edgetv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_edgetv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_edgetv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_edgetv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_edgetv_start);
|
||||
|
||||
|
|
|
@ -396,10 +396,10 @@ gst_optv_class_init (GstOpTVClass * klass)
|
|||
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_optv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_optv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_optv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_optv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_optv_start);
|
||||
|
||||
|
|
|
@ -279,10 +279,10 @@ gst_quarktv_class_init (GstQuarkTVClass * klass)
|
|||
"Filter/Effect/Video",
|
||||
"Motion dissolver", "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_quarktv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_quarktv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_quarktv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_quarktv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_quarktv_start);
|
||||
|
||||
|
|
|
@ -598,10 +598,10 @@ gst_radioactv_class_init (GstRadioacTVClass * klass)
|
|||
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_radioactv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_radioactv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_radioactv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_radioactv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_radioactv_start);
|
||||
|
||||
|
|
|
@ -230,10 +230,10 @@ gst_revtv_class_init (GstRevTVClass * klass)
|
|||
"A video waveform monitor for each line of video processed",
|
||||
"Wim Taymans <wim.taymans@gmail.be>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_revtv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_revtv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_revtv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_revtv_src_template);
|
||||
|
||||
vfilter_class->transform_frame =
|
||||
GST_DEBUG_FUNCPTR (gst_revtv_transform_frame);
|
||||
|
|
|
@ -586,10 +586,10 @@ gst_rippletv_class_init (GstRippleTVClass * klass)
|
|||
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rippletv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rippletv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rippletv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rippletv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_rippletv_start);
|
||||
|
||||
|
|
|
@ -238,10 +238,10 @@ gst_shagadelictv_class_init (GstShagadelicTVClass * klass)
|
|||
"Oh behave, ShagedelicTV makes images shagadelic!",
|
||||
"Wim Taymans <wim.taymans@chello.be>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_shagadelictv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_shagadelictv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_shagadelictv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_shagadelictv_src_template);
|
||||
|
||||
vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_shagadelictv_set_info);
|
||||
vfilter_class->transform_frame =
|
||||
|
|
|
@ -246,10 +246,10 @@ gst_streaktv_class_init (GstStreakTVClass * klass)
|
|||
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_streaktv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_streaktv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_streaktv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_streaktv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_streaktv_start);
|
||||
|
||||
|
|
|
@ -305,10 +305,10 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass)
|
|||
"A loopback alpha blending effector with rotating and scaling",
|
||||
"Wim Taymans <wim.taymans@gmail.be>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_vertigotv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_vertigotv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_vertigotv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_vertigotv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_vertigotv_start);
|
||||
|
||||
|
|
|
@ -245,10 +245,10 @@ gst_warptv_class_init (GstWarpTVClass * klass)
|
|||
"WarpTV does realtime goo'ing of the video input",
|
||||
"Sam Lantinga <slouken@devolution.com>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_warptv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_warptv_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_warptv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_warptv_src_template);
|
||||
|
||||
trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start);
|
||||
|
||||
|
|
|
@ -3538,15 +3538,14 @@ gst_flv_demux_class_init (GstFlvDemuxClass * klass)
|
|||
gstelement_class->get_index = GST_DEBUG_FUNCPTR (gst_flv_demux_get_index);
|
||||
#endif
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&flv_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&audio_src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&video_src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&flv_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&audio_src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&video_src_template);
|
||||
gst_element_class_set_static_metadata (gstelement_class, "FLV Demuxer",
|
||||
"Codec/Demuxer",
|
||||
"Demux FLV feeds into digital streams",
|
||||
"Codec/Demuxer", "Demux FLV feeds into digital streams",
|
||||
"Julien Moutte <julien@moutte.net>");
|
||||
}
|
||||
|
||||
|
|
|
@ -186,12 +186,11 @@ gst_flv_mux_class_init (GstFlvMuxClass * klass)
|
|||
GST_DEBUG_FUNCPTR (gst_flv_mux_request_new_pad);
|
||||
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_flv_mux_release_pad);
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&videosink_templ));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&audiosink_templ));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_templ));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&videosink_templ);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&audiosink_templ);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_templ);
|
||||
gst_element_class_set_static_metadata (gstelement_class, "FLV muxer",
|
||||
"Codec/Muxer",
|
||||
"Muxes video/audio streams into a FLV stream",
|
||||
|
|
|
@ -119,10 +119,8 @@ gst_goom_class_init (GstGoomClass * klass)
|
|||
"Visualization",
|
||||
"Takes frames of data and outputs video frames using the GOOM filter",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
visualizer_class->setup = GST_DEBUG_FUNCPTR (gst_goom_setup);
|
||||
visualizer_class->render = GST_DEBUG_FUNCPTR (gst_goom_render);
|
||||
|
|
|
@ -104,10 +104,8 @@ gst_goom2k1_class_init (GstGoom2k1Class * klass)
|
|||
"GOOM: what a GOOM! 2k1 edition", "Visualization",
|
||||
"Takes frames of data and outputs video frames using the GOOM 2k1 filter",
|
||||
"Wim Taymans <wim@fluendo.com>");
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (goom2k1_debug, "goom2k1", 0,
|
||||
"goom2k1 visualisation element");
|
||||
|
|
|
@ -103,10 +103,8 @@ gst_icydemux_class_init (GstICYDemuxClass * klass)
|
|||
|
||||
gstelement_class->change_state = gst_icydemux_change_state;
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "ICY tag demuxer",
|
||||
"Codec/Demuxer/Metadata",
|
||||
|
|
|
@ -108,8 +108,7 @@ gst_id3demux_class_init (GstID3DemuxClass * klass)
|
|||
"and ID3v2 tags are present", DEFAULT_PREFER_V1,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class, "ID3 tag demuxer",
|
||||
"Codec/Demuxer/Metadata",
|
||||
|
|
|
@ -101,10 +101,10 @@ gst_image_freeze_class_init (GstImageFreezeClass * klass)
|
|||
"Generates a still frame stream from an image",
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_pad_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_pad_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&sink_pad_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&src_pad_template);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -175,10 +175,8 @@ gst_deinterleave_class_init (GstDeinterleaveClass * klass)
|
|||
"Andy Wingo <wingo at pobox.com>, " "Iain <iain@prettypeople.org>, "
|
||||
"Sebastian Dröge <slomo@circular-chaos.org>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
gstelement_class->change_state = gst_deinterleave_change_state;
|
||||
|
||||
|
|
|
@ -359,10 +359,8 @@ gst_interleave_class_init (GstInterleaveClass * klass)
|
|||
"Andy Wingo <wingo at pobox.com>, "
|
||||
"Sebastian Dröge <slomo@circular-chaos.org>");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&src_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
||||
|
||||
/* Reference GstInterleavePad class to have the type registered from
|
||||
* a threadsafe context
|
||||
|
|
|
@ -129,10 +129,10 @@ gst_rtp_xqt_depay_class_init (GstRtpXQTDepayClass * klass)
|
|||
GST_DEBUG_CATEGORY_INIT (rtpxqtdepay_debug, "rtpxqtdepay", 0,
|
||||
"QT Media RTP Depayloader");
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rtp_xqt_depay_src_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_rtp_xqt_depay_sink_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rtp_xqt_depay_src_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_rtp_xqt_depay_sink_template);
|
||||
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"RTP packet depayloader", "Codec/Depayloader/Network",
|
||||
|
|
|
@ -554,14 +554,14 @@ gst_qtdemux_class_init (GstQTDemuxClass * klass)
|
|||
|
||||
gst_tag_register_musicbrainz_tags ();
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_qtdemux_sink_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_qtdemux_videosrc_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_qtdemux_audiosrc_template));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_qtdemux_subsrc_template));
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_qtdemux_sink_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_qtdemux_videosrc_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_qtdemux_audiosrc_template);
|
||||
gst_element_class_add_static_pad_template (gstelement_class,
|
||||
&gst_qtdemux_subsrc_template);
|
||||
gst_element_class_set_static_metadata (gstelement_class, "QuickTime demuxer",
|
||||
"Codec/Demuxer",
|
||||
"Demultiplex a QuickTime file into audio and video streams",
|
||||
|
|
|
@ -203,10 +203,10 @@ gst_alaw_dec_class_init (GstALawDecClass * klass)
|
|||
GstElementClass *element_class = (GstElementClass *) klass;
|
||||
GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&alaw_dec_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&alaw_dec_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&alaw_dec_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&alaw_dec_sink_factory);
|
||||
|
||||
audiodec_class->start = GST_DEBUG_FUNCPTR (gst_alaw_dec_start);
|
||||
audiodec_class->set_format = GST_DEBUG_FUNCPTR (gst_alaw_dec_set_format);
|
||||
|
|
|
@ -408,10 +408,10 @@ gst_alaw_enc_class_init (GstALawEncClass * klass)
|
|||
audio_encoder_class->handle_frame =
|
||||
GST_DEBUG_FUNCPTR (gst_alaw_enc_handle_frame);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&alaw_enc_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&alaw_enc_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&alaw_enc_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&alaw_enc_sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"A Law audio encoder", "Codec/Encoder/Audio",
|
||||
|
|
|
@ -149,10 +149,10 @@ gst_mulawdec_class_init (GstMuLawDecClass * klass)
|
|||
GstElementClass *element_class = (GstElementClass *) klass;
|
||||
GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&mulaw_dec_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&mulaw_dec_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&mulaw_dec_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&mulaw_dec_sink_factory);
|
||||
|
||||
|
||||
audiodec_class->start = GST_DEBUG_FUNCPTR (gst_mulawdec_start);
|
||||
|
|
|
@ -193,10 +193,10 @@ gst_mulawenc_class_init (GstMuLawEncClass * klass)
|
|||
audio_encoder_class->handle_frame =
|
||||
GST_DEBUG_FUNCPTR (gst_mulawenc_handle_frame);
|
||||
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&mulaw_enc_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&mulaw_enc_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&mulaw_enc_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&mulaw_enc_sink_factory);
|
||||
|
||||
gst_element_class_set_static_metadata (element_class, "Mu Law audio encoder",
|
||||
"Codec/Encoder/Audio",
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue