Klasse ControlBinding

Alle implementierten Schnittstellen:
PointerInterface

public class ControlBinding extends PropertyHolder
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.

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getValue

      public Value getValue(long timestamp)
      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

      public boolean getValueArray(long timestamp, long interval, int n_values, @Nonnull Pointer values)
      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 processed
      interval - the time spacing between subsequent values
      n_values - the number of values
      values - 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

      public boolean syncValues(@Nonnull 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.

      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 properties
      timestamp - the time that should be processed
      last_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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()