ProxyPad

Members

Functions

getInternal
gst.proxy_pad.ProxyPad getInternal()

Get the internal pad of pad. Unref target pad after usage.

Static functions

chainDefault
gst.types.FlowReturn chainDefault(gst.pad.Pad pad, gst.object.ObjectGst parent, gst.buffer.Buffer buffer)

Invoke the default chain function of the proxy pad.

chainListDefault
gst.types.FlowReturn chainListDefault(gst.pad.Pad pad, gst.object.ObjectGst parent, gst.buffer_list.BufferList list)

Invoke the default chain list function of the proxy pad.

getrangeDefault
gst.types.FlowReturn getrangeDefault(gst.pad.Pad pad, gst.object.ObjectGst parent, ulong offset, uint size, gst.buffer.Buffer buffer)

Invoke the default getrange function of the proxy pad.

iterateInternalLinksDefault
gst.iterator.Iterator iterateInternalLinksDefault(gst.pad.Pad pad, gst.object.ObjectGst parent)

Invoke the default iterate internal links function of the proxy pad.

Inherited Members

From Pad

newFromStaticTemplate
gst.pad.Pad newFromStaticTemplate(gst.static_pad_template.StaticPadTemplate templ, string name)

Creates a new pad with the given name from the given static template. If name is null, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name.

newFromTemplate
gst.pad.Pad newFromTemplate(gst.pad_template.PadTemplate templ, string name)

Creates a new pad with the given name from the given template. If name is null, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name.

linkGetName
string linkGetName(gst.types.PadLinkReturn ret)

Gets a string representing the given pad-link return.

activateMode
bool activateMode(gst.types.PadMode mode, bool active)

Activates or deactivates the given pad in mode via dispatching to the pad's activatemodefunc. For use from within pad activation functions only.

addProbe
gulong addProbe(gst.types.PadProbeType mask, gst.types.PadProbeCallback callback)

Be notified of different states of pads. The provided callback is called for every state that matches mask.

canLink
bool canLink(gst.pad.Pad sinkpad)

Checks if the source pad and the sink pad are compatible so they can be linked.

chain
gst.types.FlowReturn chain(gst.buffer.Buffer buffer)

Chain a buffer to pad.

chainList
gst.types.FlowReturn chainList(gst.buffer_list.BufferList list)

Chain a bufferlist to pad.

checkReconfigure
bool checkReconfigure()

Check and clear the #GST_PAD_FLAG_NEED_RECONFIGURE flag on pad and return true if the flag was set.

createStreamId
string createStreamId(gst.element.Element parent, string streamId)

Creates a stream-id for the source #GstPad pad by combining the upstream information with the optional stream_id of the stream of pad. pad must have a parent #GstElement and which must have zero or one sinkpad. stream_id can only be null if the parent element of pad has only a single source pad.

eventDefault
bool eventDefault(gst.object.ObjectGst parent, gst.event.Event event)

Invokes the default event handler for the given pad.

forward
bool forward(gst.types.PadForwardFunction forward)

Calls forward for all internally linked pads of pad. This function deals with dynamically changing internal pads and will make sure that the forward function is only called once for each pad.

getAllowedCaps
gst.caps.Caps getAllowedCaps()

Gets the capabilities of the allowed media types that can flow through pad and its peer.

getCurrentCaps
gst.caps.Caps getCurrentCaps()

Gets the capabilities currently configured on pad with the last #GST_EVENT_CAPS event.

getDirection
gst.types.PadDirection getDirection()

Gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK.

getElementPrivate
void* getElementPrivate()

Gets the private data of a pad. No locking is performed in this function.

getLastFlowReturn
gst.types.FlowReturn getLastFlowReturn()

Gets the #GstFlowReturn return from the last data passed by this pad.

getOffset
long getOffset()

Get the offset applied to the running time of pad. pad has to be a source pad.

getPadTemplate
gst.pad_template.PadTemplate getPadTemplate()

Gets the template for pad.

getPadTemplateCaps
gst.caps.Caps getPadTemplateCaps()

Gets the capabilities for pad's template.

getParentElement
gst.element.Element getParentElement()

Gets the parent of pad, cast to a #GstElement. If a pad has no parent or its parent is not an element, return null.

getPeer
gst.pad.Pad getPeer()

