1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 The connection between Elements
7 <!-- ##### SECTION Long_Description ##### -->
9 Elements are connected to each other via "pads", which are extremely light-weight generic
14 <!-- ##### SECTION See_Also ##### -->
19 <!-- ##### MACRO GST_PAD_CONNECTED ##### -->
24 @pad: the pad to check
27 <!-- ##### MACRO GST_PAD_CAN_PULL ##### -->
29 can this pad be used to pull a buffer
32 @pad: the pad to check
35 <!-- ##### STRUCT GstPad ##### -->
41 <!-- ##### USER_FUNCTION GstPadChainFunction ##### -->
43 The function that will be called when chaining buffers.
46 @pad: the pad that performed the chain
47 @buf: the buffer that is chained
50 <!-- ##### USER_FUNCTION GstPadGetFunction ##### -->
52 The function that will be called when pulling a buffer.
55 @pad: the pad to get a buffer from
59 <!-- ##### USER_FUNCTION GstPadGetRegionFunction ##### -->
61 The function that will be called when pulling a region buffer.
64 @pad: the pad to get a buffer from
65 @offset: the offset of the region to get
66 @size: the size of the region to get
70 <!-- ##### USER_FUNCTION GstPadQoSFunction ##### -->
72 the function that will be called when a QoS message is sent.
75 @pad: the pad that sent the QoS message
76 @qos_message: the message
79 <!-- ##### USER_FUNCTION GstPadEOSFunction ##### -->
88 <!-- ##### USER_FUNCTION GstPadPushFunction ##### -->
91 The function that will be called when pushing a buffers.
95 @buf: a GstBuffer to push
98 <!-- ##### USER_FUNCTION GstPadPullFunction ##### -->
100 The function that will be called when pulling buffers.
103 @pad: the pad to pull
104 @Returns: a GstBuffer
107 <!-- ##### USER_FUNCTION GstPadPullRegionFunction ##### -->
109 The function that will be called when pulling a region buffer.
112 @pad: the pad to pull
113 @offset: the offset of the region to pull
114 @size: the size of the region to pull
115 @Returns: a GstBuffer
118 <!-- ##### ENUM GstPadDirection ##### -->
120 The direction this pad is
123 @GST_PAD_UNKNOWN: direction is unknown
124 @GST_PAD_SRC: this is a source pad
125 @GST_PAD_SINK: this is a sink pad
127 <!-- ##### ENUM GstPadFlags ##### -->
132 @GST_PAD_DISABLED: the pad is disabled
133 @GST_PAD_EOS: the pad is in end of stream state
134 @GST_PAD_FLAG_LAST: subclasses can use this number to enumerate their flags
136 <!-- ##### FUNCTION gst_pad_new ##### -->
146 <!-- ##### MACRO gst_pad_destroy ##### -->
151 @pad: the pad to destroy
154 <!-- ##### FUNCTION gst_pad_new_from_template ##### -->
164 <!-- ##### FUNCTION gst_pad_get_direction ##### -->
173 <!-- ##### FUNCTION gst_pad_set_chain_function ##### -->
182 <!-- ##### FUNCTION gst_pad_set_get_function ##### -->
191 <!-- ##### FUNCTION gst_pad_set_getregion_function ##### -->
200 <!-- ##### FUNCTION gst_pad_set_qos_function ##### -->
209 <!-- ##### FUNCTION gst_pad_set_eos_function ##### -->
218 <!-- ##### FUNCTION gst_pad_set_caps_list ##### -->
227 <!-- ##### FUNCTION gst_pad_get_caps_list ##### -->
236 <!-- ##### FUNCTION gst_pad_get_caps_by_name ##### -->
246 <!-- ##### FUNCTION gst_pad_check_compatibility ##### -->
256 <!-- ##### FUNCTION gst_pad_set_name ##### -->
265 <!-- ##### FUNCTION gst_pad_get_name ##### -->
274 <!-- ##### FUNCTION gst_pad_set_parent ##### -->
283 <!-- ##### FUNCTION gst_pad_get_parent ##### -->
292 <!-- ##### FUNCTION gst_pad_add_ghost_parent ##### -->
301 <!-- ##### FUNCTION gst_pad_remove_ghost_parent ##### -->
310 <!-- ##### FUNCTION gst_pad_get_ghost_parents ##### -->
319 <!-- ##### FUNCTION gst_pad_get_peer ##### -->
328 <!-- ##### FUNCTION gst_pad_connect ##### -->
337 <!-- ##### FUNCTION gst_pad_disconnect ##### -->
346 <!-- ##### FUNCTION gst_pad_push ##### -->
355 <!-- ##### FUNCTION gst_pad_pull ##### -->
364 <!-- ##### FUNCTION gst_pad_pull_region ##### -->
375 <!-- ##### MACRO gst_pad_pullregion ##### -->
385 <!-- ##### FUNCTION gst_pad_handle_qos ##### -->
394 <!-- ##### FUNCTION gst_pad_set_eos ##### -->
403 <!-- ##### MACRO gst_pad_eos ##### -->
411 <!-- ##### FUNCTION gst_pad_save_thyself ##### -->
421 <!-- ##### FUNCTION gst_pad_load_and_connect ##### -->
431 <!-- ##### TYPEDEF GstPadFactoryEntry ##### -->
433 Defines an entry for a padfactory
437 <!-- ##### TYPEDEF GstPadFactory[] ##### -->
443 <!-- ##### MACRO GST_PAD_FACTORY_SOMETIMES ##### -->
445 Indicate that this pad will become available depending
446 on the media type. Use this in the factory definition
451 <!-- ##### MACRO GST_PAD_FACTORY_ALWAYS ##### -->
453 Indicate that this pad will always be available.
454 Use this in the factory definition
459 <!-- ##### MACRO GST_PAD_FACTORY_SINK ##### -->
461 Indicates a sinkpad for the padfactory.
466 <!-- ##### MACRO GST_PAD_FACTORY_SRC ##### -->
468 Indicates a srcpad for the padfactory.
473 <!-- ##### MACRO GST_PAD_FACTORY_CAPS ##### -->
475 Starts the declaration of a the capabilities for this padtemplate
478 @a...: a capability factory
481 <!-- ##### ENUM GstPadPresence ##### -->
483 Indicates when this pad will become available
486 @GST_PAD_ALWAYS: the pad is always available
487 @GST_PAD_SOMETIMES: the pad will become available depending on the media stream
489 <!-- ##### STRUCT GstPadTemplate ##### -->
500 <!-- ##### FUNCTION gst_padtemplate_new ##### -->
509 <!-- ##### FUNCTION gst_padtemplate_create ##### -->
521 <!-- ##### FUNCTION gst_padtemplate_load_thyself ##### -->
530 <!-- ##### FUNCTION gst_padtemplate_save_thyself ##### -->