Package org.lwjgl.vulkan
Class VkVideoReferenceSlotKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoReferenceSlotKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoReferenceSlotKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the reference picture slot.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_REFERENCE_SLOT_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkVideoDecodeH264DpbSlotInfoEXTorVkVideoDecodeH265DpbSlotInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique pPictureResourcemust be a valid pointer to a validVkVideoPictureResourceKHRstructure
See Also
VkVideoBeginCodingInfoKHR,VkVideoDecodeInfoKHR,VkVideoEncodeInfoKHR,VkVideoPictureResourceKHRLayout
struct VkVideoReferenceSlotKHR { VkStructureTypesType(); void const *pNext(); int8_tslotIndex();VkVideoPictureResourceKHRconst *pPictureResource(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoReferenceSlotKHR.BufferAn array ofVkVideoReferenceSlotKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkVideoReferenceSlotKHR(java.nio.ByteBuffer container)Creates aVkVideoReferenceSlotKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoReferenceSlotKHRcalloc()Returns a newVkVideoReferenceSlotKHRinstance allocated withmemCalloc.static VkVideoReferenceSlotKHR.Buffercalloc(int capacity)Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withmemCalloc.static VkVideoReferenceSlotKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoReferenceSlotKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoReferenceSlotKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoReferenceSlotKHRcreate()Returns a newVkVideoReferenceSlotKHRinstance allocated withBufferUtils.static VkVideoReferenceSlotKHR.Buffercreate(int capacity)Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withBufferUtils.static VkVideoReferenceSlotKHRcreate(long address)Returns a newVkVideoReferenceSlotKHRinstance for the specified memory address.static VkVideoReferenceSlotKHR.Buffercreate(long address, int capacity)Create aVkVideoReferenceSlotKHR.Bufferinstance at the specified memory.static VkVideoReferenceSlotKHRcreateSafe(long address)static VkVideoReferenceSlotKHR.BuffercreateSafe(long address, int capacity)static VkVideoReferenceSlotKHRmalloc()Returns a newVkVideoReferenceSlotKHRinstance allocated withmemAlloc.static VkVideoReferenceSlotKHR.Buffermalloc(int capacity)Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withmemAlloc.static VkVideoReferenceSlotKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoReferenceSlotKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoReferenceSlotKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoPictureResourceKHRnpPictureResource(long struct)Unsafe version ofpPictureResource().static voidnpPictureResource(long struct, VkVideoPictureResourceKHR value)Unsafe version ofpPictureResource.static bytenslotIndex(long struct)Unsafe version ofslotIndex().static voidnslotIndex(long struct, byte value)Unsafe version ofslotIndex.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.VkVideoReferenceSlotKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoReferenceSlotKHRpNext(VkVideoDecodeH264DpbSlotInfoEXT value)Prepends the specifiedVkVideoDecodeH264DpbSlotInfoEXTvalue to thepNextchain.VkVideoReferenceSlotKHRpNext(VkVideoDecodeH265DpbSlotInfoEXT value)Prepends the specifiedVkVideoDecodeH265DpbSlotInfoEXTvalue to thepNextchain.VkVideoPictureResourceKHRpPictureResource()a pointer to aVkVideoPictureResourceKHRstructure describing the picture resource bound to this slot index.VkVideoReferenceSlotKHRpPictureResource(VkVideoPictureResourceKHR value)Sets the address of the specifiedVkVideoPictureResourceKHRto thepPictureResource()field.VkVideoReferenceSlotKHRset(int sType, long pNext, byte slotIndex, VkVideoPictureResourceKHR pPictureResource)Initializes this struct with the specified values.VkVideoReferenceSlotKHRset(VkVideoReferenceSlotKHR src)Copies the specified struct data to this struct.intsizeof()byteslotIndex()the unique reference slot index used for the encode or decode operation.VkVideoReferenceSlotKHRslotIndex(byte value)Sets the specified value to theslotIndex()field.intsType()the type of this structure.VkVideoReferenceSlotKHRsType(int value)Sets the specified value to thesType()field.VkVideoReferenceSlotKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_REFERENCE_SLOT_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkVideoReferenceSlotKHR
public VkVideoReferenceSlotKHR(java.nio.ByteBuffer container)
Creates aVkVideoReferenceSlotKHRinstance 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.
-
slotIndex
public byte slotIndex()
the unique reference slot index used for the encode or decode operation.
-
pPictureResource
public VkVideoPictureResourceKHR pPictureResource()
a pointer to aVkVideoPictureResourceKHRstructure describing the picture resource bound to this slot index.
-
sType
public VkVideoReferenceSlotKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoReferenceSlotKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_REFERENCE_SLOT_KHRvalue to thesType()field.
-
pNext
public VkVideoReferenceSlotKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoReferenceSlotKHR pNext(VkVideoDecodeH264DpbSlotInfoEXT value)
Prepends the specifiedVkVideoDecodeH264DpbSlotInfoEXTvalue to thepNextchain.
-
pNext
public VkVideoReferenceSlotKHR pNext(VkVideoDecodeH265DpbSlotInfoEXT value)
Prepends the specifiedVkVideoDecodeH265DpbSlotInfoEXTvalue to thepNextchain.
-
slotIndex
public VkVideoReferenceSlotKHR slotIndex(byte value)
Sets the specified value to theslotIndex()field.
-
pPictureResource
public VkVideoReferenceSlotKHR pPictureResource(VkVideoPictureResourceKHR value)
Sets the address of the specifiedVkVideoPictureResourceKHRto thepPictureResource()field.
-
set
public VkVideoReferenceSlotKHR set(int sType, long pNext, byte slotIndex, VkVideoPictureResourceKHR pPictureResource)
Initializes this struct with the specified values.
-
set
public VkVideoReferenceSlotKHR set(VkVideoReferenceSlotKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoReferenceSlotKHR malloc()
Returns a newVkVideoReferenceSlotKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoReferenceSlotKHR calloc()
Returns a newVkVideoReferenceSlotKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoReferenceSlotKHR create()
Returns a newVkVideoReferenceSlotKHRinstance allocated withBufferUtils.
-
create
public static VkVideoReferenceSlotKHR create(long address)
Returns a newVkVideoReferenceSlotKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoReferenceSlotKHR createSafe(long address)
-
malloc
public static VkVideoReferenceSlotKHR.Buffer malloc(int capacity)
Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoReferenceSlotKHR.Buffer calloc(int capacity)
Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoReferenceSlotKHR.Buffer create(int capacity)
Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoReferenceSlotKHR.Buffer create(long address, int capacity)
Create aVkVideoReferenceSlotKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoReferenceSlotKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoReferenceSlotKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoReferenceSlotKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoReferenceSlotKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoReferenceSlotKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoReferenceSlotKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoReferenceSlotKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoReferenceSlotKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoReferenceSlotKHR.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().
-
nslotIndex
public static byte nslotIndex(long struct)
Unsafe version ofslotIndex().
-
npPictureResource
public static VkVideoPictureResourceKHR npPictureResource(long struct)
Unsafe version ofpPictureResource().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nslotIndex
public static void nslotIndex(long struct, byte value)Unsafe version ofslotIndex.
-
npPictureResource
public static void npPictureResource(long struct, VkVideoPictureResourceKHR value)Unsafe version ofpPictureResource.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-