Class StdVideoH264SequenceParameterSetVui

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoH264SequenceParameterSetVui>
org.lwjgl.vulkan.video.StdVideoH264SequenceParameterSetVui
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class StdVideoH264SequenceParameterSetVui extends org.lwjgl.system.Struct<StdVideoH264SequenceParameterSetVui> implements org.lwjgl.system.NativeResource

Layout


 struct StdVideoH264SequenceParameterSetVui {
     StdVideoH264SpsVuiFlags flags;
     StdVideoH264AspectRatioIdc aspect_ratio_idc;
     uint16_t sar_width;
     uint16_t sar_height;
     uint8_t video_format;
     uint8_t colour_primaries;
     uint8_t transfer_characteristics;
     uint8_t matrix_coefficients;
     uint32_t num_units_in_tick;
     uint32_t time_scale;
     uint8_t max_num_reorder_frames;
     uint8_t max_dec_frame_buffering;
     uint8_t chroma_sample_loc_type_top_field;
     uint8_t chroma_sample_loc_type_bottom_field;
     uint32_t reserved1;
     StdVideoH264HrdParameters const * pHrdParameters();
 }
  • 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.
    • ASPECT_RATIO_IDC

      public static final int ASPECT_RATIO_IDC
      The struct member offsets.
    • SAR_WIDTH

      public static final int SAR_WIDTH
      The struct member offsets.
    • SAR_HEIGHT

      public static final int SAR_HEIGHT
      The struct member offsets.
    • VIDEO_FORMAT

      public static final int VIDEO_FORMAT
      The struct member offsets.
    • COLOUR_PRIMARIES

      public static final int COLOUR_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.
    • NUM_UNITS_IN_TICK

      public static final int NUM_UNITS_IN_TICK
      The struct member offsets.
    • TIME_SCALE

      public static final int TIME_SCALE
      The struct member offsets.
    • MAX_NUM_REORDER_FRAMES

      public static final int MAX_NUM_REORDER_FRAMES
      The struct member offsets.
    • MAX_DEC_FRAME_BUFFERING

      public static final int MAX_DEC_FRAME_BUFFERING
      The struct member offsets.
    • CHROMA_SAMPLE_LOC_TYPE_TOP_FIELD

      public static final int CHROMA_SAMPLE_LOC_TYPE_TOP_FIELD
      The struct member offsets.
    • CHROMA_SAMPLE_LOC_TYPE_BOTTOM_FIELD

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

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

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

    • StdVideoH264SequenceParameterSetVui

      public StdVideoH264SequenceParameterSetVui(ByteBuffer container)
      Creates a StdVideoH264SequenceParameterSetVui 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<StdVideoH264SequenceParameterSetVui>
    • flags

      public StdVideoH264SpsVuiFlags flags()
      Returns:
      a StdVideoH264SpsVuiFlags view of the flags field.
    • aspect_ratio_idc

      public int aspect_ratio_idc()
      Returns:
      the value of the aspect_ratio_idc field.
    • sar_width

      public short sar_width()
      Returns:
      the value of the sar_width field.
    • sar_height

      public short sar_height()
      Returns:
      the value of the sar_height field.
    • video_format

      public byte video_format()
      Returns:
      the value of the video_format field.
    • colour_primaries

      public byte colour_primaries()
      Returns:
      the value of the colour_primaries field.
    • transfer_characteristics

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

      public byte matrix_coefficients()
      Returns:
      the value of the matrix_coefficients field.
    • num_units_in_tick

      public int num_units_in_tick()
      Returns:
      the value of the num_units_in_tick field.
    • time_scale

      public int time_scale()
      Returns:
      the value of the time_scale field.
    • max_num_reorder_frames

      public byte max_num_reorder_frames()
      Returns:
      the value of the max_num_reorder_frames field.
    • max_dec_frame_buffering

      public byte max_dec_frame_buffering()
      Returns:
      the value of the max_dec_frame_buffering field.
    • chroma_sample_loc_type_top_field

      public byte chroma_sample_loc_type_top_field()
      Returns:
      the value of the chroma_sample_loc_type_top_field field.
    • chroma_sample_loc_type_bottom_field

      public byte chroma_sample_loc_type_bottom_field()
      Returns:
      the value of the chroma_sample_loc_type_bottom_field field.
    • pHrdParameters

      public StdVideoH264HrdParameters pHrdParameters()
      must be a valid ptr to hrd_parameters, if nal_hrd_parameters_present_flag or vcl_hrd_parameters_present_flag are set
    • flags

      Copies the specified StdVideoH264SpsVuiFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • aspect_ratio_idc

      public StdVideoH264SequenceParameterSetVui aspect_ratio_idc(int value)
      Sets the specified value to the aspect_ratio_idc field.
    • sar_width

      public StdVideoH264SequenceParameterSetVui sar_width(short value)
      Sets the specified value to the sar_width field.
    • sar_height

      public StdVideoH264SequenceParameterSetVui sar_height(short value)
      Sets the specified value to the sar_height field.
    • video_format

      public StdVideoH264SequenceParameterSetVui video_format(byte value)
      Sets the specified value to the video_format field.
    • colour_primaries

      public StdVideoH264SequenceParameterSetVui colour_primaries(byte value)
      Sets the specified value to the colour_primaries field.
    • transfer_characteristics

      public StdVideoH264SequenceParameterSetVui transfer_characteristics(byte value)
      Sets the specified value to the transfer_characteristics field.
    • matrix_coefficients

      public StdVideoH264SequenceParameterSetVui matrix_coefficients(byte value)
      Sets the specified value to the matrix_coefficients field.
    • num_units_in_tick

      public StdVideoH264SequenceParameterSetVui num_units_in_tick(int value)
      Sets the specified value to the num_units_in_tick field.
    • time_scale

      public StdVideoH264SequenceParameterSetVui time_scale(int value)
      Sets the specified value to the time_scale field.
    • max_num_reorder_frames

      public StdVideoH264SequenceParameterSetVui max_num_reorder_frames(byte value)
      Sets the specified value to the max_num_reorder_frames field.
    • max_dec_frame_buffering

      public StdVideoH264SequenceParameterSetVui max_dec_frame_buffering(byte value)
      Sets the specified value to the max_dec_frame_buffering field.
    • chroma_sample_loc_type_top_field

      public StdVideoH264SequenceParameterSetVui chroma_sample_loc_type_top_field(byte value)
      Sets the specified value to the chroma_sample_loc_type_top_field field.
    • chroma_sample_loc_type_bottom_field

      public StdVideoH264SequenceParameterSetVui chroma_sample_loc_type_bottom_field(byte value)
      Sets the specified value to the chroma_sample_loc_type_bottom_field field.
    • pHrdParameters

      Sets the address of the specified StdVideoH264HrdParameters to the pHrdParameters() field.
    • set

      public StdVideoH264SequenceParameterSetVui set(StdVideoH264SpsVuiFlags flags, int aspect_ratio_idc, short sar_width, short sar_height, byte video_format, byte colour_primaries, byte transfer_characteristics, byte matrix_coefficients, int num_units_in_tick, int time_scale, byte max_num_reorder_frames, byte max_dec_frame_buffering, byte chroma_sample_loc_type_top_field, byte chroma_sample_loc_type_bottom_field, StdVideoH264HrdParameters pHrdParameters)
      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 StdVideoH264SequenceParameterSetVui malloc()
      Returns a new StdVideoH264SequenceParameterSetVui instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static StdVideoH264SequenceParameterSetVui.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoH264SequenceParameterSetVui.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 StdVideoH264SpsVuiFlags nflags(long struct)
      Unsafe version of flags().
    • naspect_ratio_idc

      public static int naspect_ratio_idc(long struct)
      Unsafe version of aspect_ratio_idc().
    • nsar_width

      public static short nsar_width(long struct)
      Unsafe version of sar_width().
    • nsar_height

      public static short nsar_height(long struct)
      Unsafe version of sar_height().
    • nvideo_format

      public static byte nvideo_format(long struct)
      Unsafe version of video_format().
    • ncolour_primaries

      public static byte ncolour_primaries(long struct)
      Unsafe version of colour_primaries().
    • ntransfer_characteristics

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

      public static byte nmatrix_coefficients(long struct)
      Unsafe version of matrix_coefficients().
    • nnum_units_in_tick

      public static int nnum_units_in_tick(long struct)
      Unsafe version of num_units_in_tick().
    • ntime_scale

      public static int ntime_scale(long struct)
      Unsafe version of time_scale().
    • nmax_num_reorder_frames

      public static byte nmax_num_reorder_frames(long struct)
      Unsafe version of max_num_reorder_frames().
    • nmax_dec_frame_buffering

      public static byte nmax_dec_frame_buffering(long struct)
      Unsafe version of max_dec_frame_buffering().
    • nchroma_sample_loc_type_top_field

      public static byte nchroma_sample_loc_type_top_field(long struct)
    • nchroma_sample_loc_type_bottom_field

      public static byte nchroma_sample_loc_type_bottom_field(long struct)
    • nreserved1

      public static int nreserved1(long struct)
    • npHrdParameters

      public static StdVideoH264HrdParameters npHrdParameters(long struct)
      Unsafe version of pHrdParameters().
    • nflags

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

      public static void naspect_ratio_idc(long struct, int value)
      Unsafe version of aspect_ratio_idc.
    • nsar_width

      public static void nsar_width(long struct, short value)
      Unsafe version of sar_width.
    • nsar_height

      public static void nsar_height(long struct, short value)
      Unsafe version of sar_height.
    • nvideo_format

      public static void nvideo_format(long struct, byte value)
      Unsafe version of video_format.
    • ncolour_primaries

      public static void ncolour_primaries(long struct, byte value)
      Unsafe version of colour_primaries.
    • ntransfer_characteristics

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

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

      public static void nnum_units_in_tick(long struct, int value)
      Unsafe version of num_units_in_tick.
    • ntime_scale

      public static void ntime_scale(long struct, int value)
      Unsafe version of time_scale.
    • nmax_num_reorder_frames

      public static void nmax_num_reorder_frames(long struct, byte value)
      Unsafe version of max_num_reorder_frames.
    • nmax_dec_frame_buffering

      public static void nmax_dec_frame_buffering(long struct, byte value)
      Unsafe version of max_dec_frame_buffering.
    • nchroma_sample_loc_type_top_field

      public static void nchroma_sample_loc_type_top_field(long struct, byte value)
    • nchroma_sample_loc_type_bottom_field

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

      public static void nreserved1(long struct, int value)
    • npHrdParameters

      public static void npHrdParameters(long struct, StdVideoH264HrdParameters value)
      Unsafe version of pHrdParameters.
    • validate

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