Sets our main struct and passes it to the parent class
Creates a new, empty GstStructure with the given name. See gst_structure_set_name() for constraints on the name parameter. Free-function: gst_structure_free
Creates a new, empty GstStructure with the given name as a GQuark. Free-function: gst_structure_free
Creates a new GstStructure with the given name. Structure fields are set according to the varargs in a manner similar to gst_structure_new(). See gst_structure_set_name() for constraints on the name parameter. Free-function: gst_structure_free
Tries intersecting struct1 and struct2 and reports whether the result would not be empty.
Duplicates a GstStructure and all its fields and values. Free-function: gst_structure_free
Fixate all values in structure using gst_value_fixate(). structure will be modified in-place and should be writable.
Fixates a GstStructure by changing the given field with its fixated value.
Fixates a GstStructure by changing the given field_name field to the given target boolean if that field is not fixed yet.
Fixates a GstStructure by changing the given field to the nearest double to target that is a subset of the existing field.
Fixates a GstStructure by changing the given field to the nearest fraction to target_numerator/target_denominator that is a subset of the existing field.
Fixates a GstStructure by changing the given field to the nearest integer to target that is a subset of the existing field.
Fixates a GstStructure by changing the given field_name field to the given target string if that field is not fixed yet.
Calls the provided function once for each field in the GstStructure. The function must not modify the fields. Also see gst_structure_map_in_place().
Frees a GstStructure and all its fields and values. The structure must not have a parent when this function is called.
Sets the boolean pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Sets the clock time pointed to by value corresponding to the clock time of the given field. Caller is responsible for making sure the field exists and has the correct type.
Sets the date pointed to by value corresponding to the date of the given field. Caller is responsible for making sure the field exists and has the correct type. On success value will point to a newly-allocated copy of the date which should be freed with g_date_free() when no longer needed (note: this is inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string).
Sets the datetime pointed to by value corresponding to the datetime of the given field. Caller is responsible for making sure the field exists and has the correct type. On success value will point to a reference of the datetime which should be unreffed with gst_date_time_unref() when no longer needed (note: this is inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string).
Sets the double pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Sets the int pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists, has the correct type and that the enumtype is correct.
Finds the field with the given name, and returns the type of the value it contains. If the field is not found, G_TYPE_INVALID is returned.
Sets the integers pointed to by value_numerator and value_denominator corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Sets the int pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Get the name of structure as a string.
Get the name of structure as a GQuark.
Finds the field corresponding to fieldname, and returns the string contained in the field's value. Caller is responsible for making sure the field exists and has the correct type. The string should not be modified, and remains valid until the next call to a gst_structure_*() function with the given structure.
the main Gtk struct as a void*
Get the main Gtk struct
Sets the uint pointed to by value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
Parses the variable arguments and reads fields from structure accordingly. valist-variant of gst_structure_get(). Look at the documentation of gst_structure_get() for more details.
Get the value of the field with name fieldname.
Check if structure contains a field named fieldname.
Check if structure contains a field named fieldname and with GType type.
Checks if the structure has the given name
Parses the variable arguments and reads fields from structure accordingly. valist-variant of gst_structure_id_get(). Look at the documentation of gst_structure_id_get() for more details.
Get the value of the field with GQuark field.
Check if structure contains a field named field.
Check if structure contains a field named field and with GType type.
va_list form of gst_structure_id_set().
Sets the field with the given GQuark field to value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed.
Sets the field with the given GQuark field to value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed.
Interesects struct1 and struct2 and returns the intersection.
Tests if the two GstStructure are equal.
Checks if subset is a subset of superset, i.e. has the same structure name and for all fields that are existing in superset, subset has a value that is a subset of the value in superset.
Calls the provided function once for each field in the GstStructure. In contrast to gst_structure_foreach(), the function may modify but not delete the fields. The structure must be mutable.
Get the number of fields in the structure.
Get the name of the given field number, counting from 0 onwards.
Removes all fields in a GstStructure.
Removes the field with the given name. If the field with the given name does not exist, the structure is unchanged.
va_list form of gst_structure_remove_fields().
Sets the name of the structure to the given name. The string provided is copied before being used. It must not be empty, start with a letter and can be followed by letters, numbers and any of "/-_.:".
Sets the parent_refcount field of GstStructure. This field is used to determine whether a structure is mutable or not. This function should only be called by code implementing parent objects of GstStructure, as described in the MT Refcounting section of the design documents.
va_list form of gst_structure_set().
Sets the field with the given name field to value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed.
Sets the field with the given name field to value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed. The function will take ownership of value.
Converts structure to a human-readable string representation.
Creates a GstStructure from a string representation. If end is not NULL, a pointer to the place inside the given string where parsing ended will be returned. Free-function: gst_structure_free
the main Gtk struct
A GstStructure is a collection of key/value pairs. The keys are expressed as GQuarks and the values can be of any GType.
In addition to the key/value pairs, a GstStructure also has a name. The name starts with a letter and can be filled by letters, numbers and any of "/-_.:".
GstStructure is used by various GStreamer subsystems to store information in a flexible and extensible way. A GstStructure does not have a refcount because it usually is part of a higher level object such as GstCaps, GstMessage, GstEvent, GstQuery. It provides a means to enforce mutability using the refcount of the parent with the gst_structure_set_parent_refcount() method.
A GstStructure can be created with gst_structure_new_empty() or gst_structure_new(), which both take a name and an optional set of key/value pairs along with the types of the values.
Field values can be changed with gst_structure_set_value() or gst_structure_set().
Field values can be retrieved with gst_structure_get_value() or the more convenient gst_structure_get_*() functions.
Fields can be removed with gst_structure_remove_field() or gst_structure_remove_fields().
Strings in structures must be ASCII or UTF-8 encoded. Other encodings are not allowed. Strings must not be empty either, but may be NULL.
Last reviewed on 2012-03-29 (0.11.3)