Class BufferPoolAcquireParams

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

@Generated("org.javagi.JavaGI") public class BufferPoolAcquireParams extends ProxyInstance

Parameters passed to the gst_buffer_pool_acquire_buffer() function to control the allocation of the buffer.

The default implementation ignores the start and stop members but other implementations can use this extra information to decide what buffer to return.

  • Constructor Details

    • BufferPoolAcquireParams

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

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

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

      public BufferPoolAcquireParams(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags, Arena arena)
      Allocate a new BufferPoolAcquireParams with the fields set to the provided values.
      Parameters:
      format - value for the field format
      start - value for the field start
      stop - value for the field stop
      flags - value for the field flags
      arena - to control the memory allocation scope
    • BufferPoolAcquireParams

      public BufferPoolAcquireParams(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags)
      Allocate a new BufferPoolAcquireParams with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      format - value for the field format
      start - value for the field start
      stop - value for the field stop
      flags - value for the field flags
  • Method Details

    • getMemoryLayout

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

      public Format readFormat()
      Read the value of the field format.
      Returns:
      The value of the field format
    • writeFormat

      public void writeFormat(Format format)
      Write a value in the field format.
      Parameters:
      format - The new value for the field format
    • readStart

      public long readStart()
      Read the value of the field start.
      Returns:
      The value of the field start
    • writeStart

      public void writeStart(long start)
      Write a value in the field start.
      Parameters:
      start - The new value for the field start
    • readStop

      public long readStop()
      Read the value of the field stop.
      Returns:
      The value of the field stop
    • writeStop

      public void writeStop(long stop)
      Write a value in the field stop.
      Parameters:
      stop - The new value for the field stop
    • readFlags

      public Set<BufferPoolAcquireFlags> readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(Set<BufferPoolAcquireFlags> flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags