ValueArray#

class ValueArray(*args, **kwargs)#

A fundamental type that describes an ordered list of Value

Methods#

class ValueArray
classmethod append_and_take_value(append_value: Value) None#

Appends append_value to the GstValueArray in value.

Added in version 1.2.

Parameters:

append_value – the value to append

classmethod append_value(append_value: Value) None#

Appends append_value to the GstValueArray in value.

Parameters:

append_value – the value to append

classmethod get_size() int#

Gets the number of values contained in value.

classmethod get_value(index: int) Value#

Gets the value that is a member of the array contained in value and has the index index.

Parameters:

index – index of value to get from the array

classmethod init(prealloc: int) Value#

Initializes and pre-allocates a Value of type GST_TYPE_ARRAY.

Added in version 1.18.

Parameters:

prealloc – The number of entries to pre-allocate in the array

classmethod prepend_value(prepend_value: Value) None#

Prepends prepend_value to the GstValueArray in value.

Parameters:

prepend_value – the value to prepend