ValueArray#

class ValueArray(*args, **kwargs)#

A fundamental type that describes an ordered list of Value

Methods#

class ValueArray
classmethod append_and_take_value(value: Value, append_value: Value) None#

Appends append_value to the GstValueArray in value.

Added in version 1.2.

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • append_value – the value to append

classmethod append_value(value: Value, append_value: Value) None#

Appends append_value to the GstValueArray in value.

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • append_value – the value to append

classmethod get_size(value: Value) int#

Gets the number of values contained in value.

Parameters:

value – a Value of type GST_TYPE_ARRAY

classmethod get_value(value: Value, index: int) Value#

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

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • index – index of value to get from the array

classmethod init(value: Value, prealloc: int) Value#

Initializes and pre-allocates a Value of type GST_TYPE_ARRAY.

Added in version 1.18.

Parameters:
  • value – A zero-filled (uninitialized) Value structure

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

classmethod prepend_value(value: Value, prepend_value: Value) None#

Prepends prepend_value to the GstValueArray in value.

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • prepend_value – the value to prepend