Class StdVideoAV1CDEF

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoAV1CDEF extends Struct<StdVideoAV1CDEF> implements NativeResource

 struct StdVideoAV1CDEF {
     uint8_t cdef_damping_minus_3;
     uint8_t cdef_bits;
     uint8_t cdef_y_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
     uint8_t cdef_y_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
     uint8_t cdef_uv_pri_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
     uint8_t cdef_uv_sec_strength[STD_VIDEO_AV1_MAX_CDEF_FILTER_STRENGTHS];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CDEF_DAMPING_MINUS_3
      The struct member offsets.
    • CDEF_BITS

      public static final int CDEF_BITS
      The struct member offsets.
    • CDEF_Y_PRI_STRENGTH

      public static final int CDEF_Y_PRI_STRENGTH
      The struct member offsets.
    • CDEF_Y_SEC_STRENGTH

      public static final int CDEF_Y_SEC_STRENGTH
      The struct member offsets.
    • CDEF_UV_PRI_STRENGTH

      public static final int CDEF_UV_PRI_STRENGTH
      The struct member offsets.
    • CDEF_UV_SEC_STRENGTH

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

    • StdVideoAV1CDEF

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

      public byte cdef_damping_minus_3()
      Returns:
      the value of the cdef_damping_minus_3 field.
    • cdef_bits

      public byte cdef_bits()
      Returns:
      the value of the cdef_bits field.
    • cdef_y_pri_strength

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

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

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

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

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

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

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

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

      public StdVideoAV1CDEF cdef_damping_minus_3(byte value)
      Sets the specified value to the cdef_damping_minus_3 field.
    • cdef_bits

      public StdVideoAV1CDEF cdef_bits(byte value)
      Sets the specified value to the cdef_bits field.
    • cdef_y_pri_strength

      public StdVideoAV1CDEF cdef_y_pri_strength(ByteBuffer value)
      Copies the specified ByteBuffer to the cdef_y_pri_strength field.
    • cdef_y_pri_strength

      public StdVideoAV1CDEF cdef_y_pri_strength(int index, byte value)
      Sets the specified value at the specified index of the cdef_y_pri_strength field.
    • cdef_y_sec_strength

      public StdVideoAV1CDEF cdef_y_sec_strength(ByteBuffer value)
      Copies the specified ByteBuffer to the cdef_y_sec_strength field.
    • cdef_y_sec_strength

      public StdVideoAV1CDEF cdef_y_sec_strength(int index, byte value)
      Sets the specified value at the specified index of the cdef_y_sec_strength field.
    • cdef_uv_pri_strength

      public StdVideoAV1CDEF cdef_uv_pri_strength(ByteBuffer value)
      Copies the specified ByteBuffer to the cdef_uv_pri_strength field.
    • cdef_uv_pri_strength

      public StdVideoAV1CDEF cdef_uv_pri_strength(int index, byte value)
      Sets the specified value at the specified index of the cdef_uv_pri_strength field.
    • cdef_uv_sec_strength

      public StdVideoAV1CDEF cdef_uv_sec_strength(ByteBuffer value)
      Copies the specified ByteBuffer to the cdef_uv_sec_strength field.
    • cdef_uv_sec_strength

      public StdVideoAV1CDEF cdef_uv_sec_strength(int index, byte value)
      Sets the specified value at the specified index of the cdef_uv_sec_strength field.
    • set

      public StdVideoAV1CDEF set(byte cdef_damping_minus_3, byte cdef_bits, ByteBuffer cdef_y_pri_strength, ByteBuffer cdef_y_sec_strength, ByteBuffer cdef_uv_pri_strength, ByteBuffer cdef_uv_sec_strength)
      Initializes this struct with the specified values.
    • set

      public StdVideoAV1CDEF set(StdVideoAV1CDEF src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte ncdef_damping_minus_3(long struct)
      Unsafe version of cdef_damping_minus_3().
    • ncdef_bits

      public static byte ncdef_bits(long struct)
      Unsafe version of cdef_bits().
    • ncdef_y_pri_strength

      public static ByteBuffer ncdef_y_pri_strength(long struct)
      Unsafe version of cdef_y_pri_strength().
    • ncdef_y_pri_strength

      public static byte ncdef_y_pri_strength(long struct, int index)
      Unsafe version of cdef_y_pri_strength.
    • ncdef_y_sec_strength

      public static ByteBuffer ncdef_y_sec_strength(long struct)
      Unsafe version of cdef_y_sec_strength().
    • ncdef_y_sec_strength

      public static byte ncdef_y_sec_strength(long struct, int index)
      Unsafe version of cdef_y_sec_strength.
    • ncdef_uv_pri_strength

      public static ByteBuffer ncdef_uv_pri_strength(long struct)
      Unsafe version of cdef_uv_pri_strength().
    • ncdef_uv_pri_strength

      public static byte ncdef_uv_pri_strength(long struct, int index)
      Unsafe version of cdef_uv_pri_strength.
    • ncdef_uv_sec_strength

      public static ByteBuffer ncdef_uv_sec_strength(long struct)
      Unsafe version of cdef_uv_sec_strength().
    • ncdef_uv_sec_strength

      public static byte ncdef_uv_sec_strength(long struct, int index)
      Unsafe version of cdef_uv_sec_strength.
    • ncdef_damping_minus_3

      public static void ncdef_damping_minus_3(long struct, byte value)
      Unsafe version of cdef_damping_minus_3.
    • ncdef_bits

      public static void ncdef_bits(long struct, byte value)
      Unsafe version of cdef_bits.
    • ncdef_y_pri_strength

      public static void ncdef_y_pri_strength(long struct, ByteBuffer value)
      Unsafe version of cdef_y_pri_strength.
    • ncdef_y_pri_strength

      public static void ncdef_y_pri_strength(long struct, int index, byte value)
      Unsafe version of cdef_y_pri_strength.
    • ncdef_y_sec_strength

      public static void ncdef_y_sec_strength(long struct, ByteBuffer value)
      Unsafe version of cdef_y_sec_strength.
    • ncdef_y_sec_strength

      public static void ncdef_y_sec_strength(long struct, int index, byte value)
      Unsafe version of cdef_y_sec_strength.
    • ncdef_uv_pri_strength

      public static void ncdef_uv_pri_strength(long struct, ByteBuffer value)
      Unsafe version of cdef_uv_pri_strength.
    • ncdef_uv_pri_strength

      public static void ncdef_uv_pri_strength(long struct, int index, byte value)
      Unsafe version of cdef_uv_pri_strength.
    • ncdef_uv_sec_strength

      public static void ncdef_uv_sec_strength(long struct, ByteBuffer value)
      Unsafe version of cdef_uv_sec_strength.
    • ncdef_uv_sec_strength

      public static void ncdef_uv_sec_strength(long struct, int index, byte value)
      Unsafe version of cdef_uv_sec_strength.