Import line: | Gst = imports.gi.Gst; |
GIR File: | Gst-0.10.gir |
C documentation: | GstStructure |
Struct : | Structure |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
_gst_reserved : void*
|
Gst.Structure | |
fields : GLib.Array
|
Gst.Structure | |
name : Number
|
Gst.Structure | |
parent_refcount : void*
|
Gst.Structure | |
type : Number
|
Gst.Structure |
Method / Constructor | Defined By | |
---|---|---|
new Gst.Structure
()
Create a new Gst.Structure
Create a new Gst.Structure
|
||
copy
()
:
Gst.Structure
Duplicates a GstStructure and all its fields and values.
Duplicates a GstStructure and all its fields and values.
|
Gst.Structure | |
Gst.Structure | ||
Fixates a GstStructure by changing the given field to the nearest double to target that is a subset of the existing field.
|
Gst.Structure | |
fixate_field_nearest_fraction
(String field_name, Number target_numerator, Number target_denominator)
:
Boolean
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 fraction to target_numerator/target_denominator that is a subset of the existing field.
|
Gst.Structure | |
Fixates a GstStructure by changing the given field to the nearest integer to target that is a subset of the existing field.
|
Gst.Structure | |
Calls the provided function once for each field in the GstStructure.
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(). FALSE otherwise.
|
Gst.Structure | |
free
()
:
none
Frees a GstStructure and all its fields and values.
Frees a GstStructure and all its fields and values. The structure must not have a parent when this function is called.
|
Gst.Structure | |
Sets the boolean pointed to by value corresponding to the value of the given field.
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. with fieldname or the existing field did not contain a boolean, this function returns FALSE.
|
Gst.Structure | |
Sets the clock time pointed to by value corresponding to the clock time of the given field.
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. with fieldname or the existing field did not contain a GstClockTime, this function returns FALSE.
|
Gst.Structure | |
Sets the date pointed to by value corresponding to the date of the given field.
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 inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string). with fieldname or the existing field did not contain a data, this function returns FALSE.
|
Gst.Structure | |
Sets the double pointed to by value corresponding to the value of the given field.
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. with fieldname or the existing field did not contain a double, this function returns FALSE.
|
Gst.Structure | |
Sets the int pointed to by value corresponding to the value of the given field.
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. with fieldname or the existing field did not contain an enum of the given type, this function returns FALSE.
|
Gst.Structure | |
Gst.Structure | ||
Sets the Fourcc pointed to by value corresponding to the value of the given field.
Sets the Fourcc 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. with fieldname or the existing field did not contain a fourcc, this function returns FALSE.
|
Gst.Structure | |
Sets the integers pointed to by value_numerator and value_denominator corresponding to the value of the given field.
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. with fieldname or the existing field did not contain a GstFraction, this function returns FALSE.
|
Gst.Structure | |
Sets the int pointed to by value corresponding to the value of the given field.
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. with fieldname or the existing field did not contain an int, this function returns FALSE.
|
Gst.Structure | |
get_name
()
:
String
Get the name of structure as a string.
Get the name of structure as a string.
|
Gst.Structure | |
get_name_id
()
:
Number
Get the name of structure as a GQuark.
Get the name of structure as a GQuark.
|
Gst.Structure | |
Finds the field corresponding to fieldname, and returns the string contained in the field's value.
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. or did not contain a string.
|
Gst.Structure | |
Sets the uint pointed to by value corresponding to the value of the given field.
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. with fieldname or the existing field did not contain a uint, this function returns FALSE.
|
Gst.Structure | |
get_value
(String fieldname)
:
GObject.Value
Get the value of the field with name fieldname.
Get the value of the field with name fieldname.
|
Gst.Structure | |
Gst.Structure | ||
Gst.Structure | ||
Gst.Structure | ||
id_get_value
(Number field)
:
GObject.Value
Get the value of the field with GQuark field.
Get the value of the field with GQuark field.
|
Gst.Structure | |
Gst.Structure | ||
Gst.Structure | ||
Sets the field with the given GQuark field to value.
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.
|
Gst.Structure | |
Calls the provided function once for each field in the GstStructure.
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. FALSE otherwise.
|
Gst.Structure | |
n_fields
()
:
Number
Get the number of fields in the structure.
Get the number of fields in the structure.
|
Gst.Structure | |
Gst.Structure | ||
remove_all_fields
()
:
none
Removes all fields in a GstStructure.
Removes all fields in a GstStructure.
|
Gst.Structure | |
remove_field
(String fieldname)
:
none
Removes the field with the given name.
Removes the field with the given name. If the field with the given name does not exist, the structure is unchanged.
|
Gst.Structure | |
set_name
(String name)
:
none
Sets the name of the structure to the given name.
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 "/-_.:".
|
Gst.Structure | |
set_parent_refcount
()
:
Number
Sets the parent_refcount field of GstStructure.
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.
|
Gst.Structure | |
Sets the field with the given name field to value.
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.
|
Gst.Structure | |
to_string
()
:
String
Converts structure to a human-readable string representation.
Converts structure to a human-readable string representation. For debugging purposes its easier to do something like this: |[ GST_LOG ("structure is %" GST_PTR_FORMAT, structure); ]| This prints the structure in human readble form. usage.
|
Gst.Structure |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gst
Method |
Creates a new, empty GstStructure with the given name.
|
Gst
Method |
Creates a GstStructure from a string representation.
|
Gst
Method |
Creates a new, empty GstStructure with the given name as a GQuark.
|
Gst
Method |
Gets the contents of value.
|
Gst
Method |
Sets the contents of value to structure.
|
Gst.Caps
Method |
append_structure
(Structure structure)
:
none
Appends structure to caps.
|
Gst.Caps
Method |
merge_structure
(Structure structure)
:
none
Appends structure to caps if its not already expressed by caps.
|
Gst.Caps
Method |
get_structure
(Number index)
:
Gst.Structure
Finds the structure in caps that has the index index, and returns it.
|
Gst.Event
Method |
Create a new Gst.Event
|
Gst.Event
Method |
Create a new Gst.Event
|
Gst.Event
Method |
get_structure
()
:
Gst.Structure
Access the structure of the event.
|
Gst.Message
Method |
Create a new Gst.Message
|
Gst.Message
Method |
Create a new Gst.Message
|
Gst.Message
Method |
Create a new Gst.Message
|
Gst.Message
Method |
get_structure
()
:
Gst.Structure
Access the structure of the message.
|
Gst.Plugin
Method |
get_cache_data
()
:
Gst.Structure
Gets the plugin specific data cache.
|
Gst.Plugin
Method |
set_cache_data
(Structure cache_data)
:
none
Adds plugin specific data to cache.
|
Gst.Query
Method |
Create a new Gst.Query
|
Gst.Query
Method |
get_structure
()
:
Gst.Structure
Get the structure of a query.
|
GstAudio
Method |
Custom fixate function.
|
GstAudio
Method |
Retrieves a number of (fixed!) audio channel positions from the provided GstStructure and returns it as a newly allocated array.
|
GstAudio
Method |
Adds a "channel-positions" field to the given GstStructure, which will represent the channel positions as given in the provided GstAudioChannelPosition array.
|
GstAudio
Method |
GstAudio.set_structure_channel_positions_list
(Structure str, AudioChannelPosition pos, Number num_positions)
:
none
Sets a (possibly non-fixed) list of possible audio channel positions (given in pos) on the given structure.
|
GstAudio
Method |
Do not use anymore.
|
GstInterfaces.Navigation
Method |
send_event
(Structure structure)
:
none
|
GstRtsp.RTSPExtension
Method |
|