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.
10 A plugin system can provide one or more of the basic <application>GStreamer</application>
11 #GstPluginFeature subclasses.
14 A plugin should export a symbol <symbol>plugin_desc</symbol> 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 (e.g. from the #GstRegistryPool), you can
21 add any object that subclasses #GstPluginFeature.
24 Use gst_plugin_find_feature() and gst_plugin_get_feature_list() to find features in a plugin.
27 Usually plugins are always automaticlly loaded so you don't need to call gst_plugin_load() explicitly
28 to bring it into memory. There are options to statically link plugins to an app or even
29 use GStreamer without a plugin repository in which case gst_plugin_load() can be needed
30 to bring the plugin into memory.
33 <!-- ##### SECTION See_Also ##### -->
35 #GstPluginFeature, #GstType, #GstAutoplug, #GstElementFactory
38 <!-- ##### SECTION Stability_Level ##### -->
41 <!-- ##### FUNCTION gst_plugin_error_quark ##### -->
46 @Returns: The error quark used in GError messages
49 <!-- ##### MACRO GST_PLUGIN_ERROR ##### -->
56 <!-- ##### ENUM GstPluginError ##### -->
58 The plugin loading errors
61 @GST_PLUGIN_ERROR_MODULE: The plugin could not be loaded
62 @GST_PLUGIN_ERROR_DEPENDENCIES: The plugin has unresolved dependencies
63 @GST_PLUGIN_ERROR_NAME_MISMATCH: The plugin has already be loaded from a different file
65 <!-- ##### STRUCT GstPlugin ##### -->
78 <!-- ##### STRUCT GstPluginDesc ##### -->
80 A plugins should export a variable of this type called plugin_desc. This plugin
81 loaded will use this variable to initialize the plugin.
84 @major_version: the major version number of core that plugin was compiled for
85 @minor_version: the minor version number of core that plugin was compiled for
86 @name: a unique name of the plugin
88 @plugin_init: The init function of this plugin.
90 @version: version of the plugin
91 @license: effective license of plugin
92 @package: package plugin belongs to
93 @origin: URL to provider of plugin
96 <!-- ##### USER_FUNCTION GstPluginInitFunc ##### -->
98 A plugin should provide a pointer to a function of this type in the plugin_desc struct.
99 It will be called by the loader at statup.
102 @plugin: The plugin object that can be used to register stuff for this plugin.
103 @Returns: A boolean indicating success or failure.
104 <!-- # Unused Parameters # -->
105 @module: The <classname>GModule</classname> it was loaded from
108 <!-- ##### USER_FUNCTION GstPluginExitFunc ##### -->
110 Exiting function when plugin is unloaded.
113 @plugin: The plugin object that can be used to unregister stuff for this plugin.
116 <!-- ##### MACRO GST_PLUGIN_DEFINE ##### -->
118 This macro needs to be used to define the entry point and meta data of a plugin.
119 One would use this macro to export a plugin, so that it can be used by other applications
122 @major: major version number of the gstreamer-core that plugin was compiled for
123 @minor: minor version number of the gstreamer-core that plugin was compiled for
124 @name: short, but unique name of the plugin
125 @description: information about the purpose of the plugin
126 @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
127 @version: full version string (e.g. VERSION from config.h)
128 @license: under which licence the package has been released, e.g. GPL, LGPL.
129 @package: the package-name (e.g. PACKAGE_NAME from config.h)
130 @origin: a description from where the package comes from (e.g. the homepage URL)
133 <!-- ##### MACRO GST_PLUGIN_DEFINE_STATIC ##### -->
135 This macro needs to be used to define the entry point and meta data of a local plugin.
136 One would use this macro to define a local plugin that can only be used by the own application.
139 @major: major version number of the gstreamer-core that plugin was compiled for
140 @minor: minor version number of the gstreamer-core that plugin was compiled for
141 @name: short, but unique name of the plugin
142 @description: information about the purpose of the plugin
143 @init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
144 @version: full version string (e.g. VERSION from config.h)
145 @license: under which licence the package has been released, e.g. GPL, LGPL.
146 @package: the package-name (e.g. PACKAGE_NAME from config.h)
147 @origin: a description from where the package comes from (e.g. the homepage URL)
150 <!-- ##### MACRO GST_LICENSE_UNKNOWN ##### -->
157 <!-- ##### USER_FUNCTION GstPluginFilter ##### -->
159 A function that can be used with e.g. gst_registry_plugin_filter()
160 to get a list of plugins that match certain criteria.
163 @plugin: the plugin to check
164 @user_data: the user_data that has been passed on e.g. gst_registry_plugin_filter()
165 @Returns: TRUE for a positive match, FALSE otherwise
168 <!-- ##### FUNCTION gst_plugin_get_name ##### -->
177 <!-- ##### FUNCTION gst_plugin_get_description ##### -->
186 <!-- ##### FUNCTION gst_plugin_get_filename ##### -->
195 <!-- ##### FUNCTION gst_plugin_get_license ##### -->
204 <!-- ##### FUNCTION gst_plugin_get_package ##### -->
213 <!-- ##### FUNCTION gst_plugin_get_origin ##### -->
222 <!-- ##### FUNCTION gst_plugin_get_module ##### -->
231 <!-- ##### FUNCTION gst_plugin_get_version ##### -->
240 <!-- ##### FUNCTION gst_plugin_is_loaded ##### -->
249 <!-- ##### FUNCTION gst_plugin_feature_filter ##### -->
261 <!-- ##### FUNCTION gst_plugin_list_feature_filter ##### -->
273 <!-- ##### FUNCTION gst_plugin_name_filter ##### -->
283 <!-- ##### FUNCTION gst_plugin_get_feature_list ##### -->
292 <!-- ##### FUNCTION gst_plugin_find_feature ##### -->
303 <!-- ##### FUNCTION gst_plugin_check_file ##### -->
313 <!-- ##### FUNCTION gst_plugin_load_file ##### -->
323 <!-- ##### FUNCTION gst_plugin_unload_plugin ##### -->
332 <!-- ##### FUNCTION gst_plugin_add_feature ##### -->
341 <!-- ##### FUNCTION gst_plugin_load ##### -->