Package org.lwjgl.vulkan
Class VkVideoEncodeAV1FrameSizeKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkVideoEncodeAV1FrameSizeKHR
extends Struct<VkVideoEncodeAV1FrameSizeKHR>
implements NativeResource
struct VkVideoEncodeAV1FrameSizeKHR {
uint32_t intraFrameSize;
uint32_t predictiveFrameSize;
uint32_t bipredictiveFrameSize;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkVideoEncodeAV1FrameSizeKHR
(ByteBuffer container) Creates aVkVideoEncodeAV1FrameSizeKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
bipredictiveFrameSize
(int value) Sets the specified value to thebipredictiveFrameSize
field.static VkVideoEncodeAV1FrameSizeKHR
calloc()
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoEncodeAV1FrameSizeKHR
calloc
(MemoryStack stack) Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoEncodeAV1FrameSizeKHR
create()
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withBufferUtils
.static VkVideoEncodeAV1FrameSizeKHR
create
(long address) Returns a newVkVideoEncodeAV1FrameSizeKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkVideoEncodeAV1FrameSizeKHR.Buffer
instance at the specified memory.static @Nullable VkVideoEncodeAV1FrameSizeKHR
createSafe
(long address) static @Nullable VkVideoEncodeAV1FrameSizeKHR.Buffer
createSafe
(long address, int capacity) int
intraFrameSize
(int value) Sets the specified value to theintraFrameSize
field.static VkVideoEncodeAV1FrameSizeKHR
malloc()
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkVideoEncodeAV1FrameSizeKHR
malloc
(MemoryStack stack) Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated on the specifiedMemoryStack
.static int
nbipredictiveFrameSize
(long struct) Unsafe version ofbipredictiveFrameSize()
.static void
nbipredictiveFrameSize
(long struct, int value) Unsafe version ofbipredictiveFrameSize
.static int
nintraFrameSize
(long struct) Unsafe version ofintraFrameSize()
.static void
nintraFrameSize
(long struct, int value) Unsafe version ofintraFrameSize
.static int
npredictiveFrameSize
(long struct) Unsafe version ofpredictiveFrameSize()
.static void
npredictiveFrameSize
(long struct, int value) Unsafe version ofpredictiveFrameSize
.int
predictiveFrameSize
(int value) Sets the specified value to thepredictiveFrameSize
field.set
(int intraFrameSize, int predictiveFrameSize, int bipredictiveFrameSize) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
INTRAFRAMESIZE
public static final int INTRAFRAMESIZEThe struct member offsets. -
PREDICTIVEFRAMESIZE
public static final int PREDICTIVEFRAMESIZEThe struct member offsets. -
BIPREDICTIVEFRAMESIZE
public static final int BIPREDICTIVEFRAMESIZEThe struct member offsets.
-
-
Constructor Details
-
VkVideoEncodeAV1FrameSizeKHR
Creates aVkVideoEncodeAV1FrameSizeKHR
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<VkVideoEncodeAV1FrameSizeKHR>
-
intraFrameSize
public int intraFrameSize()- Returns:
- the value of the
intraFrameSize
field.
-
predictiveFrameSize
public int predictiveFrameSize()- Returns:
- the value of the
predictiveFrameSize
field.
-
bipredictiveFrameSize
public int bipredictiveFrameSize()- Returns:
- the value of the
bipredictiveFrameSize
field.
-
intraFrameSize
Sets the specified value to theintraFrameSize
field. -
predictiveFrameSize
Sets the specified value to thepredictiveFrameSize
field. -
bipredictiveFrameSize
Sets the specified value to thebipredictiveFrameSize
field. -
set
public VkVideoEncodeAV1FrameSizeKHR set(int intraFrameSize, int predictiveFrameSize, int bipredictiveFrameSize) 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 newVkVideoEncodeAV1FrameSizeKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated withBufferUtils
. -
create
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkVideoEncodeAV1FrameSizeKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeAV1FrameSizeKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeAV1FrameSizeKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nintraFrameSize
public static int nintraFrameSize(long struct) Unsafe version ofintraFrameSize()
. -
npredictiveFrameSize
public static int npredictiveFrameSize(long struct) Unsafe version ofpredictiveFrameSize()
. -
nbipredictiveFrameSize
public static int nbipredictiveFrameSize(long struct) Unsafe version ofbipredictiveFrameSize()
. -
nintraFrameSize
public static void nintraFrameSize(long struct, int value) Unsafe version ofintraFrameSize
. -
npredictiveFrameSize
public static void npredictiveFrameSize(long struct, int value) Unsafe version ofpredictiveFrameSize
. -
nbipredictiveFrameSize
public static void nbipredictiveFrameSize(long struct, int value) Unsafe version ofbipredictiveFrameSize
.
-