Class StdVideoAV1ColorConfig

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoAV1ColorConfig extends Struct<StdVideoAV1ColorConfig> implements NativeResource

 struct StdVideoAV1ColorConfig {
     {@link StdVideoAV1ColorConfigFlags StdVideoAV1ColorConfigFlags} flags;
     uint8_t BitDepth;
     uint8_t subsampling_x;
     uint8_t subsampling_y;
     uint8_t reserved1;
     StdVideoAV1ColorPrimaries color_primaries;
     StdVideoAV1TransferCharacteristics transfer_characteristics;
     StdVideoAV1MatrixCoefficients matrix_coefficients;
     StdVideoAV1ChromaSamplePosition chroma_sample_position;
 }
  • 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.
    • BITDEPTH

      public static final int BITDEPTH
      The struct member offsets.
    • SUBSAMPLING_X

      public static final int SUBSAMPLING_X
      The struct member offsets.
    • SUBSAMPLING_Y

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

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

      public static final int COLOR_PRIMARIES
      The struct member offsets.
    • TRANSFER_CHARACTERISTICS

      public static final int TRANSFER_CHARACTERISTICS
      The struct member offsets.
    • MATRIX_COEFFICIENTS

      public static final int MATRIX_COEFFICIENTS
      The struct member offsets.
    • CHROMA_SAMPLE_POSITION

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

    • StdVideoAV1ColorConfig

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

      Returns:
      a StdVideoAV1ColorConfigFlags view of the flags field.
    • BitDepth

      public byte BitDepth()
      Returns:
      the value of the BitDepth field.
    • subsampling_x

      public byte subsampling_x()
      Returns:
      the value of the subsampling_x field.
    • subsampling_y

      public byte subsampling_y()
      Returns:
      the value of the subsampling_y field.
    • color_primaries

      public int color_primaries()
      Returns:
      the value of the color_primaries field.
    • transfer_characteristics

      public int transfer_characteristics()
      Returns:
      the value of the transfer_characteristics field.
    • matrix_coefficients

      public int matrix_coefficients()
      Returns:
      the value of the matrix_coefficients field.
    • chroma_sample_position

      public int chroma_sample_position()
      Returns:
      the value of the chroma_sample_position field.
    • flags

      Copies the specified StdVideoAV1ColorConfigFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • BitDepth

      public StdVideoAV1ColorConfig BitDepth(byte value)
      Sets the specified value to the BitDepth field.
    • subsampling_x

      public StdVideoAV1ColorConfig subsampling_x(byte value)
      Sets the specified value to the subsampling_x field.
    • subsampling_y

      public StdVideoAV1ColorConfig subsampling_y(byte value)
      Sets the specified value to the subsampling_y field.
    • color_primaries

      public StdVideoAV1ColorConfig color_primaries(int value)
      Sets the specified value to the color_primaries field.
    • transfer_characteristics

      public StdVideoAV1ColorConfig transfer_characteristics(int value)
      Sets the specified value to the transfer_characteristics field.
    • matrix_coefficients

      public StdVideoAV1ColorConfig matrix_coefficients(int value)
      Sets the specified value to the matrix_coefficients field.
    • chroma_sample_position

      public StdVideoAV1ColorConfig chroma_sample_position(int value)
      Sets the specified value to the chroma_sample_position field.
    • set

      public StdVideoAV1ColorConfig set(StdVideoAV1ColorConfigFlags flags, byte BitDepth, byte subsampling_x, byte subsampling_y, int color_primaries, int transfer_characteristics, int matrix_coefficients, int chroma_sample_position)
      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 StdVideoAV1ColorConfig malloc()
      Returns a new StdVideoAV1ColorConfig instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static StdVideoAV1ColorConfig.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new StdVideoAV1ColorConfig.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 StdVideoAV1ColorConfigFlags nflags(long struct)
      Unsafe version of flags().
    • nBitDepth

      public static byte nBitDepth(long struct)
      Unsafe version of BitDepth().
    • nsubsampling_x

      public static byte nsubsampling_x(long struct)
      Unsafe version of subsampling_x().
    • nsubsampling_y

      public static byte nsubsampling_y(long struct)
      Unsafe version of subsampling_y().
    • nreserved1

      public static byte nreserved1(long struct)
    • ncolor_primaries

      public static int ncolor_primaries(long struct)
      Unsafe version of color_primaries().
    • ntransfer_characteristics

      public static int ntransfer_characteristics(long struct)
      Unsafe version of transfer_characteristics().
    • nmatrix_coefficients

      public static int nmatrix_coefficients(long struct)
      Unsafe version of matrix_coefficients().
    • nchroma_sample_position

      public static int nchroma_sample_position(long struct)
      Unsafe version of chroma_sample_position().
    • nflags

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

      public static void nBitDepth(long struct, byte value)
      Unsafe version of BitDepth.
    • nsubsampling_x

      public static void nsubsampling_x(long struct, byte value)
      Unsafe version of subsampling_x.
    • nsubsampling_y

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

      public static void nreserved1(long struct, byte value)
    • ncolor_primaries

      public static void ncolor_primaries(long struct, int value)
      Unsafe version of color_primaries.
    • ntransfer_characteristics

      public static void ntransfer_characteristics(long struct, int value)
      Unsafe version of transfer_characteristics.
    • nmatrix_coefficients

      public static void nmatrix_coefficients(long struct, int value)
      Unsafe version of matrix_coefficients.
    • nchroma_sample_position

      public static void nchroma_sample_position(long struct, int value)
      Unsafe version of chroma_sample_position.