Class StdVideoAV1FilmGrainFlags

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoAV1FilmGrainFlags extends Struct<StdVideoAV1FilmGrainFlags> implements NativeResource

 struct StdVideoAV1FilmGrainFlags {
     uint32_t chroma_scaling_from_luma : 1;
     uint32_t overlap_flag : 1;
     uint32_t clip_to_restricted_range : 1;
     uint32_t update_grain : 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

    • StdVideoAV1FilmGrainFlags

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

      public boolean chroma_scaling_from_luma()
      Returns:
      the value of the chroma_scaling_from_luma field.
    • overlap_flag

      public boolean overlap_flag()
      Returns:
      the value of the overlap_flag field.
    • clip_to_restricted_range

      public boolean clip_to_restricted_range()
      Returns:
      the value of the clip_to_restricted_range field.
    • update_grain

      public boolean update_grain()
      Returns:
      the value of the update_grain field.
    • chroma_scaling_from_luma

      public StdVideoAV1FilmGrainFlags chroma_scaling_from_luma(boolean value)
      Sets the specified value to the chroma_scaling_from_luma field.
    • overlap_flag

      public StdVideoAV1FilmGrainFlags overlap_flag(boolean value)
      Sets the specified value to the overlap_flag field.
    • clip_to_restricted_range

      public StdVideoAV1FilmGrainFlags clip_to_restricted_range(boolean value)
      Sets the specified value to the clip_to_restricted_range field.
    • update_grain

      public StdVideoAV1FilmGrainFlags update_grain(boolean value)
      Sets the specified value to the update_grain field.
    • set

      public StdVideoAV1FilmGrainFlags set(boolean chroma_scaling_from_luma, boolean overlap_flag, boolean clip_to_restricted_range, boolean update_grain)
      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 StdVideoAV1FilmGrainFlags malloc()
      Returns a new StdVideoAV1FilmGrainFlags instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nchroma_scaling_from_luma(long struct)
      Unsafe version of chroma_scaling_from_luma().
    • noverlap_flag

      public static int noverlap_flag(long struct)
      Unsafe version of overlap_flag().
    • nclip_to_restricted_range

      public static int nclip_to_restricted_range(long struct)
      Unsafe version of clip_to_restricted_range().
    • nupdate_grain

      public static int nupdate_grain(long struct)
      Unsafe version of update_grain().
    • nbitfield1

      public static int nbitfield1(long struct)
    • nreserved

      public static int nreserved(long struct)
    • nbitfield0

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

      public static void nchroma_scaling_from_luma(long struct, int value)
      Unsafe version of chroma_scaling_from_luma.
    • noverlap_flag

      public static void noverlap_flag(long struct, int value)
      Unsafe version of overlap_flag.
    • nclip_to_restricted_range

      public static void nclip_to_restricted_range(long struct, int value)
      Unsafe version of clip_to_restricted_range.
    • nupdate_grain

      public static void nupdate_grain(long struct, int value)
      Unsafe version of update_grain.
    • nbitfield1

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

      public static void nreserved(long struct, int value)