Package org.lwjgl.vulkan
Class VkVideoSessionCreateInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkVideoSessionCreateInfoKHR
extends Struct<VkVideoSessionCreateInfoKHR>
implements NativeResource
struct VkVideoSessionCreateInfoKHR {
VkStructureType sType;
void const * pNext;
uint32_t queueFamilyIndex;
VkVideoSessionCreateFlagsKHR flags;
{@link VkVideoProfileInfoKHR VkVideoProfileInfoKHR} const * pVideoProfile;
VkFormat pictureFormat;
{@link VkExtent2D VkExtent2D} maxCodedExtent;
VkFormat referencePictureFormat;
uint32_t maxDpbSlots;
uint32_t maxActiveReferencePictures;
{@link VkExtensionProperties VkExtensionProperties} const * pStdHeaderVersion;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkVideoSessionCreateInfoKHR(ByteBuffer container) Creates aVkVideoSessionCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkVideoSessionCreateInfoKHRcalloc()Returns a newVkVideoSessionCreateInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoSessionCreateInfoKHRcalloc(MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoSessionCreateInfoKHRcreate()Returns a newVkVideoSessionCreateInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkVideoSessionCreateInfoKHRcreate(long address) Returns a newVkVideoSessionCreateInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkVideoSessionCreateInfoKHR.Bufferinstance at the specified memory.static @Nullable VkVideoSessionCreateInfoKHRcreateSafe(long address) static @Nullable VkVideoSessionCreateInfoKHR.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static VkVideoSessionCreateInfoKHRmalloc()Returns a newVkVideoSessionCreateInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoSessionCreateInfoKHRmalloc(MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHRinstance allocated on the specifiedMemoryStack.intmaxActiveReferencePictures(int value) Sets the specified value to themaxActiveReferencePicturesfield.maxCodedExtent(Consumer<VkExtent2D> consumer) Passes themaxCodedExtentfield to the specifiedConsumer.maxCodedExtent(VkExtent2D value) Copies the specifiedVkExtent2Dto themaxCodedExtentfield.intmaxDpbSlots(int value) Sets the specified value to themaxDpbSlotsfield.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmaxActiveReferencePictures(long struct) Unsafe version ofmaxActiveReferencePictures().static voidnmaxActiveReferencePictures(long struct, int value) Unsafe version ofmaxActiveReferencePictures.static VkExtent2DnmaxCodedExtent(long struct) Unsafe version ofmaxCodedExtent().static voidnmaxCodedExtent(long struct, VkExtent2D value) Unsafe version ofmaxCodedExtent.static intnmaxDpbSlots(long struct) Unsafe version ofmaxDpbSlots().static voidnmaxDpbSlots(long struct, int value) Unsafe version ofmaxDpbSlots.static intnpictureFormat(long struct) Unsafe version ofpictureFormat().static voidnpictureFormat(long struct, int value) Unsafe version ofpictureFormat.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static VkExtensionPropertiesnpStdHeaderVersion(long struct) Unsafe version ofpStdHeaderVersion().static voidnpStdHeaderVersion(long struct, VkExtensionProperties value) Unsafe version ofpStdHeaderVersion.static VkVideoProfileInfoKHRnpVideoProfile(long struct) Unsafe version ofpVideoProfile().static voidnpVideoProfile(long struct, VkVideoProfileInfoKHR value) Unsafe version ofpVideoProfile.static intnqueueFamilyIndex(long struct) Unsafe version ofqueueFamilyIndex().static voidnqueueFamilyIndex(long struct, int value) Unsafe version ofqueueFamilyIndex.static intnreferencePictureFormat(long struct) Unsafe version ofreferencePictureFormat().static voidnreferencePictureFormat(long struct, int value) Unsafe version ofreferencePictureFormat.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.intpictureFormat(int value) Sets the specified value to thepictureFormatfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkVideoEncodeAV1SessionCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeH264SessionCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkVideoEncodeH265SessionCreateInfoKHRvalue to thepNextchain.Sets the address of the specifiedVkExtensionPropertiesto thepStdHeaderVersionfield.Sets the address of the specifiedVkVideoProfileInfoKHRto thepVideoProfilefield.intqueueFamilyIndex(int value) Sets the specified value to thequeueFamilyIndexfield.intreferencePictureFormat(int value) Sets the specified value to thereferencePictureFormatfield.set(int sType, long pNext, int queueFamilyIndex, int flags, VkVideoProfileInfoKHR pVideoProfile, int pictureFormat, VkExtent2D maxCodedExtent, int referencePictureFormat, int maxDpbSlots, int maxActiveReferencePictures, VkExtensionProperties pStdHeaderVersion) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHRvalue to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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. -
QUEUEFAMILYINDEX
public static final int QUEUEFAMILYINDEXThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
PVIDEOPROFILE
public static final int PVIDEOPROFILEThe struct member offsets. -
PICTUREFORMAT
public static final int PICTUREFORMATThe struct member offsets. -
MAXCODEDEXTENT
public static final int MAXCODEDEXTENTThe struct member offsets. -
REFERENCEPICTUREFORMAT
public static final int REFERENCEPICTUREFORMATThe struct member offsets. -
MAXDPBSLOTS
public static final int MAXDPBSLOTSThe struct member offsets. -
MAXACTIVEREFERENCEPICTURES
public static final int MAXACTIVEREFERENCEPICTURESThe struct member offsets. -
PSTDHEADERVERSION
public static final int PSTDHEADERVERSIONThe struct member offsets.
-
-
Constructor Details
-
VkVideoSessionCreateInfoKHR
Creates aVkVideoSessionCreateInfoKHRinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkVideoSessionCreateInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
queueFamilyIndex
public int queueFamilyIndex()- Returns:
- the value of the
queueFamilyIndexfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
pVideoProfile
- Returns:
- a
VkVideoProfileInfoKHRview of the struct pointed to by thepVideoProfilefield.
-
pictureFormat
public int pictureFormat()- Returns:
- the value of the
pictureFormatfield.
-
maxCodedExtent
- Returns:
- a
VkExtent2Dview of themaxCodedExtentfield.
-
referencePictureFormat
public int referencePictureFormat()- Returns:
- the value of the
referencePictureFormatfield.
-
maxDpbSlots
public int maxDpbSlots()- Returns:
- the value of the
maxDpbSlotsfield.
-
maxActiveReferencePictures
public int maxActiveReferencePictures()- Returns:
- the value of the
maxActiveReferencePicturesfield.
-
pStdHeaderVersion
- Returns:
- a
VkExtensionPropertiesview of the struct pointed to by thepStdHeaderVersionfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHRvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkVideoEncodeAV1SessionCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkVideoEncodeH264SessionCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkVideoEncodeH265SessionCreateInfoKHRvalue to thepNextchain. -
queueFamilyIndex
Sets the specified value to thequeueFamilyIndexfield. -
flags
Sets the specified value to theflagsfield. -
pVideoProfile
Sets the address of the specifiedVkVideoProfileInfoKHRto thepVideoProfilefield. -
pictureFormat
Sets the specified value to thepictureFormatfield. -
maxCodedExtent
Copies the specifiedVkExtent2Dto themaxCodedExtentfield. -
maxCodedExtent
Passes themaxCodedExtentfield to the specifiedConsumer. -
referencePictureFormat
Sets the specified value to thereferencePictureFormatfield. -
maxDpbSlots
Sets the specified value to themaxDpbSlotsfield. -
maxActiveReferencePictures
Sets the specified value to themaxActiveReferencePicturesfield. -
pStdHeaderVersion
Sets the address of the specifiedVkExtensionPropertiesto thepStdHeaderVersionfield. -
set
public VkVideoSessionCreateInfoKHR set(int sType, long pNext, int queueFamilyIndex, int flags, VkVideoProfileInfoKHR pVideoProfile, int pictureFormat, VkExtent2D maxCodedExtent, int referencePictureFormat, int maxDpbSlots, int maxActiveReferencePictures, VkExtensionProperties pStdHeaderVersion) 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 newVkVideoSessionCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkVideoSessionCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkVideoSessionCreateInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkVideoSessionCreateInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkVideoSessionCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkVideoSessionCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkVideoSessionCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkVideoSessionCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand 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(). -
nqueueFamilyIndex
public static int nqueueFamilyIndex(long struct) Unsafe version ofqueueFamilyIndex(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
npVideoProfile
Unsafe version ofpVideoProfile(). -
npictureFormat
public static int npictureFormat(long struct) Unsafe version ofpictureFormat(). -
nmaxCodedExtent
Unsafe version ofmaxCodedExtent(). -
nreferencePictureFormat
public static int nreferencePictureFormat(long struct) Unsafe version ofreferencePictureFormat(). -
nmaxDpbSlots
public static int nmaxDpbSlots(long struct) Unsafe version ofmaxDpbSlots(). -
nmaxActiveReferencePictures
public static int nmaxActiveReferencePictures(long struct) Unsafe version ofmaxActiveReferencePictures(). -
npStdHeaderVersion
Unsafe version ofpStdHeaderVersion(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nqueueFamilyIndex
public static void nqueueFamilyIndex(long struct, int value) Unsafe version ofqueueFamilyIndex. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
npVideoProfile
Unsafe version ofpVideoProfile. -
npictureFormat
public static void npictureFormat(long struct, int value) Unsafe version ofpictureFormat. -
nmaxCodedExtent
Unsafe version ofmaxCodedExtent. -
nreferencePictureFormat
public static void nreferencePictureFormat(long struct, int value) Unsafe version ofreferencePictureFormat. -
nmaxDpbSlots
public static void nmaxDpbSlots(long struct, int value) Unsafe version ofmaxDpbSlots. -
nmaxActiveReferencePictures
public static void nmaxActiveReferencePictures(long struct, int value) Unsafe version ofmaxActiveReferencePictures. -
npStdHeaderVersion
Unsafe version ofpStdHeaderVersion. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-