2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstPlugin
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-03-25 04:20:33 +00:00
|
|
|
Container for features loaded from a shared object module
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2005-01-18 14:15:30 +00:00
|
|
|
GStreamer is extensible, so <classname>GstElements</classname> can be loaded at runtime.
|
|
|
|
A plugin system can provide one or more of the basic <application>GStreamer</application>
|
2002-01-15 00:41:22 +00:00
|
|
|
#GstPluginFeature subclasses.
|
|
|
|
</para>
|
|
|
|
<para>
|
2005-01-18 14:15:30 +00:00
|
|
|
A plugin should export a symbol <symbol>plugin_desc</symbol> that is a struct of type #GstPluginDesc.
|
2002-01-15 00:41:22 +00:00
|
|
|
the plugin loader will check the version of the core library the plugin was linked against
|
|
|
|
and will create a new #GstPlugin. It will then call the #GstPluginInitFunc function
|
|
|
|
that was provided in the plugin_desc.
|
|
|
|
</para>
|
|
|
|
<para>
|
2005-08-24 13:06:12 +00:00
|
|
|
Once you have a handle to a #GstPlugin (e.g. from the #GstRegistryPool ), you can
|
2005-01-18 14:15:30 +00:00
|
|
|
add any object that subclasses #GstPluginFeature.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2004-09-02 14:24:22 +00:00
|
|
|
Use gst_plugin_find_feature() and gst_plugin_get_feature_list() to find features in a plugin.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Usually plugins are always automaticlly loaded so you don't need to call gst_plugin_load() explicitly
|
|
|
|
to bring it into memory. There are options to statically link plugins to an app or even
|
|
|
|
use GStreamer without a plugin repository in which case gst_plugin_load() can be needed
|
|
|
|
to bring the plugin into memory.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
#GstPluginFeature, #GstType, #GstAutoplug, #GstElementFactory
|
|
|
|
</para>
|
|
|
|
|
2005-12-16 18:29:42 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_error_quark ##### -->
|
2002-06-12 22:27:18 +00:00
|
|
|
<para>
|
2004-03-25 04:20:33 +00:00
|
|
|
Get the error quark
|
2002-06-12 22:27:18 +00:00
|
|
|
</para>
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
@Returns: The error quark used in GError messages
|
2002-06-12 22:27:18 +00:00
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### MACRO GST_PLUGIN_ERROR ##### -->
|
2004-03-15 14:43:35 +00:00
|
|
|
<para>
|
2004-03-25 04:20:33 +00:00
|
|
|
The error quark
|
2004-03-15 14:43:35 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### ENUM GstPluginError ##### -->
|
|
|
|
<para>
|
|
|
|
The plugin loading errors
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@GST_PLUGIN_ERROR_MODULE: The plugin could not be loaded
|
|
|
|
@GST_PLUGIN_ERROR_DEPENDENCIES: The plugin has unresolved dependencies
|
2005-01-04 18:13:51 +00:00
|
|
|
@GST_PLUGIN_ERROR_NAME_MISMATCH: The plugin has already be loaded from a different file
|
2002-06-12 22:27:18 +00:00
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### STRUCT GstPlugin ##### -->
|
|
|
|
<para>
|
2002-12-14 13:02:16 +00:00
|
|
|
The plugin object
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2003-11-24 02:09:23 +00:00
|
|
|
@desc:
|
2002-01-15 00:41:22 +00:00
|
|
|
@filename:
|
|
|
|
@features:
|
|
|
|
@numfeatures:
|
2002-06-12 22:27:18 +00:00
|
|
|
@manager:
|
2002-01-15 00:41:22 +00:00
|
|
|
@module:
|
2003-12-13 16:58:29 +00:00
|
|
|
@_gst_reserved:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### STRUCT GstPluginDesc ##### -->
|
|
|
|
<para>
|
|
|
|
A plugins should export a variable of this type called plugin_desc. This plugin
|
|
|
|
loaded will use this variable to initialize the plugin.
|
|
|
|
</para>
|
|
|
|
|
2005-04-16 08:31:50 +00:00
|
|
|
@major_version: the major version number of GStreamer that plugin was compiled for
|
|
|
|
@minor_version: the minor version number of GStreamer that plugin was compiled for
|
2004-08-31 17:14:03 +00:00
|
|
|
@name: a unique name of the plugin
|
2004-03-25 04:20:33 +00:00
|
|
|
@description:
|
|
|
|
@plugin_init: The init function of this plugin.
|
|
|
|
@plugin_exit:
|
2004-08-31 17:14:03 +00:00
|
|
|
@version: version of the plugin
|
|
|
|
@license: effective license of plugin
|
|
|
|
@package: package plugin belongs to
|
|
|
|
@origin: URL to provider of plugin
|
2004-03-25 04:20:33 +00:00
|
|
|
@_gst_reserved:
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstPluginInitFunc ##### -->
|
|
|
|
<para>
|
|
|
|
A plugin should provide a pointer to a function of this type in the plugin_desc struct.
|
|
|
|
It will be called by the loader at statup.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin: The plugin object that can be used to register stuff for this plugin.
|
|
|
|
@Returns: A boolean indicating success or failure.
|
2003-11-24 02:09:23 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@module: The <classname>GModule</classname> it was loaded from
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstPluginExitFunc ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
2004-08-31 17:14:03 +00:00
|
|
|
Exiting function when plugin is unloaded.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2004-08-31 17:14:03 +00:00
|
|
|
@plugin: The plugin object that can be used to unregister stuff for this plugin.
|
2004-03-25 04:20:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PLUGIN_DEFINE ##### -->
|
|
|
|
<para>
|
2004-08-31 17:14:03 +00:00
|
|
|
This macro needs to be used to define the entry point and meta data of a plugin.
|
|
|
|
One would use this macro to export a plugin, so that it can be used by other applications
|
2004-03-25 04:20:33 +00:00
|
|
|
</para>
|
|
|
|
|
2005-04-16 08:31:50 +00:00
|
|
|
@major: major version number of GStreamer that plugin was compiled for
|
|
|
|
@minor: minor version number of GStreamer that plugin was compiled for
|
2004-08-31 17:14:03 +00:00
|
|
|
@name: short, but unique name of the plugin
|
|
|
|
@description: information about the purpose of the plugin
|
|
|
|
@init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
|
|
|
|
@version: full version string (e.g. VERSION from config.h)
|
|
|
|
@license: under which licence the package has been released, e.g. GPL, LGPL.
|
|
|
|
@package: the package-name (e.g. PACKAGE_NAME from config.h)
|
|
|
|
@origin: a description from where the package comes from (e.g. the homepage URL)
|
2004-03-25 04:20:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PLUGIN_DEFINE_STATIC ##### -->
|
|
|
|
<para>
|
2004-08-31 17:14:03 +00:00
|
|
|
This macro needs to be used to define the entry point and meta data of a local plugin.
|
|
|
|
One would use this macro to define a local plugin that can only be used by the own application.
|
2004-03-25 04:20:33 +00:00
|
|
|
</para>
|
|
|
|
|
2005-04-16 08:31:50 +00:00
|
|
|
@major: major version number of the GStreamer plugin was compiled for
|
|
|
|
@minor: minor version number of the GStreamer plugin was compiled for
|
2004-08-31 17:14:03 +00:00
|
|
|
@name: short, but unique name of the plugin
|
|
|
|
@description: information about the purpose of the plugin
|
|
|
|
@init: function pointer to the plugin_init method with the signature of <code>static gboolean plugin_init (GstPlugin * plugin)</code>.
|
|
|
|
@version: full version string (e.g. VERSION from config.h)
|
|
|
|
@license: under which licence the package has been released, e.g. GPL, LGPL.
|
|
|
|
@package: the package-name (e.g. PACKAGE_NAME from config.h)
|
|
|
|
@origin: a description from where the package comes from (e.g. the homepage URL)
|
2004-03-25 04:20:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_LICENSE_UNKNOWN ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPluginFilter ##### -->
|
|
|
|
<para>
|
2004-10-13 13:03:25 +00:00
|
|
|
A function that can be used with e.g. gst_registry_plugin_filter()
|
|
|
|
to get a list of plugins that match certain criteria.
|
2004-03-25 04:20:33 +00:00
|
|
|
</para>
|
|
|
|
|
2004-10-13 13:03:25 +00:00
|
|
|
@plugin: the plugin to check
|
|
|
|
@user_data: the user_data that has been passed on e.g. gst_registry_plugin_filter()
|
|
|
|
@Returns: TRUE for a positive match, FALSE otherwise
|
2004-03-25 04:20:33 +00:00
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_description ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_filename ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_license ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_get_package ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_get_origin ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_get_module ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-12-20 16:25:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_version ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_is_loaded ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_feature_filter ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@filter:
|
|
|
|
@first:
|
|
|
|
@user_data:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_list_feature_filter ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@list:
|
|
|
|
@filter:
|
|
|
|
@first:
|
|
|
|
@user_data:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_name_filter ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@name:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_get_feature_list ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
@plugin:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_find_feature ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
@plugin:
|
2002-01-15 00:41:22 +00:00
|
|
|
@name:
|
2002-06-12 22:27:18 +00:00
|
|
|
@type:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-07-09 11:20:59 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_check_file ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@filename:
|
|
|
|
@error:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_load_file ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@filename:
|
|
|
|
@error:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_unload_plugin ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
@plugin:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_plugin_add_feature ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@plugin:
|
|
|
|
@feature:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_load ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
@name:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2005-12-16 18:29:42 +00:00
|
|
|
<!-- ##### FUNCTION gst_plugin_free ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-12-16 18:29:42 +00:00
|
|
|
@plugin:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2005-09-08 13:17:30 +00:00
|
|
|
<!-- ##### FUNCTION gst_library_load ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@name:
|
|
|
|
@Returns:
|
|
|
|
|
2005-12-16 18:29:42 +00:00
|
|
|
|