Package org.lwjgl.vulkan
Class VkVideoBeginCodingInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoBeginCodingInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoBeginCodingInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of decode starts.Valid Usage
VkVideoBeginCodingInfoKHR::referenceSlotCountmust not exceed the value specified inVkVideoSessionCreateInfoKHR::maxReferencePicturesSlotsCountwhen creating the video session object that is being provided invideoSession- If
videoSessionParametersis notNULL_HANDLE, it must have been created usingvideoSessionas a parent object
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_BEGIN_CODING_INFO_KHRpNextmust beNULLflagsmust be 0codecQualityPresetmust be a valid combination ofVkVideoCodingQualityPresetFlagBitsKHRvaluescodecQualityPresetmust not be 0videoSessionmust be a validVkVideoSessionKHRhandle- If
videoSessionParametersis notNULL_HANDLE,videoSessionParametersmust be a validVkVideoSessionParametersKHRhandle - If
referenceSlotCountis not 0,pReferenceSlotsmust be a valid pointer to an array ofreferenceSlotCountvalidVkVideoReferenceSlotKHRstructures - If
videoSessionParametersis a valid handle, it must have been created, allocated, or retrieved fromvideoSession - Both of
videoSession, andvideoSessionParametersthat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameVkDevice
See Also
VkVideoReferenceSlotKHR,CmdBeginVideoCodingKHRLayout
struct VkVideoBeginCodingInfoKHR { VkStructureTypesType(); void const *pNext(); VkVideoBeginCodingFlagsKHRflags(); VkVideoCodingQualityPresetFlagsKHRcodecQualityPreset(); VkVideoSessionKHRvideoSession(); VkVideoSessionParametersKHRvideoSessionParameters(); uint32_treferenceSlotCount();VkVideoReferenceSlotKHRconst *pReferenceSlots(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoBeginCodingInfoKHR.BufferAn array ofVkVideoBeginCodingInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCODECQUALITYPRESET
FLAGS
PNEXT
PREFERENCESLOTS
REFERENCESLOTCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIDEOSESSION
VIDEOSESSIONPARAMETERSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoBeginCodingInfoKHR(java.nio.ByteBuffer container)Creates aVkVideoBeginCodingInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoBeginCodingInfoKHRcalloc()Returns a newVkVideoBeginCodingInfoKHRinstance allocated withmemCalloc.static VkVideoBeginCodingInfoKHR.Buffercalloc(int capacity)Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withmemCalloc.static VkVideoBeginCodingInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoBeginCodingInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBeginCodingInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcodecQualityPreset()a bitmask ofVkVideoCodingQualityPresetFlagBitsKHRspecifying the Video Decode or Encode quality preset.VkVideoBeginCodingInfoKHRcodecQualityPreset(int value)Sets the specified value to thecodecQualityPreset()field.static VkVideoBeginCodingInfoKHRcreate()Returns a newVkVideoBeginCodingInfoKHRinstance allocated withBufferUtils.static VkVideoBeginCodingInfoKHR.Buffercreate(int capacity)Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withBufferUtils.static VkVideoBeginCodingInfoKHRcreate(long address)Returns a newVkVideoBeginCodingInfoKHRinstance for the specified memory address.static VkVideoBeginCodingInfoKHR.Buffercreate(long address, int capacity)Create aVkVideoBeginCodingInfoKHR.Bufferinstance at the specified memory.static VkVideoBeginCodingInfoKHRcreateSafe(long address)static VkVideoBeginCodingInfoKHR.BuffercreateSafe(long address, int capacity)intflags()reserved for future use.VkVideoBeginCodingInfoKHRflags(int value)Sets the specified value to theflags()field.static VkVideoBeginCodingInfoKHRmalloc()Returns a newVkVideoBeginCodingInfoKHRinstance allocated withmemAlloc.static VkVideoBeginCodingInfoKHR.Buffermalloc(int capacity)Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withmemAlloc.static VkVideoBeginCodingInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoBeginCodingInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoBeginCodingInfoKHRinstance allocated on the specifiedMemoryStack.static intncodecQualityPreset(long struct)Unsafe version ofcodecQualityPreset().static voidncodecQualityPreset(long struct, int value)Unsafe version ofcodecQualityPreset.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 VkVideoReferenceSlotKHR.BuffernpReferenceSlots(long struct)Unsafe version ofpReferenceSlots().static voidnpReferenceSlots(long struct, VkVideoReferenceSlotKHR.Buffer value)Unsafe version ofpReferenceSlots.static intnreferenceSlotCount(long struct)Unsafe version ofreferenceSlotCount().static voidnreferenceSlotCount(long struct, int value)Sets the specified value to thereferenceSlotCountfield of the specifiedstruct.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static longnvideoSession(long struct)Unsafe version ofvideoSession().static voidnvideoSession(long struct, long value)Unsafe version ofvideoSession.static longnvideoSessionParameters(long struct)Unsafe version ofvideoSessionParameters().static voidnvideoSessionParameters(long struct, long value)Unsafe version ofvideoSessionParameters.longpNext()NULLor a pointer to a structure extending this structure.VkVideoBeginCodingInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoReferenceSlotKHR.BufferpReferenceSlots()a pointer to an array ofVkVideoReferenceSlotKHRstructures specifying reference slots, used within the video command context between thisCmdBeginVideoCodingKHRcommand and theCmdEndVideoCodingKHRcommmand that follows.VkVideoBeginCodingInfoKHRpReferenceSlots(VkVideoReferenceSlotKHR.Buffer value)Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto thepReferenceSlots()field.intreferenceSlotCount()the number of reference slot entries provided inpReferenceSlots.VkVideoBeginCodingInfoKHRset(int sType, long pNext, int flags, int codecQualityPreset, long videoSession, long videoSessionParameters, VkVideoReferenceSlotKHR.Buffer pReferenceSlots)Initializes this struct with the specified values.VkVideoBeginCodingInfoKHRset(VkVideoBeginCodingInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoBeginCodingInfoKHRsType(int value)Sets the specified value to thesType()field.VkVideoBeginCodingInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_BEGIN_CODING_INFO_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.longvideoSession()the video session object to be bound for the processing of the video commands.VkVideoBeginCodingInfoKHRvideoSession(long value)Sets the specified value to thevideoSession()field.longvideoSessionParameters()NULL_HANDLEor a handle of aVkVideoSessionParametersKHRobject to be used for the processing of the video commands.VkVideoBeginCodingInfoKHRvideoSessionParameters(long value)Sets the specified value to thevideoSessionParameters()field.
-
-
-
Constructor Detail
-
VkVideoBeginCodingInfoKHR
public VkVideoBeginCodingInfoKHR(java.nio.ByteBuffer container)
Creates aVkVideoBeginCodingInfoKHRinstance 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()
reserved for future use.
-
codecQualityPreset
public int codecQualityPreset()
a bitmask ofVkVideoCodingQualityPresetFlagBitsKHRspecifying the Video Decode or Encode quality preset.
-
videoSession
public long videoSession()
the video session object to be bound for the processing of the video commands.
-
videoSessionParameters
public long videoSessionParameters()
NULL_HANDLEor a handle of aVkVideoSessionParametersKHRobject to be used for the processing of the video commands. IfNULL_HANDLE, then no video session parameters apply to this command buffer context.
-
referenceSlotCount
public int referenceSlotCount()
the number of reference slot entries provided inpReferenceSlots.
-
pReferenceSlots
@Nullable public VkVideoReferenceSlotKHR.Buffer pReferenceSlots()
a pointer to an array ofVkVideoReferenceSlotKHRstructures specifying reference slots, used within the video command context between thisCmdBeginVideoCodingKHRcommand and theCmdEndVideoCodingKHRcommmand that follows. Each reference slot provides a slot index and theVkVideoPictureResourceKHRspecifying the reference picture resource bound to this slot index. A slot index must not appear more than once inpReferenceSlotsin a given command.
-
sType
public VkVideoBeginCodingInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoBeginCodingInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_BEGIN_CODING_INFO_KHRvalue to thesType()field.
-
pNext
public VkVideoBeginCodingInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkVideoBeginCodingInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
codecQualityPreset
public VkVideoBeginCodingInfoKHR codecQualityPreset(int value)
Sets the specified value to thecodecQualityPreset()field.
-
videoSession
public VkVideoBeginCodingInfoKHR videoSession(long value)
Sets the specified value to thevideoSession()field.
-
videoSessionParameters
public VkVideoBeginCodingInfoKHR videoSessionParameters(long value)
Sets the specified value to thevideoSessionParameters()field.
-
pReferenceSlots
public VkVideoBeginCodingInfoKHR pReferenceSlots(@Nullable VkVideoReferenceSlotKHR.Buffer value)
Sets the address of the specifiedVkVideoReferenceSlotKHR.Bufferto thepReferenceSlots()field.
-
set
public VkVideoBeginCodingInfoKHR set(int sType, long pNext, int flags, int codecQualityPreset, long videoSession, long videoSessionParameters, @Nullable VkVideoReferenceSlotKHR.Buffer pReferenceSlots)
Initializes this struct with the specified values.
-
set
public VkVideoBeginCodingInfoKHR set(VkVideoBeginCodingInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoBeginCodingInfoKHR malloc()
Returns a newVkVideoBeginCodingInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoBeginCodingInfoKHR calloc()
Returns a newVkVideoBeginCodingInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoBeginCodingInfoKHR create()
Returns a newVkVideoBeginCodingInfoKHRinstance allocated withBufferUtils.
-
create
public static VkVideoBeginCodingInfoKHR create(long address)
Returns a newVkVideoBeginCodingInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoBeginCodingInfoKHR createSafe(long address)
-
malloc
public static VkVideoBeginCodingInfoKHR.Buffer malloc(int capacity)
Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoBeginCodingInfoKHR.Buffer calloc(int capacity)
Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoBeginCodingInfoKHR.Buffer create(int capacity)
Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoBeginCodingInfoKHR.Buffer create(long address, int capacity)
Create aVkVideoBeginCodingInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoBeginCodingInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoBeginCodingInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBeginCodingInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoBeginCodingInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBeginCodingInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoBeginCodingInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBeginCodingInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoBeginCodingInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoBeginCodingInfoKHR.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().
-
ncodecQualityPreset
public static int ncodecQualityPreset(long struct)
Unsafe version ofcodecQualityPreset().
-
nvideoSession
public static long nvideoSession(long struct)
Unsafe version ofvideoSession().
-
nvideoSessionParameters
public static long nvideoSessionParameters(long struct)
Unsafe version ofvideoSessionParameters().
-
nreferenceSlotCount
public static int nreferenceSlotCount(long struct)
Unsafe version ofreferenceSlotCount().
-
npReferenceSlots
@Nullable public static VkVideoReferenceSlotKHR.Buffer npReferenceSlots(long struct)
Unsafe version ofpReferenceSlots().
-
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.
-
ncodecQualityPreset
public static void ncodecQualityPreset(long struct, int value)Unsafe version ofcodecQualityPreset.
-
nvideoSession
public static void nvideoSession(long struct, long value)Unsafe version ofvideoSession.
-
nvideoSessionParameters
public static void nvideoSessionParameters(long struct, long value)Unsafe version ofvideoSessionParameters.
-
nreferenceSlotCount
public static void nreferenceSlotCount(long struct, int value)Sets the specified value to thereferenceSlotCountfield of the specifiedstruct.
-
npReferenceSlots
public static void npReferenceSlots(long struct, @Nullable VkVideoReferenceSlotKHR.Buffer value)Unsafe version ofpReferenceSlots.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-