| Top |  |  |  |  | 
| enum | GstFormat | 
| #define | GST_FORMAT_PERCENT_MAX | 
| #define | GST_FORMAT_PERCENT_SCALE | 
| struct | GstFormatDefinition | 
GstFormats functions are used to register a new format to the gstreamer core. Formats can be used to perform seeking or conversions/query operations.
const gchar *
gst_format_get_name (GstFormat format);
Get a printable name for the given format. Do not modify or free.
GQuark
gst_format_to_quark (GstFormat format);
Get the unique quark for the given format.
GstFormat gst_format_register (const gchar *nick,const gchar *description);
Create a new GstFormat based on the nick or return an already registered format with that nick.
GstFormat
gst_format_get_by_nick (const gchar *nick);
Return the format registered with the given nick.
gboolean gst_formats_contains (const GstFormat *formats,GstFormat format);
See if the given format is inside the format array.
const GstFormatDefinition *
gst_format_get_details (GstFormat format);
Get details about the given format.
GstIterator *
gst_format_iterate_definitions (void);
Iterate all the registered formats. The format definition is read only.
Standard predefined formats
| undefined format | ||
| the default format of the pad/element. This can be
   samples for raw audio, frames/fields for raw video (some, but not all,
   elements support this; use  | ||
| bytes | ||
| time in nanoseconds | ||
| buffers (few, if any, elements implement this as of May 2009) | ||
| percentage of stream (few, if any, elements implement this as of May 2009) | 
#define GST_FORMAT_PERCENT_MAX G_GINT64_CONSTANT (1000000)
The PERCENT format is between 0 and this value
#define GST_FORMAT_PERCENT_SCALE G_GINT64_CONSTANT (10000)
The value used to scale down the reported PERCENT format value to its real value.