GstController.DirectControlBinding¶
- Subclasses:
None
Methods¶
- Inherited:
Gst.ControlBinding (5), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Whether the control values are absolute |
||
r/w/c |
The control source |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
byte_size |
r |
||
convert_g_value |
r |
||
convert_value |
r |
||
cs |
r |
||
cur_value |
r |
||
last_value |
r |
||
parent |
r |
Class Details¶
- class GstController.DirectControlBinding(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A value mapping object that attaches control sources to gobject properties. It will map the control values directly to the target property range. If a non-absolute direct control binding is used, the value range [0.0 … 1.0] is mapped to full target property range, and all values outside the range will be clipped. An absolute control binding will not do any value transformations.
- classmethod new(object, property_name, cs)[source]¶
- Parameters:
object (
Gst.Object
) – the object of the propertyproperty_name (
str
) – the property-name to attach the control sourcecs (
Gst.ControlSource
) – the control source
- Returns:
- Return type:
Create a new control-binding that attaches the
Gst.ControlSource
to theGObject.Object
property. It will map the control source range [0.0 … 1.0] to the full target property range, and clip all values outside this range.
- classmethod new_absolute(object, property_name, cs)[source]¶
- Parameters:
object (
Gst.Object
) – the object of the propertyproperty_name (
str
) – the property-name to attach the control sourcecs (
Gst.ControlSource
) – the control source
- Returns:
- Return type:
Create a new control-binding that attaches the
Gst.ControlSource
to theGObject.Object
property. It will directly map the control source values to the target property range without any transformations.New in version 1.6.
Property Details¶
- GstController.DirectControlBinding.props.absolute¶
- Name:
absolute
- Type:
- Default Value:
- Flags:
Whether the control values are absolute