Package ch.bailu.gtk.gst
Klasse ElementFactory
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
ch.bailu.gtk.gst.ElementFactory
- Alle implementierten Schnittstellen:
PointerInterface
#GstElementFactory is used to create instances of elements. A
GstElementFactory can be added to a #GstPlugin as it is also a
#GstPluginFeature.
Use the gst_element_factory_find() and gst_element_factory_create()
functions to create element instances or use gst_element_factory_make() as a
convenient shortcut.
The following code example shows you how to create a GstFileSrc element.
## Using an element factory
GstElementFactory can be added to a #GstPlugin as it is also a
#GstPluginFeature.
Use the gst_element_factory_find() and gst_element_factory_create()
functions to create element instances or use gst_element_factory_make() as a
convenient shortcut.
The following code example shows you how to create a GstFileSrc element.
## Using an element factory
<!-- language="C" --> #include <gst/gst.h> GstElement *src; GstElementFactory *srcfactory; gst_init (&argc, &argv); srcfactory = gst_element_factory_find ("filesrc"); g_return_if_fail (srcfactory != NULL); src = gst_element_factory_create (srcfactory, "src"); g_return_if_fail (src != NULL); ...
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
canSinkAllCaps
(Caps caps) Checks if the factory can sink all possible capabilities.boolean
canSinkAnyCaps
(Caps caps) Checks if the factory can sink any possible capability.boolean
canSrcAllCaps
(Caps caps) Checks if the factory can src all possible capabilities.boolean
canSrcAnyCaps
(Caps caps) Checks if the factory can src any possible capability.Create a new element of the type defined by the given elementfactory.Create a new element of the type defined by the given elementfactory.createFull
(Str first, Object... _ellipsis) Create a new element of the type defined by the given elementfactory.createFull
(String first, Object... _ellipsis) Create a new element of the type defined by the given elementfactory.static ElementFactory
Search for an element factory of the given name.static ClassHandler
long
Get the #GType for elements managed by this factory.static int
getMetadata
(Str key) Get the metadata on @factory with @key.getMetadata
(String key) Get the metadata on @factory with @key.int
Gets the number of pad_templates in this factory.static long
static TypeSystem.TypeSize
boolean
Queries whether registered element managed by @factory needs to
be excluded from documentation system or not.Gets the #GList of #GstStaticPadTemplate for this factory.static long
static TypeSystem.TypeSize
int
Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none.boolean
hasInterface
(Str interfacename) Check if @factory implements the interface with name @interfacename.boolean
hasInterface
(String interfacename) Check if @factory implements the interface with name @interfacename.static List
listFilter
(List list, Caps caps, int direction, boolean subsetonly) Filter out all the elementfactories in @list that can handle @caps in
the given direction.static Element
Create a new element of the type defined by the given element factory.static Element
Create a new element of the type defined by the given element factory.Von Klasse geerbte Methoden ch.bailu.gtk.gst.PluginFeature
checkVersion, getPlugin, getPluginName, getRank, listCopy, listDebug, listFree, load, rankCompareFunc, setRank
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
-
ElementFactory
-
-
Methodendetails
-
getClassHandler
-
canSinkAllCaps
Checks if the factory can sink all possible capabilities.- Parameter:
caps
- the caps to check- Gibt zurück:
- %TRUE if the caps are fully compatible.
-
canSinkAnyCaps
Checks if the factory can sink any possible capability.- Parameter:
caps
- the caps to check- Gibt zurück:
- %TRUE if the caps have a common subset.
-
canSrcAllCaps
Checks if the factory can src all possible capabilities.- Parameter:
caps
- the caps to check- Gibt zurück:
- %TRUE if the caps are fully compatible.
-
canSrcAnyCaps
Checks if the factory can src any possible capability.- Parameter:
caps
- the caps to check- Gibt zurück:
- %TRUE if the caps have a common subset.
-
create
Create a new element of the type defined by the given elementfactory.
It will be given the name supplied, since all elements require a name as
their first argument.- Parameter:
name
- name of new element, or %NULL to automatically create a unique name- Gibt zurück:
- new #GstElement or %NULL if the element couldn't be created
-
create
Create a new element of the type defined by the given elementfactory.
It will be given the name supplied, since all elements require a name as
their first argument.- Parameter:
name
- name of new element, or %NULL to automatically create a unique name- Gibt zurück:
- new #GstElement or %NULL if the element couldn't be created
-
createFull
Create a new element of the type defined by the given elementfactory.
The supplied list of properties, will be passed at object construction.- Parameter:
first
- name of the first property_ellipsis
- %NULL terminated list of properties- Gibt zurück:
- new #GstElement or %NULL if the element couldn't be created
-
createFull
Create a new element of the type defined by the given elementfactory.
The supplied list of properties, will be passed at object construction.- Parameter:
first
- name of the first property_ellipsis
- %NULL terminated list of properties- Gibt zurück:
- new #GstElement or %NULL if the element couldn't be created
-
getElementType
public long getElementType()Get the #GType for elements managed by this factory. The type can
only be retrieved if the element factory is loaded, which can be
assured with gst_plugin_feature_load().- Gibt zurück:
- the #GType for elements managed by this factory or 0 if the factory is not loaded.
-
getMetadata
Get the metadata on @factory with @key.- Parameter:
key
- a key- Gibt zurück:
- the metadata with @key on @factory or %NULL when there was no metadata with the given @key.
-
getMetadata
Get the metadata on @factory with @key.- Parameter:
key
- a key- Gibt zurück:
- the metadata with @key on @factory or %NULL when there was no metadata with the given @key.
-
getNumPadTemplates
public int getNumPadTemplates()Gets the number of pad_templates in this factory.- Gibt zurück:
- the number of pad_templates
-
getSkipDocumentation
public boolean getSkipDocumentation()Queries whether registered element managed by @factory needs to
be excluded from documentation system or not.- Gibt zurück:
- %TRUE if documentation should be skipped
-
getStaticPadTemplates
Gets the #GList of #GstStaticPadTemplate for this factory.- Gibt zurück:
- the static pad templates
-
getUriType
public int getUriType()Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none.- Gibt zurück:
- type of URIs this element supports
-
hasInterface
Check if @factory implements the interface with name @interfacename.- Parameter:
interfacename
- an interface name- Gibt zurück:
- %TRUE when @factory implement the interface.
-
hasInterface
Check if @factory implements the interface with name @interfacename.- Parameter:
interfacename
- an interface name- Gibt zurück:
- %TRUE when @factory implement the interface.
-
find
Search for an element factory of the given name. Refs the returned
element factory; caller is responsible for unreffing.- Parameter:
name
- name of factory to find- Gibt zurück:
- #GstElementFactory if found, %NULL otherwise
-
listFilter
public static List listFilter(@Nonnull List list, @Nonnull Caps caps, int direction, boolean subsetonly) Filter out all the elementfactories in @list that can handle @caps in
the given direction.
If @subsetonly is %TRUE, then only the elements whose pads templates
are a complete superset of @caps will be returned. Else any element
whose pad templates caps can intersect with @caps will be returned.- Parameter:
list
- a #GList of #GstElementFactory to filtercaps
- a #GstCapsdirection
- a #GstPadDirection to filter onsubsetonly
- whether to filter on caps subsets or not.- Gibt zurück:
- a #GList of #GstElementFactory elements that match the given requisites. Use #gst_plugin_feature_list_free after usage.
-
make
Create a new element of the type defined by the given element factory.
If name is %NULL, then the element will receive a guaranteed unique name,
consisting of the element factory name and a number.
If name is given, it will be given the name supplied.- Parameter:
factoryname
- a named factory to instantiatename
- name of new element, or %NULL to automatically create a unique name- Gibt zurück:
- new #GstElement or %NULL if unable to create element
-
makeFull
Create a new element of the type defined by the given element factory.
The supplied list of properties, will be passed at object construction.- Parameter:
factoryname
- a named factory to instantiatefirst
- name of first property_ellipsis
- %NULL terminated list of properties- Gibt zurück:
- new #GstElement or %NULL if unable to create element
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-