Class StdVideoH264SequenceParameterSet

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class StdVideoH264SequenceParameterSet
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct StdVideoH264SequenceParameterSet {
         StdVideoH264ProfileIdc profile_idc;
         StdVideoH264Level level_idc;
         uint8_t seq_parameter_set_id;
         StdVideoH264ChromaFormatIdc chroma_format_idc;
         uint8_t bit_depth_luma_minus8;
         uint8_t bit_depth_chroma_minus8;
         uint8_t log2_max_frame_num_minus4;
         StdVideoH264PocType pic_order_cnt_type;
         uint8_t log2_max_pic_order_cnt_lsb_minus4;
         int32_t offset_for_non_ref_pic;
         int32_t offset_for_top_to_bottom_field;
         uint8_t num_ref_frames_in_pic_order_cnt_cycle;
         uint8_t max_num_ref_frames;
         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;
         StdVideoH264SpsFlags flags;
         int32_t * pOffsetForRefFrame();
         StdVideoH264ScalingLists * pScalingLists();
         StdVideoH264SequenceParameterSetVui * pSequenceParameterSetVui();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PROFILE_IDC, LEVEL_IDC, SEQ_PARAMETER_SET_ID, CHROMA_FORMAT_IDC, BIT_DEPTH_LUMA_MINUS8, BIT_DEPTH_CHROMA_MINUS8, LOG2_MAX_FRAME_NUM_MINUS4, PIC_ORDER_CNT_TYPE, LOG2_MAX_PIC_ORDER_CNT_LSB_MINUS4, OFFSET_FOR_NON_REF_PIC, OFFSET_FOR_TOP_TO_BOTTOM_FIELD, NUM_REF_FRAMES_IN_PIC_ORDER_CNT_CYCLE, MAX_NUM_REF_FRAMES, PIC_WIDTH_IN_MBS_MINUS1, PIC_HEIGHT_IN_MAP_UNITS_MINUS1, FRAME_CROP_LEFT_OFFSET, FRAME_CROP_RIGHT_OFFSET, FRAME_CROP_TOP_OFFSET, FRAME_CROP_BOTTOM_OFFSET, FLAGS, POFFSETFORREFFRAME, PSCALINGLISTS, PSEQUENCEPARAMETERSETVUI

        The struct member offsets.
    • Constructor Detail

      • StdVideoH264SequenceParameterSet

        public StdVideoH264SequenceParameterSet​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • seq_parameter_set_id

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

        public int chroma_format_idc()
        Returns:
        the value of the chroma_format_idc 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.
      • 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.
      • 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.
      • 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

        @Nullable
        public java.nio.IntBuffer pOffsetForRefFrame()
        a pointer representing the offset_for_ref_frame array with num_ref_frames_in_pic_order_cnt_cycle number of elements.

        If pOffsetForRefFrame has nullptr value, then num_ref_frames_in_pic_order_cnt_cycle must also be "0".

      • pScalingLists

        public StdVideoH264ScalingLists pScalingLists()
        must be a valid pointer if scaling_matrix_present_flag is set
      • pSequenceParameterSetVui

        public StdVideoH264SequenceParameterSetVui pSequenceParameterSetVui()
        must be a valid pointer if StdVideoH264SpsFlags:vui_parameters_present_flag is set
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • set

        public StdVideoH264SequenceParameterSet set​(int profile_idc,
                                                    int level_idc,
                                                    byte seq_parameter_set_id,
                                                    int chroma_format_idc,
                                                    byte bit_depth_luma_minus8,
                                                    byte bit_depth_chroma_minus8,
                                                    byte log2_max_frame_num_minus4,
                                                    int pic_order_cnt_type,
                                                    byte log2_max_pic_order_cnt_lsb_minus4,
                                                    int offset_for_non_ref_pic,
                                                    int offset_for_top_to_bottom_field,
                                                    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,
                                                    StdVideoH264SpsFlags flags,
                                                    @Nullable
                                                    java.nio.IntBuffer pOffsetForRefFrame,
                                                    StdVideoH264ScalingLists pScalingLists,
                                                    StdVideoH264SequenceParameterSetVui pSequenceParameterSetVui)
        Initializes this struct with the specified values.
      • 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​(long address)
        Returns a new StdVideoH264SequenceParameterSet instance for the specified memory address.
      • malloc

        public static StdVideoH264SequenceParameterSet malloc​(org.lwjgl.system.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​(org.lwjgl.system.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
      • 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().
      • nseq_parameter_set_id

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

        public static int nchroma_format_idc​(long struct)
        Unsafe version of chroma_format_idc().
      • 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().
      • nmax_num_ref_frames

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

        public static int npic_width_in_mbs_minus1​(long struct)
        Unsafe version of pic_width_in_mbs_minus1().
      • 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().
      • npOffsetForRefFrame

        @Nullable
        public static java.nio.IntBuffer npOffsetForRefFrame​(long struct)
        Unsafe version of pOffsetForRefFrame.
      • 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.
      • nseq_parameter_set_id

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

        public static void nchroma_format_idc​(long struct,
                                              int value)
        Unsafe version of chroma_format_idc.
      • 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.
      • nlog2_max_pic_order_cnt_lsb_minus4

        public static void nlog2_max_pic_order_cnt_lsb_minus4​(long struct,
                                                              byte value)
      • 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)
      • 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.
      • 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.
      • npOffsetForRefFrame

        public static void npOffsetForRefFrame​(long struct,
                                               @Nullable
                                               java.nio.IntBuffer value)
        Unsafe version of pOffsetForRefFrame.
      • validate

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