Next: GstGhostPad, Previous: GstFilter, Up: Top
Dynamically register new data formats
GstFormats functions are used to register a new format to the gstreamer core. Formats can be used to perform seeking or conversions/query operations.
<gst-format*>) (ret mchars)Get a printable name for the given format. Do not modify or free.
- format
- a
<gst-format>- ret
- a reference to the static name of the format or NULL if the format is unknown.
<gst-format*>) (ret unsigned-int)Get the unique quark for the given format.
- format
- a
<gst-format>- ret
- the quark associated with the format or 0 if the format is unknown.
mchars) (description mchars) (ret <gst-format>)Create a new GstFormat based on the nick or return an already registered format with that nick.
- nick
- The nick of the new format
- description
- The description of the new format
- ret
- A new GstFormat or an already registered format with the same nick. MT safe.
mchars) (ret <gst-format>)Return the format registered with the given nick.
- nick
- The nick of the format
- ret
- The format with nick or GST_FORMAT_UNDEFINED if the format was not registered.
<gst-format*>) (format <gst-format>) (ret bool)See if the given format is inside the format array.
- formats
- The format array to search
- format
- the format to find
- ret
- TRUE if the format is found inside the array