Class StdVideoH264PictureParameterSet

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

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

Layout


 struct StdVideoH264PictureParameterSet {
     StdVideoH264PpsFlags flags;
     uint8_t seq_parameter_set_id;
     uint8_t pic_parameter_set_id;
     uint8_t num_ref_idx_l0_default_active_minus1;
     uint8_t num_ref_idx_l1_default_active_minus1;
     StdVideoH264WeightedBipredIdc weighted_bipred_idc;
     int8_t pic_init_qp_minus26;
     int8_t pic_init_qs_minus26;
     int8_t chroma_qp_index_offset;
     int8_t second_chroma_qp_index_offset;
     StdVideoH264ScalingLists const * pScalingLists();
 }
  • 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.
    • SEQ_PARAMETER_SET_ID

      public static final int SEQ_PARAMETER_SET_ID
      The struct member offsets.
    • PIC_PARAMETER_SET_ID

      public static final int PIC_PARAMETER_SET_ID
      The struct member offsets.
    • NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1

      public static final int NUM_REF_IDX_L0_DEFAULT_ACTIVE_MINUS1
      The struct member offsets.
    • NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1

      public static final int NUM_REF_IDX_L1_DEFAULT_ACTIVE_MINUS1
      The struct member offsets.
    • WEIGHTED_BIPRED_IDC

      public static final int WEIGHTED_BIPRED_IDC
      The struct member offsets.
    • PIC_INIT_QP_MINUS26

      public static final int PIC_INIT_QP_MINUS26
      The struct member offsets.
    • PIC_INIT_QS_MINUS26

      public static final int PIC_INIT_QS_MINUS26
      The struct member offsets.
    • CHROMA_QP_INDEX_OFFSET

      public static final int CHROMA_QP_INDEX_OFFSET
      The struct member offsets.
    • SECOND_CHROMA_QP_INDEX_OFFSET

      public static final int SECOND_CHROMA_QP_INDEX_OFFSET
      The struct member offsets.
    • PSCALINGLISTS

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

    • StdVideoH264PictureParameterSet

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

      public StdVideoH264PpsFlags flags()
      Returns:
      a StdVideoH264PpsFlags view of the flags field.
    • seq_parameter_set_id

      public byte seq_parameter_set_id()
      Returns:
      the value of the seq_parameter_set_id field.
    • pic_parameter_set_id

      public byte pic_parameter_set_id()
      Returns:
      the value of the pic_parameter_set_id field.
    • num_ref_idx_l0_default_active_minus1

      public byte num_ref_idx_l0_default_active_minus1()
      Returns:
      the value of the num_ref_idx_l0_default_active_minus1 field.
    • num_ref_idx_l1_default_active_minus1

      public byte num_ref_idx_l1_default_active_minus1()
      Returns:
      the value of the num_ref_idx_l1_default_active_minus1 field.
    • weighted_bipred_idc

      public int weighted_bipred_idc()
      Returns:
      the value of the weighted_bipred_idc field.
    • pic_init_qp_minus26

      public byte pic_init_qp_minus26()
      Returns:
      the value of the pic_init_qp_minus26 field.
    • pic_init_qs_minus26

      public byte pic_init_qs_minus26()
      Returns:
      the value of the pic_init_qs_minus26 field.
    • chroma_qp_index_offset

      public byte chroma_qp_index_offset()
      Returns:
      the value of the chroma_qp_index_offset field.
    • second_chroma_qp_index_offset

      public byte second_chroma_qp_index_offset()
      Returns:
      the value of the second_chroma_qp_index_offset field.
    • pScalingLists

      public StdVideoH264ScalingLists pScalingLists()
      must be a valid pointer if StdVideoH264PpsFlags::pic_scaling_matrix_present_flag is set
    • flags

      Copies the specified StdVideoH264PpsFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • seq_parameter_set_id

      public StdVideoH264PictureParameterSet seq_parameter_set_id(byte value)
      Sets the specified value to the seq_parameter_set_id field.
    • pic_parameter_set_id

      public StdVideoH264PictureParameterSet pic_parameter_set_id(byte value)
      Sets the specified value to the pic_parameter_set_id field.
    • num_ref_idx_l0_default_active_minus1

      public StdVideoH264PictureParameterSet num_ref_idx_l0_default_active_minus1(byte value)
      Sets the specified value to the num_ref_idx_l0_default_active_minus1 field.
    • num_ref_idx_l1_default_active_minus1

      public StdVideoH264PictureParameterSet num_ref_idx_l1_default_active_minus1(byte value)
      Sets the specified value to the num_ref_idx_l1_default_active_minus1 field.
    • weighted_bipred_idc

      public StdVideoH264PictureParameterSet weighted_bipred_idc(int value)
      Sets the specified value to the weighted_bipred_idc field.
    • pic_init_qp_minus26

      public StdVideoH264PictureParameterSet pic_init_qp_minus26(byte value)
      Sets the specified value to the pic_init_qp_minus26 field.
    • pic_init_qs_minus26

      public StdVideoH264PictureParameterSet pic_init_qs_minus26(byte value)
      Sets the specified value to the pic_init_qs_minus26 field.
    • chroma_qp_index_offset

      public StdVideoH264PictureParameterSet chroma_qp_index_offset(byte value)
      Sets the specified value to the chroma_qp_index_offset field.
    • second_chroma_qp_index_offset

      public StdVideoH264PictureParameterSet second_chroma_qp_index_offset(byte value)
      Sets the specified value to the second_chroma_qp_index_offset field.
    • pScalingLists

      Sets the address of the specified StdVideoH264ScalingLists to the pScalingLists() field.
    • set

      public StdVideoH264PictureParameterSet set(StdVideoH264PpsFlags flags, byte seq_parameter_set_id, byte pic_parameter_set_id, byte num_ref_idx_l0_default_active_minus1, byte num_ref_idx_l1_default_active_minus1, int weighted_bipred_idc, byte pic_init_qp_minus26, byte pic_init_qs_minus26, byte chroma_qp_index_offset, byte second_chroma_qp_index_offset, StdVideoH264ScalingLists pScalingLists)
      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 StdVideoH264PictureParameterSet malloc()
      Returns a new StdVideoH264PictureParameterSet instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte nseq_parameter_set_id(long struct)
      Unsafe version of seq_parameter_set_id().
    • npic_parameter_set_id

      public static byte npic_parameter_set_id(long struct)
      Unsafe version of pic_parameter_set_id().
    • nnum_ref_idx_l0_default_active_minus1

      public static byte nnum_ref_idx_l0_default_active_minus1(long struct)
    • nnum_ref_idx_l1_default_active_minus1

      public static byte nnum_ref_idx_l1_default_active_minus1(long struct)
    • nweighted_bipred_idc

      public static int nweighted_bipred_idc(long struct)
      Unsafe version of weighted_bipred_idc().
    • npic_init_qp_minus26

      public static byte npic_init_qp_minus26(long struct)
      Unsafe version of pic_init_qp_minus26().
    • npic_init_qs_minus26

      public static byte npic_init_qs_minus26(long struct)
      Unsafe version of pic_init_qs_minus26().
    • nchroma_qp_index_offset

      public static byte nchroma_qp_index_offset(long struct)
      Unsafe version of chroma_qp_index_offset().
    • nsecond_chroma_qp_index_offset

      public static byte nsecond_chroma_qp_index_offset(long struct)
    • npScalingLists

      public static StdVideoH264ScalingLists npScalingLists(long struct)
      Unsafe version of pScalingLists().
    • nflags

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

      public static void nseq_parameter_set_id(long struct, byte value)
      Unsafe version of seq_parameter_set_id.
    • npic_parameter_set_id

      public static void npic_parameter_set_id(long struct, byte value)
      Unsafe version of pic_parameter_set_id.
    • nnum_ref_idx_l0_default_active_minus1

      public static void nnum_ref_idx_l0_default_active_minus1(long struct, byte value)
    • nnum_ref_idx_l1_default_active_minus1

      public static void nnum_ref_idx_l1_default_active_minus1(long struct, byte value)
    • nweighted_bipred_idc

      public static void nweighted_bipred_idc(long struct, int value)
      Unsafe version of weighted_bipred_idc.
    • npic_init_qp_minus26

      public static void npic_init_qp_minus26(long struct, byte value)
      Unsafe version of pic_init_qp_minus26.
    • npic_init_qs_minus26

      public static void npic_init_qs_minus26(long struct, byte value)
      Unsafe version of pic_init_qs_minus26.
    • nchroma_qp_index_offset

      public static void nchroma_qp_index_offset(long struct, byte value)
      Unsafe version of chroma_qp_index_offset.
    • nsecond_chroma_qp_index_offset

      public static void nsecond_chroma_qp_index_offset(long struct, byte value)
    • npScalingLists

      public static void npScalingLists(long struct, StdVideoH264ScalingLists value)
      Unsafe version of pScalingLists.
    • validate

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