Package ch.bailu.gtk.gst
Klasse TagList
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.TagList
- Alle implementierten Schnittstellen:
PointerInterface
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.
Strings in structures must be ASCII or UTF-8 encoded. Other encodings are
not allowed. Strings must not be empty or %NULL.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringthe parent type
Private field: direct-type -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidSets the values for the given tags using the specified mode.voidSets the values for the given tags using the specified mode.voidSets the GValue for a given tag using the specified mode.voidSets the GValue for a given tag using the specified mode.voidSets the GValues for the given tags using the specified mode.voidSets the GValues for the given tags using the specified mode.copy()Creates a new #GstTagList as a copy of the old @taglist.static booleanCopies the contents for the given tag into the value,
merging multiple values into one if multiple values are associated
with the tag.voidforeach(TagList.OnTagForeachFunc func, Pointer user_data) Calls the given function for each tag inside the tag list.booleangetBoolean(Str 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.booleangetBoolean(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.booleangetBooleanIndex(Str tag, int index, Int value) Gets the value that is at the given index for the given tag in the given
list.booleangetBooleanIndex(String tag, int index, Int value) Gets the value that is at the given index for the given tag in the given
list.static ClassHandlerbooleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleangetDoubleIndex(Str tag, int index, Dbl value) Gets the value that is at the given index for the given tag in the given
list.booleangetDoubleIndex(String tag, int index, Dbl value) Gets the value that is at the given index for the given tag in the given
list.booleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleangetFloatIndex(Str tag, int index, Flt value) Gets the value that is at the given index for the given tag in the given
list.booleangetFloatIndex(String tag, int index, Flt value) Gets the value that is at the given index for the given tag in the given
list.static intbooleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleanCopies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.booleangetIntIndex(Str tag, int index, Int value) Gets the value that is at the given index for the given tag in the given
list.booleangetIntIndex(String tag, int index, Int value) Gets the value that is at the given index for the given tag in the given
list.static longstatic TypeSystem.TypeSizeintgetScope()Gets the scope of @list.intgetTagSize(Str tag) Checks how many value are stored in this tag list for the given tag.intgetTagSize(String tag) Checks how many value are stored in this tag list for the given tag.static longstatic TypeSystem.TypeSizegetValueIndex(Str tag, int index) Gets the value that is at the given index for the given tag in the given
list.getValueIndex(String tag, int index) Gets the value that is at the given index for the given tag in the given
list.voidInserts the tags of the @from list into the first list using the given mode.booleanisEmpty()Checks if the given taglist is empty.booleanChecks if the two given taglists are equal.Merges the two given lists into a new list.static TagListCreates a new empty GstTagList.static TagListnewFromStringTagList(Str str) Deserializes a tag list.static TagListDeserializes a tag list.intnTags()Get the number of tags in @list.nthTagName(int index) Get the name of the tag in @list at @index.voidRemoves the given tag from the taglist.voidRemoves the given tag from the taglist.voidsetScope(int scope) Sets the scope of @list to @scope.toStr()Serializes a tag list to a string.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
MINI_OBJECT
the parent type
Private field: direct-type- Siehe auch:
-
-
Konstruktordetails
-
TagList
-
TagList
public TagList() -
TagList
Creates a new taglist and appends the values for the given tags. It expects
tag-value pairs like gst_tag_list_add(), and a %NULL terminator after the
last pair. The type of the values is implicit and is documented in the API
reference, but can also be queried at runtime with gst_tag_get_type(). It
is an error to pass a value of a type not matching the tag type into this
function. The tag list will make copies of any arguments passed
(e.g. strings, buffers).
After creation you might also want to set a #GstTagScope on the returned
taglist to signal if the contained tags are global or stream tags. By
default stream scope is assumes. See gst_tag_list_set_scope().
Free-function: gst_tag_list_unref- Parameter:
tag- tag_ellipsis- %NULL-terminated list of values to set
-
TagList
Creates a new taglist and appends the values for the given tags. It expects
tag-value pairs like gst_tag_list_add(), and a %NULL terminator after the
last pair. The type of the values is implicit and is documented in the API
reference, but can also be queried at runtime with gst_tag_get_type(). It
is an error to pass a value of a type not matching the tag type into this
function. The tag list will make copies of any arguments passed
(e.g. strings, buffers).
After creation you might also want to set a #GstTagScope on the returned
taglist to signal if the contained tags are global or stream tags. By
default stream scope is assumes. See gst_tag_list_set_scope().
Free-function: gst_tag_list_unref- Parameter:
tag- tag_ellipsis- %NULL-terminated list of values to set
-
-
Methodendetails
-
getClassHandler
-
newEmptyTagList
Creates a new empty GstTagList.
Free-function: gst_tag_list_unref- Gibt zurück:
- An empty tag list
-
newFromStringTagList
Deserializes a tag list.- Parameter:
str- a string created with gst_tag_list_to_string()- Gibt zurück:
- a new #GstTagList, or %NULL in case of an error.
-
newFromStringTagList
Deserializes a tag list.- Parameter:
str- a string created with gst_tag_list_to_string()- Gibt zurück:
- a new #GstTagList, or %NULL in case of an error.
-
add
Sets the values for the given tags using the specified mode.- Parameter:
mode- the mode to usetag- tag_ellipsis- %NULL-terminated list of values to set
-
add
Sets the values for the given tags using the specified mode.- Parameter:
mode- the mode to usetag- tag_ellipsis- %NULL-terminated list of values to set
-
addValue
Sets the GValue for a given tag using the specified mode.- Parameter:
mode- the mode to usetag- tagvalue- GValue for this tag
-
addValue
Sets the GValue for a given tag using the specified mode.- Parameter:
mode- the mode to usetag- tagvalue- GValue for this tag
-
addValues
Sets the GValues for the given tags using the specified mode.- Parameter:
mode- the mode to usetag- tag_ellipsis- GValues to set
-
addValues
Sets the GValues for the given tags using the specified mode.- Parameter:
mode- the mode to usetag- tag_ellipsis- GValues to set
-
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.
Note that this function is the semantic equivalent of a gst_tag_list_ref()
followed by a gst_tag_list_make_writable(). If you only want to hold on to a
reference to the data, you should use gst_tag_list_ref().
When you are finished with the taglist, call gst_tag_list_unref() on it.- Gibt zurück:
- the new #GstTagList
-
foreach
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.- Parameter:
func- function to be called for each taguser_data- user specified data
-
getBoolean
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getBoolean
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getBooleanIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getBooleanIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getDouble
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getDouble
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getDoubleIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getDoubleIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getFloat
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getFloat
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getFloatIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getFloatIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getInt
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getInt
Copies the contents for the given tag into the value, merging multiple values
into one if multiple values are associated with the tag.- Parameter:
tag- tag to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getIntIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getIntIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read outvalue- location for the result- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getScope
public int getScope()Gets the scope of @list.- Gibt zurück:
- The scope of @list
-
getTagSize
Checks how many value are stored in this tag list for the given tag.- Parameter:
tag- the tag to query- Gibt zurück:
- The number of tags stored
-
getTagSize
Checks how many value are stored in this tag list for the given tag.- Parameter:
tag- the tag to query- Gibt zurück:
- The number of tags stored
-
getValueIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read out- Gibt zurück:
- The GValue for the specified entry or %NULL if the tag wasn't available or the tag doesn't have as many entries
-
getValueIndex
Gets the value that is at the given index for the given tag in the given
list.- Parameter:
tag- tag to read outindex- number of entry to read out- Gibt zurück:
- The GValue for the specified entry or %NULL if the tag wasn't available or the tag doesn't have as many entries
-
insert
Inserts the tags of the @from list into the first list using the given mode.- Parameter:
from- list to merge frommode- the mode to use
-
isEmpty
public boolean isEmpty()Checks if the given taglist is empty.- Gibt zurück:
- %TRUE if the taglist is empty, otherwise %FALSE.
-
isEqual
Checks if the two given taglists are equal.- Parameter:
list2- a #GstTagList.- Gibt zurück:
- %TRUE if the taglists are equal, otherwise %FALSE
-
merge
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.
Free-function: gst_tag_list_unref- Parameter:
list2- second list to mergemode- the mode to use- Gibt zurück:
- the new list
-
nTags
public int nTags()Get the number of tags in @list.- Gibt zurück:
- The number of tags in @list.
-
nthTagName
Get the name of the tag in @list at @index.- Parameter:
index- the index- Gibt zurück:
- The name of the tag at @index.
-
removeTag
Removes the given tag from the taglist.- Parameter:
tag- tag to remove
-
removeTag
Removes the given tag from the taglist.- Parameter:
tag- tag to remove
-
setScope
public void setScope(int scope) Sets the scope of @list to @scope. By default the scope
of a taglist is stream scope.- Parameter:
scope- new scope for @list
-
toStr
Serializes a tag list to a string.- Gibt zurück:
- a newly-allocated string. The string must be freed with g_free() when no longer needed.
-
copyValue
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 g_value_unset() the value after use.- Parameter:
dest- uninitialized #GValue to copy intolist- list to get the tag fromtag- tag to read out- Gibt zurück:
- %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-