Class TimedValue

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.TimedValue
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class TimedValue extends ProxyInstance
Structure for storing a timestamp and a value.
  • Constructor Details

    • TimedValue

      public TimedValue(MemorySegment address)
      Create a TimedValue proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • TimedValue

      public TimedValue(Arena arena)
      Allocate a new TimedValue.
      Parameters:
      arena - to control the memory allocation scope
    • TimedValue

      public TimedValue()
      Allocate a new TimedValue. The memory is allocated with Arena.ofAuto().
    • TimedValue

      public TimedValue(ClockTime timestamp, double value, Arena arena)
      Allocate a new TimedValue with the fields set to the provided values.
      Parameters:
      timestamp - value for the field timestamp
      value - value for the field value
      arena - to control the memory allocation scope
    • TimedValue

      public TimedValue(ClockTime timestamp, double value)
      Allocate a new TimedValue with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      timestamp - value for the field timestamp
      value - value for the field value
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readTimestamp

      public ClockTime readTimestamp()
      Read the value of the field timestamp.
      Returns:
      The value of the field timestamp
    • writeTimestamp

      public void writeTimestamp(ClockTime timestamp)
      Write a value in the field timestamp.
      Parameters:
      timestamp - The new value for the field timestamp
    • readValue

      public double readValue()
      Read the value of the field value.
      Returns:
      The value of the field value
    • writeValue

      public void writeValue(double value)
      Write a value in the field value.
      Parameters:
      value - The new value for the field value