DirectControlBinding

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.

Constructors

this
this(gst.object.ObjectGst object, string propertyName, gst.control_source.ControlSource cs)

Create a new control-binding that attaches the #GstControlSource to the #GObject 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.

Members

Static functions

newAbsolute
gstcontroller.direct_control_binding.DirectControlBinding newAbsolute(gst.object.ObjectGst object, string propertyName, gst.control_source.ControlSource cs)

Create a new control-binding that attaches the #GstControlSource to the #GObject property. It will directly map the control source values to the target property range without any transformations.

Inherited Members

From ControlBinding

getGValueArray
bool getGValueArray(gst.types.ClockTime timestamp, gst.types.ClockTime interval, gobject.value.Value[] values)

Gets a number of #GValues for the given controlled property starting at the requested time. The array values need to hold enough space for n_values of #GValue.

getValue
gobject.value.Value getValue(gst.types.ClockTime timestamp)

Gets the value for the given controlled property at the requested time.

isDisabled
bool isDisabled()

Checks if the control binding is disabled.

setDisabled
void setDisabled(bool disabled)

This function is used to disable a control binding for some time, i.e. gst.object.ObjectGst.syncValues will do nothing.

syncValues
bool syncValues(gst.object.ObjectGst object, gst.types.ClockTime timestamp, gst.types.ClockTime lastSync)

Sets the property of the object, according to the #GstControlSources that handles it and for the given timestamp.