public class GhostPad extends Pad
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstGhostPad.html
GhostPads are useful when organizing pipelines with Bin like
elements. The idea here is to create hierarchical element graphs. The bin
element contains a sub-graph. Now one would like to treat the bin-element
like any other Element. This is where GhostPads come into play. A
GhostPad acts as a proxy for another pad. Thus the bin can have sink and
source ghost-pads that are associated with sink and source pads of the child
elements.
If the target pad is known at creation time, GhostPad(String, Pad)
is the function to use to get a ghost-pad. Otherwise one can use
GhostPad(String, PadDirection) to create the ghost-pad and use
setTarget(org.freedesktop.gstreamer.Pad) to establish the association later on.
Note that GhostPads add overhead to the data processing of a pipeline.
PadPad.DATA_PROBE, Pad.EVENT_PROBE, Pad.LINKED, Pad.PROBE, Pad.UNLINKEDGObject.GCallback, GObject.GInterfaceNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Constructor and Description |
|---|
GhostPad(String name,
Pad target)
Create a new ghostpad with target as the target.
|
GhostPad(String name,
PadDirection direction)
Create a new ghostpad without a target with the given direction.
|
GhostPad(String name,
Pad target,
PadTemplate template)
Create a new ghostpad with target as the target.
|
GhostPad(String name,
PadTemplate template)
Create a new ghostpad based on template, without setting a target.
|
| Modifier and Type | Method and Description |
|---|---|
Pad |
getTarget()
Get the target pad of this ghostpad.
|
boolean |
setTarget(Pad pad)
Set the new target of the ghostpad.
|
addDataProbe, addEventProbe, addProbe, addProbe, block, chain, connect, connect, disconnect, disconnect, getAllowedCaps, getCurrentCaps, getDirection, getParentElement, getPeer, getRange, getTemplate, hasCurrentCaps, isBlocked, isBlocking, isLinked, link, peerQueryAcceptCaps, peerQueryCaps, pullRange, push, pushEvent, queryAcceptCaps, queryCaps, removeDataProbe, removeEventProbe, removeProbe, sendEvent, setActive, unlinkaddControlBinding, getAsString, getControlBinding, getName, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, setName, suggestNextSync, syncValues, toStringaddCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, setclose, disown, equals, getPointer, getRawPointer, hashCodepublic static final String GTYPE_NAME
public GhostPad(String name, Pad target)
name - The name of the new pad, or null to assign a default name.target - The Pad to ghost.public GhostPad(String name, Pad target, PadTemplate template)
name - The name of the new pad, or null to assign a default name.target - The Pad to ghost.template - The PadTemplate to use on the ghostpad.public GhostPad(String name, PadDirection direction)
setTarget(org.freedesktop.gstreamer.Pad) method.
The created ghostpad will not have a padtemplate.
name - The name of the new pad, or null to assign a default name.direction - The direction of the ghostpad.public GhostPad(String name, PadTemplate template)
name - The name of the new pad, or null to assign a default name.template - The PadTemplate to use on the ghostpad.public Pad getTarget()
Pad, can be null if the ghostpad has no target
setpublic boolean setTarget(Pad pad)
pad - The new pad target.Copyright © 2021 gstreamer-java. All rights reserved.