Class StdVideoVP9SegmentationFlags

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoVP9SegmentationFlags extends Struct<StdVideoVP9SegmentationFlags> implements NativeResource

 struct StdVideoVP9SegmentationFlags {
     uint32_t segmentation_update_map : 1;
     uint32_t segmentation_temporal_update : 1;
     uint32_t segmentation_update_data : 1;
     uint32_t segmentation_abs_or_delta_update : 1;
     uint32_t reserved : 28;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BITFIELD0
      The struct member offsets.
    • BITFIELD1

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

    • StdVideoVP9SegmentationFlags

      public StdVideoVP9SegmentationFlags(ByteBuffer container)
      Creates a StdVideoVP9SegmentationFlags 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<StdVideoVP9SegmentationFlags>
    • segmentation_update_map

      public boolean segmentation_update_map()
      Returns:
      the value of the segmentation_update_map field.
    • segmentation_temporal_update

      public boolean segmentation_temporal_update()
      Returns:
      the value of the segmentation_temporal_update field.
    • segmentation_update_data

      public boolean segmentation_update_data()
      Returns:
      the value of the segmentation_update_data field.
    • segmentation_abs_or_delta_update

      public boolean segmentation_abs_or_delta_update()
      Returns:
      the value of the segmentation_abs_or_delta_update field.
    • segmentation_update_map

      public StdVideoVP9SegmentationFlags segmentation_update_map(boolean value)
      Sets the specified value to the segmentation_update_map field.
    • segmentation_temporal_update

      public StdVideoVP9SegmentationFlags segmentation_temporal_update(boolean value)
      Sets the specified value to the segmentation_temporal_update field.
    • segmentation_update_data

      public StdVideoVP9SegmentationFlags segmentation_update_data(boolean value)
      Sets the specified value to the segmentation_update_data field.
    • segmentation_abs_or_delta_update

      public StdVideoVP9SegmentationFlags segmentation_abs_or_delta_update(boolean value)
      Sets the specified value to the segmentation_abs_or_delta_update field.
    • set

      public StdVideoVP9SegmentationFlags set(boolean segmentation_update_map, boolean segmentation_temporal_update, boolean segmentation_update_data, boolean segmentation_abs_or_delta_update)
      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 StdVideoVP9SegmentationFlags malloc()
      Returns a new StdVideoVP9SegmentationFlags instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static StdVideoVP9SegmentationFlags.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new StdVideoVP9SegmentationFlags.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
    • nbitfield0

      public static int nbitfield0(long struct)
    • nsegmentation_update_map

      public static int nsegmentation_update_map(long struct)
      Unsafe version of segmentation_update_map().
    • nsegmentation_temporal_update

      public static int nsegmentation_temporal_update(long struct)
    • nsegmentation_update_data

      public static int nsegmentation_update_data(long struct)
      Unsafe version of segmentation_update_data().
    • nsegmentation_abs_or_delta_update

      public static int nsegmentation_abs_or_delta_update(long struct)
    • nbitfield1

      public static int nbitfield1(long struct)
    • nreserved

      public static int nreserved(long struct)
    • nbitfield0

      public static void nbitfield0(long struct, int value)
    • nsegmentation_update_map

      public static void nsegmentation_update_map(long struct, int value)
      Unsafe version of segmentation_update_map.
    • nsegmentation_temporal_update

      public static void nsegmentation_temporal_update(long struct, int value)
      Unsafe version of segmentation_temporal_update.
    • nsegmentation_update_data

      public static void nsegmentation_update_data(long struct, int value)
      Unsafe version of segmentation_update_data.
    • nsegmentation_abs_or_delta_update

      public static void nsegmentation_abs_or_delta_update(long struct, int value)
    • nbitfield1

      public static void nbitfield1(long struct, int value)
    • nreserved

      public static void nreserved(long struct, int value)