Package ch.bailu.gtk.gst
Klasse ControlBinding
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gst.ControlBinding
- Alle implementierten Schnittstellen:
PointerInterface
A base class for value mapping objects that attaches control sources to #GObject
properties. Such an object is taking one or more #GstControlSource instances,
combines them and maps the resulting value to the type and value range of the
bound property.
properties. Such an object is taking one or more #GstControlSource instances,
combines them and maps the resulting value to the type and value range of the
bound property.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
getValue
(long timestamp) Gets the value for the given controlled property at the requested time.boolean
getValueArray
(long timestamp, long interval, int n_values, Pointer values) Gets a number of values for the given controlled property starting at the
requested time.boolean
Checks if the control binding is disabled.void
setDisabled
(boolean disabled) This function is used to disable a control binding for some time, i.e.boolean
syncValues
(Object object, long timestamp, long last_sync) Sets the property of the @object, according to the #GstControlSources that
handles it and for the given timestamp.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ControlBinding
-
-
Methodendetails
-
getClassHandler
-
getValue
Gets the value for the given controlled property at the requested time.- Parameter:
timestamp
- the time the control-change should be read from- Gibt zurück:
- the GValue of the property at the given time, or %NULL if the property isn't controlled.
-
getValueArray
Gets a number of values for the given controlled property starting at the
requested time. The array @values needs to hold enough space for @n_values of
the same type as the objects property's type.
This function is useful if one wants to e.g. draw a graph of the control
curve or apply a control curve sample by sample.
The values are unboxed and ready to be used. The similar function
gst_control_binding_get_g_value_array() returns the array as #GValues and is
more suitable for bindings.- Parameter:
timestamp
- the time that should be processedinterval
- the time spacing between subsequent valuesn_values
- the number of valuesvalues
- array to put control-values in- Gibt zurück:
- %TRUE if the given array could be filled, %FALSE otherwise
-
isDisabled
public boolean isDisabled()Checks if the control binding is disabled.- Gibt zurück:
- %TRUE if the binding is inactive
-
setDisabled
public void setDisabled(boolean disabled) This function is used to disable a control binding for some time, i.e.
gst_object_sync_values() will do nothing.- Parameter:
disabled
- boolean that specifies whether to disable the controller or not.
-
syncValues
Sets the property of the @object, according to the #GstControlSources that
handles it and for the given timestamp.
If this function fails, it is most likely the application developers fault.
Most probably the control sources are not setup correctly.- Parameter:
object
- the object that has controlled propertiestimestamp
- the time that should be processedlast_sync
- the last time this was called- Gibt zurück:
- %TRUE if the controller value could be applied to the object property, %FALSE otherwise
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-