ValueArray

class ValueArray(*args, **kwargs)

A fundamental type that describes an ordered list of Value

Methods

class ValueArray
append_and_take_value(value: Any, append_value: Any) 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

append_value(value: Any, append_value: Any) None

Appends append_value to the GstValueArray in value.

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • append_value – the value to append

get_size(value: Any) int

Gets the number of values contained in value.

Parameters:

value – a Value of type GST_TYPE_ARRAY

get_value(value: Any, index: int) Any

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

init(value: Any, prealloc: int) Any

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

prepend_value(value: Any, prepend_value: Any) None

Prepends prepend_value to the GstValueArray in value.

Parameters:
  • value – a Value of type GST_TYPE_ARRAY

  • prepend_value – the value to prepend