Gst.ControlBinding¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The object of the property |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
disabled |
r |
||
name |
r |
name of the property of this binding |
|
object |
r |
||
parent |
r |
the parent structure |
|
pspec |
r |
|
Class Details¶
- class Gst.ControlBinding(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
A base class for value mapping objects that attaches control sources to
GObject.Object
properties. Such an object is taking one or moreGst.ControlSource
instances, combines them and maps the resulting value to the type and value range of the bound property.- get_g_value_array(timestamp, interval, values)[source]¶
- Parameters:
timestamp (
int
) – the time that should be processedinterval (
int
) – the time spacing between subsequent valuesvalues ([
GObject.Value
]) – array to put control-values in
- Returns:
- Return type:
Gets a number of
GObject.Values
for the given controlled property starting at the requested time. The array values need to hold enough space for n_values ofGObject.Value
.This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample.
- get_value(timestamp)[source]¶
- Parameters:
timestamp (
int
) – the time the control-change should be read from- Returns:
the
GObject.Value
of the property at the given time, orNone
if the property isn’t controlled.- Return type:
Gets the value for the given controlled property at the requested time.
- set_disabled(disabled)[source]¶
- Parameters:
disabled (
bool
) – boolean that specifies whether to disable the controller or not.
This function is used to disable a control binding for some time, i.e.
Gst.Object.sync_values
() will do nothing.
- sync_values(object, timestamp, last_sync)[source]¶
- Parameters:
object (
Gst.Object
) – the object that has controlled propertiestimestamp (
int
) – the time that should be processedlast_sync (
int
) – the last time this was called
- Returns:
True
if the controller value could be applied to the object property,False
otherwise- Return type:
Sets the property of the object, according to the
Gst.ControlSources
that handles it and for the given timestamp.If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
- do_get_g_value_array(timestamp, interval, values) virtual¶
- Parameters:
timestamp (
int
) – the time that should be processedinterval (
int
) – the time spacing between subsequent valuesvalues ([
GObject.Value
]) – array to put control-values in
- Returns:
- Return type:
Gets a number of
GObject.Values
for the given controlled property starting at the requested time. The array values need to hold enough space for n_values ofGObject.Value
.This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample.
- do_get_value(timestamp) virtual¶
- Parameters:
timestamp (
int
) – the time the control-change should be read from- Returns:
the
GObject.Value
of the property at the given time, orNone
if the property isn’t controlled.- Return type:
Gets the value for the given controlled property at the requested time.
- do_sync_values(object, timestamp, last_sync) virtual¶
- Parameters:
object (
Gst.Object
) – the object that has controlled propertiestimestamp (
int
) – the time that should be processedlast_sync (
int
) – the last time this was called
- Returns:
True
if the controller value could be applied to the object property,False
otherwise- Return type:
Sets the property of the object, according to the
Gst.ControlSources
that handles it and for the given timestamp.If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
Property Details¶
- Gst.ControlBinding.props.object¶
- Name:
object
- Type:
- Default Value:
- Flags:
The object of the property