Package org.lwjgl.vulkan.video
Class StdVideoH264ScalingLists
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.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.NativeResourceLayout
struct StdVideoH264ScalingLists { uint8_tscaling_list_present_mask(); uint8_tuse_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]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoH264ScalingLists.BufferAn array ofStdVideoH264ScalingListsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intSCALING_LIST_PRESENT_MASK
SCALINGLIST4X4
SCALINGLIST8X8The struct member offsets.static intSIZEOFThe struct size in bytes.static intUSE_DEFAULT_SCALING_MATRIX_MASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description StdVideoH264ScalingLists(java.nio.ByteBuffer container)Creates aStdVideoH264ScalingListsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StdVideoH264ScalingListscalloc()Returns a newStdVideoH264ScalingListsinstance allocated withmemCalloc.static StdVideoH264ScalingLists.Buffercalloc(int capacity)Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemCalloc.static StdVideoH264ScalingLists.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264ScalingListscalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264ScalingListscreate()Returns a newStdVideoH264ScalingListsinstance allocated withBufferUtils.static StdVideoH264ScalingLists.Buffercreate(int capacity)Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withBufferUtils.static StdVideoH264ScalingListscreate(long address)Returns a newStdVideoH264ScalingListsinstance for the specified memory address.static StdVideoH264ScalingLists.Buffercreate(long address, int capacity)Create aStdVideoH264ScalingLists.Bufferinstance at the specified memory.static StdVideoH264ScalingListscreateSafe(long address)static StdVideoH264ScalingLists.BuffercreateSafe(long address, int capacity)static StdVideoH264ScalingListsmalloc()Returns a newStdVideoH264ScalingListsinstance allocated withmemAlloc.static StdVideoH264ScalingLists.Buffermalloc(int capacity)Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemAlloc.static StdVideoH264ScalingLists.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoH264ScalingListsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStack.static bytenscaling_list_present_mask(long struct)Unsafe version ofscaling_list_present_mask().static voidnscaling_list_present_mask(long struct, byte value)Unsafe version ofscaling_list_present_mask.static java.nio.ByteBuffernScalingList4x4(long struct)Unsafe version ofScalingList4x4().static bytenScalingList4x4(long struct, int index)Unsafe version ofScalingList4x4.static voidnScalingList4x4(long struct, int index, byte value)Unsafe version ofScalingList4x4.static voidnScalingList4x4(long struct, java.nio.ByteBuffer value)Unsafe version ofScalingList4x4.static java.nio.ByteBuffernScalingList8x8(long struct)Unsafe version ofScalingList8x8().static bytenScalingList8x8(long struct, int index)Unsafe version ofScalingList8x8.static voidnScalingList8x8(long struct, int index, byte value)Unsafe version ofScalingList8x8.static voidnScalingList8x8(long struct, java.nio.ByteBuffer value)Unsafe version ofScalingList8x8.static bytenuse_default_scaling_matrix_mask(long struct)Unsafe version ofuse_default_scaling_matrix_mask().static voidnuse_default_scaling_matrix_mask(long struct, byte value)Unsafe version ofuse_default_scaling_matrix_mask.bytescaling_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 ScalingList8x8StdVideoH264ScalingListsscaling_list_present_mask(byte value)Sets the specified value to thescaling_list_present_mask()field.java.nio.ByteBufferScalingList4x4()byteScalingList4x4(int index)StdVideoH264ScalingListsScalingList4x4(int index, byte value)Sets the specified value at the specified index of theScalingList4x4field.StdVideoH264ScalingListsScalingList4x4(java.nio.ByteBuffer value)Copies the specifiedByteBufferto theScalingList4x4field.java.nio.ByteBufferScalingList8x8()byteScalingList8x8(int index)StdVideoH264ScalingListsScalingList8x8(int index, byte value)Sets the specified value at the specified index of theScalingList8x8field.StdVideoH264ScalingListsScalingList8x8(java.nio.ByteBuffer value)Copies the specifiedByteBufferto theScalingList8x8field.StdVideoH264ScalingListsset(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.StdVideoH264ScalingListsset(StdVideoH264ScalingLists src)Copies the specified struct data to this struct.intsizeof()byteuse_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 ScalingList8x8StdVideoH264ScalingListsuse_default_scaling_matrix_mask(byte value)Sets the specified value to theuse_default_scaling_matrix_mask()field.
-
-
-
Constructor Detail
-
StdVideoH264ScalingLists
public StdVideoH264ScalingLists(java.nio.ByteBuffer container)
Creates aStdVideoH264ScalingListsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.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
ByteBufferview of theScalingList4x4field.
-
ScalingList4x4
public byte ScalingList4x4(int index)
- Returns:
- the value at the specified index of the
ScalingList4x4field.
-
ScalingList8x8
public java.nio.ByteBuffer ScalingList8x8()
- Returns:
- a
ByteBufferview of theScalingList8x8field.
-
ScalingList8x8
public byte ScalingList8x8(int index)
- Returns:
- the value at the specified index of the
ScalingList8x8field.
-
scaling_list_present_mask
public StdVideoH264ScalingLists scaling_list_present_mask(byte value)
Sets the specified value to thescaling_list_present_mask()field.
-
use_default_scaling_matrix_mask
public StdVideoH264ScalingLists use_default_scaling_matrix_mask(byte value)
Sets the specified value to theuse_default_scaling_matrix_mask()field.
-
ScalingList4x4
public StdVideoH264ScalingLists ScalingList4x4(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto theScalingList4x4field.
-
ScalingList4x4
public StdVideoH264ScalingLists ScalingList4x4(int index, byte value)
Sets the specified value at the specified index of theScalingList4x4field.
-
ScalingList8x8
public StdVideoH264ScalingLists ScalingList8x8(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto theScalingList8x8field.
-
ScalingList8x8
public StdVideoH264ScalingLists ScalingList8x8(int index, byte value)
Sets the specified value at the specified index of theScalingList8x8field.
-
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.
-
set
public StdVideoH264ScalingLists set(StdVideoH264ScalingLists src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoH264ScalingLists malloc()
Returns a newStdVideoH264ScalingListsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoH264ScalingLists calloc()
Returns a newStdVideoH264ScalingListsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoH264ScalingLists create()
Returns a newStdVideoH264ScalingListsinstance allocated withBufferUtils.
-
create
public static StdVideoH264ScalingLists create(long address)
Returns a newStdVideoH264ScalingListsinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoH264ScalingLists createSafe(long address)
-
malloc
public static StdVideoH264ScalingLists.Buffer malloc(int capacity)
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoH264ScalingLists.Buffer calloc(int capacity)
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264ScalingLists.Buffer create(int capacity)
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264ScalingLists.Buffer create(long address, int capacity)
Create aStdVideoH264ScalingLists.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoH264ScalingLists.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoH264ScalingLists malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoH264ScalingLists calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStackand 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 newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoH264ScalingLists.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nscaling_list_present_mask
public static byte nscaling_list_present_mask(long struct)
Unsafe version ofscaling_list_present_mask().
-
nuse_default_scaling_matrix_mask
public static byte nuse_default_scaling_matrix_mask(long struct)
Unsafe version ofuse_default_scaling_matrix_mask().
-
nScalingList4x4
public static java.nio.ByteBuffer nScalingList4x4(long struct)
Unsafe version ofScalingList4x4().
-
nScalingList4x4
public static byte nScalingList4x4(long struct, int index)Unsafe version ofScalingList4x4.
-
nScalingList8x8
public static java.nio.ByteBuffer nScalingList8x8(long struct)
Unsafe version ofScalingList8x8().
-
nScalingList8x8
public static byte nScalingList8x8(long struct, int index)Unsafe version ofScalingList8x8.
-
nscaling_list_present_mask
public static void nscaling_list_present_mask(long struct, byte value)Unsafe version ofscaling_list_present_mask.
-
nuse_default_scaling_matrix_mask
public static void nuse_default_scaling_matrix_mask(long struct, byte value)Unsafe version ofuse_default_scaling_matrix_mask.
-
nScalingList4x4
public static void nScalingList4x4(long struct, java.nio.ByteBuffer value)Unsafe version ofScalingList4x4.
-
nScalingList4x4
public static void nScalingList4x4(long struct, int index, byte value)Unsafe version ofScalingList4x4.
-
nScalingList8x8
public static void nScalingList8x8(long struct, java.nio.ByteBuffer value)Unsafe version ofScalingList8x8.
-
nScalingList8x8
public static void nScalingList8x8(long struct, int index, byte value)Unsafe version ofScalingList8x8.
-
-