Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkVideoEncodeRateControlInfoKHR

extends Struct<VkVideoEncodeRateControlInfoKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure to set encode stream rate control parameters.
Description

Including this structure in the pNext chain of VkVideoCodingControlInfoKHR and including VIDEO_CODING_CONTROL_ENCODE_RATE_CONTROL_BIT_KHR in VkVideoCodingControlInfoKHR::flags will define stream rate control settings for video encoding.

Additional structures providing codec-specific rate control parameters may need to be included in the pNext chain of VkVideoCodingControlInfoKHR depending on the codec profile the bound video session was created with and the parameters specified in VkVideoEncodeRateControlInfoKHR (see Video Coding Control).

To ensure that the video session is properly initialized with stream-level rate control settings, the application must call CmdControlVideoCodingKHR with stream-level rate control settings at least once in execution order before the first CmdEncodeVideoKHR command that is executed after video session reset. If not provided, default implementation-specific stream rate control settings will be used.

Stream rate control settings can also be re-initialized during an active video encoding session. The re-initialization takes effect whenever the VkVideoEncodeRateControlInfoKHR structure is included in the pNext chain of the VkVideoCodingControlInfoKHR structure in the call to CmdControlVideoCodingKHR, and only impacts CmdEncodeVideoKHR operations that follow in execution order.

Valid Usage (Implicit)
See Also

VkVideoEncodeRateControlLayerInfoKHR

Layout


