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.Objectproperties. Such an object is taking one or more- Gst.ControlSourceinstances, 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 processed
- interval ( - int) – the time spacing between subsequent values
- values ([ - GObject.Value]) – array to put control-values in
 
- Returns:
- Return type:
 - Gets a number of - GObject.Valuesfor the given controlled property starting at the requested time. The array values need to hold enough space for n_values of- GObject.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.Valueof the property at the given time, or- Noneif 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 properties
- timestamp ( - int) – the time that should be processed
- last_sync ( - int) – the last time this was called
 
- Returns:
- Trueif the controller value could be applied to the object property,- Falseotherwise
- Return type:
 - Sets the property of the object, according to the - Gst.ControlSourcesthat 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 processed
- interval ( - int) – the time spacing between subsequent values
- values ([ - GObject.Value]) – array to put control-values in
 
- Returns:
- Return type:
 - Gets a number of - GObject.Valuesfor the given controlled property starting at the requested time. The array values need to hold enough space for n_values of- GObject.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.Valueof the property at the given time, or- Noneif 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 properties
- timestamp ( - int) – the time that should be processed
- last_sync ( - int) – the last time this was called
 
- Returns:
- Trueif the controller value could be applied to the object property,- Falseotherwise
- Return type:
 - Sets the property of the object, according to the - Gst.ControlSourcesthat 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