Gst.ControlSource¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
get_value |
r |
Function for returning a value for a given timestamp |
|
get_value_array |
r |
Function for returning a values array for a given timestamp |
|
parent |
r |
the parent structure |
Class Details¶
- class Gst.ControlSource(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Gst.ControlSource
is a base class for control value sources that could be used to get timestamp-value pairs. A control source essentially is a function over time.A
Gst.ControlSource
is used by first getting an instance of a specific control-source, creating a binding for the control-source to the target property of the element and then adding the binding to the element. The binding will convert the data types and value range to fit to the bound property.For implementing a new
Gst.ControlSource
one has to implementGst.ControlSourceGetValue
andGst.ControlSourceGetValueArray
functions. These are then used byGst.ControlSource.control_source_get_value
() andGst.ControlSource.control_source_get_value_array
() to get values for specific timestamps.- control_source_get_value(timestamp)[source]¶
- Parameters:
timestamp (
int
) – the time for which the value should be returned- Returns:
False
if the value couldn’t be returned,True
otherwise.- value:
the value
- Return type:
Gets the value for this
Gst.ControlSource
at a given timestamp.
- control_source_get_value_array(timestamp, interval, values)[source]¶
- Parameters:
- Returns:
- Return type:
Gets an array of values for for this
Gst.ControlSource
. Values that are undefined contain NANs.