TagList
Object Hierarchy:
Description:
[ CCode ( ref_function = "gst_tag_list_ref" , type_id = "gst_tag_list_get_type ()" , unref_function = "gst_tag_list_unref" ) ]
[ Compact ]
public class TagList : MiniObject
[ Compact ]
public class TagList : MiniObject
List of tags and values used to describe media metadata.
Strings in structures must be ASCII or UTF-8 encoded. Other encodings are not allowed. Strings must not be empty or null
.
Namespace: Gst
Package: gstreamer-1.0
Content:
Static methods:
- public static bool copy_value (out Value dest, TagList list, string tag)
- public static bool replace (ref TagList? old_taglist, TagList? new_taglist)
- public static bool take (ref TagList old_taglist, owned TagList? new_taglist)
Creation methods:
- public TagList.empty ()
Creates a new empty GstTagList.
- public TagList.from_string (string str)
Deserializes a tag list.
- public TagList.valist (va_list var_args)
Just like
gst_tag_list_new
, only that it takes a va_list argument.
Methods:
- public void @foreach (TagForeachFunc func)
Calls the given function for each tag inside the tag list.
- public void add (TagMergeMode mode, string tag, ...)
Sets the values for the given tags using the specified mode.
- public void add_valist (TagMergeMode mode, string tag, va_list var_args)
Sets the values for the given tags using the specified mode.
- public void add_valist_values (TagMergeMode mode, string tag, va_list var_args)
Sets the GValues for the given tags using the specified mode.
- public void add_value (TagMergeMode mode, string tag, Value value)
Sets the GValue for a given tag using the specified mode.
- public void add_values (TagMergeMode mode, string tag, ...)
Sets the GValues for the given tags using the specified mode.
- public TagList copy ()
Creates a new TagList as a copy of the old this.
- public bool get_boolean (string tag, out bool value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_boolean_index (string tag, uint index, out bool value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_date (string tag, out Date value)
Copies the first date for the given tag in the taglist into the variable pointed to by
value
. - public bool get_date_index (string tag, uint index, out Date value)
Gets the date that is at the given index for the given tag in the given list and copies it into the variable pointed to by
value
. - public bool get_date_time (string tag, out DateTime value)
Copies the first datetime for the given tag in the taglist into the variable pointed to by
value
. - public bool get_date_time_index (string tag, uint index, out DateTime value)
Gets the datetime that is at the given index for the given tag in the given list and copies it into the variable pointed to by
value
. - public bool get_double (string tag, out double value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_double_index (string tag, uint index, out double value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_float (string tag, out float value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_float_index (string tag, uint index, out float value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_int (string tag, out int value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_int64 (string tag, out int64 value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_int64_index (string tag, uint index, out int64 value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_int_index (string tag, uint index, out int value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_pointer (string tag, out void* value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_pointer_index (string tag, uint index, out void* value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_sample (string tag, out Sample sample)
Copies the first sample for the given tag in the taglist into the variable pointed to by
sample
. - public bool get_sample_index (string tag, uint index, out Sample sample)
Gets the sample that is at the given index for the given tag in the given list and copies it into the variable pointed to by
sample
. - public TagScope get_scope ()
Gets the scope of this.
- public bool get_string (string tag, out string value)
Copies the contents for the given tag into the value, possibly merging multiple values into one if multiple values are associated with the tag.
- public bool get_string_index (string tag, uint index, out string value)
Gets the value that is at the given index for the given tag in the given list.
- public uint get_tag_size (string tag)
Checks how many value are stored in this tag list for the given tag.
- public bool get_uint (string tag, out uint value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_uint64 (string tag, out uint64 value)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool get_uint64_index (string tag, uint index, out uint64 value)
Gets the value that is at the given index for the given tag in the given list.
- public bool get_uint_index (string tag, uint index, out uint value)
Gets the value that is at the given index for the given tag in the given list.
- public unowned Value? get_value_index (string tag, uint index)
Gets the value that is at the given index for the given tag in the given list.
- public void insert (TagList from, TagMergeMode mode)
Inserts the tags of the
from
list into the first list using the given mode. - public bool is_empty ()
Checks if the given taglist is empty.
- public bool is_equal (TagList list2)
Checks if the two given taglists are equal.
- public TagList? merge (TagList? list2, TagMergeMode mode)
Merges the two given lists into a new list.
- public int n_tags ()
Get the number of tags in this.
- public unowned string nth_tag_name (uint index)
Get the name of the tag in this at
index
. - public bool peek_string_index (string tag, uint index, out unowned string value)
Peeks at the value that is at the given index for the given tag in the given list.
- public void remove_tag (string tag)
Removes the given tag from the taglist.
- public void set_scope (TagScope scope)
Sets the scope of this to
scope
. - public string to_string ()
Serializes a tag list to a string.
Inherited Members:
All known members inherited from class Gst.MiniObject