Class StdVideoH264ScalingLists

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

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

    Layout

    
     struct StdVideoH264ScalingLists {
         uint8_t scaling_list_present_mask();
         uint8_t use_default_scaling_matrix_mask();
         uint8_t ScalingList4x4[STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS];
         uint8_t ScalingList8x8[STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SCALING_LIST_PRESENT_MASK, USE_DEFAULT_SCALING_MATRIX_MASK, SCALINGLIST4X4, SCALINGLIST8X8

        The struct member offsets.
    • Constructor Detail

      • StdVideoH264ScalingLists

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

        public byte scaling_list_present_mask()
        scaling_list_present_mask has one bit for each seq_scaling_list_present_flag[i] for SPS OR pic_scaling_list_present_flag[i] for PPS, bit 0 - 5 are for each entry of ScalingList4x4 bit 6 - 7 are for each entry plus 6 for ScalingList8x8
      • use_default_scaling_matrix_mask

        public byte use_default_scaling_matrix_mask()
        use_default_scaling_matrix_mask has one bit for each UseDefaultScalingMatrix4x4Flag[ i ] and UseDefaultScalingMatrix8x8Flag[ i - 6 ] for SPS OR PPS bit 0 - 5 are for each entry of ScalingList4x4 bit 6 - 7 are for each entry plus 6 for ScalingList8x8
      • ScalingList4x4

        public java.nio.ByteBuffer ScalingList4x4()
        Returns:
        a ByteBuffer view of the ScalingList4x4 field.
      • ScalingList4x4

        public byte ScalingList4x4​(int index)
        Returns:
        the value at the specified index of the ScalingList4x4 field.
      • ScalingList8x8

        public java.nio.ByteBuffer ScalingList8x8()
        Returns:
        a ByteBuffer view of the ScalingList8x8 field.
      • ScalingList8x8

        public byte ScalingList8x8​(int index)
        Returns:
        the value at the specified index of the ScalingList8x8 field.
      • ScalingList4x4

        public StdVideoH264ScalingLists ScalingList4x4​(java.nio.ByteBuffer value)
        Copies the specified ByteBuffer to the ScalingList4x4 field.
      • ScalingList4x4

        public StdVideoH264ScalingLists ScalingList4x4​(int index,
                                                       byte value)
        Sets the specified value at the specified index of the ScalingList4x4 field.
      • ScalingList8x8

        public StdVideoH264ScalingLists ScalingList8x8​(java.nio.ByteBuffer value)
        Copies the specified ByteBuffer to the ScalingList8x8 field.
      • ScalingList8x8

        public StdVideoH264ScalingLists ScalingList8x8​(int index,
                                                       byte value)
        Sets the specified value at the specified index of the ScalingList8x8 field.
      • set

        public StdVideoH264ScalingLists set​(byte scaling_list_present_mask,
                                            byte use_default_scaling_matrix_mask,
                                            java.nio.ByteBuffer ScalingList4x4,
                                            java.nio.ByteBuffer ScalingList8x8)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static StdVideoH264ScalingLists.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new StdVideoH264ScalingLists.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nscaling_list_present_mask

        public static byte nscaling_list_present_mask​(long struct)
        Unsafe version of scaling_list_present_mask().
      • nScalingList4x4

        public static java.nio.ByteBuffer nScalingList4x4​(long struct)
        Unsafe version of ScalingList4x4().
      • nScalingList4x4

        public static byte nScalingList4x4​(long struct,
                                           int index)
        Unsafe version of ScalingList4x4.
      • nScalingList8x8

        public static java.nio.ByteBuffer nScalingList8x8​(long struct)
        Unsafe version of ScalingList8x8().
      • nScalingList8x8

        public static byte nScalingList8x8​(long struct,
                                           int index)
        Unsafe version of ScalingList8x8.
      • nscaling_list_present_mask

        public static void nscaling_list_present_mask​(long struct,
                                                      byte value)
        Unsafe version of scaling_list_present_mask.
      • nuse_default_scaling_matrix_mask

        public static void nuse_default_scaling_matrix_mask​(long struct,
                                                            byte value)
      • nScalingList4x4

        public static void nScalingList4x4​(long struct,
                                           java.nio.ByteBuffer value)
        Unsafe version of ScalingList4x4.
      • nScalingList4x4

        public static void nScalingList4x4​(long struct,
                                           int index,
                                           byte value)
        Unsafe version of ScalingList4x4.
      • nScalingList8x8

        public static void nScalingList8x8​(long struct,
                                           java.nio.ByteBuffer value)
        Unsafe version of ScalingList8x8.
      • nScalingList8x8

        public static void nScalingList8x8​(long struct,
                                           int index,
                                           byte value)
        Unsafe version of ScalingList8x8.