ValueList
- class ValueList(*args, **kwargs)
A fundamental type that describes an unordered list of Value
Methods
- class ValueList
- append_and_take_value(value: Any, append_value: Any) None
Appends
append_value
to the GstValueList invalue
.Added in version 1.2.
- Parameters:
value – a
Value
of typeGST_TYPE_LIST
append_value – the value to append
- append_value(value: Any, append_value: Any) None
Appends
append_value
to the GstValueList invalue
.- Parameters:
value – a
Value
of typeGST_TYPE_LIST
append_value – the value to append
- concat(value1: Any, value2: Any) Any
Concatenates copies of
value1
andvalue2
into a list. Values that are not of typeGST_TYPE_LIST
are treated as if they were lists of length 1.dest
will be initialized to the typeGST_TYPE_LIST
.
- get_size(value: Any) int
Gets the number of values contained in
value
.- Parameters:
value – a
Value
of typeGST_TYPE_LIST
- get_value(value: Any, index: int) Any
Gets the value that is a member of the list contained in
value
and has the indexindex
.- Parameters:
value – a
Value
of typeGST_TYPE_LIST
index – index of value to get from the list
- init(value: Any, prealloc: int) Any
Initializes and pre-allocates a
Value
of typeGST_TYPE_LIST
.Added in version 1.18.
- Parameters:
value – A zero-filled (uninitialized)
Value
structureprealloc – The number of entries to pre-allocate in the list
- merge(value1: Any, value2: Any) Any
Merges copies of
value1
andvalue2
. Values that are not of typeGST_TYPE_LIST
are treated as if they were lists of length 1.The result will be put into
dest
and will either be a list that will not contain any duplicates, or a non-list type (ifvalue1
andvalue2
were equal).