gst.control_source

Module for [ControlSource] class

Types 3

The #GstControlSource is a base class for control value sources that could be used to get timestamp-value pairs. A control source essentially is a function over time.

A #GstControlSource is used by first getting an instance of a specific control-source, creating a binding for the control-source to the target property of the element and then adding the binding to the element. The binding will convert the data types and value range to fit to the bound property.

For implementing a new #GstControlSource one has to implement #GstControlSourceGetValue and #GstControlSourceGetValueArray functions. These are then used by [gst.control_source.ControlSource.controlSourceGetValue] and [gst.control_source.ControlSource.controlSourceGetValueArray] to get values for specific timestamps.

Methods
GType _gType() @property
ControlSource self()Returns `this`, for use in `with` statements.
ControlSourceGidBuilder builder()Get builder for [gst.control_source.ControlSource] Returns: New builder object
bool controlSourceGetValue(gst.types.ClockTime timestamp, out double value)Gets the value for this #GstControlSource at a given timestamp.
bool controlSourceGetValueArray(gst.types.ClockTime timestamp, gst.types.ClockTime interval, double[] values)Gets an array of values for for this #GstControlSource. Values that are undefined contain NANs.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gst.control_source.ControlSource]