mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
docs: update controller design doc
This commit is contained in:
parent
33e381743b
commit
5668654ed5
1 changed files with 15 additions and 2 deletions
|
@ -13,11 +13,24 @@ Elements don't need to do much. They need to:
|
||||||
- call gst_object_sync_values (self, timestamp) in the processing function
|
- call gst_object_sync_values (self, timestamp) in the processing function
|
||||||
before accessing the parameters.
|
before accessing the parameters.
|
||||||
|
|
||||||
|
All ordered property types can be automated (int, double, boolean, enum).
|
||||||
|
|
||||||
Application view
|
Application view
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
Application need to setup the property automation. For that they need to create
|
Applications need to setup the property automation. For that they need to create
|
||||||
a GstControlSource and attach it to a property using GstControlBinding. Various
|
a GstControlSource and attach it to a property using GstControlBinding. Various
|
||||||
control-sources and control-bindings exists. All control sources produce control
|
control-sources and control-bindings exist. All control sources produce control
|
||||||
value sequences in the form of gdouble values. The control bindings map them to
|
value sequences in the form of gdouble values. The control bindings map them to
|
||||||
the value range and type of the bound property.
|
the value range and type of the bound property.
|
||||||
|
|
||||||
|
One control-source can be attached to one or more properties at the same time.
|
||||||
|
If it is attached multiple times, then each control-binding will scale and
|
||||||
|
convert the control values to the target property type and range.
|
||||||
|
|
||||||
|
One can create complex control-curves by using a GstInterpolationControlSource.
|
||||||
|
This allows the classic user editable control-curve (often seen in audio/video
|
||||||
|
editors). Another way is to use computed control curves. GstLFOControlSource can
|
||||||
|
generate various repetitive signals. Those can be made more complex by chaining
|
||||||
|
the control sources. One can attach another control-source to e.g. modulate the
|
||||||
|
frequency of the first GstLFOControlSource.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue