2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstPad
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
The connection between Elements
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A #GstElement is connected to other elements via "pads", which are extremely
|
2002-09-23 08:44:35 +00:00
|
|
|
light-weight generic connections points.
|
|
|
|
After two pads are retrieved from an element with gst_element_get_pad(),
|
|
|
|
the pads can be connected with gst_pad_connect(). (For quick connections,
|
|
|
|
you can also use gst_element_connect(), which will make the obvious
|
|
|
|
connection for you if it's straightforward).
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Pads are typically created from a #GstPadTemplate with
|
|
|
|
gst_pad_new_from_template().
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Pads have #GstCaps attached to it to describe the media type they
|
|
|
|
are capable of dealing with.
|
2002-09-23 08:44:35 +00:00
|
|
|
gst_pad_get_caps() and gst_pad_try_set_caps() are used to
|
2002-01-15 00:41:22 +00:00
|
|
|
manipulate the caps of the pads.
|
2002-09-01 20:00:16 +00:00
|
|
|
Pads created from a pad template cannot set capabilities that are
|
2002-09-23 08:44:35 +00:00
|
|
|
incompatible with the pad template capabilities.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Pads without pad templates can be created with gst_pad_new(),
|
|
|
|
which takes a direction and a name as an argument. If the name is NULL,
|
|
|
|
then a guaranteed unique name will be assigned to it.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
gst_pad_get_parent() will retrieve the #GstElement that owns the pad.
|
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A #GstElement creating a pad will typically use the various
|
|
|
|
gst_pad_set_*_function() calls to register callbacks for various events
|
|
|
|
on the pads.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
GstElements will use gst_pad_push() and gst_pad_pull() to push out
|
|
|
|
or pull in a buffer.
|
|
|
|
The gst_pad_pullregion() function can be used to request for a buffer
|
|
|
|
with a specific offset (in time or in bytes).
|
|
|
|
gst_pad_select() and gst_pad_selectv() are used by plugins to wait for the
|
|
|
|
first incoming buffer or event on any of the given set of pads.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
To send a #GstEvent on a pad, use gst_pad_send_event().
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Last reviewed on September 1st, 2002 (0.4.0.1)
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
#GstPadTemplate, #GstElement, #GstEvent
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_NAME ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the name of the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the name of.
|
|
|
|
@Returns: the pad's name.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_ELEMENT_PRIVATE ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the private data set by the element that owns the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the private data of.
|
|
|
|
#Returns: a gpointer to the private data.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_PARENT ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the parent element of this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the parent of.
|
|
|
|
@Returns: the parent #GstElement of this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
<!-- ##### MACRO GST_PAD_PAD_TEMPLATE ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the pad template that was used to create this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the pad template of.
|
|
|
|
#Returns: the #GstPadTemplate used to create the pad, or NULL if none was
|
|
|
|
used.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_REALIZE ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Returns the real pad of this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to realize.
|
|
|
|
@Returns: the actual #GstPad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_DIRECTION ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the pad's direction.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the direction of.
|
|
|
|
@Returns: the #GstPadDirection of the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_CAPS ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the capabilities of a pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the capabilities of.
|
|
|
|
@Returns: the #GstCaps of the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_PEER ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Gets the peer pad of this pad. The peer pad is the pad on to which the parent
|
|
|
|
element is connected through this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to get the peer pad of.
|
|
|
|
@Returns: the peer #GstPad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_CAN_PULL ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Checks if buffers can be pulled from this buffer.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to check on if a buffer can be pulled from it.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_IS_SINK ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Checks if the pad is a sink pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to check.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_IS_SRC ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Checks if the pad is a source pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to check.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PAD_IS_CONNECTED ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Checks if the pad is connected.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: a #GstPad to check.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GstPad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadChainFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A function that will be called when chaining buffers.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad that performed the chain.
|
|
|
|
@buf: the #GstBuffer that is chained.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadGetFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A function that will be called when pulling a buffer.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to get a buffer from.
|
|
|
|
@Returns: the #GstBuffer pulled.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadBufferPoolFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A function that will be called when a buffer pool is requested
|
2002-01-15 00:41:22 +00:00
|
|
|
from this pad.
|
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to which the buffer pool is associated.
|
|
|
|
@Returns: the #GstBufferPool associated with this pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadGetCapsFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
Returns the capabilities of the specified pad. By default this function
|
|
|
|
will return the pad template capabilities, but can optionally be overridden.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to get the capabilities of.
|
|
|
|
@caps: the peer's #GstCaps, can be used to filter the capabilities.
|
|
|
|
@Returns: the #GstCaps of the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadEventFunction ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Function signature to handle an event for the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to handle the event.
|
|
|
|
@event: the #GstEvent to handle.
|
2002-03-31 14:00:33 +00:00
|
|
|
@Returns: TRUE if the pad could handle the event.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadConnectFunction ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Function signature to handle a new connection on the pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad that is connected.
|
|
|
|
@caps: the peer's #GstCaps.
|
2002-03-31 14:00:33 +00:00
|
|
|
@Returns: the result of the connection with the specified caps.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### ENUM GstPadConnectReturn ##### -->
|
|
|
|
<para>
|
2002-06-12 22:27:18 +00:00
|
|
|
The result of a pad connection.
|
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@GST_PAD_CONNECT_REFUSED: the connection was refused.
|
|
|
|
@GST_PAD_CONNECT_DELAYED: the connection was delayed, probably because the
|
|
|
|
element needs more specific pad capabilitiess.
|
|
|
|
@GST_PAD_CONNECT_OK: the connection succeeded.
|
|
|
|
@GST_PAD_CONNECT_DONE: the connection succeeded,
|
|
|
|
any more attempts are not needed.
|
2002-06-12 22:27:18 +00:00
|
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GstPadConvertFunction ##### -->
|
|
|
|
<para>
|
|
|
|
The signature of a convert function.
|
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to perform the convert on.
|
|
|
|
@src_format: the source #GstFormat of the conversion.
|
|
|
|
@src_value: the source value of the conversion.
|
|
|
|
@dest_format: a pointer to the destination #GstFormat.
|
|
|
|
@dest_value: a pointer to the destination value.
|
2002-06-12 22:27:18 +00:00
|
|
|
@Returns: TRUE if the conversion could be performed.
|
|
|
|
|
|
|
|
|
2002-07-12 23:21:20 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstPadDispatcherFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
A dispatcher function is called for all internally connected pads, see
|
2002-07-12 23:21:20 +00:00
|
|
|
gst_pad_dispatcher().
|
|
|
|
</para>
|
2002-09-23 08:44:35 +00:00
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad that is dispatched.
|
|
|
|
@data: the gpointer to optional user data.
|
2002-07-12 23:21:20 +00:00
|
|
|
@Returns: TRUE if the dispatching procedure has to be stopped.
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstPadIntConnFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
The signature of the internal pad connection function.
|
2002-06-12 22:27:18 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: The #GstPad to query.
|
|
|
|
@Returns: a newly allocated #GList of pads that are connected to
|
|
|
|
the given pad on the inside of the parent element.
|
|
|
|
The caller must call g_list_free() on it after use.
|
2002-06-12 22:27:18 +00:00
|
|
|
|
2002-09-23 08:44:35 +00:00
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### ENUM GstPadQueryType ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
The different supported query types.
|
2002-06-12 22:27:18 +00:00
|
|
|
</para>
|
|
|
|
|
2002-08-31 18:17:02 +00:00
|
|
|
@GST_PAD_QUERY_NONE:
|
2002-09-01 20:00:16 +00:00
|
|
|
@GST_PAD_QUERY_TOTAL: Query the total stream time.
|
|
|
|
@GST_PAD_QUERY_POSITION: Query the current stream position.
|
|
|
|
@GST_PAD_QUERY_LATENCY: Query the latency on the pad.
|
|
|
|
@GST_PAD_QUERY_JITTER: Query the average jitter beteen optimal processing
|
|
|
|
and current processing.
|
2002-09-23 08:44:35 +00:00
|
|
|
@GST_PAD_QUERY_START:
|
2002-09-01 20:00:16 +00:00
|
|
|
@GST_PAD_QUERY_SEGMENT_END: Query the end position of the currently
|
|
|
|
executing segment.
|
2002-08-31 18:17:02 +00:00
|
|
|
@GST_PAD_QUERY_RATE:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### USER_FUNCTION GstPadQueryFunction ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
The signature of the query function.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@pad: the #GstPad to query.
|
|
|
|
@type: the #GstPadQueryType.
|
|
|
|
@format: a pointer to the target #GstFormat.
|
|
|
|
@value: a pointer to the target value.
|
|
|
|
@Returns: TRUE if the query could be performed.
|
2002-06-12 22:27:18 +00:00
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GstPadDirection ##### -->
|
|
|
|
<para>
|
2002-09-01 20:00:16 +00:00
|
|
|
The direction of a pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@GST_PAD_UNKNOWN: direction is unknown.
|
|
|
|
@GST_PAD_SRC: the pad is a source pad.
|
|
|
|
@GST_PAD_SINK: the pad is a sink pad.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### ENUM GstPadFlags ##### -->
|
|
|
|
<para>
|
|
|
|
Flags for the pad.
|
|
|
|
</para>
|
|
|
|
|
2002-09-01 20:00:16 +00:00
|
|
|
@GST_PAD_DISABLED: the pad is disabled.
|
|
|
|
@GST_PAD_EOS: the pad is in end of stream state.
|
|
|
|
@GST_PAD_FLAG_LAST: subclasses can use this number to enumerate their flags.
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@name:
|
|
|
|
@direction:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_custom_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@type:
|
|
|
|
@name:
|
|
|
|
@direction:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_custom_new_from_template ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@type:
|
|
|
|
@templ:
|
|
|
|
@name:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### MACRO gst_pad_destroy ##### -->
|
|
|
|
<para>
|
|
|
|
Destroy the pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the pad to destroy
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_new_from_template ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@templ:
|
|
|
|
@name:
|
|
|
|
@Returns:
|
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@temp:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_direction ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_chain_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@chain:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_get_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@get:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_bufferpool_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@bufpool:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_connect_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@connect:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_getcaps_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@getcaps:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_try_set_caps ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@caps:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_caps ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_check_compatibility ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@name:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_element_private ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@priv:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_element_private ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_parent ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@parent:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_parent ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-05-25 15:36:59 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_get_scheduler ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_real_parent ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_add_ghost_pad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@ghostpad:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_remove_ghost_pad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@ghostpad:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_ghost_pad_list ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_peer ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_connect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_connect_filtered ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@filtercaps:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_reconnect_filtered ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
2002-01-15 00:41:22 +00:00
|
|
|
@filtercaps:
|
|
|
|
@Returns:
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@pad:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_try_reconnect_filtered ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
2002-01-15 00:41:22 +00:00
|
|
|
@filtercaps:
|
|
|
|
@Returns:
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@pad:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_disconnect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_can_connect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_can_connect_filtered ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@filtercaps:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_push ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@buf:
|
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@buffer:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_pull ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_bufferpool ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_load_and_connect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@self:
|
|
|
|
@parent:
|
|
|
|
<!-- # Unused Parameters # -->
|
|
|
|
@element:
|
|
|
|
@elements:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_proxy_connect ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@caps:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_get_pad_template ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-04-11 20:35:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_get_pad_template_caps ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_allowed_caps ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_recalc_allowed_caps ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_perform_negotiate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@srcpad:
|
|
|
|
@sinkpad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_select ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@padlist:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_selectv ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Varargs:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_dispatcher ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@dispatch:
|
|
|
|
@data:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_send_event ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@event:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_event_default ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@event:
|
2002-06-12 22:27:18 +00:00
|
|
|
@Returns:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_event_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@event:
|
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### FUNCTION gst_pad_set_convert_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@convert:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_convert ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@src_format:
|
|
|
|
@src_value:
|
|
|
|
@dest_format:
|
|
|
|
@dest_value:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_convert_default ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@src_format:
|
|
|
|
@src_value:
|
|
|
|
@dest_format:
|
|
|
|
@dest_value:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_internal_connections ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_get_internal_connections_default ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_internal_connection_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@intconn:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_set_query_function ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@query:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_query ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@type:
|
|
|
|
@format:
|
|
|
|
@value:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_pad_query_default ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@type:
|
|
|
|
@format:
|
|
|
|
@value:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### STRUCT GstRealPad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad:
|
|
|
|
@caps:
|
|
|
|
@filter:
|
|
|
|
@appfilter:
|
2002-08-31 18:17:02 +00:00
|
|
|
@getcapsfunc:
|
2002-01-15 00:41:22 +00:00
|
|
|
@direction:
|
2002-08-31 18:17:02 +00:00
|
|
|
@connectfunc:
|
2002-01-15 00:41:22 +00:00
|
|
|
@peer:
|
2002-09-23 08:44:35 +00:00
|
|
|
@sched_private:
|
2002-01-15 00:41:22 +00:00
|
|
|
@chainfunc:
|
|
|
|
@chainhandler:
|
|
|
|
@getfunc:
|
|
|
|
@gethandler:
|
|
|
|
@eventfunc:
|
|
|
|
@eventhandler:
|
2002-08-31 18:17:02 +00:00
|
|
|
@eventmaskfunc:
|
|
|
|
@ghostpads:
|
2002-06-12 22:27:18 +00:00
|
|
|
@convertfunc:
|
|
|
|
@queryfunc:
|
2002-08-31 18:17:02 +00:00
|
|
|
@formatsfunc:
|
|
|
|
@querytypefunc:
|
2002-06-12 22:27:18 +00:00
|
|
|
@intconnfunc:
|
2002-01-15 00:41:22 +00:00
|
|
|
@bufferpoolfunc:
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_DIRECTION ##### -->
|
|
|
|
<para>
|
|
|
|
Get the direction of the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the realpad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_CAPS ##### -->
|
|
|
|
<para>
|
|
|
|
Get the caps of the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_PEER ##### -->
|
|
|
|
<para>
|
|
|
|
Get the peer element of the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_CHAINFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the chain function of the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_FILTER ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Get the filter from the pad
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@pad: the pad to query
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_APPFILTER ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Get the application filter for this pad
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@pad: the pad to query
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_GETFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get get getfunction of the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_BUFFERPOOLFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the bufferpoolfunction from the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_CHAINHANDLER ##### -->
|
|
|
|
<para>
|
|
|
|
Get the eventhandler function from the real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_EVENTFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the event function of this real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_EVENTHANDLER ##### -->
|
|
|
|
<para>
|
|
|
|
Get the eventhandler function of this real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_GETHANDLER ##### -->
|
|
|
|
<para>
|
|
|
|
Get the gethandler function of this real pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_CONNECTFUNC ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Get the connect function of the pad
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@pad: the pad to query
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_GETCAPSFUNC ##### -->
|
|
|
|
<para>
|
2002-03-31 14:00:33 +00:00
|
|
|
Get the getcaps function of this pad
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2002-03-31 14:00:33 +00:00
|
|
|
@pad: the pad to query
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
<!-- ##### MACRO GST_RPAD_CONVERTFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the convert function of this pad
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the pad to query
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_INTCONNFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the internal connection function of this pad
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the pad to query
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_RPAD_QUERYFUNC ##### -->
|
|
|
|
<para>
|
|
|
|
Get the query function of this pad
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the pad to query
|
|
|
|
|
|
|
|
|
2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### MACRO GST_GPAD_REALPAD ##### -->
|
|
|
|
<para>
|
|
|
|
Get the real pad of this ghost pad.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pad: the real pad to query.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GstGhostPad ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_ghost_pad_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@name:
|
|
|
|
@pad:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|