/* entry point to initialize the plug-in * initialize the plug-in itself * register the element factories and pad templates * register the features */ static gboolean plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (gst_gdk_pixbuf_debug, "gdkpixbuf", 0, "gdk pixbuf loader"); if (!gst_element_register (plugin, "gdkpixbufdec", GST_RANK_SECONDARY, GST_TYPE_GDK_PIXBUF)) return FALSE; #ifdef enable_typefind gst_type_find_register (plugin, "image/*", GST_RANK_MARGINAL, gst_gdk_pixbuf_type_find, NULL, GST_CAPS_ANY, NULL); #endif if (!gst_element_register (plugin, "gdkpixbufsink", GST_RANK_NONE, GST_TYPE_GDK_PIXBUF_SINK)) return FALSE; if (!pixbufscale_init (plugin)) return FALSE; /* plugin initialisation succeeded */ return TRUE; }
static gboolean fragmented_init (GstPlugin * plugin) { if (!gst_element_register (plugin, "dashdemux", GST_RANK_PRIMARY, GST_TYPE_DASH_DEMUX) || FALSE) return FALSE; gst_type_find_register (plugin, "application/dash+xml", GST_RANK_SECONDARY, dash_type_find, NULL, DASH_CAPS, NULL, NULL); return TRUE; }
static gboolean plugin_init (GstPlugin * plugin) { static gchar *exts[] = { "pnm", NULL }; if (!gst_type_find_register (plugin, "", GST_RANK_PRIMARY, gst_my_typefind_function, exts, gst_caps_from_string (MIME_ALL), NULL, NULL)) return FALSE; if (!gst_element_register (plugin, "pnmdec", GST_RANK_PRIMARY, GST_TYPE_PNMDEC)) return FALSE; if (!gst_element_register (plugin, "pnmenc", GST_RANK_PRIMARY, GST_TYPE_PNMENC)) return FALSE; return TRUE; }
static gboolean plugin_init (GstPlugin * plugin) { if (!gst_element_register (plugin, "gdkpixbufdec", GST_RANK_SECONDARY, GST_TYPE_GDK_PIXBUF_DEC)) return FALSE; #if 0 gst_type_find_register (plugin, "image/*", GST_RANK_MARGINAL, gst_gdk_pixbuf_type_find, NULL, GST_CAPS_ANY, NULL); #endif if (!gst_element_register (plugin, "gdkpixbufoverlay", GST_RANK_NONE, GST_TYPE_GDK_PIXBUF_OVERLAY)) return FALSE; if (!gst_element_register (plugin, "gdkpixbufsink", GST_RANK_NONE, GST_TYPE_GDK_PIXBUF_SINK)) return FALSE; return TRUE; }