Class StdVideoAV1ColorConfigFlags

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoAV1ColorConfigFlags extends Struct<StdVideoAV1ColorConfigFlags> implements NativeResource

 struct StdVideoAV1ColorConfigFlags {
     uint32_t mono_chrome : 1;
     uint32_t color_range : 1;
     uint32_t separate_uv_delta_q : 1;
     uint32_t color_description_present_flag : 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

    • StdVideoAV1ColorConfigFlags

      public StdVideoAV1ColorConfigFlags(ByteBuffer container)
      Creates a StdVideoAV1ColorConfigFlags 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<StdVideoAV1ColorConfigFlags>
    • mono_chrome

      public boolean mono_chrome()
      Returns:
      the value of the mono_chrome field.
    • color_range

      public boolean color_range()
      Returns:
      the value of the color_range field.
    • separate_uv_delta_q

      public boolean separate_uv_delta_q()
      Returns:
      the value of the separate_uv_delta_q field.
    • color_description_present_flag

      public boolean color_description_present_flag()
      Returns:
      the value of the color_description_present_flag field.
    • mono_chrome

      public StdVideoAV1ColorConfigFlags mono_chrome(boolean value)
      Sets the specified value to the mono_chrome field.
    • color_range

      public StdVideoAV1ColorConfigFlags color_range(boolean value)
      Sets the specified value to the color_range field.
    • separate_uv_delta_q

      public StdVideoAV1ColorConfigFlags separate_uv_delta_q(boolean value)
      Sets the specified value to the separate_uv_delta_q field.
    • color_description_present_flag

      public StdVideoAV1ColorConfigFlags color_description_present_flag(boolean value)
      Sets the specified value to the color_description_present_flag field.
    • set

      public StdVideoAV1ColorConfigFlags set(boolean mono_chrome, boolean color_range, boolean separate_uv_delta_q, boolean color_description_present_flag)
      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 StdVideoAV1ColorConfigFlags malloc()
      Returns a new StdVideoAV1ColorConfigFlags instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nmono_chrome(long struct)
      Unsafe version of mono_chrome().
    • ncolor_range

      public static int ncolor_range(long struct)
      Unsafe version of color_range().
    • nseparate_uv_delta_q

      public static int nseparate_uv_delta_q(long struct)
      Unsafe version of separate_uv_delta_q().
    • ncolor_description_present_flag

      public static int ncolor_description_present_flag(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)
    • nmono_chrome

      public static void nmono_chrome(long struct, int value)
      Unsafe version of mono_chrome.
    • ncolor_range

      public static void ncolor_range(long struct, int value)
      Unsafe version of color_range.
    • nseparate_uv_delta_q

      public static void nseparate_uv_delta_q(long struct, int value)
      Unsafe version of separate_uv_delta_q.
    • ncolor_description_present_flag

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

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

      public static void nreserved(long struct, int value)