Class StdVideoAV1TileInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoAV1TileInfo extends Struct<StdVideoAV1TileInfo> implements NativeResource

 struct StdVideoAV1TileInfo {
     {@link StdVideoAV1TileInfoFlag StdVideoAV1TileInfoFlag} flags;
     uint8_t TileCols;
     uint8_t TileRows;
     uint16_t context_update_tile_id;
     uint8_t tile_size_bytes_minus_1;
     uint8_t reserved1[7];
     uint16_t const * pMiColStarts;
     uint16_t const * pMiRowStarts;
     uint16_t const * pWidthInSbsMinus1;
     uint16_t const * pHeightInSbsMinus1;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FLAGS
      The struct member offsets.
    • TILECOLS

      public static final int TILECOLS
      The struct member offsets.
    • TILEROWS

      public static final int TILEROWS
      The struct member offsets.
    • CONTEXT_UPDATE_TILE_ID

      public static final int CONTEXT_UPDATE_TILE_ID
      The struct member offsets.
    • TILE_SIZE_BYTES_MINUS_1

      public static final int TILE_SIZE_BYTES_MINUS_1
      The struct member offsets.
    • RESERVED1

      public static final int RESERVED1
      The struct member offsets.
    • PMICOLSTARTS

      public static final int PMICOLSTARTS
      The struct member offsets.
    • PMIROWSTARTS

      public static final int PMIROWSTARTS
      The struct member offsets.
    • PWIDTHINSBSMINUS1

      public static final int PWIDTHINSBSMINUS1
      The struct member offsets.
    • PHEIGHTINSBSMINUS1

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

    • StdVideoAV1TileInfo

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

      public StdVideoAV1TileInfoFlag flags()
      Returns:
      a StdVideoAV1TileInfoFlag view of the flags field.
    • TileCols

      public byte TileCols()
      Returns:
      the value of the TileCols field.
    • TileRows

      public byte TileRows()
      Returns:
      the value of the TileRows field.
    • context_update_tile_id

      public short context_update_tile_id()
      Returns:
      the value of the context_update_tile_id field.
    • tile_size_bytes_minus_1

      public byte tile_size_bytes_minus_1()
      Returns:
      the value of the tile_size_bytes_minus_1 field.
    • pMiColStarts

      public ShortBuffer pMiColStarts()
      Returns:
      a ShortBuffer view of the data pointed to by the pMiColStarts field.
    • pMiRowStarts

      public ShortBuffer pMiRowStarts()
      Returns:
      a ShortBuffer view of the data pointed to by the pMiRowStarts field.
    • pWidthInSbsMinus1

      public ShortBuffer pWidthInSbsMinus1()
      Returns:
      a ShortBuffer view of the data pointed to by the pWidthInSbsMinus1 field.
    • pHeightInSbsMinus1

      public ShortBuffer pHeightInSbsMinus1()
      Returns:
      a ShortBuffer view of the data pointed to by the pHeightInSbsMinus1 field.
    • flags

      Copies the specified StdVideoAV1TileInfoFlag to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • TileCols

      public StdVideoAV1TileInfo TileCols(byte value)
      Sets the specified value to the TileCols field.
    • TileRows

      public StdVideoAV1TileInfo TileRows(byte value)
      Sets the specified value to the TileRows field.
    • context_update_tile_id

      public StdVideoAV1TileInfo context_update_tile_id(short value)
      Sets the specified value to the context_update_tile_id field.
    • tile_size_bytes_minus_1

      public StdVideoAV1TileInfo tile_size_bytes_minus_1(byte value)
      Sets the specified value to the tile_size_bytes_minus_1 field.
    • pMiColStarts

      public StdVideoAV1TileInfo pMiColStarts(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the pMiColStarts field.
    • pMiRowStarts

      public StdVideoAV1TileInfo pMiRowStarts(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the pMiRowStarts field.
    • pWidthInSbsMinus1

      public StdVideoAV1TileInfo pWidthInSbsMinus1(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the pWidthInSbsMinus1 field.
    • pHeightInSbsMinus1

      public StdVideoAV1TileInfo pHeightInSbsMinus1(ShortBuffer value)
      Sets the address of the specified ShortBuffer to the pHeightInSbsMinus1 field.
    • set

      public StdVideoAV1TileInfo set(StdVideoAV1TileInfoFlag flags, byte TileCols, byte TileRows, short context_update_tile_id, byte tile_size_bytes_minus_1, ShortBuffer pMiColStarts, ShortBuffer pMiRowStarts, ShortBuffer pWidthInSbsMinus1, ShortBuffer pHeightInSbsMinus1)
      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 StdVideoAV1TileInfo malloc()
      Returns a new StdVideoAV1TileInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static StdVideoAV1TileInfoFlag nflags(long struct)
      Unsafe version of flags().
    • nTileCols

      public static byte nTileCols(long struct)
      Unsafe version of TileCols().
    • nTileRows

      public static byte nTileRows(long struct)
      Unsafe version of TileRows().
    • ncontext_update_tile_id

      public static short ncontext_update_tile_id(long struct)
      Unsafe version of context_update_tile_id().
    • ntile_size_bytes_minus_1

      public static byte ntile_size_bytes_minus_1(long struct)
      Unsafe version of tile_size_bytes_minus_1().
    • nreserved1

      public static ByteBuffer nreserved1(long struct)
    • nreserved1

      public static byte nreserved1(long struct, int index)
    • npMiColStarts

      public static ShortBuffer npMiColStarts(long struct)
      Unsafe version of pMiColStarts.
    • npMiRowStarts

      public static ShortBuffer npMiRowStarts(long struct)
      Unsafe version of pMiRowStarts.
    • npWidthInSbsMinus1

      public static ShortBuffer npWidthInSbsMinus1(long struct)
      Unsafe version of pWidthInSbsMinus1.
    • npHeightInSbsMinus1

      public static ShortBuffer npHeightInSbsMinus1(long struct)
      Unsafe version of pHeightInSbsMinus1.
    • nflags

      public static void nflags(long struct, StdVideoAV1TileInfoFlag value)
      Unsafe version of flags.
    • nTileCols

      public static void nTileCols(long struct, byte value)
      Sets the specified value to the TileCols field of the specified struct.
    • nTileRows

      public static void nTileRows(long struct, byte value)
      Sets the specified value to the TileRows field of the specified struct.
    • ncontext_update_tile_id

      public static void ncontext_update_tile_id(long struct, short value)
      Unsafe version of context_update_tile_id.
    • ntile_size_bytes_minus_1

      public static void ntile_size_bytes_minus_1(long struct, byte value)
      Unsafe version of tile_size_bytes_minus_1.
    • nreserved1

      public static void nreserved1(long struct, ByteBuffer value)
    • nreserved1

      public static void nreserved1(long struct, int index, byte value)
    • npMiColStarts

      public static void npMiColStarts(long struct, ShortBuffer value)
      Unsafe version of pMiColStarts.
    • npMiRowStarts

      public static void npMiRowStarts(long struct, ShortBuffer value)
      Unsafe version of pMiRowStarts.
    • npWidthInSbsMinus1

      public static void npWidthInSbsMinus1(long struct, ShortBuffer value)
      Unsafe version of pWidthInSbsMinus1.
    • npHeightInSbsMinus1

      public static void npHeightInSbsMinus1(long struct, ShortBuffer value)
      Unsafe version of pHeightInSbsMinus1.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate