gst.ghost_pad

Module for [GhostPad] class

Types 3

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.GhostPad.new_] is the function to use to get a ghost-pad. Otherwise one can use [gst.ghost_pad.GhostPad.newNoTarget] to create the ghost-pad and use [gst.ghost_pad.GhostPad.setTarget] to establish the association later on.

Note that GhostPads add overhead to the data processing of a pipeline.

Methods
GType _gType() @property
GhostPad self()Returns `this`, for use in `with` statements.
GhostPadGidBuilder builder()Get builder for [gst.ghost_pad.GhostPad] Returns: New builder object
gst.ghost_pad.GhostPad newFromTemplate(string name, gst.pad.Pad target, gst.pad_template.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.
gst.ghost_pad.GhostPad newNoTarget(string name, gst.types.PadDirection dir)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.GhostPad.setTarget] function.
gst.ghost_pad.GhostPad newNoTargetFromTemplate(string name, gst.pad_template.PadTemplate templ)Create a new ghostpad based on templ, without setting a target. The direction will be taken from the templ.
bool activateModeDefault(gst.pad.Pad pad, gst.object.ObjectWrap parent, gst.types.PadMode mode, bool active)Invoke the default activate mode function of a ghost pad.
bool internalActivateModeDefault(gst.pad.Pad pad, gst.object.ObjectWrap parent, gst.types.PadMode mode, bool active)Invoke the default activate mode function of a proxy pad that is owned by a ghost pad.
bool construct()Finish initialization of a newly allocated ghost pad.
gst.pad.Pad getTarget()Get the target pad of gpad. Unref target pad after usage. Returns: the target #GstPad, can be null if the ghostpad has no target set. Unref target pad after usage.
bool setTarget(gst.pad.Pad newtarget = null)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.
Constructors
this(void * ptr, Flag!"Take" take)
this(string name, gst.pad.Pad target)Create a new ghostpad with target as the target. The direction will be taken from the target pad. target must be unlinked.

Fluent builder for [gst.ghost_pad.GhostPad]

Methods