Commit cccfeaa5 authored by Benjamin Otte's avatar Benjamin Otte

gst_element_class_set_details => gst_element_class_set_details_simple

parent bc1b65be
......@@ -43,13 +43,6 @@
#include "gstaasink.h"
#include <gst/video/video.h>
/* elementfactory information */
static const GstElementDetails gst_aasink_details =
GST_ELEMENT_DETAILS ("ASCII art video sink",
"Sink/Video",
"An ASCII art videosink",
"Wim Taymans <wim.taymans@chello.be>");
/* aasink signals and args */
enum
{
......@@ -199,7 +192,9 @@ gst_aasink_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details (element_class, &gst_aasink_details);
gst_element_class_set_details_simple (element_class, "ASCII art video sink",
"Sink/Video",
"An ASCII art videosink", "Wim Taymans <wim.taymans@chello.be>");
}
static void
......
......@@ -68,12 +68,6 @@ enum
LAST_SIGNAL
};
static const GstElementDetails gst_cmml_dec_details =
GST_ELEMENT_DETAILS ("CMML stream decoder",
"Codec/Decoder",
"Decodes CMML streams",
"Alessandro Decina <alessandro@nnva.org>");
static GstStaticPadTemplate gst_cmml_dec_src_factory =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -131,7 +125,9 @@ gst_cmml_dec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_cmml_dec_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_dec_src_factory));
gst_element_class_set_details (element_class, &gst_cmml_dec_details);
gst_element_class_set_details_simple (element_class, "CMML stream decoder",
"Codec/Decoder",
"Decodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");
}
static void
......
......@@ -65,12 +65,6 @@ enum
LAST_SIGNAL
};
static const GstElementDetails gst_cmml_enc_details =
GST_ELEMENT_DETAILS ("CMML streams encoder",
"Codec/Encoder",
"Encodes CMML streams",
"Alessandro Decina <alessandro@nnva.org>");
static GstStaticPadTemplate gst_cmml_enc_src_factory =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -118,7 +112,9 @@ gst_cmml_enc_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_cmml_enc_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_enc_src_factory));
gst_element_class_set_details (element_class, &gst_cmml_enc_details);
gst_element_class_set_details_simple (element_class, "CMML streams encoder",
"Codec/Encoder",
"Encodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");
}
static void
......
......@@ -54,12 +54,6 @@
GST_DEBUG_CATEGORY_EXTERN (cairo_debug);
#define GST_CAT_DEFAULT cairo_debug
static const GstElementDetails cairo_text_overlay_details =
GST_ELEMENT_DETAILS ("Text overlay",
"Filter/Editor/Video",
"Adds text strings on top of a video buffer",
"David Schleef <ds@schleef.org>");
enum
{
ARG_0,
......@@ -141,7 +135,10 @@ gst_text_overlay_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&text_sink_template_factory));
gst_element_class_set_details (element_class, &cairo_text_overlay_details);
gst_element_class_set_details_simple (element_class, "Text overlay",
"Filter/Editor/Video",
"Adds text strings on top of a video buffer",
"David Schleef <ds@schleef.org>");
}
static void
......
......@@ -49,12 +49,6 @@
#define rint(x) ((double) floor((x)+(((x) < 0)? -0.5 : 0.5)))
#endif
static const GstElementDetails cairo_time_overlay_details =
GST_ELEMENT_DETAILS ("Time overlay",
"Filter/Editor/Video",
"Overlays the time on a video stream",
"David Schleef <ds@schleef.org>");
static GstStaticPadTemplate gst_cairo_time_overlay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
......@@ -270,7 +264,9 @@ gst_cairo_time_overlay_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &cairo_time_overlay_details);
gst_element_class_set_details_simple (element_class, "Time overlay",
"Filter/Editor/Video",
"Overlays the time on a video stream", "David Schleef <ds@schleef.org>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cairo_time_overlay_sink_template));
......
......@@ -47,13 +47,6 @@
#include "gstdvdec.h"
static const GstElementDetails dvdec_details =
GST_ELEMENT_DETAILS ("DV video decoder",
"Codec/Decoder/Video",
"Uses libdv to decode DV video (smpte314) (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>");
/* sizes of one input buffer */
#define NTSC_HEIGHT 480
#define NTSC_BUFFER 120000
......@@ -178,7 +171,10 @@ gst_dvdec_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_temp));
gst_element_class_set_details (element_class, &dvdec_details);
gst_element_class_set_details_simple (element_class, "DV video decoder",
"Codec/Decoder/Video",
"Uses libdv to decode DV video (smpte314) (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_INIT (dvdec_debug, "dvdec", 0, "DV decoding element");
}
......
......@@ -106,12 +106,6 @@
GST_DEBUG_CATEGORY_STATIC (dvdemux_debug);
#define GST_CAT_DEFAULT dvdemux_debug
static const GstElementDetails dvdemux_details =
GST_ELEMENT_DETAILS ("DV system stream demuxer",
"Codec/Demuxer",
"Uses libdv to separate DV audio from DV video (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>");
static GstStaticPadTemplate sink_temp = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
......@@ -186,7 +180,10 @@ gst_dvdemux_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_src_temp));
gst_element_class_set_details (element_class, &dvdemux_details);
gst_element_class_set_details_simple (element_class,
"DV system stream demuxer", "Codec/Demuxer",
"Uses libdv to separate DV audio from DV video (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_INIT (dvdemux_debug, "dvdemux", 0, "DV demuxer element");
}
......
......@@ -47,14 +47,6 @@
#include <esd.h>
#include <unistd.h>
/* elementfactory information */
static const GstElementDetails esdmon_details =
GST_ELEMENT_DETAILS ("Esound audio monitor",
"Source/Audio",
"Monitors audio from an esound server",
"Richard Boulton <richard-gst@tartarus.org>");
/* Signals and args */
enum
{
......@@ -178,7 +170,10 @@ gst_esdmon_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_set_details (element_class, &esdmon_details);
gst_element_class_set_details_simple (element_class, "Esound audio monitor",
"Source/Audio",
"Monitors audio from an esound server",
"Richard Boulton <richard-gst@tartarus.org>");
}
static void
......
......@@ -62,13 +62,6 @@
GST_DEBUG_CATEGORY_EXTERN (esd_debug);
#define GST_CAT_DEFAULT esd_debug
/* elementfactory information */
static const GstElementDetails esdsink_details =
GST_ELEMENT_DETAILS ("Esound audio sink",
"Sink/Audio",
"Plays audio to an esound server",
"Arwed von Merkatz <v.merkatz@gmx.net>");
enum
{
PROP_0,
......@@ -120,7 +113,10 @@ gst_esdsink_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details (element_class, &esdsink_details);
gst_element_class_set_details_simple (element_class, "Esound audio sink",
"Sink/Audio",
"Plays audio to an esound server",
"Arwed von Merkatz <v.merkatz@gmx.net>");
}
static void
......
......@@ -68,12 +68,11 @@ static void
gst_gconf_audio_sink_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_gconf_audio_sink_details =
GST_ELEMENT_DETAILS ("GConf audio sink",
gst_element_class_set_details_simple (eklass, "GConf audio sink",
"Sink/Audio",
"Audio sink embedding the GConf-settings for audio output",
"Jan Schmidt <thaytan@mad.scientist.com>");
gst_element_class_set_details (eklass, &gst_gconf_audio_sink_details);
}
#define GST_TYPE_GCONF_PROFILE (gst_gconf_profile_get_type())
......
......@@ -55,11 +55,7 @@ static void
gst_gconf_audio_src_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_gconf_audio_src_details =
GST_ELEMENT_DETAILS ("GConf audio source",
"Source/Audio",
"Audio source embedding the GConf-settings for audio input",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
......@@ -67,7 +63,10 @@ gst_gconf_audio_src_base_init (gpointer klass)
gst_element_class_add_pad_template (eklass,
gst_static_pad_template_get (&src_template));
gst_element_class_set_details (eklass, &gst_gconf_audio_src_details);
gst_element_class_set_details_simple (eklass, "GConf audio source",
"Source/Audio",
"Audio source embedding the GConf-settings for audio input",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
}
static void
......
......@@ -53,11 +53,7 @@ static void
gst_gconf_video_sink_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_gconf_video_sink_details =
GST_ELEMENT_DETAILS ("GConf video sink",
"Sink/Video",
"Video sink embedding the GConf-settings for video output",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
......@@ -65,7 +61,10 @@ gst_gconf_video_sink_base_init (gpointer klass)
gst_element_class_add_pad_template (eklass,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details (eklass, &gst_gconf_video_sink_details);
gst_element_class_set_details_simple (eklass, "GConf video sink",
"Sink/Video",
"Video sink embedding the GConf-settings for video output",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
}
static void
......
......@@ -55,11 +55,7 @@ static void
gst_gconf_video_src_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_gconf_video_src_details =
GST_ELEMENT_DETAILS ("GConf video source",
"Source/Video",
"Video source embedding the GConf-settings for video input",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
......@@ -67,7 +63,10 @@ gst_gconf_video_src_base_init (gpointer klass)
gst_element_class_add_pad_template (eklass,
gst_static_pad_template_get (&src_template));
gst_element_class_set_details (eklass, &gst_gconf_video_src_details);
gst_element_class_set_details_simple (eklass, "GConf video source",
"Source/Video",
"Video source embedding the GConf-settings for video input",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>");
}
static void
......
......@@ -33,12 +33,6 @@
GST_DEBUG_CATEGORY_STATIC (gst_gdk_pixbuf_debug);
#define GST_CAT_DEFAULT gst_gdk_pixbuf_debug
static const GstElementDetails plugin_details =
GST_ELEMENT_DETAILS ("GdkPixbuf image decoder",
"Codec/Decoder/Image",
"Decodes images in a video stream using GdkPixbuf",
"David A. Schleef <ds@schleef.org>, Renato Filho <renato.filho@indt.org.br>");
enum
{
ARG_0,
......@@ -165,7 +159,10 @@ gst_gdk_pixbuf_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_gdk_pixbuf_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_gdk_pixbuf_sink_template));
gst_element_class_set_details (element_class, &plugin_details);
gst_element_class_set_details_simple (element_class,
"GdkPixbuf image decoder", "Codec/Decoder/Image",
"Decodes images in a video stream using GdkPixbuf",
"David A. Schleef <ds@schleef.org>, Renato Filho <renato.filho@indt.org.br>");
}
/* initialize the plugin's class */
......
......@@ -39,15 +39,6 @@
GST_DEBUG_CATEGORY_STATIC (pixbufscale_debug);
#define GST_CAT_DEFAULT pixbufscale_debug
/* elementfactory information */
static const GstElementDetails pixbufscale_details =
GST_ELEMENT_DETAILS ("GdkPixbuf image scaler",
"Filter/Effect/Video",
"Resizes video",
"Jan Schmidt <thaytan@mad.scientist.com>\n"
"Wim Taymans <wim.taymans@chello.be>\n"
"Renato Filho <renato.filho@indt.org.br>");
/* GstPixbufScale signals and args */
enum
{
......@@ -125,7 +116,11 @@ gst_pixbufscale_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &pixbufscale_details);
gst_element_class_set_details_simple (element_class, "GdkPixbuf image scaler",
"Filter/Effect/Video", "Resizes video",
"Jan Schmidt <thaytan@mad.scientist.com>, "
"Wim Taymans <wim.taymans@chello.be>, "
"Renato Filho <renato.filho@indt.org.br>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_pixbufscale_src_template));
......
......@@ -68,11 +68,7 @@ static void
gst_hal_audio_sink_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_hal_audio_sink_details =
GST_ELEMENT_DETAILS ("HAL audio sink",
"Sink/Audio",
"Audio sink for sound device access via HAL",
"Jürg Billeter <j@bitron.ch>");
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
......@@ -80,7 +76,10 @@ gst_hal_audio_sink_base_init (gpointer klass)
gst_element_class_add_pad_template (eklass,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details (eklass, &gst_hal_audio_sink_details);
gst_element_class_set_details_simple (eklass, "HAL audio sink",
"Sink/Audio",
"Audio sink for sound device access via HAL",
"Jürg Billeter <j@bitron.ch>");
}
static void
......
......@@ -70,11 +70,7 @@ static void
gst_hal_audio_src_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
static const GstElementDetails gst_hal_audio_src_details =
GST_ELEMENT_DETAILS ("HAL audio source",
"Source/Audio",
"Audio source for sound device access via HAL",
"Jürg Billeter <j@bitron.ch>");
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
......@@ -82,7 +78,10 @@ gst_hal_audio_src_base_init (gpointer klass)
gst_element_class_add_pad_template (eklass,
gst_static_pad_template_get (&src_template));
gst_element_class_set_details (eklass, &gst_hal_audio_src_details);
gst_element_class_set_details_simple (eklass, "HAL audio source",
"Source/Audio",
"Audio source for sound device access via HAL",
"Jürg Billeter <j@bitron.ch>");
}
static void
......
......@@ -43,12 +43,6 @@
#include "gst/gst-i18n-plugin.h"
#include <jerror.h>
static const GstElementDetails gst_jpeg_dec_details =
GST_ELEMENT_DETAILS ("JPEG image decoder",
"Codec/Decoder/Image",
"Decode images from JPEG format",
"Wim Taymans <wim@fluendo.com>");
#define MIN_WIDTH 16
#define MAX_WIDTH 65535
#define MIN_HEIGHT 8
......@@ -164,7 +158,9 @@ gst_jpeg_dec_base_init (gpointer g_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_set_details (element_class, &gst_jpeg_dec_details);
gst_element_class_set_details_simple (element_class, "JPEG image decoder",
"Codec/Decoder/Image",
"Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -43,14 +43,6 @@
/* setting smoothig seems to have no effect in libjepeg
#define ENABLE_SMOOTHING 1
*/
/*#define ENABLE_COLORSPACE_RGB 1 */
/* elementfactory information */
static const GstElementDetails gst_jpegenc_details =
GST_ELEMENT_DETAILS ("JPEG image encoder",
"Codec/Encoder/Image",
"Encode images in JPEG format",
"Wim Taymans <wim.taymans@tvd.be>");
GST_DEBUG_CATEGORY_STATIC (jpegenc_debug);
#define GST_CAT_DEFAULT jpegenc_debug
......@@ -160,7 +152,9 @@ gst_jpegenc_base_init (gpointer g_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_set_details (element_class, &gst_jpegenc_details);
gst_element_class_set_details_simple (element_class, "JPEG image encoder",
"Codec/Encoder/Image",
"Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>");
}
static void
......
......@@ -32,13 +32,6 @@
#include "gstsmokedec.h"
#include <gst/video/video.h>
/* elementfactory information */
static const GstElementDetails gst_smokedec_details =
GST_ELEMENT_DETAILS ("Smoke video decoder",
"Codec/Decoder/Video",
"Decode video from Smoke format",
"Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_STATIC (smokedec_debug);
#define GST_CAT_DEFAULT smokedec_debug
......@@ -117,7 +110,9 @@ gst_smokedec_base_init (gpointer g_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_set_details (element_class, &gst_smokedec_details);
gst_element_class_set_details_simple (element_class, "Smoke video decoder",
"Codec/Decoder/Video",
"Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -30,13 +30,6 @@
#include "gstsmokeenc.h"
#include <gst/video/video.h>
/* elementfactory information */
static const GstElementDetails gst_smokeenc_details =
GST_ELEMENT_DETAILS ("Smoke video encoder",
"Codec/Encoder/Video",
"Encode images into the Smoke format",
"Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_STATIC (smokeenc_debug);
#define GST_CAT_DEFAULT smokeenc_debug
......@@ -134,7 +127,9 @@ gst_smokeenc_base_init (gpointer g_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_set_details (element_class, &gst_smokeenc_details);
gst_element_class_set_details_simple (element_class, "Smoke video encoder",
"Codec/Encoder/Video",
"Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -54,13 +54,6 @@
//#define GST_CACA_DEFAULT_GREEN_MASK G_MASK_32_REVERSE_INT
//#define GST_CACA_DEFAULT_BLUE_MASK B_MASK_32_REVERSE_INT
/* elementfactory information */
static const GstElementDetails gst_cacasink_details =
GST_ELEMENT_DETAILS ("A colored ASCII art video sink",
"Sink/Video",
"A colored ASCII art videosink",
"Zeeshan Ali <zak147@yahoo.com>");
/* cacasink signals and args */
enum
{
......@@ -155,7 +148,9 @@ gst_cacasink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &gst_cacasink_details);
gst_element_class_set_details_simple (element_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 (element_class,
gst_static_pad_template_get (&sink_template));
}
......
......@@ -16,7 +16,6 @@
#include <gst/gst.h>
GType gst_mngenc_get_type (void);
extern GstElementDetails gst_mngenc_details;
extern GstPadTemplate *gst_mng_sink_factory ();
extern GstPadTemplate *gst_mng_src_factory ();
......@@ -21,12 +21,6 @@
#include "gstmngdec.h"
#include <gst/video/video.h>
static const GstElementDetails gst_mng_dec_details =
GST_ELEMENT_DETAILS ("MNG video decoder",
"Codec/Decoder/Video",
"Decode a mng video to raw images",
"Wim Taymans <wim@fluendo.com>");
/* Filter signals and args */
enum
{
......@@ -76,7 +70,9 @@ gst_mng_dec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_mng_dec_src_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_mng_dec_sink_pad_template));
gst_element_class_set_details (element_class, &gst_mng_dec_details);
gst_element_class_set_details_simple (element_class, "MNG video decoder",
"Codec/Decoder/Video",
"Decode a mng video to raw images", "Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -26,13 +26,6 @@
#define MAX_HEIGHT 4096
static const GstElementDetails gst_mng_enc_details =
GST_ELEMENT_DETAILS ("MNG video encoder",
"Codec/Encoder/Video",
"Encode a video frame to an .mng video",
"Wim Taymans <wim@fluendo.com>");
/* Filter signals and args */
enum
{
......@@ -91,7 +84,9 @@ gst_mng_enc_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, mngenc_sink_template);
gst_element_class_add_pad_template (element_class, mngenc_src_template);
gst_element_class_set_details (element_class, &gst_mng_enc_details);
gst_element_class_set_details_simple (element_class, "MNG video encoder",
"Codec/Encoder/Video",
"Encode a video frame to an .mng video", "Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -20,7 +20,6 @@
#include <png.h>
GType gst_pngenc_get_type (void);
extern GstElementDetails gst_pngenc_details;
extern GstPadTemplate *gst_png_sink_factory ();
extern GstPadTemplate *gst_png_src_factory ();
......@@ -30,12 +30,6 @@
#include <gst/video/video.h>
#include <gst/gst-i18n-plugin.h>
static const GstElementDetails gst_pngdec_details =
GST_ELEMENT_DETAILS ("PNG image decoder",
"Codec/Decoder/Image",
"Decode a png video frame to a raw image",
"Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_STATIC (pngdec_debug);
#define GST_CAT_DEFAULT pngdec_debug
......@@ -111,7 +105,10 @@ gst_pngdec_base_init (gpointer g_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_set_details (element_class, &gst_pngdec_details);
gst_element_class_set_details_simple (element_class, "PNG image decoder",
"Codec/Decoder/Image",
"Decode a png video frame to a raw image",
"Wim Taymans <wim@fluendo.com>");
}
static void
......
......@@ -32,13 +32,6 @@
#define MAX_HEIGHT 4096
static const GstElementDetails gst_pngenc_details =
GST_ELEMENT_DETAILS ("PNG image encoder",
"Codec/Encoder/Image",
"Encode a video frame to a .png image",
"Jeremy SIMON <jsimon13@yahoo.fr>");
GST_DEBUG_CATEGORY_STATIC (pngenc_debug);
#define GST_CAT_DEFAULT pngenc_debug
......@@ -109,7 +102,10 @@ gst_pngenc_base_init (gpointer g_class)
(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_set_details (element_class, &gst_pngenc_details);
gst_element_class_set_details_simple (element_class, "PNG image encoder",
"Codec/Encoder/Image",
"Encode a video frame to a .png image",
"Jeremy SIMON <jsimon13@yahoo.fr>");
}
static void
......
......@@ -24,14 +24,6 @@
#include <stdlib.h>
/* elementfactory information */
static const GstElementDetails mikmod_details =
GST_ELEMENT_DETAILS ("MikMod audio decoder",
"Codec/Decoder/Audio",
"Module decoder based on libmikmod",
"Jeremy SIMON <jsimon13@yahoo.fr>");
/* Filter signals and args */
enum
{
......@@ -140,7 +132,9 @@ gst_mikmod_base_init (gpointer g_class)
gst_static_pad_template_get (&mikmod_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&mikmod_sink_factory));
gst_element_class_set_details (element_class, &mikmod_details);
gst_element_class_set_details_simple (element_class, "MikMod audio decoder",
"Codec/Decoder/Audio",