Package org.lwjgl.vulkan
Class VkVideoCodingControlInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoCodingControlInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoCodingControlInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of coding control.Valid Usage
- The first command buffer submitted for a newly created video session must set the
VIDEO_CODING_CONTROL_RESET_BIT_KHRbit inVkVideoCodingControlInfoKHR::flagsto reset the session device context before any video decode or encode operations are performed on the session.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_CODING_CONTROL_INFO_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkVideoEncodeRateControlInfoKHRorVkVideoEncodeRateControlLayerInfoKHR - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkVideoCodingControlFlagBitsKHRvalues
See Also
Layout
struct VkVideoCodingControlInfoKHR { VkStructureTypesType(); void const *pNext(); VkVideoCodingControlFlagsKHRflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoCodingControlInfoKHR.BufferAn array ofVkVideoCodingControlInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkVideoCodingControlInfoKHR(java.nio.ByteBuffer container)Creates aVkVideoCodingControlInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoCodingControlInfoKHRcalloc()Returns a newVkVideoCodingControlInfoKHRinstance allocated withmemCalloc.static VkVideoCodingControlInfoKHR.Buffercalloc(int capacity)Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withmemCalloc.static VkVideoCodingControlInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoCodingControlInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCodingControlInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoCodingControlInfoKHRcreate()Returns a newVkVideoCodingControlInfoKHRinstance allocated withBufferUtils.static VkVideoCodingControlInfoKHR.Buffercreate(int capacity)Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withBufferUtils.static VkVideoCodingControlInfoKHRcreate(long address)Returns a newVkVideoCodingControlInfoKHRinstance for the specified memory address.static VkVideoCodingControlInfoKHR.Buffercreate(long address, int capacity)Create aVkVideoCodingControlInfoKHR.Bufferinstance at the specified memory.static VkVideoCodingControlInfoKHRcreateSafe(long address)static VkVideoCodingControlInfoKHR.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkVideoCodingControlFlagsKHRspecifying control flags.VkVideoCodingControlInfoKHRflags(int value)Sets the specified value to theflags()field.static VkVideoCodingControlInfoKHRmalloc()Returns a newVkVideoCodingControlInfoKHRinstance allocated withmemAlloc.static VkVideoCodingControlInfoKHR.Buffermalloc(int capacity)Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withmemAlloc.static VkVideoCodingControlInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoCodingControlInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCodingControlInfoKHRinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkVideoCodingControlInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoCodingControlInfoKHRpNext(VkVideoEncodeRateControlInfoKHR value)Prepends the specifiedVkVideoEncodeRateControlInfoKHRvalue to thepNextchain.VkVideoCodingControlInfoKHRpNext(VkVideoEncodeRateControlLayerInfoKHR value)Prepends the specifiedVkVideoEncodeRateControlLayerInfoKHRvalue to thepNextchain.VkVideoCodingControlInfoKHRset(int sType, long pNext, int flags)Initializes this struct with the specified values.VkVideoCodingControlInfoKHRset(VkVideoCodingControlInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoCodingControlInfoKHRsType(int value)Sets the specified value to thesType()field.VkVideoCodingControlInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_CODING_CONTROL_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkVideoCodingControlInfoKHR
public VkVideoCodingControlInfoKHR(java.nio.ByteBuffer container)
Creates aVkVideoCodingControlInfoKHRinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkVideoCodingControlFlagsKHRspecifying control flags.
-
sType
public VkVideoCodingControlInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoCodingControlInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_CODING_CONTROL_INFO_KHRvalue to thesType()field.
-
pNext
public VkVideoCodingControlInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoCodingControlInfoKHR pNext(VkVideoEncodeRateControlInfoKHR value)
Prepends the specifiedVkVideoEncodeRateControlInfoKHRvalue to thepNextchain.
-
pNext
public VkVideoCodingControlInfoKHR pNext(VkVideoEncodeRateControlLayerInfoKHR value)
Prepends the specifiedVkVideoEncodeRateControlLayerInfoKHRvalue to thepNextchain.
-
flags
public VkVideoCodingControlInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
set
public VkVideoCodingControlInfoKHR set(int sType, long pNext, int flags)
Initializes this struct with the specified values.
-
set
public VkVideoCodingControlInfoKHR set(VkVideoCodingControlInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoCodingControlInfoKHR malloc()
Returns a newVkVideoCodingControlInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoCodingControlInfoKHR calloc()
Returns a newVkVideoCodingControlInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoCodingControlInfoKHR create()
Returns a newVkVideoCodingControlInfoKHRinstance allocated withBufferUtils.
-
create
public static VkVideoCodingControlInfoKHR create(long address)
Returns a newVkVideoCodingControlInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoCodingControlInfoKHR createSafe(long address)
-
malloc
public static VkVideoCodingControlInfoKHR.Buffer malloc(int capacity)
Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoCodingControlInfoKHR.Buffer calloc(int capacity)
Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoCodingControlInfoKHR.Buffer create(int capacity)
Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoCodingControlInfoKHR.Buffer create(long address, int capacity)
Create aVkVideoCodingControlInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoCodingControlInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoCodingControlInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCodingControlInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoCodingControlInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCodingControlInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoCodingControlInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoCodingControlInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCodingControlInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
-