GstController.DirectControlBinding

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.ControlBinding Gst.ControlBinding GstController.DirectControlBinding GstController.DirectControlBinding Gst.ControlBinding->GstController.DirectControlBinding Gst.Object->Gst.ControlBinding

Subclasses:

None

Methods

Inherited:

Gst.ControlBinding (5), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (object, property_name, cs)

class

new_absolute (object, property_name, cs)

Virtual Methods

Inherited:

Gst.ControlBinding (3), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.ControlBinding (1), Gst.Object (2)

Name

Type

Flags

Short Description

absolute

bool

r/w/co

Whether the control values are absolute

control-source

Gst.ControlSource

r/w/c

The control source

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

byte_size

int

r

convert_g_value

GstController.DirectControlBindingConvertGValue

r

convert_value

GstController.DirectControlBindingConvertValue

r

cs

Gst.ControlSource

r

cur_value

GObject.Value

r

last_value

float

r

parent

Gst.ControlBinding

r

Class Details

class GstController.DirectControlBinding(**kwargs)
Bases:

Gst.ControlBinding

Abstract:

No

Structure:

GstController.DirectControlBindingClass

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)
Parameters:
  • object (Gst.Object) – the object of the property

  • property_name (str) – the property-name to attach the control source

  • cs (Gst.ControlSource) – the control source

Returns:

the new GstController.DirectControlBinding

Return type:

Gst.ControlBinding

Create a new control-binding that attaches the Gst.ControlSource to the GObject.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)
Parameters:
  • object (Gst.Object) – the object of the property

  • property_name (str) – the property-name to attach the control source

  • cs (Gst.ControlSource) – the control source

Returns:

the new GstController.DirectControlBinding

Return type:

Gst.ControlBinding

Create a new control-binding that attaches the Gst.ControlSource to the GObject.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:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether the control values are absolute

GstController.DirectControlBinding.props.control_source
Name:

control-source

Type:

Gst.ControlSource

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The control source