org.gstreamer
public class ElementFactory extends PluginFeature
find(java.lang.String)
and create(java.lang.String)
methods to create element instances
or use make(java.lang.String, java.lang.String)
as a convenient shortcut.Modifier and Type | Class and Description |
---|---|
static class |
ElementFactory.ElementFactoryListType |
PluginFeature.Rank
GObject.GCallback, GObject.NOTIFY
NativeObject.Initializer
Modifier and Type | Field and Description |
---|---|
static String |
GTYPE_NAME |
defaultInit, ownsHandle
Constructor and Description |
---|
ElementFactory(NativeObject.Initializer init)
Creates a new instance of ElementFactory
|
Modifier and Type | Method and Description |
---|---|
Element |
create(String name)
Creates a new element from the factory.
|
static ElementFactory |
find(String name)
Retrieve an instance of a factory that can produce
Element s |
String |
getAuthor()
Returns the name of the person who wrote the factory.
|
String |
getDescription()
Returns a description of the factory.
|
String |
getKlass()
Returns a string describing the type of factory.
|
String |
getLongName()
Returns the long, English name for the factory.
|
List<StaticPadTemplate> |
getStaticPadTemplates()
Gets the list of
StaticPadTemplate for this factory. |
static List<ElementFactory> |
listFilter(List<ElementFactory> list,
Caps caps,
PadDirection direction,
boolean subsetonly)
Filter out all the elementfactories in list that can handle caps in the
given direction.
|
static List<ElementFactory> |
listGetElement(ElementFactory.ElementFactoryListType type,
PluginFeature.Rank minrank)
Get a list of factories that match the given type.
|
static List<ElementFactory> |
listGetElementFilter(ElementFactory.ElementFactoryListType type,
PluginFeature.Rank minrank,
Caps caps,
PadDirection direction,
boolean subsetonly)
Get a list of factories that match the given parameter.
|
static Element |
make(String factoryName,
String name)
Creates a new Element from the specified factory.
|
static com.sun.jna.Pointer |
makeRawElement(String factoryName,
String name) |
static void |
registerElement(Class<? extends Element> klass,
String name)
Register a new class into the typeMap.
|
checkVersion, getName, getRank, setName, setRank, setRank, toString
addListenerProxy, getParent, initializer, initializer, ref, removeListenerProxy, steal, unref
addCallback, connect, connect, connect, connect, disconnect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, getType, getTypeName, invalidate, listPropertyNames, removeCallback, set
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public static final String GTYPE_NAME
public ElementFactory(NativeObject.Initializer init)
init
- internal initialization data.public static void registerElement(Class<? extends Element> klass, String name)
public static ElementFactory find(String name)
Element
spublic static Element make(String factoryName, String name)
factoryName
- The name of the factory to use to produce the Elementname
- The name to assign to the created Elementpublic static List<ElementFactory> listGetElement(ElementFactory.ElementFactoryListType type, PluginFeature.Rank minrank)
type
- a ElementFactory.ElementFactoryListType
minrank
- Minimum rankpublic static List<ElementFactory> listFilter(List<ElementFactory> list, Caps caps, PadDirection direction, boolean subsetonly)
list
- a List
of ElementFactory
to filtercaps
- a Caps
direction
- a PadDirection
to filter onsubsetonly
- whether to filter on caps subsets or not.List
of ElementFactory
elements that match the
given requisits.public static List<ElementFactory> listGetElementFilter(ElementFactory.ElementFactoryListType type, PluginFeature.Rank minrank, Caps caps, PadDirection direction, boolean subsetonly)
type
- a ElementFactory.ElementFactoryListType
minrank
- Minimum rankcaps
- a Caps
direction
- a PadDirection
to filter onsubsetonly
- whether to filter on caps subsets or not.List
of ElementFactory
elements that match the
given requisits.public Element create(String name)
name
- the name to assign to the created ElementElement
public String getAuthor()
public String getDescription()
public String getLongName()
public String getKlass()
public List<StaticPadTemplate> getStaticPadTemplates()
StaticPadTemplate
for this factory.StaticPadTemplate
Copyright © 2014. All rights reserved.