Package ch.bailu.gtk.gst
Klasse PluginFeature
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gst.PluginFeature
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
DeviceProviderFactory
,DynamicTypeFactory
,ElementFactory
,TracerFactory
,TypeFindFactory
This is a base class for anything that can be added to a #GstPlugin.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
checkVersion
(int min_major, int min_minor, int min_micro) Checks whether the given plugin feature is at least the required version.static ClassHandler
static int
static long
static TypeSystem.TypeSize
Get the plugin that provides this feature.Get the name of the plugin that provides this feature.int
getRank()
Gets the rank of a plugin feature.static long
static TypeSystem.TypeSize
static List
Copies the list of features.static void
Debug the plugin feature names in @list.static void
Unrefs each member of @list, then frees the list.load()
Loads the plugin containing @feature if it's not already loaded.static int
rankCompareFunc
(Pointer p1, Pointer p2) Compares the two given #GstPluginFeature instances.void
setRank
(int rank) Specifies a rank for a plugin feature, so that autoplugging uses
the most appropriate feature.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
PluginFeature
-
-
Methodendetails
-
getClassHandler
-
checkVersion
public boolean checkVersion(int min_major, int min_minor, int min_micro) Checks whether the given plugin feature is at least the required version.
Note: Since version 1.24 this function no longer returns %TRUE if the
version is a git development version (e.g. 1.23.0.1) and the check is
for the "next" micro version, that is it will no longer return %TRUE for
e.g. 1.23.0.1 if the check is for 1.23.1. It is still possible to parse
the nano version from the string and do this check that way if needed.- Parameter:
min_major
- minimum required major versionmin_minor
- minimum required minor versionmin_micro
- minimum required micro version- Gibt zurück:
- %TRUE if the plugin feature has at least the required version, otherwise %FALSE.
-
getPlugin
Get the plugin that provides this feature.- Gibt zurück:
- the plugin that provides this feature, or %NULL. Unref with gst_object_unref() when no longer needed.
-
getPluginName
Get the name of the plugin that provides this feature.- Gibt zurück:
- the name of the plugin that provides this feature, or %NULL if the feature is not associated with a plugin.
-
getRank
public int getRank()Gets the rank of a plugin feature.- Gibt zurück:
- The rank of the feature
-
load
Loads the plugin containing @feature if it's not already loaded. @feature is
unaffected; use the return value instead.
Normally this function is used like this:<!-- language="C" --> 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;
- Gibt zurück:
- a reference to the loaded feature, or %NULL on error
-
setRank
public void setRank(int rank) Specifies a rank for a plugin feature, so that autoplugging uses
the most appropriate feature.- Parameter:
rank
- rank value - higher number means more priority rank
-
listCopy
Copies the list of features. Caller should call @gst_plugin_feature_list_free
when done with the list.- Parameter:
list
- list of #GstPluginFeature- Gibt zurück:
- a copy of @list, with each feature's reference count incremented.
-
listDebug
Debug the plugin feature names in @list.- Parameter:
list
- a #GList of plugin features
-
listFree
Unrefs each member of @list, then frees the list.- Parameter:
list
- list of #GstPluginFeature
-
rankCompareFunc
Compares the two given #GstPluginFeature instances. This function can be
used as a #GCompareFunc when sorting by rank and then by name.- Parameter:
p1
- a #GstPluginFeaturep2
- a #GstPluginFeature- Gibt zurück:
- 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
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-