GstFormat
GstFormats functions are used to register a new format to the gstreamer
core. Formats can be used to perform seeking or conversions/query
operations.
GstFormat
gst_format_get_by_nick (const gchar * nick)
Return the format registered with the given nick.
Parameters:
nick
–
The nick of the format
Returns
–
The format with nick or GST_FORMAT_UNDEFINED
if the format was not registered.
Gst.prototype.format_get_by_nick
function Gst.prototype.format_get_by_nick(nick: String): {
}
Return the format registered with the given nick.
The format with nick or GST_FORMAT_UNDEFINED
if the format was not registered.
Gst.format_get_by_nick
def Gst.format_get_by_nick (nick):
Return the format registered with the given nick.
The format with nick or GST_FORMAT_UNDEFINED
if the format was not registered.
const gchar *
gst_format_get_name (GstFormat format)
Get a printable name for the given format. Do not modify or free.
a reference to the static name of the format
or NULL if the format is unknown.
Gst.prototype.format_get_name
function Gst.prototype.format_get_name(format: Gst.Format): {
}
Get a printable name for the given format. Do not modify or free.
a reference to the static name of the format
or null if the format is unknown.
Gst.format_get_name
def Gst.format_get_name (format):
Get a printable name for the given format. Do not modify or free.
a reference to the static name of the format
or None if the format is unknown.
GstIterator *
gst_format_iterate_definitions ()
Iterate all the registered formats. The format definition is read
only.
Gst.prototype.format_iterate_definitions
function Gst.prototype.format_iterate_definitions(): {
}
Iterate all the registered formats. The format definition is read
only.
Gst.format_iterate_definitions
def Gst.format_iterate_definitions ():
Iterate all the registered formats. The format definition is read
only.
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.
Parameters:
nick
–
The nick of the new format
description
–
The description of the new format
Returns
–
A new GstFormat or an already registered format
with the same nick.
MT safe.
Gst.prototype.format_register
function Gst.prototype.format_register(nick: String, description: String): {
}
Create a new GstFormat based on the nick or return an
already registered format with that nick.
Parameters:
The nick of the new format
The description of the new format
A new GstFormat or an already registered format
with the same nick.
MT safe.
Gst.format_register
def Gst.format_register (nick, description):
Create a new GstFormat based on the nick or return an
already registered format with that nick.
Parameters:
The nick of the new format
The description of the new format
A new GstFormat or an already registered format
with the same nick.
MT safe.
GQuark
gst_format_to_quark (GstFormat format)
Get the unique quark for the given format.
Returns
–
the quark associated with the format or 0 if the format
is unknown.
Gst.prototype.format_to_quark
function Gst.prototype.format_to_quark(format: Gst.Format): {
}
Get the unique quark for the given format.
the quark associated with the format or 0 if the format
is unknown.
Gst.format_to_quark
def Gst.format_to_quark (format):
Get the unique quark for the given format.
the quark associated with the format or 0 if the format
is unknown.
gboolean
gst_formats_contains (const GstFormat * formats,
GstFormat format)
See if the given format is inside the format array.
Parameters:
formats
(
[arrayzero-terminated=1])
–
The format array to search
format
–
the format to find
Returns
–
TRUE if the format is found inside the array
Gst.prototype.formats_contains
function Gst.prototype.formats_contains(formats: [ Gst.Format ], format: Gst.Format): {
}
See if the given format is inside the format array.
Parameters:
The format array to search
true if the format is found inside the array
Gst.formats_contains
def Gst.formats_contains (formats, format):
See if the given format is inside the format array.
Parameters:
The format array to search
True if the format is found inside the array
#define GST_FORMAT_PERCENT_SCALE G_GINT64_CONSTANT (10000)
The value used to scale down the reported PERCENT format value to
its real value.
Gst.FORMAT_PERCENT_SCALE
The value used to scale down the reported PERCENT format value to
its real value.
Gst.FORMAT_PERCENT_SCALE
The value used to scale down the reported PERCENT format value to
its real value.