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_NAME ##### -->
21 Get the name of the pad.
24 @pad: the pad to query
27 <!-- ##### MACRO GST_PAD_ELEMENT_PRIVATE ##### -->
29 Get the private data set by the element that owns the pad.
32 @pad: the pad to query
35 <!-- ##### MACRO GST_PAD_PARENT ##### -->
37 Get the parent element of this pad.
40 @pad: the pad to query
43 <!-- ##### MACRO GST_PAD_PADTEMPLATE ##### -->
45 Get the padtemplate that was used to create this pad. NULL if no padtemplate
49 @pad: the pad to query
52 <!-- ##### MACRO GST_PAD_REALIZE ##### -->
54 Return the real pad of this pad.
57 @pad: the pad to query
60 <!-- ##### MACRO GST_PAD_DIRECTION ##### -->
62 Get the pad direction.
65 @pad: the pad to query
68 <!-- ##### MACRO GST_PAD_CAPS ##### -->
70 Get the capabilities of a pad.
73 @pad: the pad to query
76 <!-- ##### MACRO GST_PAD_PEER ##### -->
78 Get the peerpad of this pad.
81 @pad: the pad to query
84 <!-- ##### MACRO GST_PAD_CONNECTED ##### -->
86 Is this pad connected.
89 @pad: the pad to check
92 <!-- ##### MACRO GST_PAD_CAN_PULL ##### -->
94 Can this pad be used to pull a buffer.
97 @pad: the pad to check
100 <!-- ##### STRUCT GstPad ##### -->
106 <!-- ##### USER_FUNCTION GstPadChainFunction ##### -->
108 The function that will be called when chaining buffers.
111 @pad: the pad that performed the chain
112 @buf: the buffer that is chained
115 <!-- ##### USER_FUNCTION GstPadGetFunction ##### -->
117 The function that will be called when pulling a buffer.
120 @pad: the pad to get a buffer from
121 @Returns: a #GstBuffer
124 <!-- ##### USER_FUNCTION GstPadGetRegionFunction ##### -->
126 The function that will be called when pulling a region buffer.
129 @pad: the pad to get a buffer from
130 @offset: the offset of the region to get
131 @size: the size of the region to get
132 @Returns: a #GstBuffer
135 <!-- ##### USER_FUNCTION GstPadQoSFunction ##### -->
137 The function that will be called when a QoS message is sent.
140 @pad: the pad that sent the QoS message
141 @qos_message: the message
144 <!-- ##### USER_FUNCTION GstPadEOSFunction ##### -->
146 The function that will be called in an EOS case.
149 @pad: the pad that needs to be set to EOS state
150 @Returns: TRUE if EOS was successful, FALSE otherwise
153 <!-- ##### USER_FUNCTION GstPadPushFunction ##### -->
156 The function that will be called when pushing a buffers.
159 @pad: the pad to push
160 @buf: a GstBuffer to push
163 <!-- ##### USER_FUNCTION GstPadPullFunction ##### -->
165 The function that will be called when pulling buffers.
168 @pad: the pad to pull
169 @Returns: a GstBuffer
172 <!-- ##### USER_FUNCTION GstPadPullRegionFunction ##### -->
174 The function that will be called when pulling a region buffer.
177 @pad: the pad to pull
178 @offset: the offset of the region to pull
179 @size: the size of the region to pull
180 @Returns: a GstBuffer
183 <!-- ##### ENUM GstPadDirection ##### -->
185 The direction this pad is.
188 @GST_PAD_UNKNOWN: direction is unknown
189 @GST_PAD_SRC: this is a source pad
190 @GST_PAD_SINK: this is a sink pad
192 <!-- ##### ENUM GstPadFlags ##### -->
197 @GST_PAD_DISABLED: the pad is disabled
198 @GST_PAD_EOS: the pad is in end of stream state
199 @GST_PAD_FLAG_LAST: subclasses can use this number to enumerate their flags
201 <!-- ##### FUNCTION gst_pad_new ##### -->
211 <!-- ##### MACRO gst_pad_destroy ##### -->
216 @pad: the pad to destroy
219 <!-- ##### FUNCTION gst_pad_new_from_template ##### -->
227 <!-- # Unused Parameters # -->
231 <!-- ##### FUNCTION gst_pad_get_direction ##### -->
240 <!-- ##### FUNCTION gst_pad_set_chain_function ##### -->
249 <!-- ##### FUNCTION gst_pad_set_get_function ##### -->
258 <!-- ##### FUNCTION gst_pad_set_getregion_function ##### -->
267 <!-- ##### FUNCTION gst_pad_set_qos_function ##### -->
276 <!-- ##### FUNCTION gst_pad_set_eos_function ##### -->
285 <!-- ##### FUNCTION gst_pad_set_caps_list ##### -->
294 <!-- ##### FUNCTION gst_pad_get_caps_list ##### -->
303 <!-- ##### FUNCTION gst_pad_get_caps_by_name ##### -->
313 <!-- ##### FUNCTION gst_pad_check_compatibility ##### -->
323 <!-- ##### FUNCTION gst_pad_set_name ##### -->
332 <!-- ##### FUNCTION gst_pad_get_name ##### -->
341 <!-- ##### FUNCTION gst_pad_set_element_private ##### -->
350 <!-- ##### FUNCTION gst_pad_get_element_private ##### -->
359 <!-- ##### FUNCTION gst_pad_set_parent ##### -->
368 <!-- ##### FUNCTION gst_pad_get_parent ##### -->
377 <!-- ##### FUNCTION gst_pad_add_ghost_pad ##### -->
386 <!-- ##### FUNCTION gst_pad_remove_ghost_pad ##### -->
395 <!-- ##### FUNCTION gst_pad_get_ghost_pad_list ##### -->
404 <!-- ##### FUNCTION gst_pad_get_peer ##### -->
413 <!-- ##### FUNCTION gst_pad_connect ##### -->
422 <!-- ##### FUNCTION gst_pad_disconnect ##### -->
431 <!-- ##### FUNCTION gst_pad_push ##### -->
440 <!-- ##### FUNCTION gst_pad_pull ##### -->
449 <!-- ##### FUNCTION gst_pad_pull_region ##### -->
460 <!-- ##### MACRO gst_pad_pullregion ##### -->
470 <!-- ##### FUNCTION gst_pad_select ##### -->
480 <!-- ##### FUNCTION gst_pad_set_eos ##### -->
489 <!-- ##### FUNCTION gst_pad_handle_qos ##### -->
498 <!-- ##### MACRO gst_pad_eos ##### -->
500 Call the EOS function of the pad
503 @pad: the pad to call the eos function of.
506 <!-- ##### FUNCTION gst_pad_load_and_connect ##### -->
513 <!-- # Unused Parameters # -->
518 <!-- ##### STRUCT GstRealPad ##### -->
539 <!-- ##### MACRO GST_RPAD_DIRECTION ##### -->
541 Get the direction of the real pad.
544 @pad: the realpad to query.
547 <!-- ##### MACRO GST_RPAD_CAPS ##### -->
549 Get the caps of the real pad.
552 @pad: the real pad to query.
555 <!-- ##### MACRO GST_RPAD_PEER ##### -->
557 Get the peer element of the real pad.
560 @pad: the real pad to query.
563 <!-- ##### MACRO GST_RPAD_BUFPEN ##### -->
565 Get the bufpen of the real pad.
568 @pad: the real pad to query.
571 <!-- ##### MACRO GST_RPAD_CHAINFUNC ##### -->
573 Get the chain function of the real pad.
576 @pad: the real pad to query.
579 <!-- ##### MACRO GST_RPAD_GETFUNC ##### -->
581 Get get getfunction of the real pad.
584 @pad: the real pad to query.
587 <!-- ##### MACRO GST_RPAD_GETREGIONFUNC ##### -->
589 Get the getregion function of the real pad.
592 @pad: the real pad to query.
595 <!-- ##### MACRO GST_RPAD_PUSHFUNC ##### -->
597 Get the pushfunction of the real pad.
600 @pad: the real pad to query.
603 <!-- ##### MACRO GST_RPAD_PULLFUNC ##### -->
605 Get the pullfunction of the real pad.
608 @pad: the real pad to query.
611 <!-- ##### MACRO GST_RPAD_PULLREGIONFUNC ##### -->
613 Get the pullregion function of the real pad.
616 @pad: the real pad to query.
619 <!-- ##### MACRO GST_RPAD_QOSFUNC ##### -->
621 Get the QoS function of the real pad.
624 @pad: the real pad to query.
627 <!-- ##### MACRO GST_RPAD_EOSFUNC ##### -->
629 Get the EOS function of the real pad.
632 @pad: the real pad to query.
635 <!-- ##### MACRO GST_GPAD_REALPAD ##### -->
637 Get the real pad of this ghost pad.
640 @pad: the real pad to query.
643 <!-- ##### STRUCT GstGhostPad ##### -->
651 <!-- ##### FUNCTION gst_ghost_pad_new ##### -->
661 <!-- ##### TYPEDEF GstPadFactoryEntry ##### -->
663 Defines an entry for a padfactory.
667 <!-- ##### TYPEDEF GstPadFactory[] ##### -->
673 <!-- ##### MACRO GST_PAD_FACTORY_SOMETIMES ##### -->
675 Indicate that this pad will become available depending
676 on the media type. Use this in the factory definition.
681 <!-- ##### MACRO GST_PAD_FACTORY_ALWAYS ##### -->
683 Indicate that this pad will always be available.
684 Use this in the factory definition.
689 <!-- ##### MACRO GST_PAD_FACTORY_REQUEST ##### -->
691 Indicates that this pad will be available on request. Use
692 this in the factory definition.
697 <!-- ##### MACRO GST_PAD_FACTORY_SINK ##### -->
699 Indicates a sinkpad for the padfactory.
704 <!-- ##### MACRO GST_PAD_FACTORY_SRC ##### -->
706 Indicates a srcpad for the padfactory.
711 <!-- ##### MACRO GST_PAD_FACTORY_CAPS ##### -->
713 Starts the declaration of a the capabilities for this padtemplate.
716 @a...: a capability factory
719 <!-- ##### ENUM GstPadPresence ##### -->
721 Indicates when this pad will become available.
724 @GST_PAD_ALWAYS: the pad is always available
725 @GST_PAD_SOMETIMES: the pad will become available depending on the media stream
728 <!-- ##### STRUCT GstPadTemplate ##### -->
739 <!-- ##### FUNCTION gst_padtemplate_new ##### -->
748 <!-- ##### FUNCTION gst_padtemplate_create ##### -->
760 <!-- ##### FUNCTION gst_padtemplate_load_thyself ##### -->
769 <!-- ##### FUNCTION gst_padtemplate_save_thyself ##### -->
777 <!-- # Unused Parameters # -->