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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
TagList self() nothrowReturns `this`, for use in `with` statements.
gst.mini_object.MiniObject miniObject() @property nothrowGet `miniObject` field. Returns: the parent type
gst.tag_list.TagList newEmpty() static nothrowCreates a new empty GstTagList.
gst.tag_list.TagList newFromString(string str) static nothrowDeserializes a tag list.
void addValue(gst.types.TagMergeMode mode, string tag, gobject.value.Value value) nothrowSets the GValue for a given tag using the specified mode.
gst.tag_list.TagList copy() nothrowCreates 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) nothrowCalls 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) nothrowCopies 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) nothrowGets 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) nothrowCopies 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) nothrowGets 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) nothrowCopies 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) nothrowGets 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) nothrowCopies 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) nothrowGets the value that is at the given index for the given tag in the given list.
bool getFloat(string tag, out float value) nothrowCopies 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) nothrowGets the value that is at the given index for the given tag in the given list.
bool getInt(string tag, out int value) nothrowCopies 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) nothrowCopies 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) nothrowGets 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) nothrowGets the value that is at the given index for the given tag in the given list.
bool getPointer(string tag, out void * value) nothrowCopies 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) nothrowGets 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) nothrowCopies the first sample for the given tag in the taglist into the variable pointed to by sample. Free the sample with gst_sample_unref() when it is no longer needed. You can retrieve the buffer fro...
bool getSampleIndex(string tag, uint index, out gst.sample.Sample sample) nothrowGets 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 gst_sample_unref() when it is no longer nee...
gst.types.TagScope getScope() nothrowGets the scope of list. Returns: The scope of list
bool getString(string tag, out string value) nothrowCopies 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) nothrowGets the value that is at the given index for the given tag in the given list.
uint getTagSize(string tag) nothrowChecks how many value are stored in this tag list for the given tag.
bool getUint(string tag, out uint value) nothrowCopies 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) nothrowCopies 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) nothrowGets 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) nothrowGets the value that is at the given index for the given tag in the given list.
gobject.value.Value getValueIndex(string tag, uint index) nothrowGets 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) nothrowInserts the tags of the from list into the first list using the given mode.
bool isEmpty() nothrowChecks if the given taglist is empty. Returns: true if the taglist is empty, otherwise false.
bool isEqual(gst.tag_list.TagList list2) nothrowChecks if the two given taglists are equal.
gst.tag_list.TagList merge(gst.tag_list.TagList list2, gst.types.TagMergeMode mode) nothrowMerges 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() nothrowGet the number of tags in list. Returns: The number of tags in list.
string nthTagName(uint index) nothrowGet the name of the tag in list at index.
bool peekStringIndex(string tag, uint index, out string value) nothrowPeeks at the value that is at the given index for the given tag in the given list.
void removeTag(string tag) nothrowRemoves the given tag from the taglist.
void setScope(gst.types.TagScope scope_) nothrowSets the scope of list to scope. By default the scope of a taglist is stream scope.
string toString_() nothrowSerializes 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) static nothrowCopies 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)