Package org.lwjgl.vulkan.video
Class StdVideoH264ScalingLists
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class StdVideoH264ScalingLists
extends Struct<StdVideoH264ScalingLists>
implements NativeResource
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];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoH264ScalingLists(ByteBuffer container) Creates aStdVideoH264ScalingListsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoH264ScalingListscalloc()Returns a newStdVideoH264ScalingListsinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264ScalingListscalloc(MemoryStack stack) Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264ScalingListscreate()Returns a newStdVideoH264ScalingListsinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withBufferUtils.static StdVideoH264ScalingListscreate(long address) Returns a newStdVideoH264ScalingListsinstance for the specified memory address.create(long address, int capacity) Create aStdVideoH264ScalingLists.Bufferinstance at the specified memory.static @Nullable StdVideoH264ScalingListscreateSafe(long address) static @Nullable StdVideoH264ScalingLists.BuffercreateSafe(long address, int capacity) static StdVideoH264ScalingListsmalloc()Returns a newStdVideoH264ScalingListsinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoH264ScalingListsmalloc(MemoryStack stack) Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStack.static shortnscaling_list_present_mask(long struct) Unsafe version ofscaling_list_present_mask().static voidnscaling_list_present_mask(long struct, short value) Unsafe version ofscaling_list_present_mask.static 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, ByteBuffer value) Unsafe version ofScalingList4x4.static 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, ByteBuffer value) Unsafe version ofScalingList8x8.static shortnuse_default_scaling_matrix_mask(long struct) Unsafe version ofuse_default_scaling_matrix_mask().static voidnuse_default_scaling_matrix_mask(long struct, short value) Unsafe version ofuse_default_scaling_matrix_mask.shortscaling_list_present_mask(short value) Sets the specified value to thescaling_list_present_maskfield.byteScalingList4x4(int index) ScalingList4x4(int index, byte value) Sets the specified value at the specified index of theScalingList4x4field.ScalingList4x4(ByteBuffer value) Copies the specifiedByteBufferto theScalingList4x4field.byteScalingList8x8(int index) ScalingList8x8(int index, byte value) Sets the specified value at the specified index of theScalingList8x8field.ScalingList8x8(ByteBuffer value) Copies the specifiedByteBufferto theScalingList8x8field.set(short scaling_list_present_mask, short use_default_scaling_matrix_mask, ByteBuffer ScalingList4x4, ByteBuffer ScalingList8x8) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).shortuse_default_scaling_matrix_mask(short value) Sets the specified value to theuse_default_scaling_matrix_maskfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SCALING_LIST_PRESENT_MASK
public static final int SCALING_LIST_PRESENT_MASKThe struct member offsets. -
USE_DEFAULT_SCALING_MATRIX_MASK
public static final int USE_DEFAULT_SCALING_MATRIX_MASKThe struct member offsets. -
SCALINGLIST4X4
public static final int SCALINGLIST4X4The struct member offsets. -
SCALINGLIST8X8
public static final int SCALINGLIST8X8The struct member offsets.
-
-
Constructor Details
-
StdVideoH264ScalingLists
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StdVideoH264ScalingLists>
-
scaling_list_present_mask
public short scaling_list_present_mask()- Returns:
- the value of the
scaling_list_present_maskfield.
-
use_default_scaling_matrix_mask
public short use_default_scaling_matrix_mask()- Returns:
- the value of the
use_default_scaling_matrix_maskfield.
-
ScalingList4x4
- Returns:
- a
ByteBufferview of theScalingList4x4field.
-
ScalingList4x4
public byte ScalingList4x4(int index) - Returns:
- the value at the specified index of the
ScalingList4x4field.
-
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
Sets the specified value to thescaling_list_present_maskfield. -
use_default_scaling_matrix_mask
Sets the specified value to theuse_default_scaling_matrix_maskfield. -
ScalingList4x4
Copies the specifiedByteBufferto theScalingList4x4field. -
ScalingList4x4
Sets the specified value at the specified index of theScalingList4x4field. -
ScalingList8x8
Copies the specifiedByteBufferto theScalingList8x8field. -
ScalingList8x8
Sets the specified value at the specified index of theScalingList8x8field. -
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
Returns a newStdVideoH264ScalingListsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264ScalingListsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoH264ScalingListsinstance allocated withBufferUtils. -
create
Returns a newStdVideoH264ScalingListsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoH264ScalingLists.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoH264ScalingListsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoH264ScalingLists.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nscaling_list_present_mask
public static short nscaling_list_present_mask(long struct) Unsafe version ofscaling_list_present_mask(). -
nuse_default_scaling_matrix_mask
public static short nuse_default_scaling_matrix_mask(long struct) Unsafe version ofuse_default_scaling_matrix_mask(). -
nScalingList4x4
Unsafe version ofScalingList4x4(). -
nScalingList4x4
public static byte nScalingList4x4(long struct, int index) Unsafe version ofScalingList4x4. -
nScalingList8x8
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, short value) Unsafe version ofscaling_list_present_mask. -
nuse_default_scaling_matrix_mask
public static void nuse_default_scaling_matrix_mask(long struct, short value) Unsafe version ofuse_default_scaling_matrix_mask. -
nScalingList4x4
Unsafe version ofScalingList4x4. -
nScalingList4x4
public static void nScalingList4x4(long struct, int index, byte value) Unsafe version ofScalingList4x4. -
nScalingList8x8
Unsafe version ofScalingList8x8. -
nScalingList8x8
public static void nScalingList8x8(long struct, int index, byte value) Unsafe version ofScalingList8x8.
-