1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Dynamically register new formats
7 <!-- ##### SECTION Long_Description ##### -->
9 GstFormats functions are used to register a new format to the gstreamer core.
10 formats can be used to perform seeking or conversions/query operations.
13 <!-- ##### SECTION See_Also ##### -->
18 <!-- ##### ENUM GstFormat ##### -->
20 Standard predefined formats
23 @GST_FORMAT_UNDEFINED: undefined format
24 @GST_FORMAT_DEFAULT: the default format of the pad/element
25 @GST_FORMAT_BYTES: bytes
26 @GST_FORMAT_TIME: time in nanoseconds
27 @GST_FORMAT_BUFFERS: buffers
28 @GST_FORMAT_PERCENT: percentage of stream
30 <!-- ##### MACRO GST_FORMAT_PERCENT_MAX ##### -->
32 The PERCENT format is between 0 and this value
37 <!-- ##### MACRO GST_FORMAT_PERCENT_SCALE ##### -->
39 The value used to scale down the reported PERCENT format value to
45 <!-- ##### STRUCT GstFormatDefinition ##### -->
50 @value: The unique id of this format
51 @nick: A short nick of the format
52 @description: A longer description of the format
54 <!-- ##### MACRO GST_FORMATS_FUNCTION ##### -->
56 A convenience function to define a function that returns an array
60 @type: The type of the first argument of the function
61 @functionname: The name of the function
62 @...: comma separated list of functions closed with 0
65 <!-- ##### FUNCTION gst_format_register ##### -->
75 <!-- ##### FUNCTION gst_format_get_by_nick ##### -->
84 <!-- ##### FUNCTION gst_formats_contains ##### -->
94 <!-- ##### FUNCTION gst_format_get_details ##### -->
103 <!-- ##### FUNCTION gst_format_get_definitions ##### -->