Class StdVideoAV1Segmentation

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoAV1Segmentation>
org.lwjgl.vulkan.video.StdVideoAV1Segmentation
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class StdVideoAV1Segmentation extends org.lwjgl.system.Struct<StdVideoAV1Segmentation> implements org.lwjgl.system.NativeResource

Layout


 struct StdVideoAV1Segmentation {
     uint8_t FeatureEnabled[STD_VIDEO_AV1_MAX_SEGMENTS];
     int16_t FeatureData[STD_VIDEO_AV1_SEG_LVL_MAX];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FEATUREENABLED

      public static final int FEATUREENABLED
      The struct member offsets.
    • FEATUREDATA

      public static final int FEATUREDATA
      The struct member offsets.
  • Constructor Details

    • StdVideoAV1Segmentation

      public StdVideoAV1Segmentation(ByteBuffer container)
      Creates a StdVideoAV1Segmentation instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<StdVideoAV1Segmentation>
    • FeatureEnabled

      public ByteBuffer FeatureEnabled()
      Returns:
      a ByteBuffer view of the FeatureEnabled field.
    • FeatureEnabled

      public byte FeatureEnabled(int index)
      Returns:
      the value at the specified index of the FeatureEnabled field.
    • FeatureData

      public ShortBuffer FeatureData()
      Returns:
      a ShortBuffer view of the FeatureData field.
    • FeatureData

      public short FeatureData(int index)
      Returns:
      the value at the specified index of the FeatureData field.
    • FeatureEnabled

      public StdVideoAV1Segmentation FeatureEnabled(ByteBuffer value)
      Copies the specified ByteBuffer to the FeatureEnabled field.
    • FeatureEnabled

      public StdVideoAV1Segmentation FeatureEnabled(int index, byte value)
      Sets the specified value at the specified index of the FeatureEnabled field.
    • FeatureData

      public StdVideoAV1Segmentation FeatureData(ShortBuffer value)
      Copies the specified ShortBuffer to the FeatureData field.
    • FeatureData

      public StdVideoAV1Segmentation FeatureData(int index, short value)
      Sets the specified value at the specified index of the FeatureData field.
    • set

      public StdVideoAV1Segmentation set(ByteBuffer FeatureEnabled, ShortBuffer FeatureData)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static StdVideoAV1Segmentation malloc()
      Returns a new StdVideoAV1Segmentation instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static StdVideoAV1Segmentation calloc()
      Returns a new StdVideoAV1Segmentation instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static StdVideoAV1Segmentation create()
      Returns a new StdVideoAV1Segmentation instance allocated with BufferUtils.
    • create

      public static StdVideoAV1Segmentation create(long address)
      Returns a new StdVideoAV1Segmentation instance for the specified memory address.
    • createSafe

      public static @Nullable StdVideoAV1Segmentation createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static StdVideoAV1Segmentation.Buffer malloc(int capacity)
      Returns a new StdVideoAV1Segmentation.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static StdVideoAV1Segmentation.Buffer calloc(int capacity)
      Returns a new StdVideoAV1Segmentation.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static StdVideoAV1Segmentation.Buffer create(int capacity)
      Returns a new StdVideoAV1Segmentation.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static StdVideoAV1Segmentation.Buffer create(long address, int capacity)
      Create a StdVideoAV1Segmentation.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable StdVideoAV1Segmentation.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static StdVideoAV1Segmentation malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1Segmentation instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static StdVideoAV1Segmentation calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1Segmentation instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static StdVideoAV1Segmentation.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1Segmentation.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static StdVideoAV1Segmentation.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoAV1Segmentation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nFeatureEnabled

      public static ByteBuffer nFeatureEnabled(long struct)
      Unsafe version of FeatureEnabled().
    • nFeatureEnabled

      public static byte nFeatureEnabled(long struct, int index)
      Unsafe version of FeatureEnabled.
    • nFeatureData

      public static ShortBuffer nFeatureData(long struct)
      Unsafe version of FeatureData().
    • nFeatureData

      public static short nFeatureData(long struct, int index)
      Unsafe version of FeatureData.
    • nFeatureEnabled

      public static void nFeatureEnabled(long struct, ByteBuffer value)
      Unsafe version of FeatureEnabled.
    • nFeatureEnabled

      public static void nFeatureEnabled(long struct, int index, byte value)
      Unsafe version of FeatureEnabled.
    • nFeatureData

      public static void nFeatureData(long struct, ShortBuffer value)
      Unsafe version of FeatureData.
    • nFeatureData

      public static void nFeatureData(long struct, int index, short value)
      Unsafe version of FeatureData.