Details
GST_PAD_CONNECTED()
#define GST_PAD_CONNECTED(pad) ((pad) && (pad)->peer != NULL) |
Is this pad connected.
GST_PAD_CAN_PULL()
#define GST_PAD_CAN_PULL(pad) ((pad) && (pad)->pullfunc != NULL) |
Can this pad be used to pull a buffer.
GstPadChainFunction ()
The function that will be called when chaining buffers.
GstPadGetFunction ()
The function that will be called when pulling a buffer.
GstPadGetRegionFunction ()
GstBuffer* (*GstPadGetRegionFunction) (GstPad *pad,
gulong offset,
gulong size); |
The function that will be called when pulling a region buffer.
GstPadQoSFunction ()
void (*GstPadQoSFunction) (GstPad *pad,
glong qos_message); |
The function that will be called when a QoS message is sent.
GstPadEOSFunction ()
gboolean (*GstPadEOSFunction) (GstPad *pad); |
The function that will be called in an EOS case.
GstPadPushFunction ()
The function that will be called when pushing a buffers.
GstPadPullFunction ()
The function that will be called when pulling buffers.
GstPadPullRegionFunction ()
GstBuffer* (*GstPadPullRegionFunction) (GstPad *pad,
gulong offset,
gulong size); |
The function that will be called when pulling a region buffer.
enum GstPadDirection
typedef enum {
GST_PAD_UNKNOWN,
GST_PAD_SRC,
GST_PAD_SINK,
} GstPadDirection; |
The direction this pad is.
enum GstPadFlags
typedef enum {
GST_PAD_DISABLED = GST_OBJECT_FLAG_LAST,
GST_PAD_EOS,
GST_PAD_FLAG_LAST = GST_OBJECT_FLAG_LAST + 4,
} GstPadFlags; |
Flags for the pad.
gst_pad_new ()
Create a new pad with given name.
gst_pad_destroy()
#define gst_pad_destroy(pad) gst_object_destroy (GST_OBJECT (pad)) |
Destroy the pad.
gst_pad_new_from_template ()
Create a new pad with given name from the given template.
gst_pad_get_direction ()
Get the direction of the pad.
gst_pad_set_chain_function ()
Set the given chain function for the pad.
gst_pad_set_get_function ()
Set the given get function for the pad.
gst_pad_set_getregion_function ()
Set the given getregion function for the pad.
gst_pad_set_qos_function ()
Set the given qos function for the pad.
gst_pad_set_eos_function ()
Set the given EOS function for the pad.
gst_pad_set_caps_list ()
void gst_pad_set_caps_list (GstPad *pad,
GList *caps); |
Set the capabilities of this pad.
gst_pad_get_caps_list ()
GList* gst_pad_get_caps_list (GstPad *pad); |
Get the capabilities of this pad.
gst_pad_get_caps_by_name ()
Get the capabilities with the given name from this pad.
gst_pad_check_compatibility ()
gboolean gst_pad_check_compatibility (GstPad *srcpad,
GstPad *sinkpad); |
Check if two pads have compatible capabilities.
gst_pad_set_name ()
void gst_pad_set_name (GstPad *pad,
const gchar *name); |
Set the name of a pad.
gst_pad_get_name ()
const gchar* gst_pad_get_name (GstPad *pad); |
Get the name of a pad.
gst_pad_set_parent ()
Sets the parent object of a pad.
gst_pad_get_parent ()
Get the parent object of this pad.
gst_pad_add_ghost_parent ()
Add a ghost parent object to a pad.
gst_pad_remove_ghost_parent ()
Remove a ghost parent object from a pad.
gst_pad_get_ghost_parents ()
GList* gst_pad_get_ghost_parents (GstPad *pad); |
Get the ghost parents of this pad.
gst_pad_get_peer ()
Get the peer pad of this pad.
gst_pad_connect ()
Connects the source pad to the sink pad.
gst_pad_disconnect ()
Disconnects the source pad from the sink pad.
gst_pad_pullregion()
#define gst_pad_pullregion(pad,offset,size) |
gst_pad_set_eos ()
gboolean gst_pad_set_eos (GstPad *pad); |
Sets the given pad to the EOS state.
gst_pad_eos_func ()
gboolean gst_pad_eos_func (GstPad *pad); |
gst_pad_handle_qos ()
void gst_pad_handle_qos (GstPad *pad,
glong qos_message); |
Pass the qos message downstream.
gst_pad_eos()
#define gst_pad_eos(pad) ((pad)->peer->eosfunc((pad)->peer)) |
gst_pad_save_thyself ()
xmlNodePtr gst_pad_save_thyself (GstPad *pad,
xmlNodePtr parent); |
Saves the pad into an xml representation
gst_pad_load_and_connect ()
void gst_pad_load_and_connect (xmlNodePtr parent,
GstObject *element,
GHashTable *elements); |
Read the pad definition from the XML node and connect the given pad
in element to a pad of an element in the hashtable.
GstPadFactoryEntry
typedef gpointer GstPadFactoryEntry; |
Defines an entry for a padfactory.
GstPadFactory[]
typedef GstPadFactoryEntry GstPadFactory[]; |
The padfactory.
GST_PAD_FACTORY_SOMETIMES
#define GST_PAD_FACTORY_SOMETIMES GINT_TO_POINTER(GST_PAD_SOMETIMES) |
Indicate that this pad will become available depending
on the media type. Use this in the factory definition.
GST_PAD_FACTORY_ALWAYS
#define GST_PAD_FACTORY_ALWAYS GINT_TO_POINTER(GST_PAD_ALWAYS) |
Indicate that this pad will always be available.
Use this in the factory definition.
GST_PAD_FACTORY_SINK
#define GST_PAD_FACTORY_SINK GINT_TO_POINTER(GST_PAD_SINK) |
Indicates a sinkpad for the padfactory.
GST_PAD_FACTORY_SRC
#define GST_PAD_FACTORY_SRC GINT_TO_POINTER(GST_PAD_SRC) |
Indicates a srcpad for the padfactory.
GST_PAD_FACTORY_CAPS()
#define GST_PAD_FACTORY_CAPS(a...) GINT_TO_POINTER(1),##a,NULL |
Starts the declaration of a the capabilities for this padtemplate.
enum GstPadPresence
typedef enum {
GST_PAD_ALWAYS,
GST_PAD_SOMETIMES,
} GstPadPresence; |
Indicates when this pad will become available.
struct GstPadTemplate
struct GstPadTemplate {
GstObject object;
gchar *name_template;
GstPadDirection direction;
GstPadPresence presence;
GList *caps;
}; |
gst_padtemplate_new ()
Creates a new padtemplate from the factory.
gst_padtemplate_create ()
Creates a new padtemplate from the given arguments.
gst_padtemplate_load_thyself ()
Loads a padtemplate from the XML tree.
gst_padtemplate_save_thyself ()
xmlNodePtr gst_padtemplate_save_thyself (GstPadTemplate *pad,
xmlNodePtr parent); |
Saves the padtemplate into XML.