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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aStdVideoH264ScalingLists
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoH264ScalingLists
calloc()
Returns a newStdVideoH264ScalingLists
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264ScalingLists.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoH264ScalingLists
calloc
(MemoryStack stack) Returns a newStdVideoH264ScalingLists
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoH264ScalingLists
create()
Returns a newStdVideoH264ScalingLists
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withBufferUtils
.static StdVideoH264ScalingLists
create
(long address) Returns a newStdVideoH264ScalingLists
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoH264ScalingLists.Buffer
instance at the specified memory.static @Nullable StdVideoH264ScalingLists
createSafe
(long address) static @Nullable StdVideoH264ScalingLists.Buffer
createSafe
(long address, int capacity) static StdVideoH264ScalingLists
malloc()
Returns a newStdVideoH264ScalingLists
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264ScalingLists.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoH264ScalingLists
malloc
(MemoryStack stack) Returns a newStdVideoH264ScalingLists
instance allocated on the specifiedMemoryStack
.static short
nscaling_list_present_mask
(long struct) Unsafe version ofscaling_list_present_mask()
.static void
nscaling_list_present_mask
(long struct, short value) Unsafe version ofscaling_list_present_mask
.static ByteBuffer
nScalingList4x4
(long struct) Unsafe version ofScalingList4x4()
.static byte
nScalingList4x4
(long struct, int index) Unsafe version ofScalingList4x4
.static void
nScalingList4x4
(long struct, int index, byte value) Unsafe version ofScalingList4x4
.static void
nScalingList4x4
(long struct, ByteBuffer value) Unsafe version ofScalingList4x4
.static ByteBuffer
nScalingList8x8
(long struct) Unsafe version ofScalingList8x8()
.static byte
nScalingList8x8
(long struct, int index) Unsafe version ofScalingList8x8
.static void
nScalingList8x8
(long struct, int index, byte value) Unsafe version ofScalingList8x8
.static void
nScalingList8x8
(long struct, ByteBuffer value) Unsafe version ofScalingList8x8
.static short
nuse_default_scaling_matrix_mask
(long struct) Unsafe version ofuse_default_scaling_matrix_mask()
.static void
nuse_default_scaling_matrix_mask
(long struct, short value) Unsafe version ofuse_default_scaling_matrix_mask
.short
scaling_list_present_mask
(short value) Sets the specified value to thescaling_list_present_mask
field.byte
ScalingList4x4
(int index) ScalingList4x4
(int index, byte value) Sets the specified value at the specified index of theScalingList4x4
field.ScalingList4x4
(ByteBuffer value) Copies the specifiedByteBuffer
to theScalingList4x4
field.byte
ScalingList8x8
(int index) ScalingList8x8
(int index, byte value) Sets the specified value at the specified index of theScalingList8x8
field.ScalingList8x8
(ByteBuffer value) Copies the specifiedByteBuffer
to theScalingList8x8
field.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.int
sizeof()
Returnssizeof(struct)
.short
use_default_scaling_matrix_mask
(short value) Sets the specified value to theuse_default_scaling_matrix_mask
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aStdVideoH264ScalingLists
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoH264ScalingLists>
-
scaling_list_present_mask
public short scaling_list_present_mask()- Returns:
- the value of the
scaling_list_present_mask
field.
-
use_default_scaling_matrix_mask
public short use_default_scaling_matrix_mask()- Returns:
- the value of the
use_default_scaling_matrix_mask
field.
-
ScalingList4x4
- Returns:
- a
ByteBuffer
view of theScalingList4x4
field.
-
ScalingList4x4
public byte ScalingList4x4(int index) - Returns:
- the value at the specified index of the
ScalingList4x4
field.
-
ScalingList8x8
- Returns:
- a
ByteBuffer
view of theScalingList8x8
field.
-
ScalingList8x8
public byte ScalingList8x8(int index) - Returns:
- the value at the specified index of the
ScalingList8x8
field.
-
scaling_list_present_mask
Sets the specified value to thescaling_list_present_mask
field. -
use_default_scaling_matrix_mask
Sets the specified value to theuse_default_scaling_matrix_mask
field. -
ScalingList4x4
Copies the specifiedByteBuffer
to theScalingList4x4
field. -
ScalingList4x4
Sets the specified value at the specified index of theScalingList4x4
field. -
ScalingList8x8
Copies the specifiedByteBuffer
to theScalingList8x8
field. -
ScalingList8x8
Sets the specified value at the specified index of theScalingList8x8
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
Returns a newStdVideoH264ScalingLists
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264ScalingLists
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoH264ScalingLists
instance allocated withBufferUtils
. -
create
Returns a newStdVideoH264ScalingLists
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoH264ScalingLists.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoH264ScalingLists.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoH264ScalingLists
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264ScalingLists
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoH264ScalingLists.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264ScalingLists.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-