struct _PostProcDetails
{
- char *shortname;
- char *longname;
- char *description;
+ const char *shortname;
+ const char *longname;
+ const char *description;
};
static PostProcDetails filterdetails[] = {
append (gchar ** base, gchar * app)
{
gchar *res;
- gchar *sep;
+ const gchar *sep;
if (**base && *app)
sep = ":";
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- GstElementDetails details;
gint ppidx;
+ gchar *longname, *description;
ppidx = GPOINTER_TO_INT (g_hash_table_lookup (global_plugins,
GINT_TO_POINTER (G_OBJECT_CLASS_TYPE (gobject_class))));
- details.longname = g_strdup_printf ("LibPostProc %s filter",
+ longname = g_strdup_printf ("LibPostProc %s filter",
filterdetails[ppidx].longname);
- details.klass = "Filter/Video";
- details.description = g_strdup_printf ("LibPostProc %s",
+ description = g_strdup_printf ("LibPostProc %s",
filterdetails[ppidx].description);
- details.author =
- "Edward Hervey <edward@fluendo.com>, Mark Nauwelaerts (manauw@skynet.be)";
- gst_element_class_set_details (element_class, &details);
- g_free (details.longname);
- g_free (details.description);
+ gst_element_class_set_details_simple (element_class, longname, "Filter/Video",
+ description,
+ "Edward Hervey <edward@fluendo.com>, Mark Nauwelaerts (manauw@skynet.be)");
+ g_free (longname);
+ g_free (description);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_post_proc_src_template));
}
-gboolean
+static gboolean
gst_post_proc_register (GstPlugin * plugin)
{
GTypeInfo typeinfo = {
#define GST_IS_FFMPEGSCALE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FFMPEGSCALE))
+GType gst_ffmpegscale_get_type (void);
+
GST_DEBUG_CATEGORY (ffmpegscale_debug);
#define GST_CAT_DEFAULT ffmpegscale_debug
-static const GstElementDetails plugin_details =
-GST_ELEMENT_DETAILS ("FFMPEG Scale element",
- "Filter/Converter/Video",
- "Converts video from one resolution to another",
- "Luca Ognibene <luogni@tin.it>, Mark Nauwelaerts <mnauw@users.sf.net>");
-
/* libswscale supported formats depend on endianness */
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define VIDEO_CAPS \
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_set_details (element_class, &plugin_details);
+ gst_element_class_set_details_simple (element_class, "FFMPEG Scale element",
+ "Filter/Converter/Video",
+ "Converts video from one resolution to another",
+ "Luca Ognibene <luogni@tin.it>, Mark Nauwelaerts <mnauw@users.sf.net>");
}
static void
}
#endif
-gboolean
+static gboolean
plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (ffmpegscale_debug, "ffvideoscale", 0,