2002-12-14 13:03:41 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstFormat
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
Dynamically register new formats
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
GstFormats functions are used to register a new format to the gstreamer core.
|
|
|
|
formats can be used to perform seeking or conversions/query operations.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2003-01-02 18:56:09 +00:00
|
|
|
#GstPad, #GstElement
|
2002-12-14 13:03:41 +00:00
|
|
|
</para>
|
|
|
|
|
2005-08-05 10:02:44 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
<!-- ##### ENUM GstFormat ##### -->
|
|
|
|
<para>
|
|
|
|
Standard predefined formats
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@GST_FORMAT_UNDEFINED: undefined format
|
|
|
|
@GST_FORMAT_DEFAULT: the default format of the pad/element
|
|
|
|
@GST_FORMAT_BYTES: bytes
|
|
|
|
@GST_FORMAT_TIME: time in nanoseconds
|
|
|
|
@GST_FORMAT_BUFFERS: buffers
|
|
|
|
@GST_FORMAT_PERCENT: percentage of stream
|
|
|
|
|
2003-01-02 18:56:09 +00:00
|
|
|
<!-- ##### MACRO GST_FORMAT_PERCENT_MAX ##### -->
|
|
|
|
<para>
|
|
|
|
The PERCENT format is between 0 and this value
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO GST_FORMAT_PERCENT_SCALE ##### -->
|
|
|
|
<para>
|
|
|
|
The value used to scale down the reported PERCENT format value to
|
|
|
|
its real value.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-12-14 13:03:41 +00:00
|
|
|
<!-- ##### STRUCT GstFormatDefinition ##### -->
|
|
|
|
<para>
|
|
|
|
A format definition
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@value: The unique id of this format
|
|
|
|
@nick: A short nick of the format
|
|
|
|
@description: A longer description of the format
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_format_register ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@nick:
|
|
|
|
@description:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_format_get_by_nick ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@nick:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-01-02 18:56:09 +00:00
|
|
|
<!-- ##### FUNCTION gst_formats_contains ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@formats:
|
|
|
|
@format:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2002-12-14 13:03:41 +00:00
|
|
|
<!-- ##### FUNCTION gst_format_get_details ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@format:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2005-08-26 11:56:11 +00:00
|
|
|
<!-- ##### FUNCTION gst_format_iterate_definitions ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|