Klasse ControlSource

Alle implementierten Schnittstellen:
PointerInterface

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

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

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • controlSourceGetValue

      public boolean controlSourceGetValue(long timestamp, @Nonnull Dbl value)
      Gets the value for this #GstControlSource at a given timestamp.
      Parameter:
      timestamp - the time for which the value should be returned
      value - the value
      Gibt zurück:
      %FALSE if the value couldn't be returned, %TRUE otherwise.
    • controlSourceGetValueArray

      public boolean controlSourceGetValueArray(long timestamp, long interval, int n_values, @Nonnull Dbl values)
      Gets an array of values for for this #GstControlSource. Values that are
      undefined contain NANs.
      Parameter:
      timestamp - the first timestamp
      interval - the time steps
      n_values - the number of values to fetch
      values - array to put control-values in
      Gibt zurück:
      %TRUE if the given array could be filled, %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()