Gets the peer of pad. This function refs the peer pad so you need to unref it after use.

getRange
gst.types.FlowReturn getRange(ulong offset, uint size, gst.buffer.Buffer buffer)

When pad is flushing this function returns #GST_FLOW_FLUSHING immediately and buffer is null.

getSingleInternalLink
gst.pad.Pad getSingleInternalLink()

If there is a single internal link of the given pad, this function will return it. Otherwise, it will return NULL.

getStickyEvent
gst.event.Event getStickyEvent(gst.types.EventType eventType, uint idx)

Returns a new reference of the sticky event of type event_type from the event.

getStream
gst.stream.Stream getStream()

Returns the current #GstStream for the pad, or null if none has been set yet, i.e. the pad has not received a stream-start event yet.

getStreamId
string getStreamId()

Returns the current stream-id for the pad, or null if none has been set yet, i.e. the pad has not received a stream-start event yet.

getTaskState
gst.types.TaskState getTaskState()

Get pad task state. If no task is currently set, #GST_TASK_STOPPED is returned.

hasCurrentCaps
bool hasCurrentCaps()

Check if pad has caps set on it with a #GST_EVENT_CAPS event.

isActive
bool isActive()

Query if a pad is active

isBlocked
bool isBlocked()

Checks if the pad is blocked or not. This function returns the last requested state of the pad. It is not certain that the pad is actually blocking at this point (see gst.pad.Pad.isBlocking).

isBlocking
bool isBlocking()

Checks if the pad is blocking or not. This is a guaranteed state of whether the pad is actually blocking on a #GstBuffer or a #GstEvent.

isLinked
bool isLinked()

Checks if a pad is linked to another pad or not.

iterateInternalLinks
gst.iterator.Iterator iterateInternalLinks()

Gets an iterator for the pads to which the given pad is linked to inside of the parent element.

iterateInternalLinksDefault
gst.iterator.Iterator iterateInternalLinksDefault(gst.object.ObjectGst parent)

Iterate the list of pads to which the given pad is linked to inside of the parent element. This is the default handler, and thus returns an iterator of all of the pads inside the parent element with opposite direction.

link
gst.types.PadLinkReturn link(gst.pad.Pad sinkpad)

Links the source pad and the sink pad.

linkFull
gst.types.PadLinkReturn linkFull(gst.pad.Pad sinkpad, gst.types.PadLinkCheck flags)

Links the source pad and the sink pad.

linkMaybeGhosting
bool linkMaybeGhosting(gst.pad.Pad sink)

Links src to sink, creating any #GstGhostPad's in between as necessary.

linkMaybeGhostingFull
bool linkMaybeGhostingFull(gst.pad.Pad sink, gst.types.PadLinkCheck flags)

Links src to sink, creating any #GstGhostPad's in between as necessary.

markReconfigure
void markReconfigure()

Mark a pad for needing reconfiguration. The next call to gst.pad.Pad.checkReconfigure will return true after this call.

needsReconfigure
bool needsReconfigure()

Check the #GST_PAD_FLAG_NEED_RECONFIGURE flag on pad and return true if the flag was set.

pauseTask
bool pauseTask()

Pause the task of pad. This function will also wait until the function executed by the task is finished if this function is not called from the task function.

peerQuery
bool peerQuery(gst.query.Query query)

Performs gst.pad.Pad.query on the peer of pad.

peerQueryAcceptCaps
bool peerQueryAcceptCaps(gst.caps.Caps caps)

Check if the peer of pad accepts caps. If pad has no peer, this function returns true.

peerQueryCaps
gst.caps.Caps peerQueryCaps(gst.caps.Caps filter)

Gets the capabilities of the peer connected to this pad. Similar to gst.pad.Pad.queryCaps.

peerQueryConvert
bool peerQueryConvert(gst.types.Format srcFormat, long srcVal, gst.types.Format destFormat, long destVal)

Queries the peer pad of a given sink pad to convert src_val in src_format to dest_format.

peerQueryDuration
bool peerQueryDuration(gst.types.Format format, long duration)

Queries the peer pad of a given sink pad for the total stream duration.

peerQueryPosition
bool peerQueryPosition(gst.types.Format format, long cur)

Queries the peer of a given sink pad for the stream position.

proxyQueryAcceptCaps
bool proxyQueryAcceptCaps(gst.query.Query query)

