GstControlSource
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_get_value and gst_control_source_get_value_array to get values for specific timestamps.
GstControlSource
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstControlSource
The instance structure of GstControlSource.
Members
parent
(GstObject)
–
the parent structure
get_value
(GstControlSourceGetValue)
–
Function for returning a value for a given timestamp
get_value_array
(GstControlSourceGetValueArray)
–
Function for returning a values array for a given timestamp
Class structure
GstControlSourceClass
The class structure of GstControlSource.
Fields
parent_class
(GstObjectClass)
–
Parent class
Gst.ControlSourceClass
The class structure of Gst.ControlSource.
Attributes
parent_class
(Gst.ObjectClass)
–
Parent class
Gst.ControlSourceClass
The class structure of Gst.ControlSource.
Attributes
parent_class
(Gst.ObjectClass)
–
Parent class
Gst.ControlSource
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.ControlSource
The instance structure of Gst.ControlSource.
Members
parent
(Gst.Object)
–
the parent structure
get_value
(Gst.ControlSourceGetValue)
–
Function for returning a value for a given timestamp
get_value_array
(Gst.ControlSourceGetValueArray)
–
Function for returning a values array for a given timestamp
Gst.ControlSource
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.ControlSource
The instance structure of Gst.ControlSource.
Members
parent
(Gst.Object)
–
the parent structure
get_value
(Gst.ControlSourceGetValue)
–
Function for returning a value for a given timestamp
get_value_array
(Gst.ControlSourceGetValueArray)
–
Function for returning a values array for a given timestamp
Methods
gst_control_source_get_value
gboolean gst_control_source_get_value (GstControlSource * self, GstClockTime timestamp, gdouble * value)
Gets the value for this GstControlSource at a given timestamp.
Parameters:
self
–
the GstControlSource object
timestamp
–
the time for which the value should be returned
value
(
[out])
–
the value
Gst.ControlSource.prototype.control_source_get_value
function Gst.ControlSource.prototype.control_source_get_value(timestamp: Number): {
// javascript wrapper for 'gst_control_source_get_value'
}
Gets the value for this Gst.ControlSource at a given timestamp.
Returns a tuple made of:
Gst.ControlSource.control_source_get_value
def Gst.ControlSource.control_source_get_value (self, timestamp):
#python wrapper for 'gst_control_source_get_value'
Gets the value for this Gst.ControlSource at a given timestamp.
Returns a tuple made of:
gst_control_source_get_value_array
gboolean gst_control_source_get_value_array (GstControlSource * self, GstClockTime timestamp, GstClockTime interval, guint n_values, gdouble * values)
Gets an array of values for for this GstControlSource. Values that are undefined contain NANs.
Parameters:
self
–
the GstControlSource object
timestamp
–
the first timestamp
interval
–
the time steps
n_values
–
the number of values to fetch
values
(
[arraylength=n_values])
–
array to put control-values in
Gst.ControlSource.prototype.control_source_get_value_array
function Gst.ControlSource.prototype.control_source_get_value_array(timestamp: Number, interval: Number, n_values: Number, values: [ Number ]): {
// javascript wrapper for 'gst_control_source_get_value_array'
}
Gets an array of values for for this Gst.ControlSource. Values that are undefined contain NANs.
Parameters:
the Gst.ControlSource object
the first timestamp
the time steps
the number of values to fetch
array to put control-values in
Gst.ControlSource.control_source_get_value_array
def Gst.ControlSource.control_source_get_value_array (self, timestamp, interval, n_values, values):
#python wrapper for 'gst_control_source_get_value_array'
Gets an array of values for for this Gst.ControlSource. Values that are undefined contain NANs.
Parameters:
the Gst.ControlSource object
the first timestamp
the time steps
the number of values to fetch
array to put control-values in
GstTimedValue
Structure for storing a timestamp and a value.
Members
timestamp
(GstClockTime)
–
timestamp of the value change
value
(gdouble)
–
the corresponding value
Gst.TimedValue
Structure for storing a timestamp and a value.
Constants
GST_TYPE_CONTROL_SOURCE
#define GST_TYPE_CONTROL_SOURCE \ (gst_control_source_get_type())
Callbacks
GstControlSourceGetValue
gboolean (*GstControlSourceGetValue) (GstControlSource * self, GstClockTime timestamp, gdouble * value)
Function for returning a value for a given timestamp.
Parameters:
self
–
the GstControlSource instance
timestamp
–
timestamp for which a value should be calculated
value
–
a value which will be set to the result.
TRUE if the value was successfully calculated.
Gst.ControlSourceGetValue
function Gst.ControlSourceGetValue(self: Gst.ControlSource, timestamp: Number, value: Number): {
// javascript wrapper for 'GstControlSourceGetValue'
}
Function for returning a value for a given timestamp.
Parameters:
the Gst.ControlSource instance
timestamp for which a value should be calculated
a value which will be set to the result.
Gst.ControlSourceGetValue
def Gst.ControlSourceGetValue (self, timestamp, value):
#python wrapper for 'GstControlSourceGetValue'
Function for returning a value for a given timestamp.
Parameters:
the Gst.ControlSource instance
timestamp for which a value should be calculated
a value which will be set to the result.
GstControlSourceGetValueArray
gboolean (*GstControlSourceGetValueArray) (GstControlSource * self, GstClockTime timestamp, GstClockTime interval, guint n_values, gdouble * values)
Function for returning an array of values starting at a given timestamp.
Parameters:
self
–
the GstControlSource instance
timestamp
–
timestamp for which a value should be calculated
interval
–
the time spacing between subsequent values
n_values
–
the number of values
values
–
array to put control-values in
TRUE if the values were successfully calculated.
Gst.ControlSourceGetValueArray
function Gst.ControlSourceGetValueArray(self: Gst.ControlSource, timestamp: Number, interval: Number, n_values: Number, values: Number): {
// javascript wrapper for 'GstControlSourceGetValueArray'
}
Function for returning an array of values starting at a given timestamp.
Parameters:
the Gst.ControlSource instance
timestamp for which a value should be calculated
the time spacing between subsequent values
the number of values
array to put control-values in
Gst.ControlSourceGetValueArray
def Gst.ControlSourceGetValueArray (self, timestamp, interval, n_values, values):
#python wrapper for 'GstControlSourceGetValueArray'
Function for returning an array of values starting at a given timestamp.
Parameters:
the Gst.ControlSource instance
timestamp for which a value should be calculated
the time spacing between subsequent values
the number of values
array to put control-values in
The results of the search are