Package org.lwjgl.vulkan
Class VkVideoEncodeAV1RateControlLayerInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoEncodeAV1RateControlLayerInfoKHR>
org.lwjgl.vulkan.VkVideoEncodeAV1RateControlLayerInfoKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkVideoEncodeAV1RateControlLayerInfoKHR
extends Struct<VkVideoEncodeAV1RateControlLayerInfoKHR>
implements NativeResource
struct VkVideoEncodeAV1RateControlLayerInfoKHR {
VkStructureType sType;
void const * pNext;
VkBool32 useMinQIndex;
{@link VkVideoEncodeAV1QIndexKHR VkVideoEncodeAV1QIndexKHR} minQIndex;
VkBool32 useMaxQIndex;
{@link VkVideoEncodeAV1QIndexKHR VkVideoEncodeAV1QIndexKHR} maxQIndex;
VkBool32 useMaxFrameSize;
{@link VkVideoEncodeAV1FrameSizeKHR VkVideoEncodeAV1FrameSizeKHR} maxFrameSize;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkVideoEncodeAV1RateControlLayerInfoKHR
structs.Nested 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 member offsets.static final int
The struct size 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 member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkVideoEncodeAV1RateControlLayerInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance at the specified memory.static @Nullable VkVideoEncodeAV1RateControlLayerInfoKHR
createSafe
(long address) static @Nullable VkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
createSafe
(long address, int capacity) malloc()
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated on the specifiedMemoryStack
.maxFrameSize
(Consumer<VkVideoEncodeAV1FrameSizeKHR> consumer) Passes themaxFrameSize
field to the specifiedConsumer
.Copies the specifiedVkVideoEncodeAV1FrameSizeKHR
to themaxFrameSize
field.maxQIndex
(Consumer<VkVideoEncodeAV1QIndexKHR> consumer) Passes themaxQIndex
field to the specifiedConsumer
.Copies the specifiedVkVideoEncodeAV1QIndexKHR
to themaxQIndex
field.minQIndex
(Consumer<VkVideoEncodeAV1QIndexKHR> consumer) Passes theminQIndex
field to the specifiedConsumer
.Copies the specifiedVkVideoEncodeAV1QIndexKHR
to theminQIndex
field.static VkVideoEncodeAV1FrameSizeKHR
nmaxFrameSize
(long struct) Unsafe version ofmaxFrameSize()
.static void
nmaxFrameSize
(long struct, VkVideoEncodeAV1FrameSizeKHR value) Unsafe version ofmaxFrameSize
.static VkVideoEncodeAV1QIndexKHR
nmaxQIndex
(long struct) Unsafe version ofmaxQIndex()
.static void
nmaxQIndex
(long struct, VkVideoEncodeAV1QIndexKHR value) Unsafe version ofmaxQIndex
.static VkVideoEncodeAV1QIndexKHR
nminQIndex
(long struct) Unsafe version ofminQIndex()
.static void
nminQIndex
(long struct, VkVideoEncodeAV1QIndexKHR value) Unsafe version ofminQIndex
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
nuseMaxFrameSize
(long struct) Unsafe version ofuseMaxFrameSize()
.static void
nuseMaxFrameSize
(long struct, int value) Unsafe version ofuseMaxFrameSize
.static int
nuseMaxQIndex
(long struct) Unsafe version ofuseMaxQIndex()
.static void
nuseMaxQIndex
(long struct, int value) Unsafe version ofuseMaxQIndex
.static int
nuseMinQIndex
(long struct) Unsafe version ofuseMinQIndex()
.static void
nuseMinQIndex
(long struct, int value) Unsafe version ofuseMinQIndex
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.set
(int sType, long pNext, boolean useMinQIndex, VkVideoEncodeAV1QIndexKHR minQIndex, boolean useMaxQIndex, VkVideoEncodeAV1QIndexKHR maxQIndex, boolean useMaxFrameSize, VkVideoEncodeAV1FrameSizeKHR maxFrameSize) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_AV1_RATE_CONTROL_LAYER_INFO_KHR
value to thesType
field.boolean
useMaxFrameSize
(boolean value) Sets the specified value to theuseMaxFrameSize
field.boolean
useMaxQIndex
(boolean value) Sets the specified value to theuseMaxQIndex
field.boolean
useMinQIndex
(boolean value) Sets the specified value to theuseMinQIndex
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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
USEMINQINDEX
public static final int USEMINQINDEXThe struct member offsets. -
MINQINDEX
public static final int MINQINDEXThe struct member offsets. -
USEMAXQINDEX
public static final int USEMAXQINDEXThe struct member offsets. -
MAXQINDEX
public static final int MAXQINDEXThe struct member offsets. -
USEMAXFRAMESIZE
public static final int USEMAXFRAMESIZEThe struct member offsets. -
MAXFRAMESIZE
public static final int MAXFRAMESIZEThe struct member offsets.
-
-
Constructor Details
-
VkVideoEncodeAV1RateControlLayerInfoKHR
Creates aVkVideoEncodeAV1RateControlLayerInfoKHR
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<VkVideoEncodeAV1RateControlLayerInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
useMinQIndex
public boolean useMinQIndex()- Returns:
- the value of the
useMinQIndex
field.
-
minQIndex
- Returns:
- a
VkVideoEncodeAV1QIndexKHR
view of theminQIndex
field.
-
useMaxQIndex
public boolean useMaxQIndex()- Returns:
- the value of the
useMaxQIndex
field.
-
maxQIndex
- Returns:
- a
VkVideoEncodeAV1QIndexKHR
view of themaxQIndex
field.
-
useMaxFrameSize
public boolean useMaxFrameSize()- Returns:
- the value of the
useMaxFrameSize
field.
-
maxFrameSize
- Returns:
- a
VkVideoEncodeAV1FrameSizeKHR
view of themaxFrameSize
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_ENCODE_AV1_RATE_CONTROL_LAYER_INFO_KHR
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
useMinQIndex
Sets the specified value to theuseMinQIndex
field. -
minQIndex
Copies the specifiedVkVideoEncodeAV1QIndexKHR
to theminQIndex
field. -
minQIndex
public VkVideoEncodeAV1RateControlLayerInfoKHR minQIndex(Consumer<VkVideoEncodeAV1QIndexKHR> consumer) Passes theminQIndex
field to the specifiedConsumer
. -
useMaxQIndex
Sets the specified value to theuseMaxQIndex
field. -
maxQIndex
Copies the specifiedVkVideoEncodeAV1QIndexKHR
to themaxQIndex
field. -
maxQIndex
public VkVideoEncodeAV1RateControlLayerInfoKHR maxQIndex(Consumer<VkVideoEncodeAV1QIndexKHR> consumer) Passes themaxQIndex
field to the specifiedConsumer
. -
useMaxFrameSize
Sets the specified value to theuseMaxFrameSize
field. -
maxFrameSize
Copies the specifiedVkVideoEncodeAV1FrameSizeKHR
to themaxFrameSize
field. -
maxFrameSize
public VkVideoEncodeAV1RateControlLayerInfoKHR maxFrameSize(Consumer<VkVideoEncodeAV1FrameSizeKHR> consumer) Passes themaxFrameSize
field to the specifiedConsumer
. -
set
public VkVideoEncodeAV1RateControlLayerInfoKHR set(int sType, long pNext, boolean useMinQIndex, VkVideoEncodeAV1QIndexKHR minQIndex, boolean useMaxQIndex, VkVideoEncodeAV1QIndexKHR maxQIndex, boolean useMaxFrameSize, VkVideoEncodeAV1FrameSizeKHR maxFrameSize) 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 newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkVideoEncodeAV1RateControlLayerInfoKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkVideoEncodeAV1RateControlLayerInfoKHR.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkVideoEncodeAV1RateControlLayerInfoKHR.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkVideoEncodeAV1RateControlLayerInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nuseMinQIndex
public static int nuseMinQIndex(long struct) Unsafe version ofuseMinQIndex()
. -
nminQIndex
Unsafe version ofminQIndex()
. -
nuseMaxQIndex
public static int nuseMaxQIndex(long struct) Unsafe version ofuseMaxQIndex()
. -
nmaxQIndex
Unsafe version ofmaxQIndex()
. -
nuseMaxFrameSize
public static int nuseMaxFrameSize(long struct) Unsafe version ofuseMaxFrameSize()
. -
nmaxFrameSize
Unsafe version ofmaxFrameSize()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nuseMinQIndex
public static void nuseMinQIndex(long struct, int value) Unsafe version ofuseMinQIndex
. -
nminQIndex
Unsafe version ofminQIndex
. -
nuseMaxQIndex
public static void nuseMaxQIndex(long struct, int value) Unsafe version ofuseMaxQIndex
. -
nmaxQIndex
Unsafe version ofmaxQIndex
. -
nuseMaxFrameSize
public static void nuseMaxFrameSize(long struct, int value) Unsafe version ofuseMaxFrameSize
. -
nmaxFrameSize
Unsafe version ofmaxFrameSize
.
-