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.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 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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.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
ConstructorsConstructorDescriptionVkVideoSessionCreateInfoKHR
(ByteBuffer container) Creates aVkVideoSessionCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkVideoSessionCreateInfoKHR
calloc()
Returns a newVkVideoSessionCreateInfoKHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoSessionCreateInfoKHR
calloc
(MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkVideoSessionCreateInfoKHR
create()
Returns a newVkVideoSessionCreateInfoKHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkVideoSessionCreateInfoKHR
create
(long address) Returns a newVkVideoSessionCreateInfoKHR
instance for the specified memory address.create
(long address, int capacity) Create aVkVideoSessionCreateInfoKHR.Buffer
instance at the specified memory.static @Nullable VkVideoSessionCreateInfoKHR
createSafe
(long address) static @Nullable VkVideoSessionCreateInfoKHR.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.static VkVideoSessionCreateInfoKHR
malloc()
Returns a newVkVideoSessionCreateInfoKHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkVideoSessionCreateInfoKHR
malloc
(MemoryStack stack) Returns a newVkVideoSessionCreateInfoKHR
instance allocated on the specifiedMemoryStack
.int
maxActiveReferencePictures
(int value) Sets the specified value to themaxActiveReferencePictures
field.maxCodedExtent
(Consumer<VkExtent2D> consumer) Passes themaxCodedExtent
field to the specifiedConsumer
.maxCodedExtent
(VkExtent2D value) Copies the specifiedVkExtent2D
to themaxCodedExtent
field.int
maxDpbSlots
(int value) Sets the specified value to themaxDpbSlots
field.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nmaxActiveReferencePictures
(long struct) Unsafe version ofmaxActiveReferencePictures()
.static void
nmaxActiveReferencePictures
(long struct, int value) Unsafe version ofmaxActiveReferencePictures
.static VkExtent2D
nmaxCodedExtent
(long struct) Unsafe version ofmaxCodedExtent()
.static void
nmaxCodedExtent
(long struct, VkExtent2D value) Unsafe version ofmaxCodedExtent
.static int
nmaxDpbSlots
(long struct) Unsafe version ofmaxDpbSlots()
.static void
nmaxDpbSlots
(long struct, int value) Unsafe version ofmaxDpbSlots
.static int
npictureFormat
(long struct) Unsafe version ofpictureFormat()
.static void
npictureFormat
(long struct, int value) Unsafe version ofpictureFormat
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static VkExtensionProperties
npStdHeaderVersion
(long struct) Unsafe version ofpStdHeaderVersion()
.static void
npStdHeaderVersion
(long struct, VkExtensionProperties value) Unsafe version ofpStdHeaderVersion
.static VkVideoProfileInfoKHR
npVideoProfile
(long struct) Unsafe version ofpVideoProfile()
.static void
npVideoProfile
(long struct, VkVideoProfileInfoKHR value) Unsafe version ofpVideoProfile
.static int
nqueueFamilyIndex
(long struct) Unsafe version ofqueueFamilyIndex()
.static void
nqueueFamilyIndex
(long struct, int value) Unsafe version ofqueueFamilyIndex
.static int
nreferencePictureFormat
(long struct) Unsafe version ofreferencePictureFormat()
.static void
nreferencePictureFormat
(long struct, int value) Unsafe version ofreferencePictureFormat
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.int
pictureFormat
(int value) Sets the specified value to thepictureFormat
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkVideoEncodeAV1SessionCreateInfoKHR
value to thepNext
chain.Prepends the specifiedVkVideoEncodeH264SessionCreateInfoKHR
value to thepNext
chain.Prepends the specifiedVkVideoEncodeH265SessionCreateInfoKHR
value to thepNext
chain.Sets the address of the specifiedVkExtensionProperties
to thepStdHeaderVersion
field.Sets the address of the specifiedVkVideoProfileInfoKHR
to thepVideoProfile
field.int
queueFamilyIndex
(int value) Sets the specified value to thequeueFamilyIndex
field.int
referencePictureFormat
(int value) Sets the specified value to thereferencePictureFormat
field.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.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHR
value to thesType
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
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 aVkVideoSessionCreateInfoKHR
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<VkVideoSessionCreateInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
queueFamilyIndex
public int queueFamilyIndex()- Returns:
- the value of the
queueFamilyIndex
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
pVideoProfile
- Returns:
- a
VkVideoProfileInfoKHR
view of the struct pointed to by thepVideoProfile
field.
-
pictureFormat
public int pictureFormat()- Returns:
- the value of the
pictureFormat
field.
-
maxCodedExtent
- Returns:
- a
VkExtent2D
view of themaxCodedExtent
field.
-
referencePictureFormat
public int referencePictureFormat()- Returns:
- the value of the
referencePictureFormat
field.
-
maxDpbSlots
public int maxDpbSlots()- Returns:
- the value of the
maxDpbSlots
field.
-
maxActiveReferencePictures
public int maxActiveReferencePictures()- Returns:
- the value of the
maxActiveReferencePictures
field.
-
pStdHeaderVersion
- Returns:
- a
VkExtensionProperties
view of the struct pointed to by thepStdHeaderVersion
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHR
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkVideoEncodeAV1SessionCreateInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoEncodeH264SessionCreateInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkVideoEncodeH265SessionCreateInfoKHR
value to thepNext
chain. -
queueFamilyIndex
Sets the specified value to thequeueFamilyIndex
field. -
flags
Sets the specified value to theflags
field. -
pVideoProfile
Sets the address of the specifiedVkVideoProfileInfoKHR
to thepVideoProfile
field. -
pictureFormat
Sets the specified value to thepictureFormat
field. -
maxCodedExtent
Copies the specifiedVkExtent2D
to themaxCodedExtent
field. -
maxCodedExtent
Passes themaxCodedExtent
field to the specifiedConsumer
. -
referencePictureFormat
Sets the specified value to thereferencePictureFormat
field. -
maxDpbSlots
Sets the specified value to themaxDpbSlots
field. -
maxActiveReferencePictures
Sets the specified value to themaxActiveReferencePictures
field. -
pStdHeaderVersion
Sets the address of the specifiedVkExtensionProperties
to thepStdHeaderVersion
field. -
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 newVkVideoSessionCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkVideoSessionCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkVideoSessionCreateInfoKHR
instance allocated withBufferUtils
. -
create
Returns a newVkVideoSessionCreateInfoKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkVideoSessionCreateInfoKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkVideoSessionCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkVideoSessionCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkVideoSessionCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkVideoSessionCreateInfoKHR.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()
. -
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
-