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 _getGType() static nothrow
GType _gType() @property nothrow
ControlSource self() nothrowReturns `this`, for use in `with` statements.
ControlSourceGidBuilder builder() static nothrowGet builder for [gst.control_source.ControlSource] Returns: New builder object
bool controlSourceGetValue(gst.types.ClockTime timestamp, out double value) nothrowGets the value for this #GstControlSource at a given timestamp.
bool controlSourceGetValueArray(gst.types.ClockTime timestamp, gst.types.ClockTime interval, double[] values) nothrowGets an array of values for for this #GstControlSource. Values that are undefined contain NANs.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
ControlSource build() nothrowCreate object from builder. Returns: New object