Class StdVideoEncodeH264SliceHeader

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

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

    Layout

    
     struct StdVideoEncodeH264SliceHeader {
         StdVideoEncodeH264SliceHeaderFlags flags;
         uint32_t first_mb_in_slice;
         StdVideoH264SliceType slice_type;
         uint8_t seq_parameter_set_id;
         uint8_t pic_parameter_set_id;
         uint16_t idr_pic_id;
         uint8_t num_ref_idx_l0_active_minus1;
         uint8_t num_ref_idx_l1_active_minus1;
         StdVideoH264CabacInitIdc cabac_init_idc;
         StdVideoH264DisableDeblockingFilterIdc disable_deblocking_filter_idc;
         int8_t slice_alpha_c0_offset_div2;
         int8_t slice_beta_offset_div2;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FLAGS, FIRST_MB_IN_SLICE, SLICE_TYPE, SEQ_PARAMETER_SET_ID, PIC_PARAMETER_SET_ID, IDR_PIC_ID, NUM_REF_IDX_L0_ACTIVE_MINUS1, NUM_REF_IDX_L1_ACTIVE_MINUS1, CABAC_INIT_IDC, DISABLE_DEBLOCKING_FILTER_IDC, SLICE_ALPHA_C0_OFFSET_DIV2, SLICE_BETA_OFFSET_DIV2

        The struct member offsets.
    • Constructor Detail

      • StdVideoEncodeH264SliceHeader

        public StdVideoEncodeH264SliceHeader​(java.nio.ByteBuffer container)
        Creates a StdVideoEncodeH264SliceHeader 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
      • first_mb_in_slice

        public int first_mb_in_slice()
        Returns:
        the value of the first_mb_in_slice field.
      • slice_type

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

        public short idr_pic_id()
        Returns:
        the value of the idr_pic_id field.
      • num_ref_idx_l0_active_minus1

        public byte num_ref_idx_l0_active_minus1()
        Returns:
        the value of the num_ref_idx_l0_active_minus1 field.
      • num_ref_idx_l1_active_minus1

        public byte num_ref_idx_l1_active_minus1()
        Returns:
        the value of the num_ref_idx_l1_active_minus1 field.
      • cabac_init_idc

        public int cabac_init_idc()
        Returns:
        the value of the cabac_init_idc field.
      • disable_deblocking_filter_idc

        public int disable_deblocking_filter_idc()
        Returns:
        the value of the disable_deblocking_filter_idc field.
      • slice_alpha_c0_offset_div2

        public byte slice_alpha_c0_offset_div2()
        Returns:
        the value of the slice_alpha_c0_offset_div2 field.
      • slice_beta_offset_div2

        public byte slice_beta_offset_div2()
        Returns:
        the value of the slice_beta_offset_div2 field.
      • first_mb_in_slice

        public StdVideoEncodeH264SliceHeader first_mb_in_slice​(int value)
        Sets the specified value to the first_mb_in_slice field.
      • seq_parameter_set_id

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

        public StdVideoEncodeH264SliceHeader pic_parameter_set_id​(byte value)
        Sets the specified value to the pic_parameter_set_id field.
      • num_ref_idx_l0_active_minus1

        public StdVideoEncodeH264SliceHeader num_ref_idx_l0_active_minus1​(byte value)
        Sets the specified value to the num_ref_idx_l0_active_minus1 field.
      • num_ref_idx_l1_active_minus1

        public StdVideoEncodeH264SliceHeader num_ref_idx_l1_active_minus1​(byte value)
        Sets the specified value to the num_ref_idx_l1_active_minus1 field.
      • disable_deblocking_filter_idc

        public StdVideoEncodeH264SliceHeader disable_deblocking_filter_idc​(int value)
        Sets the specified value to the disable_deblocking_filter_idc field.
      • slice_alpha_c0_offset_div2

        public StdVideoEncodeH264SliceHeader slice_alpha_c0_offset_div2​(byte value)
        Sets the specified value to the slice_alpha_c0_offset_div2 field.
      • slice_beta_offset_div2

        public StdVideoEncodeH264SliceHeader slice_beta_offset_div2​(byte value)
        Sets the specified value to the slice_beta_offset_div2 field.
      • set

        public StdVideoEncodeH264SliceHeader set​(StdVideoEncodeH264SliceHeaderFlags flags,
                                                 int first_mb_in_slice,
                                                 int slice_type,
                                                 byte seq_parameter_set_id,
                                                 byte pic_parameter_set_id,
                                                 short idr_pic_id,
                                                 byte num_ref_idx_l0_active_minus1,
                                                 byte num_ref_idx_l1_active_minus1,
                                                 int cabac_init_idc,
                                                 int disable_deblocking_filter_idc,
                                                 byte slice_alpha_c0_offset_div2,
                                                 byte slice_beta_offset_div2)
        Initializes this struct with the specified values.
      • malloc

        public static StdVideoEncodeH264SliceHeader malloc()
        Returns a new StdVideoEncodeH264SliceHeader instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

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

        public static StdVideoEncodeH264SliceHeader create​(long address)
        Returns a new StdVideoEncodeH264SliceHeader instance for the specified memory address.
      • malloc

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

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

        public static int nfirst_mb_in_slice​(long struct)
        Unsafe version of first_mb_in_slice().
      • nslice_type

        public static int nslice_type​(long struct)
        Unsafe version of slice_type().
      • 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().
      • nidr_pic_id

        public static short nidr_pic_id​(long struct)
        Unsafe version of idr_pic_id().
      • ncabac_init_idc

        public static int ncabac_init_idc​(long struct)
        Unsafe version of cabac_init_idc().
      • nslice_alpha_c0_offset_div2

        public static byte nslice_alpha_c0_offset_div2​(long struct)
        Unsafe version of slice_alpha_c0_offset_div2().
      • nslice_beta_offset_div2

        public static byte nslice_beta_offset_div2​(long struct)
        Unsafe version of slice_beta_offset_div2().
      • nfirst_mb_in_slice

        public static void nfirst_mb_in_slice​(long struct,
                                              int value)
        Unsafe version of first_mb_in_slice.
      • nslice_type

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

        public static void nidr_pic_id​(long struct,
                                       short value)
        Unsafe version of idr_pic_id.
      • nnum_ref_idx_l0_active_minus1

        public static void nnum_ref_idx_l0_active_minus1​(long struct,
                                                         byte value)
        Unsafe version of num_ref_idx_l0_active_minus1.
      • nnum_ref_idx_l1_active_minus1

        public static void nnum_ref_idx_l1_active_minus1​(long struct,
                                                         byte value)
        Unsafe version of num_ref_idx_l1_active_minus1.
      • ncabac_init_idc

        public static void ncabac_init_idc​(long struct,
                                           int value)
        Unsafe version of cabac_init_idc.
      • ndisable_deblocking_filter_idc

        public static void ndisable_deblocking_filter_idc​(long struct,
                                                          int value)
      • nslice_alpha_c0_offset_div2

        public static void nslice_alpha_c0_offset_div2​(long struct,
                                                       byte value)
        Unsafe version of slice_alpha_c0_offset_div2.
      • nslice_beta_offset_div2

        public static void nslice_beta_offset_div2​(long struct,
                                                   byte value)
        Unsafe version of slice_beta_offset_div2.