Class StdVideoH264ScalingLists

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

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

Layout


 struct StdVideoH264ScalingLists {
     uint16_t scaling_list_present_mask();
     uint16_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 Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SCALING_LIST_PRESENT_MASK

      public static final int SCALING_LIST_PRESENT_MASK
      The struct member offsets.
    • USE_DEFAULT_SCALING_MATRIX_MASK

      public static final int USE_DEFAULT_SCALING_MATRIX_MASK
      The struct member offsets.
    • SCALINGLIST4X4

      public static final int SCALINGLIST4X4
      The struct member offsets.
    • SCALINGLIST8X8

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

    • StdVideoH264ScalingLists

      public StdVideoH264ScalingLists(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<StdVideoH264ScalingLists>
    • scaling_list_present_mask

      public short 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 short 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 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 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.
    • scaling_list_present_mask

      public StdVideoH264ScalingLists scaling_list_present_mask(short value)
      Sets the specified value to the scaling_list_present_mask() field.
    • use_default_scaling_matrix_mask

      public StdVideoH264ScalingLists use_default_scaling_matrix_mask(short value)
      Sets the specified value to the use_default_scaling_matrix_mask() field.
    • ScalingList4x4

      public StdVideoH264ScalingLists ScalingList4x4(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(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(short scaling_list_present_mask, short use_default_scaling_matrix_mask, ByteBuffer ScalingList4x4, ByteBuffer ScalingList8x8)
      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 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.
    • createSafe

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

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

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

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

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

      public static @Nullable StdVideoH264ScalingLists.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • 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
    • malloc

      public static StdVideoH264ScalingLists.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new StdVideoH264ScalingLists.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nscaling_list_present_mask

      public static short nscaling_list_present_mask(long struct)
      Unsafe version of scaling_list_present_mask().
    • nuse_default_scaling_matrix_mask

      public static short nuse_default_scaling_matrix_mask(long struct)
    • nScalingList4x4

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

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

      public static 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, short value)
      Unsafe version of scaling_list_present_mask.
    • nuse_default_scaling_matrix_mask

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

      public static void nScalingList4x4(long struct, 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, ByteBuffer value)
      Unsafe version of ScalingList8x8.
    • nScalingList8x8

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