1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Container for features loaded from a shared object module
7 <!-- ##### SECTION Long_Description ##### -->
9 GStreamer is extensible so <classname>GstElements</classname> can be loaded at runtime. A plugin
10 system can provide one or more of the basic <application>GStreamer</application>
11 #GstPluginFeature subclasses.
14 A plugin should export a symbol plugin_desc that is a struct of type #GstPluginDesc.
15 the plugin loader will check the version of the core library the plugin was linked against
16 and will create a new #GstPlugin. It will then call the #GstPluginInitFunc function
17 that was provided in the plugin_desc.
20 Once you have a handle to a #GstPlugin, you can add any object that subclasses #GstPluginFeature.
23 use gst_plugin_find_feature() and gst_plugin_get_feature_list() to find features in a plugin.
26 Usually plugins are always automaticlly loaded so you don't need to call gst_plugin_load() explicitly
27 to bring it into memory. There are options to statically link plugins to an app or even
28 use GStreamer without a plugin repository in which case gst_plugin_load() can be needed
29 to bring the plugin into memory.
32 <!-- ##### SECTION See_Also ##### -->
34 #GstPluginFeature, #GstType, #GstAutoplug, #GstElementFactory
37 <!-- ##### FUNCTION gst_plugin_error_quark ##### -->
42 @Returns: The error quark used in GError messages
45 <!-- ##### MACRO GST_PLUGIN_ERROR ##### -->
52 <!-- ##### ENUM GstPluginError ##### -->
54 The plugin loading errors
57 @GST_PLUGIN_ERROR_MODULE: The plugin could not be loaded
58 @GST_PLUGIN_ERROR_DEPENDENCIES: The plugin has unresolved dependencies
59 @GST_PLUGIN_ERROR_NAME_MISMATCH:
61 <!-- ##### STRUCT GstPlugin ##### -->
74 <!-- ##### STRUCT GstPluginDesc ##### -->
76 A plugins should export a variable of this type called plugin_desc. This plugin
77 loaded will use this variable to initialize the plugin.
80 @major_version: the major version number of core that plugin was compiled for
81 @minor_version: the minor version number of core that plugin was compiled for
82 @name: a unique name of the plugin
84 @plugin_init: The init function of this plugin.
86 @version: version of the plugin
87 @license: effective license of plugin
88 @package: package plugin belongs to
89 @origin: URL to provider of plugin
92 <!-- ##### USER_FUNCTION GstPluginInitFunc ##### -->
94 A plugin should provide a pointer to a function of this type in the plugin_desc struct.
95 It will be called by the loader at statup.
98 @plugin: The plugin object that can be used to register stuff for this plugin.
99 @Returns: A boolean indicating success or failure.
100 <!-- # Unused Parameters # -->
101 @module: The <classname>GModule</classname> it was loaded from
104 <!-- ##### USER_FUNCTION GstPluginExitFunc ##### -->
106 Exiting function when plugin is unloaded.
109 @plugin: The plugin object that can be used to unregister stuff for this plugin.
112 <!-- ##### MACRO GST_PLUGIN_DEFINE ##### -->
114 This macro needs to be used to define the entry point and meta data of a plugin.
115 One would use this macro to export a plugin, so that it can be used by other applications
118 @major: major version number of the gstreamer-core that plugin was compiled for
119 @minor: minor version number of the gstreamer-core that plugin was compiled for
120 @name: short, but unique name of the plugin
121 @description: information about the purpose of the plugin
122 @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
123 @version: full version string (e.g. VERSION from config.h)
124 @license: under which licence the package has been released, e.g. GPL, LGPL.
125 @package: the package-name (e.g. PACKAGE_NAME from config.h)
126 @origin: a description from where the package comes from (e.g. the homepage URL)
129 <!-- ##### MACRO GST_PLUGIN_DEFINE_STATIC ##### -->
131 This macro needs to be used to define the entry point and meta data of a local plugin.
132 One would use this macro to define a local plugin that can only be used by the own application.
135 @major: major version number of the gstreamer-core that plugin was compiled for
136 @minor: minor version number of the gstreamer-core that plugin was compiled for
137 @name: short, but unique name of the plugin
138 @description: information about the purpose of the plugin
139 @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
140 @version: full version string (e.g. VERSION from config.h)
141 @license: under which licence the package has been released, e.g. GPL, LGPL.
142 @package: the package-name (e.g. PACKAGE_NAME from config.h)
143 @origin: a description from where the package comes from (e.g. the homepage URL)
146 <!-- ##### MACRO GST_LICENSE_UNKNOWN ##### -->
153 <!-- ##### USER_FUNCTION GstPluginFilter ##### -->
163 <!-- ##### MACRO GST_TYPE_PLUGIN ##### -->
170 <!-- ##### FUNCTION gst_plugin_get_name ##### -->
179 <!-- ##### FUNCTION gst_plugin_get_description ##### -->
188 <!-- ##### FUNCTION gst_plugin_get_filename ##### -->
197 <!-- ##### FUNCTION gst_plugin_get_license ##### -->
206 <!-- ##### FUNCTION gst_plugin_get_package ##### -->
215 <!-- ##### FUNCTION gst_plugin_get_origin ##### -->
224 <!-- ##### FUNCTION gst_plugin_get_module ##### -->
233 <!-- ##### FUNCTION gst_plugin_is_loaded ##### -->
242 <!-- ##### FUNCTION gst_plugin_feature_filter ##### -->
254 <!-- ##### FUNCTION gst_plugin_list_feature_filter ##### -->
266 <!-- ##### FUNCTION gst_plugin_name_filter ##### -->
276 <!-- ##### FUNCTION gst_plugin_get_feature_list ##### -->
285 <!-- ##### FUNCTION gst_plugin_find_feature ##### -->
296 <!-- ##### FUNCTION gst_plugin_check_file ##### -->
306 <!-- ##### FUNCTION gst_plugin_load_file ##### -->
316 <!-- ##### FUNCTION gst_plugin_unload_plugin ##### -->
325 <!-- ##### FUNCTION gst_plugin_add_feature ##### -->
334 <!-- ##### FUNCTION gst_plugin_load ##### -->
343 <!-- ##### FUNCTION gst_library_load ##### -->