gst.tag_list

Module for [TagList] class

class TagList

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
TagList self()Returns `this`, for use in `with` statements.
gst.mini_object.MiniObject miniObject() @propertyGet `miniObject` field. Returns: the parent type
gst.tag_list.TagList newEmpty()Creates a new empty GstTagList.
gst.tag_list.TagList newFromString(string str)Deserializes a tag list.
void addValue(gst.types.TagMergeMode mode, string tag, gobject.value.Value value)Sets the GValue for a given tag using the specified mode.
gst.tag_list.TagList copy()Creates a new #GstTagList as a copy of the old taglist. The new taglist will have a refcount of 1, owned by the caller, and will be writable as a result.
void foreach_(gst.types.TagForeachFunc func)Calls the given function for each tag inside the tag list. Note that if there is no tag, the function won't be called at all.
bool getBoolean(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.
bool getBooleanIndex(string tag, uint index, out bool value)Gets the value that is at the given index for the given tag in the given list.
bool getDate(string tag, out glib.date.Date value)Copies the first date for the given tag in the taglist into the variable pointed to by value. Free the date with [glib.date.Date.free] when it is no longer needed.
bool getDateIndex(string tag, uint index, out glib.date.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. Free the date with [glib.date.Date.free] when it is no longer needed.
bool getDateTime(string tag, out gst.date_time.DateTime value)Copies the first datetime for the given tag in the taglist into the variable pointed to by value. Unref the date with [gst.date_time.DateTime.unref] when it is no longer needed.
bool getDateTimeIndex(string tag, uint index, out gst.date_time.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. Unref the datetime with [gst.date_time.DateTime.unref] when it ...
bool getDouble(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.
bool getDoubleIndex(string tag, uint index, out double value)Gets the value that is at the given index for the given tag in the given list.
bool getFloat(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.
bool getFloatIndex(string tag, uint index, out float value)Gets the value that is at the given index for the given tag in the given list.
bool getInt(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.
bool getInt64(string tag, out long value)Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
bool getInt64Index(string tag, uint index, out long value)Gets the value that is at the given index for the given tag in the given list.
bool getIntIndex(string tag, uint index, out int value)Gets the value that is at the given index for the given tag in the given list.
bool getPointer(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.
bool getPointerIndex(string tag, uint index, out void * value)Gets the value that is at the given index for the given tag in the given list.
bool getSample(string tag, out gst.sample.Sample sample)Copies the first sample for the given tag in the taglist into the variable pointed to by sample. Free the sample with gstsampleunref() when it is no longer needed. You can retrieve the buffer from ...
bool getSampleIndex(string tag, uint index, out gst.sample.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. Free the sample with gstsampleunref() when it is no longer neede...
gst.types.TagScope getScope()Gets the scope of list. Returns: The scope of list
bool getString(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.
bool getStringIndex(string tag, uint index, out string value)Gets the value that is at the given index for the given tag in the given list.
uint getTagSize(string tag)Checks how many value are stored in this tag list for the given tag.
bool getUint(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.
bool getUint64(string tag, out ulong value)Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
bool getUint64Index(string tag, uint index, out ulong value)Gets the value that is at the given index for the given tag in the given list.
bool getUintIndex(string tag, uint index, out uint value)Gets the value that is at the given index for the given tag in the given list.
gobject.value.Value getValueIndex(string tag, uint index)Gets the value that is at the given index for the given tag in the given list.
void insert(gst.tag_list.TagList from, gst.types.TagMergeMode mode)Inserts the tags of the from list into the first list using the given mode.
bool isEmpty()Checks if the given taglist is empty. Returns: true if the taglist is empty, otherwise false.
bool isEqual(gst.tag_list.TagList list2)Checks if the two given taglists are equal.
gst.tag_list.TagList merge(gst.tag_list.TagList list2, gst.types.TagMergeMode mode)Merges the two given lists into a new list. If one of the lists is null, a copy of the other is returned. If both lists are null, null is returned.
int nTags()Get the number of tags in list. Returns: The number of tags in list.
string nthTagName(uint index)Get the name of the tag in list at index.
bool peekStringIndex(string tag, uint index, out string value)Peeks at the value that is at the given index for the given tag in the given list.
void removeTag(string tag)Removes the given tag from the taglist.
void setScope(gst.types.TagScope scope_)Sets the scope of list to scope. By default the scope of a taglist is stream scope.
string toString_()Serializes a tag list to a string. Returns: a newly-allocated string. The string must be freed with [glib.global.gfree] when no longer needed.
bool copyValue(out gobject.value.Value dest, gst.tag_list.TagList list, string tag)Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. You must [gobject.value.Value.unset] the value after use.
Constructors
this(void * ptr, Flag!"Take" take)