public class TimedValueControlSource extends ControlSource
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer-libs/html/GstTimedValueControlSource.html
Base class for ControlSource that use time-stamped values.
When overriding bind, chain up first to give this bind implementation a chance to setup things.
All functions are MT-safe.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TimedValueControlSource.Handle |
ControlSource.TimedValueGObject.GCallback, GObject.GInterfaceNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
TimedValueControlSource(TimedValueControlSource.Handle handle,
boolean needRef) |
| Modifier and Type | Method and Description |
|---|---|
List<ControlSource.TimedValue> |
getAll()
Returns a copy of the list of
TimedValue for the given property. |
int |
getCount()
Get the number of control points that are set.
|
void |
invalidateCache()
Reset the controlled value cache.
|
boolean |
set(long timestamp,
double value)
Set the value of given controller-handled property at a certain time.
|
boolean |
setFromList(List<ControlSource.TimedValue> timedValues)
Sets multiple timed values at once.
|
boolean |
unset(long timestamp)
Used to remove the value of given controller-handled property at a
certain time.
|
void |
unsetAll()
Used to remove all time-stamped values of given controller-handled
property.
|
getValue, getValueArrayaddControlBinding, getAsString, getControlBinding, getName, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, setName, suggestNextSync, syncValues, toStringaddCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, setclose, disown, equals, getPointer, getRawPointer, hashCodepublic static final String GTYPE_NAME
protected TimedValueControlSource(TimedValueControlSource.Handle handle, boolean needRef)
public boolean set(long timestamp,
double value)
timestamp - the time the control-change is scheduled forvalue - the control valuepublic boolean setFromList(List<ControlSource.TimedValue> timedValues)
timedValues - a list of TimedValuepublic List<ControlSource.TimedValue> getAll()
TimedValue for the given property.public boolean unset(long timestamp)
timestamp - the time the control-change should be removed frompublic void unsetAll()
public int getCount()
public void invalidateCache()
Copyright © 2021 gstreamer-java. All rights reserved.