TagList

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.

class TagList : Boxed {}

Members

Functions

addValue
void addValue(gst.types.TagMergeMode mode, string tag, gobject.value.Value value)

Sets the GValue for a given tag using the specified mode.

copy
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.

foreach_
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.

getBoolean
bool getBoolean(string tag, 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.

getBooleanIndex
bool getBooleanIndex(string tag, uint index, bool value)

Gets the value that is at the given index for the given tag in the given list.

getDate
bool getDate(string tag, 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.

getDateIndex
bool getDateIndex(string tag, uint index, 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.

getDateTime
bool getDateTime(string tag, 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.

getDateTimeIndex
bool getDateTimeIndex(string tag, uint index, 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 is no longer needed.

getDouble
bool getDouble(string tag, 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.

getDoubleIndex
bool getDoubleIndex(string tag, uint index, double value)

Gets the value that is at the given index for the given tag in the given list.

getFloat
bool getFloat(string tag, 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.

getFloatIndex
bool getFloatIndex(string tag, uint index, float value)

Gets the value that is at the given index for the given tag in the given list.

getInt
bool getInt(string tag, 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.

getInt64
bool getInt64(string tag, 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.

getInt64Index
bool getInt64Index(string tag, uint index, long value)

Gets the value that is at the given index for the given tag in the given list.

getIntIndex
bool getIntIndex(string tag, uint index, int value)

Gets the value that is at the given index for the given tag in the given list.

getPointer
bool getPointer(string tag, 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.

getPointerIndex
bool getPointerIndex(string tag, uint index, void* value)

Gets the value that is at the given index for the given tag in the given list.

getSample
bool getSample(string tag, 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 gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using gst.sample.Sample.getBuffer and the associated caps (if any) with gst.sample.Sample.getCaps.

getSampleIndex
bool getSampleIndex(string tag, uint index, 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 gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using gst.sample.Sample.getBuffer and the associated caps (if any) with gst.sample.Sample.getCaps.

getScope
gst.types.TagScope getScope()

Gets the scope of list.

getString
bool getString(string tag, 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.

getStringIndex
bool getStringIndex(string tag, uint index, string value)

Gets the value that is at the given index for the given tag in the given list.

getTagSize
uint getTagSize(string tag)

Checks how many value are stored in this tag list for the given tag.

getUint
bool getUint(string tag, 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.

getUint64
bool getUint64(string tag, 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.

getUint64Index
bool getUint64Index(string tag, uint index, ulong value)

Gets the value that is at the given index for the given tag in the given list.

getUintIndex
bool getUintIndex(string tag, uint index, uint value)

Gets the value that is at the given index for the given tag in the given list.

getValueIndex
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.

insert
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.

isEmpty
bool isEmpty()

Checks if the given taglist is empty.

isEqual
bool isEqual(gst.tag_list.TagList list2)

Checks if the two given taglists are equal.

merge
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.

nTags
int nTags()

Get the number of tags in list.

nthTagName
string nthTagName(uint index)

Get the name of the tag in list at index.

peekStringIndex
bool peekStringIndex(string tag, uint index, string value)

Peeks at the value that is at the given index for the given tag in the given list.

removeTag
void removeTag(string tag)

Removes the given tag from the taglist.

setScope
void setScope(gst.types.TagScope scope_)

Sets the scope of list to scope. By default the scope of a taglist is stream scope.

toString_
string toString_()

Serializes a tag list to a string.

Static functions

copyValue
bool copyValue(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.

newEmpty
gst.tag_list.TagList newEmpty()

Creates a new empty GstTagList.

newFromString
gst.tag_list.TagList newFromString(string str)

Deserializes a tag list.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.