struct VkVideoEncodeRateControlInfoKHR {
    VkStructureType sType;
    void const * pNext;
    VkVideoEncodeRateControlFlagsKHR flags;
    VkVideoEncodeRateControlModeFlagBitsKHR rateControlMode;
    uint32_t layerCount;
    VkVideoEncodeRateControlLayerInfoKHR const * pLayers;
    uint32_t virtualBufferSizeInMs;
    uint32_t initialVirtualBufferSizeInMs;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
INITIALVIRTUALBUFFERSIZEINMS

The struct member offsets.

public static final int
LAYERCOUNT

The struct member offsets.

public static final int
PLAYERS

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
RATECONTROLMODE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
VIRTUALBUFFERSIZEINMS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkVideoEncodeRateControlInfoKHR(ByteBuffer container)

Creates a VkVideoEncodeRateControlInfoKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkVideoEncodeRateControlInfoKHR
calloc()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with memCalloc.

public static VkVideoEncodeRateControlInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with memCalloc.

public static VkVideoEncodeRateControlInfoKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkVideoEncodeRateControlInfoKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkVideoEncodeRateControlInfoKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkVideoEncodeRateControlInfoKHR
create()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with BufferUtils.

public static VkVideoEncodeRateControlInfoKHR
create(long address)

Returns a new VkVideoEncodeRateControlInfoKHR instance for the specified memory address.

public static VkVideoEncodeRateControlInfoKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with BufferUtils.

public static VkVideoEncodeRateControlInfoKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkVideoEncodeRateControlInfoKHR.Buffer instance at the specified memory.

public static VkVideoEncodeRateControlInfoKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkVideoEncodeRateControlInfoKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

reserved for future use.

public VkVideoEncodeRateControlInfoKHR
flags(int value)

Sets the specified value to the flags field.

public int
initialVirtualBufferSizeInMs()

the initial occupancy in milliseconds of the virtual buffer in the leaky bucket model.

public VkVideoEncodeRateControlInfoKHR
initialVirtualBufferSizeInMs(int value)

Sets the specified value to the initialVirtualBufferSizeInMs field.

public int
layerCount()

specifies the number of rate control layers in the video encode stream.

public static VkVideoEncodeRateControlInfoKHR
malloc()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with memAlloc.

public static VkVideoEncodeRateControlInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with memAlloc.

public static VkVideoEncodeRateControlInfoKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated on the specified MemoryStack.

public static VkVideoEncodeRateControlInfoKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated on the specified MemoryStack.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
public static void
ninitialVirtualBufferSizeInMs(long struct, int value)

Unsafe version of initialVirtualBufferSizeInMs.

public static int
nlayerCount(long struct)

Unsafe version of layerCount.

public static void
nlayerCount(long struct, int value)

Sets the specified value to the layerCount field of the specified struct.

public static VkVideoEncodeRateControlLayerInfoKHR.Buffer
npLayers(long struct)

Unsafe version of pLayers.

public static void
npLayers(long struct, VkVideoEncodeRateControlLayerInfoKHR.Buffer value)

Unsafe version of pLayers.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nrateControlMode(long struct)

Unsafe version of rateControlMode.

public static void
nrateControlMode(long struct, int value)

Unsafe version of rateControlMode.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nvirtualBufferSizeInMs(long struct)

Unsafe version of virtualBufferSizeInMs.

public static void
nvirtualBufferSizeInMs(long struct, int value)

Unsafe version of virtualBufferSizeInMs.

public VkVideoEncodeRateControlLayerInfoKHR.Buffer
pLayers()

a pointer to an array of VkVideoEncodeRateControlLayerInfoKHR structures specifying the rate control configurations of layerCount rate control layers.

public VkVideoEncodeRateControlInfoKHR
public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkVideoEncodeRateControlInfoKHR
pNext(long value)

Sets the specified value to the pNext field.

public int
rateControlMode()

a VkVideoEncodeRateControlModeFlagBitsKHR value specifying the encode stream rate control mode.

public VkVideoEncodeRateControlInfoKHR
rateControlMode(int value)

Sets the specified value to the rateControlMode field.

public VkVideoEncodeRateControlInfoKHR
set(int sType, long pNext, int flags, int rateControlMode, VkVideoEncodeRateControlLayerInfoKHR.Buffer pLayers, int virtualBufferSizeInMs, int initialVirtualBufferSizeInMs)

Initializes this struct with the specified values.

public VkVideoEncodeRateControlInfoKHR

Returns:

this struct
set
(VkVideoEncodeRateControlInfoKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkVideoEncodeRateControlInfoKHR
sType(int value)

Sets the specified value to the sType field.

public VkVideoEncodeRateControlInfoKHR
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public int
virtualBufferSizeInMs()

the leaky bucket model virtual buffer size in milliseconds, with respect to peak bitrate.

public VkVideoEncodeRateControlInfoKHR
virtualBufferSizeInMs(int value)

Sets the specified value to the virtualBufferSizeInMs field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

INITIALVIRTUALBUFFERSIZEINMSback to summary
public static final int INITIALVIRTUALBUFFERSIZEINMS

The struct member offsets.

LAYERCOUNTback to summary
public static final int LAYERCOUNT

The struct member offsets.

PLAYERSback to summary
public static final int PLAYERS

The struct member offsets.

PNEXTback to summary
public static final int PNEXT

The struct member offsets.

RATECONTROLMODEback to summary
public static final int RATECONTROLMODE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STYPEback to summary
public static final int STYPE

The struct member offsets.

VIRTUALBUFFERSIZEINMSback to summary
public static final int VIRTUALBUFFERSIZEINMS

The struct member offsets.

Constructor Detail

VkVideoEncodeRateControlInfoKHRback to summary
protected VkVideoEncodeRateControlInfoKHR(long address, ByteBuffer container)
VkVideoEncodeRateControlInfoKHRback to summary
public VkVideoEncodeRateControlInfoKHR(ByteBuffer container)

Creates a VkVideoEncodeRateControlInfoKHR instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static VkVideoEncodeRateControlInfoKHR calloc()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer calloc(int capacity)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkVideoEncodeRateControlInfoKHR calloc(MemoryStack stack)

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkVideoEncodeRateControlInfoKHR create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkVideoEncodeRateControlInfoKHR create()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with BufferUtils.

createback to summary
public static VkVideoEncodeRateControlInfoKHR create(long address)

Returns a new VkVideoEncodeRateControlInfoKHR instance for the specified memory address.

createback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer create(int capacity)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer create(long address, int capacity)

Create a VkVideoEncodeRateControlInfoKHR.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkVideoEncodeRateControlInfoKHR createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
flagsback to summary
public int flags()

reserved for future use.

Annotations
@NativeType:VkVideoEncodeRateControlFlagsKHR
flagsback to summary
public VkVideoEncodeRateControlInfoKHR flags(int value)

Sets the specified value to the flags field.

initialVirtualBufferSizeInMsback to summary
public int initialVirtualBufferSizeInMs()

the initial occupancy in milliseconds of the virtual buffer in the leaky bucket model. Valid when rate control mode is VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR or VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR.

Annotations
@NativeType:uint32_t
initialVirtualBufferSizeInMsback to summary
public VkVideoEncodeRateControlInfoKHR initialVirtualBufferSizeInMs(int value)

Sets the specified value to the initialVirtualBufferSizeInMs field.

layerCountback to summary
public int layerCount()

specifies the number of rate control layers in the video encode stream.

Annotations
@NativeType:uint32_t
mallocback to summary
public static VkVideoEncodeRateControlInfoKHR malloc()

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer malloc(int capacity)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkVideoEncodeRateControlInfoKHR malloc(MemoryStack stack)

Returns a new VkVideoEncodeRateControlInfoKHR instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkVideoEncodeRateControlInfoKHR.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkVideoEncodeRateControlInfoKHR.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nflagsback to summary
public static int nflags(long struct)

Unsafe version of flags.

nflagsback to summary
public static void nflags(long struct, int value)

Unsafe version of flags.

ninitialVirtualBufferSizeInMsback to summary
public static int ninitialVirtualBufferSizeInMs(long struct)

Unsafe version of initialVirtualBufferSizeInMs.

ninitialVirtualBufferSizeInMsback to summary
public static void ninitialVirtualBufferSizeInMs(long struct, int value)

Unsafe version of initialVirtualBufferSizeInMs.

nlayerCountback to summary
public static int nlayerCount(long struct)

Unsafe version of layerCount.

nlayerCountback to summary
public static void nlayerCount(long struct, int value)

Sets the specified value to the layerCount field of the specified struct.

npLayersback to summary
public static VkVideoEncodeRateControlLayerInfoKHR.Buffer npLayers(long struct)

Unsafe version of pLayers.

Annotations
@Nullable
npLayersback to summary
public static void npLayers(long struct, VkVideoEncodeRateControlLayerInfoKHR.Buffer value)

Unsafe version of pLayers.

npNextback to summary
public static long npNext(long struct)

Unsafe version of pNext.

npNextback to summary
public static void npNext(long struct, long value)

Unsafe version of pNext.

nrateControlModeback to summary
public static int nrateControlMode(long struct)

Unsafe version of rateControlMode.

nrateControlModeback to summary
public static void nrateControlMode(long struct, int value)

Unsafe version of rateControlMode.

nsTypeback to summary
public static int nsType(long struct)

Unsafe version of sType.

nsTypeback to summary
public static void nsType(long struct, int value)

Unsafe version of sType.

nvirtualBufferSizeInMsback to summary
public static int nvirtualBufferSizeInMs(long struct)

Unsafe version of virtualBufferSizeInMs.

nvirtualBufferSizeInMsback to summary
public static void nvirtualBufferSizeInMs(long struct, int value)

Unsafe version of virtualBufferSizeInMs.

pLayersback to summary
public VkVideoEncodeRateControlLayerInfoKHR.Buffer pLayers()

a pointer to an array of VkVideoEncodeRateControlLayerInfoKHR structures specifying the rate control configurations of layerCount rate control layers.

Annotations
@Nullable
@NativeType:VkVideoEncodeRateControlLayerInfoKHR const *
pLayersback to summary
public VkVideoEncodeRateControlInfoKHR pLayers(VkVideoEncodeRateControlLayerInfoKHR.Buffer value)

Sets the address of the specified VkVideoEncodeRateControlLayerInfoKHR.Buffer to the pLayers field.

pNextback to summary
public long pNext()

NULL or a pointer to a structure extending this structure.

Annotations
@NativeType:void const *
pNextback to summary
public VkVideoEncodeRateControlInfoKHR pNext(long value)

Sets the specified value to the pNext field.

rateControlModeback to summary
public int rateControlMode()

a VkVideoEncodeRateControlModeFlagBitsKHR value specifying the encode stream rate control mode.

Annotations
@NativeType:VkVideoEncodeRateControlModeFlagBitsKHR
rateControlModeback to summary
public VkVideoEncodeRateControlInfoKHR rateControlMode(int value)

Sets the specified value to the rateControlMode field.

setback to summary
public VkVideoEncodeRateControlInfoKHR set(int sType, long pNext, int flags, int rateControlMode, VkVideoEncodeRateControlLayerInfoKHR.Buffer pLayers, int virtualBufferSizeInMs, int initialVirtualBufferSizeInMs)

Initializes this struct with the specified values.

setback to summary
public VkVideoEncodeRateControlInfoKHR set(VkVideoEncodeRateControlInfoKHR src)

Copies the specified struct data to this struct.

Parameters
src:VkVideoEncodeRateControlInfoKHR

the source struct

Returns:VkVideoEncodeRateControlInfoKHR

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
sTypeback to summary
public int sType()

a VkStructureType value identifying this structure.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkVideoEncodeRateControlInfoKHR sType(int value)

Sets the specified value to the sType field.

sType$Defaultback to summary
public VkVideoEncodeRateControlInfoKHR sType$Default()

Sets the STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR value to the sType field.

validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

virtualBufferSizeInMsback to summary
public int virtualBufferSizeInMs()

the leaky bucket model virtual buffer size in milliseconds, with respect to peak bitrate. Valid when rate control mode is VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR or VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR. For example, virtual buffer size is (virtualBufferSizeInMs × maxBitrate / 1000).

Annotations
@NativeType:uint32_t
virtualBufferSizeInMsback to summary
public VkVideoEncodeRateControlInfoKHR virtualBufferSizeInMs(int value)

Sets the specified value to the virtualBufferSizeInMs field.

org.lwjgl.vulkan back to summary

public Class VkVideoEncodeRateControlInfoKHR.Buffer

extends StructBuffer<VkVideoEncodeRateControlInfoKHR, VkVideoEncodeRateControlInfoKHR.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkVideoEncodeRateControlInfoKHR structs.

Field Summary

Modifier and TypeField and Description
private static final VkVideoEncodeRateControlInfoKHR

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkVideoEncodeRateControlInfoKHR.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the VkVideoEncodeRateControlInfoKHR#flags field.
flags
()

public VkVideoEncodeRateControlInfoKHR.Buffer
flags(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#flags field.

protected VkVideoEncodeRateControlInfoKHR
public int
public VkVideoEncodeRateControlInfoKHR.Buffer
public int

Returns:

the value of the VkVideoEncodeRateControlInfoKHR#layerCount field.
layerCount
()

public VkVideoEncodeRateControlLayerInfoKHR.Buffer

Returns:

a VkVideoEncodeRateControlLayerInfoKHR.Buffer view of the struct array pointed to by the VkVideoEncodeRateControlInfoKHR#pLayers field.
pLayers
()

public VkVideoEncodeRateControlInfoKHR.Buffer
public long

Returns:

the value of the VkVideoEncodeRateControlInfoKHR#pNext field.
pNext
()

public VkVideoEncodeRateControlInfoKHR.Buffer
pNext(long value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#pNext field.

public int
public VkVideoEncodeRateControlInfoKHR.Buffer
rateControlMode(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#rateControlMode field.

protected VkVideoEncodeRateControlInfoKHR.Buffer
public int

Returns:

the value of the VkVideoEncodeRateControlInfoKHR#sType field.
sType
()

public VkVideoEncodeRateControlInfoKHR.Buffer
sType(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#sType field.

public VkVideoEncodeRateControlInfoKHR.Buffer
public int
public VkVideoEncodeRateControlInfoKHR.Buffer
virtualBufferSizeInMs(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#virtualBufferSizeInMs field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkVideoEncodeRateControlInfoKHR ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkVideoEncodeRateControlInfoKHR.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkVideoEncodeRateControlInfoKHR#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

flagsback to summary
public int flags()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#flags field.

Annotations
@NativeType:VkVideoEncodeRateControlFlagsKHR
flagsback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer flags(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#flags field.

getElementFactoryback to summary
protected VkVideoEncodeRateControlInfoKHR getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
initialVirtualBufferSizeInMsback to summary
public int initialVirtualBufferSizeInMs()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#initialVirtualBufferSizeInMs field.

Annotations
@NativeType:uint32_t
initialVirtualBufferSizeInMsback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer initialVirtualBufferSizeInMs(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#initialVirtualBufferSizeInMs field.

layerCountback to summary
public int layerCount()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#layerCount field.

Annotations
@NativeType:uint32_t
pLayersback to summary
public VkVideoEncodeRateControlLayerInfoKHR.Buffer pLayers()
Returns:VkVideoEncodeRateControlLayerInfoKHR.Buffer

a VkVideoEncodeRateControlLayerInfoKHR.Buffer view of the struct array pointed to by the VkVideoEncodeRateControlInfoKHR#pLayers field.

Annotations
@Nullable
@NativeType:VkVideoEncodeRateControlLayerInfoKHR const *
pLayersback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer pLayers(VkVideoEncodeRateControlLayerInfoKHR.Buffer value)

Sets the address of the specified VkVideoEncodeRateControlLayerInfoKHR.Buffer to the VkVideoEncodeRateControlInfoKHR#pLayers field.

pNextback to summary
public long pNext()
Returns:long

the value of the VkVideoEncodeRateControlInfoKHR#pNext field.

Annotations
@NativeType:void const *
pNextback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer pNext(long value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#pNext field.

rateControlModeback to summary
public int rateControlMode()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#rateControlMode field.

Annotations
@NativeType:VkVideoEncodeRateControlModeFlagBitsKHR
rateControlModeback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer rateControlMode(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#rateControlMode field.

selfback to summary
protected VkVideoEncodeRateControlInfoKHR.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
sTypeback to summary
public int sType()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#sType field.

Annotations
@NativeType:VkStructureType
sTypeback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer sType(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#sType field.

sType$Defaultback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer sType$Default()

Sets the STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR value to the VkVideoEncodeRateControlInfoKHR#sType field.

virtualBufferSizeInMsback to summary
public int virtualBufferSizeInMs()
Returns:int

the value of the VkVideoEncodeRateControlInfoKHR#virtualBufferSizeInMs field.

Annotations
@NativeType:uint32_t
virtualBufferSizeInMsback to summary
public VkVideoEncodeRateControlInfoKHR.Buffer virtualBufferSizeInMs(int value)

Sets the specified value to the VkVideoEncodeRateControlInfoKHR#virtualBufferSizeInMs field.