Class StdVideoH264SequenceParameterSet

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class StdVideoH264SequenceParameterSet extends Struct<StdVideoH264SequenceParameterSet> implements NativeResource

 struct StdVideoH264SequenceParameterSet {
     {@link StdVideoH264SpsFlags StdVideoH264SpsFlags} flags;
     StdVideoH264ProfileIdc profile_idc;
     StdVideoH264LevelIdc level_idc;
     StdVideoH264ChromaFormatIdc chroma_format_idc;
     uint8_t seq_parameter_set_id;
     uint8_t bit_depth_luma_minus8;
     uint8_t bit_depth_chroma_minus8;
     uint8_t log2_max_frame_num_minus4;
     StdVideoH264PocType pic_order_cnt_type;
     int32_t offset_for_non_ref_pic;
     int32_t offset_for_top_to_bottom_field;
     uint8_t log2_max_pic_order_cnt_lsb_minus4;
     uint8_t num_ref_frames_in_pic_order_cnt_cycle;
     uint8_t max_num_ref_frames;
     uint8_t reserved1;
     uint32_t pic_width_in_mbs_minus1;
     uint32_t pic_height_in_map_units_minus1;
     uint32_t frame_crop_left_offset;
     uint32_t frame_crop_right_offset;
     uint32_t frame_crop_top_offset;
     uint32_t frame_crop_bottom_offset;
     uint32_t reserved2;
     int32_t const * pOffsetForRefFrame;
     {@link StdVideoH264ScalingLists StdVideoH264ScalingLists} const * pScalingLists;
     {@link StdVideoH264SequenceParameterSetVui StdVideoH264SequenceParameterSetVui} const * pSequenceParameterSetVui;
 }
  • 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.
    • PROFILE_IDC

      public static final int PROFILE_IDC
      The struct member offsets.
    • LEVEL_IDC

      public static final int LEVEL_IDC
      The struct member offsets.
    • CHROMA_FORMAT_IDC

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

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

      public static final int BIT_DEPTH_LUMA_MINUS8
      The struct member offsets.
    • BIT_DEPTH_CHROMA_MINUS8

      public static final int BIT_DEPTH_CHROMA_MINUS8
      The struct member offsets.
    • LOG2_MAX_FRAME_NUM_MINUS4

      public static final int LOG2_MAX_FRAME_NUM_MINUS4
      The struct member offsets.
    • PIC_ORDER_CNT_TYPE

      public static final int PIC_ORDER_CNT_TYPE
      The struct member offsets.
    • OFFSET_FOR_NON_REF_PIC

      public static final int OFFSET_FOR_NON_REF_PIC
      The struct member offsets.
    • OFFSET_FOR_TOP_TO_BOTTOM_FIELD

      public static final int OFFSET_FOR_TOP_TO_BOTTOM_FIELD
      The struct member offsets.
    • LOG2_MAX_PIC_ORDER_CNT_LSB_MINUS4

      public static final int LOG2_MAX_PIC_ORDER_CNT_LSB_MINUS4
      The struct member offsets.
    • NUM_REF_FRAMES_IN_PIC_ORDER_CNT_CYCLE

      public static final int NUM_REF_FRAMES_IN_PIC_ORDER_CNT_CYCLE
      The struct member offsets.
    • MAX_NUM_REF_FRAMES

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

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

      public static final int PIC_WIDTH_IN_MBS_MINUS1
      The struct member offsets.
    • PIC_HEIGHT_IN_MAP_UNITS_MINUS1

      public static final int PIC_HEIGHT_IN_MAP_UNITS_MINUS1
      The struct member offsets.
    • FRAME_CROP_LEFT_OFFSET

      public static final int FRAME_CROP_LEFT_OFFSET
      The struct member offsets.
    • FRAME_CROP_RIGHT_OFFSET

      public static final int FRAME_CROP_RIGHT_OFFSET
      The struct member offsets.
    • FRAME_CROP_TOP_OFFSET

      public static final int FRAME_CROP_TOP_OFFSET
      The struct member offsets.
    • FRAME_CROP_BOTTOM_OFFSET

      public static final int FRAME_CROP_BOTTOM_OFFSET
      The struct member offsets.
    • RESERVED2

      public static final int RESERVED2
      The struct member offsets.
    • POFFSETFORREFFRAME

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

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

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

    • StdVideoH264SequenceParameterSet

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

      public StdVideoH264SpsFlags flags()
      Returns:
      a StdVideoH264SpsFlags view of the flags field.
    • profile_idc

      public int profile_idc()
      Returns:
      the value of the profile_idc field.
    • level_idc

      public int level_idc()
      Returns:
      the value of the level_idc field.
    • chroma_format_idc

      public int chroma_format_idc()
      Returns:
      the value of the chroma_format_idc field.
    • seq_parameter_set_id

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

      public byte bit_depth_luma_minus8()
      Returns:
      the value of the bit_depth_luma_minus8 field.
    • bit_depth_chroma_minus8

      public byte bit_depth_chroma_minus8()
      Returns:
      the value of the bit_depth_chroma_minus8 field.
    • log2_max_frame_num_minus4

      public byte log2_max_frame_num_minus4()
      Returns:
      the value of the log2_max_frame_num_minus4 field.
    • pic_order_cnt_type

      public int pic_order_cnt_type()
      Returns:
      the value of the pic_order_cnt_type field.
    • offset_for_non_ref_pic

      public int offset_for_non_ref_pic()
      Returns:
      the value of the offset_for_non_ref_pic field.
    • offset_for_top_to_bottom_field

      public int offset_for_top_to_bottom_field()
      Returns:
      the value of the offset_for_top_to_bottom_field field.
    • log2_max_pic_order_cnt_lsb_minus4

      public byte log2_max_pic_order_cnt_lsb_minus4()
      Returns:
      the value of the log2_max_pic_order_cnt_lsb_minus4 field.
    • num_ref_frames_in_pic_order_cnt_cycle

      public byte num_ref_frames_in_pic_order_cnt_cycle()
      Returns:
      the value of the num_ref_frames_in_pic_order_cnt_cycle field.
    • max_num_ref_frames

      public byte max_num_ref_frames()
      Returns:
      the value of the max_num_ref_frames field.
    • pic_width_in_mbs_minus1

      public int pic_width_in_mbs_minus1()
      Returns:
      the value of the pic_width_in_mbs_minus1 field.
    • pic_height_in_map_units_minus1

      public int pic_height_in_map_units_minus1()
      Returns:
      the value of the pic_height_in_map_units_minus1 field.
    • frame_crop_left_offset

      public int frame_crop_left_offset()
      Returns:
      the value of the frame_crop_left_offset field.
    • frame_crop_right_offset

      public int frame_crop_right_offset()
      Returns:
      the value of the frame_crop_right_offset field.
    • frame_crop_top_offset

      public int frame_crop_top_offset()
      Returns:
      the value of the frame_crop_top_offset field.
    • frame_crop_bottom_offset

      public int frame_crop_bottom_offset()
      Returns:
      the value of the frame_crop_bottom_offset field.
    • pOffsetForRefFrame

      public @Nullable IntBuffer pOffsetForRefFrame()
      Returns:
      a IntBuffer view of the data pointed to by the pOffsetForRefFrame field.
    • pScalingLists

      public StdVideoH264ScalingLists pScalingLists()
      Returns:
      a StdVideoH264ScalingLists view of the struct pointed to by the pScalingLists field.
    • pSequenceParameterSetVui

      public StdVideoH264SequenceParameterSetVui pSequenceParameterSetVui()
      Returns:
      a StdVideoH264SequenceParameterSetVui view of the struct pointed to by the pSequenceParameterSetVui field.
    • flags

      Copies the specified StdVideoH264SpsFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • profile_idc

      public StdVideoH264SequenceParameterSet profile_idc(int value)
      Sets the specified value to the profile_idc field.
    • level_idc

      public StdVideoH264SequenceParameterSet level_idc(int value)
      Sets the specified value to the level_idc field.
    • chroma_format_idc

      public StdVideoH264SequenceParameterSet chroma_format_idc(int value)
      Sets the specified value to the chroma_format_idc field.
    • seq_parameter_set_id

      public StdVideoH264SequenceParameterSet seq_parameter_set_id(byte value)
      Sets the specified value to the seq_parameter_set_id field.
    • bit_depth_luma_minus8

      public StdVideoH264SequenceParameterSet bit_depth_luma_minus8(byte value)
      Sets the specified value to the bit_depth_luma_minus8 field.
    • bit_depth_chroma_minus8

      public StdVideoH264SequenceParameterSet bit_depth_chroma_minus8(byte value)
      Sets the specified value to the bit_depth_chroma_minus8 field.
    • log2_max_frame_num_minus4

      public StdVideoH264SequenceParameterSet log2_max_frame_num_minus4(byte value)
      Sets the specified value to the log2_max_frame_num_minus4 field.
    • pic_order_cnt_type

      public StdVideoH264SequenceParameterSet pic_order_cnt_type(int value)
      Sets the specified value to the pic_order_cnt_type field.
    • offset_for_non_ref_pic

      public StdVideoH264SequenceParameterSet offset_for_non_ref_pic(int value)
      Sets the specified value to the offset_for_non_ref_pic field.
    • offset_for_top_to_bottom_field

      public StdVideoH264SequenceParameterSet offset_for_top_to_bottom_field(int value)
      Sets the specified value to the offset_for_top_to_bottom_field field.
    • log2_max_pic_order_cnt_lsb_minus4

      public StdVideoH264SequenceParameterSet log2_max_pic_order_cnt_lsb_minus4(byte value)
      Sets the specified value to the log2_max_pic_order_cnt_lsb_minus4 field.
    • num_ref_frames_in_pic_order_cnt_cycle

      public StdVideoH264SequenceParameterSet num_ref_frames_in_pic_order_cnt_cycle(byte value)
      Sets the specified value to the num_ref_frames_in_pic_order_cnt_cycle field.
    • max_num_ref_frames

      public StdVideoH264SequenceParameterSet max_num_ref_frames(byte value)
      Sets the specified value to the max_num_ref_frames field.
    • pic_width_in_mbs_minus1

      public StdVideoH264SequenceParameterSet pic_width_in_mbs_minus1(int value)
      Sets the specified value to the pic_width_in_mbs_minus1 field.
    • pic_height_in_map_units_minus1

      public StdVideoH264SequenceParameterSet pic_height_in_map_units_minus1(int value)
      Sets the specified value to the pic_height_in_map_units_minus1 field.
    • frame_crop_left_offset

      public StdVideoH264SequenceParameterSet frame_crop_left_offset(int value)
      Sets the specified value to the frame_crop_left_offset field.
    • frame_crop_right_offset

      public StdVideoH264SequenceParameterSet frame_crop_right_offset(int value)
      Sets the specified value to the frame_crop_right_offset field.
    • frame_crop_top_offset

      public StdVideoH264SequenceParameterSet frame_crop_top_offset(int value)
      Sets the specified value to the frame_crop_top_offset field.
    • frame_crop_bottom_offset

      public StdVideoH264SequenceParameterSet frame_crop_bottom_offset(int value)
      Sets the specified value to the frame_crop_bottom_offset field.
    • pOffsetForRefFrame

      public StdVideoH264SequenceParameterSet pOffsetForRefFrame(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the pOffsetForRefFrame field.
    • pScalingLists

      Sets the address of the specified StdVideoH264ScalingLists to the pScalingLists field.
    • pSequenceParameterSetVui

      Sets the address of the specified StdVideoH264SequenceParameterSetVui to the pSequenceParameterSetVui field.
    • set

      public StdVideoH264SequenceParameterSet set(StdVideoH264SpsFlags flags, int profile_idc, int level_idc, int chroma_format_idc, byte seq_parameter_set_id, byte bit_depth_luma_minus8, byte bit_depth_chroma_minus8, byte log2_max_frame_num_minus4, int pic_order_cnt_type, int offset_for_non_ref_pic, int offset_for_top_to_bottom_field, byte log2_max_pic_order_cnt_lsb_minus4, byte num_ref_frames_in_pic_order_cnt_cycle, byte max_num_ref_frames, int pic_width_in_mbs_minus1, int pic_height_in_map_units_minus1, int frame_crop_left_offset, int frame_crop_right_offset, int frame_crop_top_offset, int frame_crop_bottom_offset, @Nullable IntBuffer pOffsetForRefFrame, StdVideoH264ScalingLists pScalingLists, StdVideoH264SequenceParameterSetVui pSequenceParameterSetVui)
      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 StdVideoH264SequenceParameterSet malloc()
      Returns a new StdVideoH264SequenceParameterSet instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nprofile_idc(long struct)
      Unsafe version of profile_idc().
    • nlevel_idc

      public static int nlevel_idc(long struct)
      Unsafe version of level_idc().
    • nchroma_format_idc

      public static int nchroma_format_idc(long struct)
      Unsafe version of chroma_format_idc().
    • nseq_parameter_set_id

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

      public static byte nbit_depth_luma_minus8(long struct)
      Unsafe version of bit_depth_luma_minus8().
    • nbit_depth_chroma_minus8

      public static byte nbit_depth_chroma_minus8(long struct)
      Unsafe version of bit_depth_chroma_minus8().
    • nlog2_max_frame_num_minus4

      public static byte nlog2_max_frame_num_minus4(long struct)
      Unsafe version of log2_max_frame_num_minus4().
    • npic_order_cnt_type

      public static int npic_order_cnt_type(long struct)
      Unsafe version of pic_order_cnt_type().
    • noffset_for_non_ref_pic

      public static int noffset_for_non_ref_pic(long struct)
      Unsafe version of offset_for_non_ref_pic().
    • noffset_for_top_to_bottom_field

      public static int noffset_for_top_to_bottom_field(long struct)
    • nlog2_max_pic_order_cnt_lsb_minus4

      public static byte nlog2_max_pic_order_cnt_lsb_minus4(long struct)
    • nnum_ref_frames_in_pic_order_cnt_cycle

      public static byte nnum_ref_frames_in_pic_order_cnt_cycle(long struct)
    • nmax_num_ref_frames

      public static byte nmax_num_ref_frames(long struct)
      Unsafe version of max_num_ref_frames().
    • nreserved1

      public static byte nreserved1(long struct)
    • npic_width_in_mbs_minus1

      public static int npic_width_in_mbs_minus1(long struct)
      Unsafe version of pic_width_in_mbs_minus1().
    • npic_height_in_map_units_minus1

      public static int npic_height_in_map_units_minus1(long struct)
    • nframe_crop_left_offset

      public static int nframe_crop_left_offset(long struct)
      Unsafe version of frame_crop_left_offset().
    • nframe_crop_right_offset

      public static int nframe_crop_right_offset(long struct)
      Unsafe version of frame_crop_right_offset().
    • nframe_crop_top_offset

      public static int nframe_crop_top_offset(long struct)
      Unsafe version of frame_crop_top_offset().
    • nframe_crop_bottom_offset

      public static int nframe_crop_bottom_offset(long struct)
      Unsafe version of frame_crop_bottom_offset().
    • nreserved2

      public static int nreserved2(long struct)
    • npOffsetForRefFrame

      public static @Nullable IntBuffer npOffsetForRefFrame(long struct)
      Unsafe version of pOffsetForRefFrame.
    • npScalingLists

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

      public static StdVideoH264SequenceParameterSetVui npSequenceParameterSetVui(long struct)
      Unsafe version of pSequenceParameterSetVui().
    • nflags

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

      public static void nprofile_idc(long struct, int value)
      Unsafe version of profile_idc.
    • nlevel_idc

      public static void nlevel_idc(long struct, int value)
      Unsafe version of level_idc.
    • nchroma_format_idc

      public static void nchroma_format_idc(long struct, int value)
      Unsafe version of chroma_format_idc.
    • nseq_parameter_set_id

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

      public static void nbit_depth_luma_minus8(long struct, byte value)
      Unsafe version of bit_depth_luma_minus8.
    • nbit_depth_chroma_minus8

      public static void nbit_depth_chroma_minus8(long struct, byte value)
      Unsafe version of bit_depth_chroma_minus8.
    • nlog2_max_frame_num_minus4

      public static void nlog2_max_frame_num_minus4(long struct, byte value)
      Unsafe version of log2_max_frame_num_minus4.
    • npic_order_cnt_type

      public static void npic_order_cnt_type(long struct, int value)
      Unsafe version of pic_order_cnt_type.
    • noffset_for_non_ref_pic

      public static void noffset_for_non_ref_pic(long struct, int value)
      Unsafe version of offset_for_non_ref_pic.
    • noffset_for_top_to_bottom_field

      public static void noffset_for_top_to_bottom_field(long struct, int value)
    • nlog2_max_pic_order_cnt_lsb_minus4

      public static void nlog2_max_pic_order_cnt_lsb_minus4(long struct, byte value)
    • nnum_ref_frames_in_pic_order_cnt_cycle

      public static void nnum_ref_frames_in_pic_order_cnt_cycle(long struct, byte value)
      Sets the specified value to the num_ref_frames_in_pic_order_cnt_cycle field of the specified struct.
    • nmax_num_ref_frames

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

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

      public static void npic_width_in_mbs_minus1(long struct, int value)
      Unsafe version of pic_width_in_mbs_minus1.
    • npic_height_in_map_units_minus1

      public static void npic_height_in_map_units_minus1(long struct, int value)
    • nframe_crop_left_offset

      public static void nframe_crop_left_offset(long struct, int value)
      Unsafe version of frame_crop_left_offset.
    • nframe_crop_right_offset

      public static void nframe_crop_right_offset(long struct, int value)
      Unsafe version of frame_crop_right_offset.
    • nframe_crop_top_offset

      public static void nframe_crop_top_offset(long struct, int value)
      Unsafe version of frame_crop_top_offset.
    • nframe_crop_bottom_offset

      public static void nframe_crop_bottom_offset(long struct, int value)
      Unsafe version of frame_crop_bottom_offset.
    • nreserved2

      public static void nreserved2(long struct, int value)
    • npOffsetForRefFrame

      public static void npOffsetForRefFrame(long struct, @Nullable IntBuffer value)
      Unsafe version of pOffsetForRefFrame.
    • npScalingLists

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

      public static void npSequenceParameterSetVui(long struct, StdVideoH264SequenceParameterSetVui value)
      Unsafe version of pSequenceParameterSetVui.
    • validate

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