Package ch.bailu.gtk.gst
Klasse GhostPad
- Alle implementierten Schnittstellen:
PointerInterface
GhostPads are useful when organizing pipelines with #GstBin 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 #GstElement. 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, gst_ghost_pad_new() is the
function to use to get a ghost-pad. Otherwise one can use gst_ghost_pad_new_no_target()
to create the ghost-pad and use gst_ghost_pad_set_target() to establish the
association later on.
Note that GhostPads add overhead to the data processing of a pipeline.
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 #GstElement. 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, gst_ghost_pad_new() is the
function to use to get a ghost-pad. Otherwise one can use gst_ghost_pad_new_no_target()
to create the ghost-pad and use gst_ghost_pad_set_target() to establish the
association later on.
Note that GhostPads add overhead to the data processing of a pipeline.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gst.Pad
Pad.OnDestroyNotify, Pad.OnLinked, Pad.OnPadActivateFunction, Pad.OnPadActivateModeFunction, Pad.OnPadChainFunction, Pad.OnPadChainListFunction, Pad.OnPadEventFullFunction, Pad.OnPadEventFunction, Pad.OnPadForwardFunction, Pad.OnPadIterIntLinkFunction, Pad.OnPadLinkFunction, Pad.OnPadProbeCallback, Pad.OnPadQueryFunction, Pad.OnPadUnlinkFunction, Pad.OnTaskFunction, Pad.OnUnlinked
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gst.Pad
SIGNAL_ON_LINKED, SIGNAL_ON_UNLINKED
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic boolean
activateModeDefault
(Pad pad, Object parent, int mode, boolean active) Invoke the default activate mode function of a ghost pad.boolean
Veraltet.static ClassHandler
static int
static long
static TypeSystem.TypeSize
Get the target pad of @gpad.static long
static TypeSystem.TypeSize
static boolean
internalActivateModeDefault
(Pad pad, Object parent, int mode, boolean active) Invoke the default activate mode function of a proxy pad that is
owned by a ghost pad.static GhostPad
newFromTemplateGhostPad
(Str name, Pad target, PadTemplate templ) Create a new ghostpad with @target as the target.static GhostPad
newFromTemplateGhostPad
(String name, Pad target, PadTemplate templ) Create a new ghostpad with @target as the target.static GhostPad
newNoTargetFromTemplateGhostPad
(Str name, PadTemplate templ) Create a new ghostpad based on @templ, without setting a target.static GhostPad
newNoTargetFromTemplateGhostPad
(String name, PadTemplate templ) Create a new ghostpad based on @templ, without setting a target.static GhostPad
newNoTargetGhostPad
(Str name, int dir) Create a new ghostpad without a target with the given direction.static GhostPad
newNoTargetGhostPad
(String name, int dir) Create a new ghostpad without a target with the given direction.boolean
Set the new target of the ghostpad @gpad.Von Klasse geerbte Methoden ch.bailu.gtk.gst.ProxyPad
chainDefault, chainListDefault, getInternal, iterateInternalLinksDefault
Von Klasse geerbte Methoden ch.bailu.gtk.gst.Pad
activateMode, addProbe, canLink, chain, chainList, checkReconfigure, createStreamId, createStreamId, createStreamIdPrintf, createStreamIdPrintf, eventDefault, forward, getAllowedCaps, getCurrentCaps, getDirection, getElementPrivate, getLastFlowReturn, getOffset, getPadTemplate, getPadTemplateCaps, getParentElement, getPeer, getSingleInternalLink, getStickyEvent, getStream, getStreamId, getTaskState, hasCurrentCaps, isActive, isBlocked, isBlocking, isLinked, iterateInternalLinks, iterateInternalLinksDefault, link, linkFull, linkGetName, linkMaybeGhosting, linkMaybeGhostingFull, markReconfigure, needsReconfigure, newFromStaticTemplatePad, newFromStaticTemplatePad, newFromTemplatePad, newFromTemplatePad, onLinked, onUnlinked, pauseTask, peerQuery, peerQueryAcceptCaps, peerQueryCaps, proxyQueryAcceptCaps, proxyQueryCaps, push, pushEvent, pushList, query, queryAcceptCaps, queryCaps, queryDefault, removeProbe, sendEvent, setActivateFunctionFull, setActivatemodeFunctionFull, setActive, setChainFunctionFull, setChainListFunctionFull, setElementPrivate, setEventFullFunctionFull, setEventFunctionFull, setIterateInternalLinksFunctionFull, setLinkFunctionFull, setOffset, setQueryFunctionFull, setUnlinkFunctionFull, startTask, stopTask, storeStickyEvent, unlink, useFixedCaps
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
-
GhostPad
-
GhostPad
Create a new ghostpad with @target as the target. The direction will be taken
from the target pad. @target must be unlinked.
Will ref the target.- Parameter:
name
- the name of the new pad, or %NULL to assign a default nametarget
- the pad to ghost.
-
GhostPad
Create a new ghostpad with @target as the target. The direction will be taken
from the target pad. @target must be unlinked.
Will ref the target.- Parameter:
name
- the name of the new pad, or %NULL to assign a default nametarget
- the pad to ghost.
-
-
Methodendetails
-
getClassHandler
-
newFromTemplateGhostPad
public static GhostPad newFromTemplateGhostPad(@Nullable Str name, @Nonnull Pad target, @Nonnull PadTemplate templ) Create a new ghostpad with @target as the target. The direction will be taken
from the target pad. The template used on the ghostpad will be @template.
Will ref the target.- Parameter:
name
- the name of the new pad, or %NULL to assign a default name.target
- the pad to ghost.templ
- the #GstPadTemplate to use on the ghostpad.- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
newFromTemplateGhostPad
public static GhostPad newFromTemplateGhostPad(String name, @Nonnull Pad target, @Nonnull PadTemplate templ) Create a new ghostpad with @target as the target. The direction will be taken
from the target pad. The template used on the ghostpad will be @template.
Will ref the target.- Parameter:
name
- the name of the new pad, or %NULL to assign a default name.target
- the pad to ghost.templ
- the #GstPadTemplate to use on the ghostpad.- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
newNoTargetGhostPad
Create a new ghostpad without a target with the given direction.
A target can be set on the ghostpad later with the
gst_ghost_pad_set_target() function.
The created ghostpad will not have a padtemplate.- Parameter:
name
- the name of the new pad, or %NULL to assign a default name.dir
- the direction of the ghostpad- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
newNoTargetGhostPad
Create a new ghostpad without a target with the given direction.
A target can be set on the ghostpad later with the
gst_ghost_pad_set_target() function.
The created ghostpad will not have a padtemplate.- Parameter:
name
- the name of the new pad, or %NULL to assign a default name.dir
- the direction of the ghostpad- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
newNoTargetFromTemplateGhostPad
public static GhostPad newNoTargetFromTemplateGhostPad(@Nullable Str name, @Nonnull PadTemplate templ) Create a new ghostpad based on @templ, without setting a target. The
direction will be taken from the @templ.- Parameter:
name
- the name of the new pad, or %NULL to assign a default nametempl
- the #GstPadTemplate to create the ghostpad from.- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
newNoTargetFromTemplateGhostPad
Create a new ghostpad based on @templ, without setting a target. The
direction will be taken from the @templ.- Parameter:
name
- the name of the new pad, or %NULL to assign a default nametempl
- the #GstPadTemplate to create the ghostpad from.- Gibt zurück:
- a new #GstPad, or %NULL in case of an error.
-
construct
Veraltet.Finish initialization of a newly allocated ghost pad.
This function is most useful in language bindings and when subclassing
#GstGhostPad; plugin and application developers normally will not call this
function. Call this function directly after a call to g_object_new
(GST_TYPE_GHOST_PAD, "direction", @dir, ..., NULL).- Gibt zurück:
- %TRUE if the construction succeeds, %FALSE otherwise.
-
getTarget
Get the target pad of @gpad. Unref target pad after usage.- Gibt zurück:
- the target #GstPad, can be %NULL if the ghostpad has no target set. Unref target pad after usage.
-
setTarget
Set the new target of the ghostpad @gpad. Any existing target
is unlinked and links to the new target are established. if @newtarget is
%NULL the target will be cleared.- Parameter:
newtarget
- the new pad target- Gibt zurück:
- %TRUE if the new target could be set. This function can return %FALSE when the internal pads could not be linked.
-
activateModeDefault
public static boolean activateModeDefault(@Nonnull Pad pad, @Nullable Object parent, int mode, boolean active) Invoke the default activate mode function of a ghost pad.- Parameter:
pad
- the #GstPad to activate or deactivate.parent
- the parent of @pad or %NULLmode
- the requested activation modeactive
- whether the pad should be active or not.- Gibt zurück:
- %TRUE if the operation was successful.
-
internalActivateModeDefault
public static boolean internalActivateModeDefault(@Nonnull Pad pad, @Nullable Object parent, int mode, boolean active) Invoke the default activate mode function of a proxy pad that is
owned by a ghost pad.- Parameter:
pad
- the #GstPad to activate or deactivate.parent
- the parent of @pad or %NULLmode
- the requested activation modeactive
- whether the pad should be active or not.- Gibt zurück:
- %TRUE if the operation was successful.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-