Checks if all internally linked pads of pad accepts the caps in query and returns the intersection of the results.

proxyQueryCaps
bool proxyQueryCaps(gst.query.Query query)

Calls gst.pad.Pad.queryCaps for all internally linked pads of pad and returns the intersection of the results.

pullRange
gst.types.FlowReturn pullRange(ulong offset, uint size, gst.buffer.Buffer buffer)

Pulls a buffer from the peer pad or fills up a provided buffer.

push
gst.types.FlowReturn push(gst.buffer.Buffer buffer)

Pushes a buffer to the peer of pad.

pushEvent
bool pushEvent(gst.event.Event event)

Sends the event to the peer of the given pad. This function is mainly used by elements to send events to their peer elements.

pushList
gst.types.FlowReturn pushList(gst.buffer_list.BufferList list)

Pushes a buffer list to the peer of pad.

query
bool query(gst.query.Query query)

Dispatches a query to a pad. The query should have been allocated by the caller via one of the type-specific allocation functions. The element that the pad belongs to is responsible for filling the query with an appropriate response, which should then be parsed with a type-specific query parsing function.

queryAcceptCaps
bool queryAcceptCaps(gst.caps.Caps caps)

Check if the given pad accepts the caps.

queryCaps
gst.caps.Caps queryCaps(gst.caps.Caps filter)

Gets the capabilities this pad can produce or consume. Note that this method doesn't necessarily return the caps set by sending a gst.event.Event.newCaps - use gst.pad.Pad.getCurrentCaps for that instead. gst_pad_query_caps returns all possible caps a pad can operate with, using the pad's CAPS query function, If the query fails, this function will return filter, if not null, otherwise ANY.

queryConvert
bool queryConvert(gst.types.Format srcFormat, long srcVal, gst.types.Format destFormat, long destVal)

Queries a pad to convert src_val in src_format to dest_format.

queryDefault
bool queryDefault(gst.object.ObjectGst parent, gst.query.Query query)

Invokes the default query handler for the given pad. The query is sent to all pads internally linked to pad. Note that if there are many possible sink pads that are internally linked to pad, only one will be sent the query. Multi-sinkpad elements should implement custom query handlers.

queryDuration
bool queryDuration(gst.types.Format format, long duration)

Queries a pad for the total stream duration.

queryPosition
bool queryPosition(gst.types.Format format, long cur)

Queries a pad for the stream position.

removeProbe
void removeProbe(gulong id)

Remove the probe with id from pad.

sendEvent
bool sendEvent(gst.event.Event event)

Sends the event to the pad. This function can be used by applications to send events in the pipeline.

setActive
bool setActive(bool active)

Activates or deactivates the given pad. Normally called from within core state change functions.

setElementPrivate
void setElementPrivate(void* priv)

Set the given private data gpointer on the pad. This function can only be used by the element that owns the pad. No locking is performed in this function.

setOffset
void setOffset(long offset)

Set the offset that will be applied to the running time of pad.

startTask
bool startTask(gst.types.TaskFunction func)

Starts a task that repeatedly calls func with user_data. This function is mostly used in pad activation functions to start the dataflow. The #GST_PAD_STREAM_LOCK of pad will automatically be acquired before func is called.

stickyEventsForeach
void stickyEventsForeach(gst.types.PadStickyEventsForeachFunction foreachFunc)

Iterates all sticky events on pad and calls foreach_func for every event. If foreach_func returns false the iteration is immediately stopped.

stopTask
bool stopTask()

Stop the task of pad. This function will also make sure that the function executed by the task will effectively stop if not called from the GstTaskFunction.

storeStickyEvent
gst.types.FlowReturn storeStickyEvent(gst.event.Event event)

Store the sticky event on pad

unlink
bool unlink(gst.pad.Pad sinkpad)

Unlinks the source pad from the sink pad. Will emit the #GstPad::unlinked signal on both pads.

useFixedCaps
void useFixedCaps()

A helper function you can use that sets the FIXED_CAPS flag This way the default CAPS query will always return the negotiated caps or in case the pad is not negotiated, the padtemplate caps.

connectLinked
ulong connectLinked(T callback, Flag!"After" after)

Connect to Linked signal.

connectUnlinked
ulong connectUnlinked(T callback, Flag!"After" after)

Connect to Unlinked signal.