org.gstreamer
Class PadTemplate
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.GstObject
org.gstreamer.PadTemplate
public class PadTemplate
- extends GstObject
Padtemplates describe the possible media types a Pad
or an
ElementFactory
can handle. This allows for both inspection of
handled types before loading the element plugin as well as identifying pads
on elements that are not yet created (request or sometimes pads).
Pad and PadTemplates have Caps
attached to it to describe the media type
they are capable of dealing with. getCaps()
is used to get the caps of
a padtemplate. It is not possible to modify the caps of a padtemplate after
creation.
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject |
org.gstreamer.lowlevel.NativeObject.Initializer |
Fields inherited from class org.gstreamer.lowlevel.NativeObject |
defaultInit, ownsHandle |
Constructor Summary |
PadTemplate(org.gstreamer.lowlevel.NativeObject.Initializer init)
Creates a new proxy for PadTemplate. |
PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
Caps caps)
Creates a new pad template with a name according to the given template
and with the given arguments. |
PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
PadPresence presence,
Caps caps)
Creates a new pad template with a name according to the given template
and with the given arguments. |
Methods inherited from class org.gstreamer.GstObject |
addListenerProxy, getName, initializer, initializer, objectFor, objectFor, ref, removeListenerProxy, setName, steal, toString, unref |
Methods inherited from class org.gstreamer.GObject |
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, g_signal_connect, get, invalidate, objectFor, removeCallback, set |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
PadTemplate
public PadTemplate(org.gstreamer.lowlevel.NativeObject.Initializer init)
- Creates a new proxy for PadTemplate.
This is only for internal use.
- Parameters:
init
- internal initialization data.
PadTemplate
public PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
Caps caps)
- Creates a new pad template with a name according to the given template
and with the given arguments.
- Parameters:
nameTemplate
- the name template.direction
- the direction of the template.caps
- a Caps
set for the template.
PadTemplate
public PadTemplate(java.lang.String nameTemplate,
PadDirection direction,
PadPresence presence,
Caps caps)
- Creates a new pad template with a name according to the given template
and with the given arguments.
- Parameters:
nameTemplate
- the name template.direction
- the direction of the template.presence
- the presence of the pad, which controls the lifetime.caps
- a Caps
set for the template.
getCaps
public Caps getCaps()
- Gets the
Caps
set on this PadTemplate
- Returns:
- the media type on this template.