Name
GstCaps -- Capabilities of pads
Synopsis
#include <gst/gst.h>
struct GstCaps;
typedef GstCapsFactoryEntry;
typedef GstCapsFactory[];
GstCaps* gst_caps_new (const gchar *name,
const gchar *mime);
GstCaps* gst_caps_new_with_props (const gchar *name,
const gchar *mime,
GstProps *props);
GstCaps* gst_caps_register (GstCapsFactory *factory);
GstCaps* gst_caps_register_count (GstCapsFactory *factory,
guint *counter);
const gchar* gst_caps_get_name (GstCaps *caps);
void gst_caps_set_mime (GstCaps *caps,
const gchar *mime);
void gst_caps_set_type_id (GstCaps *caps,
guint16 typeid);
guint16 gst_caps_get_type_id (GstCaps *caps);
const gchar* gst_caps_get_mime (GstCaps *caps);
void gst_caps_set_name (GstCaps *caps,
const gchar *name);
GstCaps* gst_caps_set_props (GstCaps *caps,
GstProps *props);
GstProps* gst_caps_get_props (GstCaps *caps);
gboolean gst_caps_check_compatibility (GstCaps *fromcaps,
GstCaps *tocaps);
gboolean gst_caps_list_check_compatibility
(GList *fromcaps,
GList *tocaps);
xmlNodePtr gst_caps_save_thyself (GstCaps *caps,
xmlNodePtr parent);
GstCaps* gst_caps_load_thyself (xmlNodePtr parent);
|
Description
GstCaps is used to attach capabilities to a pad. Capabilities are made of
a mime-type and a set of properties.
Details
struct GstCaps
struct GstCaps {
gchar *name; /* the name of this caps */
guint16 id; /* type id (major type) */
GstProps *properties; /* properties for this capability */
}; |
GstCapsFactoryEntry
typedef gpointer GstCapsFactoryEntry; |
GstCapsFactory[]
typedef GstCapsFactoryEntry GstCapsFactory[]; |
gst_caps_new ()
GstCaps* gst_caps_new (const gchar *name,
const gchar *mime); |
Create a new capability with the given mime type.
gst_caps_new_with_props ()
GstCaps* gst_caps_new_with_props (const gchar *name,
const gchar *mime,
GstProps *props); |
Create a new capability with the given mime type and the given properties.
gst_caps_register ()
GstCaps* gst_caps_register (GstCapsFactory *factory); |
Register the factory.
gst_caps_register_count ()
GstCaps* gst_caps_register_count (GstCapsFactory *factory,
guint *counter); |
Register the factory.
gst_caps_get_name ()
const gchar* gst_caps_get_name (GstCaps *caps); |
Get the name of a GstCaps structure.
gst_caps_set_mime ()
void gst_caps_set_mime (GstCaps *caps,
const gchar *mime); |
Set the mime type of the caps as a string.
gst_caps_set_type_id ()
void gst_caps_set_type_id (GstCaps *caps,
guint16 typeid); |
Set the type id of the caps.
gst_caps_get_type_id ()
guint16 gst_caps_get_type_id (GstCaps *caps); |
Get the type id of the caps.
gst_caps_get_mime ()
const gchar* gst_caps_get_mime (GstCaps *caps); |
Get the mime type of the caps as a string.
gst_caps_set_name ()
void gst_caps_set_name (GstCaps *caps,
const gchar *name); |
Set the name of a caps.
gst_caps_set_props ()
Set the properties to the given caps.
gst_caps_get_props ()
Get the properties of the given caps.
gst_caps_check_compatibility ()
gboolean gst_caps_check_compatibility (GstCaps *fromcaps,
GstCaps *tocaps); |
Checks whether two capabilities are compatible.
gst_caps_list_check_compatibility ()
gboolean gst_caps_list_check_compatibility
(GList *fromcaps,
GList *tocaps); |
Checks whether two capability lists are compatible.
gst_caps_save_thyself ()
xmlNodePtr gst_caps_save_thyself (GstCaps *caps,
xmlNodePtr parent); |
Save the capability into an XML representation.
gst_caps_load_thyself ()
GstCaps* gst_caps_load_thyself (xmlNodePtr parent); |
Load a new caps from the XML representation.