Gst.PluginFeature¶
- Subclasses:
Gst.DeviceProviderFactory
,Gst.DynamicTypeFactory
,Gst.ElementFactory
,Gst.TracerFactory
,Gst.TypeFindFactory
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gst.PluginFeature(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
This is a base class for anything that can be added to a
Gst.Plugin
.- classmethod list_copy(list)[source]¶
- Parameters:
list ([
Gst.PluginFeature
]) – list ofGst.PluginFeature
- Returns:
a copy of list, with each feature’s reference count incremented.
- Return type:
Copies the list of features. Caller should call gst_plugin_feature_list_free when done with the list.
- classmethod list_debug(list)[source]¶
- Parameters:
list ([
Gst.PluginFeature
]) – aGLib.List
of plugin features
Debug the plugin feature names in list.
- classmethod list_free(list)[source]¶
- Parameters:
list ([
Gst.PluginFeature
]) – list ofGst.PluginFeature
Unrefs each member of list, then frees the list.
- classmethod rank_compare_func(p1, p2)[source]¶
- Parameters:
p1 (
object
orNone
) – aGst.PluginFeature
p2 (
object
orNone
) – aGst.PluginFeature
- Returns:
negative value if the rank of p1 > the rank of p2 or the ranks are equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1
- Return type:
Compares the two given
Gst.PluginFeature
instances. This function can be used as aGLib.CompareFunc
when sorting by rank and then by name.
- check_version(min_major, min_minor, min_micro)[source]¶
- Parameters:
- Returns:
True
if the plugin feature has at least the required version, otherwiseFalse
.- Return type:
Checks whether the given plugin feature is at least the required version
- get_plugin()[source]¶
- Returns:
the plugin that provides this feature, or
None
. Unref withGst.Object.unref
() when no longer needed.- Return type:
Gst.Plugin
orNone
Get the plugin that provides this feature.
- get_plugin_name()[source]¶
- Returns:
the name of the plugin that provides this feature, or
None
if the feature is not associated with a plugin.- Return type:
Get the name of the plugin that provides this feature.
New in version 1.2.
- get_rank()[source]¶
- Returns:
The rank of the feature
- Return type:
Gets the rank of a plugin feature.
- load()[source]¶
- Returns:
a reference to the loaded feature, or
None
on error- Return type:
Loads the plugin containing self if it’s not already loaded. self is unaffected; use the return value instead.
Normally this function is used like this:
GstPluginFeature *loaded_feature; loaded_feature = gst_plugin_feature_load (feature); // presumably, we're no longer interested in the potentially-unloaded feature gst_object_unref (feature); feature = loaded_feature;