Package org.lwjgl.vulkan
Class VkVideoCapabilitiesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoCapabilitiesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoCapabilitiesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of video capabilities.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_CAPABILITIES_KHR- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkVideoDecodeH264CapabilitiesEXT,VkVideoDecodeH265CapabilitiesEXT, orVkVideoEncodeCapabilitiesKHR - The
sTypevalue of each struct in thepNextchain must be unique
See Also
VkExtent2D,GetPhysicalDeviceVideoCapabilitiesKHRLayout
struct VkVideoCapabilitiesKHR { VkStructureTypesType(); void *pNext(); VkVideoCapabilityFlagsKHRcapabilityFlags(); VkDeviceSizeminBitstreamBufferOffsetAlignment(); VkDeviceSizeminBitstreamBufferSizeAlignment();VkExtent2DvideoPictureExtentGranularity();VkExtent2DminExtent();VkExtent2DmaxExtent(); uint32_tmaxReferencePicturesSlotsCount(); uint32_tmaxReferencePicturesActiveCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoCapabilitiesKHR.BufferAn array ofVkVideoCapabilitiesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCAPABILITYFLAGS
MAXEXTENT
MAXREFERENCEPICTURESACTIVECOUNT
MAXREFERENCEPICTURESSLOTSCOUNT
MINBITSTREAMBUFFEROFFSETALIGNMENT
MINBITSTREAMBUFFERSIZEALIGNMENT
MINEXTENT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIDEOPICTUREEXTENTGRANULARITYThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoCapabilitiesKHR(java.nio.ByteBuffer container)Creates aVkVideoCapabilitiesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoCapabilitiesKHRcalloc()Returns a newVkVideoCapabilitiesKHRinstance allocated withmemCalloc.static VkVideoCapabilitiesKHR.Buffercalloc(int capacity)Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withmemCalloc.static VkVideoCapabilitiesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoCapabilitiesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCapabilitiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcapabilityFlags()a bitmask ofVkVideoCapabilityFlagBitsKHRspecifying capability flags.static VkVideoCapabilitiesKHRcreate()Returns a newVkVideoCapabilitiesKHRinstance allocated withBufferUtils.static VkVideoCapabilitiesKHR.Buffercreate(int capacity)Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withBufferUtils.static VkVideoCapabilitiesKHRcreate(long address)Returns a newVkVideoCapabilitiesKHRinstance for the specified memory address.static VkVideoCapabilitiesKHR.Buffercreate(long address, int capacity)Create aVkVideoCapabilitiesKHR.Bufferinstance at the specified memory.static VkVideoCapabilitiesKHRcreateSafe(long address)static VkVideoCapabilitiesKHR.BuffercreateSafe(long address, int capacity)static VkVideoCapabilitiesKHRmalloc()Returns a newVkVideoCapabilitiesKHRinstance allocated withmemAlloc.static VkVideoCapabilitiesKHR.Buffermalloc(int capacity)Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withmemAlloc.static VkVideoCapabilitiesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoCapabilitiesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoCapabilitiesKHRinstance allocated on the specifiedMemoryStack.VkExtent2DmaxExtent()the maximum width and height of the decoded or encoded video.intmaxReferencePicturesActiveCount()the maximum slots that can be used as Reference Pictures with a single decode or encode operation.intmaxReferencePicturesSlotsCount()the maximum number of DPB Slots supported by the implementation for a single video session instance.longminBitstreamBufferOffsetAlignment()the minimum alignment for the input or output bitstream buffer offset.longminBitstreamBufferSizeAlignment()the minimum alignment for the input or output bitstream buffer sizeVkExtent2DminExtent()the minimum width and height of the decoded or encoded video.static intncapabilityFlags(long struct)Unsafe version ofcapabilityFlags().static VkExtent2DnmaxExtent(long struct)Unsafe version ofmaxExtent().static intnmaxReferencePicturesActiveCount(long struct)Unsafe version ofmaxReferencePicturesActiveCount().static intnmaxReferencePicturesSlotsCount(long struct)Unsafe version ofmaxReferencePicturesSlotsCount().static longnminBitstreamBufferOffsetAlignment(long struct)Unsafe version ofminBitstreamBufferOffsetAlignment().static longnminBitstreamBufferSizeAlignment(long struct)Unsafe version ofminBitstreamBufferSizeAlignment().static VkExtent2DnminExtent(long struct)Unsafe version ofminExtent().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.static VkExtent2DnvideoPictureExtentGranularity(long struct)Unsafe version ofvideoPictureExtentGranularity().longpNext()NULLor a pointer to a structure extending this structure.VkVideoCapabilitiesKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoCapabilitiesKHRpNext(VkVideoDecodeH264CapabilitiesEXT value)Prepends the specifiedVkVideoDecodeH264CapabilitiesEXTvalue to thepNextchain.VkVideoCapabilitiesKHRpNext(VkVideoDecodeH265CapabilitiesEXT value)Prepends the specifiedVkVideoDecodeH265CapabilitiesEXTvalue to thepNextchain.VkVideoCapabilitiesKHRpNext(VkVideoEncodeCapabilitiesKHR value)Prepends the specifiedVkVideoEncodeCapabilitiesKHRvalue to thepNextchain.VkVideoCapabilitiesKHRset(int sType, long pNext)Initializes this struct with the specified values.VkVideoCapabilitiesKHRset(VkVideoCapabilitiesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoCapabilitiesKHRsType(int value)Sets the specified value to thesType()field.VkVideoCapabilitiesKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_CAPABILITIES_KHRvalue to thesType()field.VkExtent2DvideoPictureExtentGranularity()the minimum size alignment of the extent with the required padding for the decoded or encoded video images.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, CAPABILITYFLAGS, MINBITSTREAMBUFFEROFFSETALIGNMENT, MINBITSTREAMBUFFERSIZEALIGNMENT, VIDEOPICTUREEXTENTGRANULARITY, MINEXTENT, MAXEXTENT, MAXREFERENCEPICTURESSLOTSCOUNT, MAXREFERENCEPICTURESACTIVECOUNT
The struct member offsets.
-
-
Constructor Detail
-
VkVideoCapabilitiesKHR
public VkVideoCapabilitiesKHR(java.nio.ByteBuffer container)
Creates aVkVideoCapabilitiesKHRinstance 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.
-
capabilityFlags
public int capabilityFlags()
a bitmask ofVkVideoCapabilityFlagBitsKHRspecifying capability flags.
-
minBitstreamBufferOffsetAlignment
public long minBitstreamBufferOffsetAlignment()
the minimum alignment for the input or output bitstream buffer offset.
-
minBitstreamBufferSizeAlignment
public long minBitstreamBufferSizeAlignment()
the minimum alignment for the input or output bitstream buffer size
-
videoPictureExtentGranularity
public VkExtent2D videoPictureExtentGranularity()
the minimum size alignment of the extent with the required padding for the decoded or encoded video images.
-
minExtent
public VkExtent2D minExtent()
the minimum width and height of the decoded or encoded video.
-
maxExtent
public VkExtent2D maxExtent()
the maximum width and height of the decoded or encoded video.
-
maxReferencePicturesSlotsCount
public int maxReferencePicturesSlotsCount()
the maximum number of DPB Slots supported by the implementation for a single video session instance.
-
maxReferencePicturesActiveCount
public int maxReferencePicturesActiveCount()
the maximum slots that can be used as Reference Pictures with a single decode or encode operation.
-
sType
public VkVideoCapabilitiesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoCapabilitiesKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_CAPABILITIES_KHRvalue to thesType()field.
-
pNext
public VkVideoCapabilitiesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoCapabilitiesKHR pNext(VkVideoDecodeH264CapabilitiesEXT value)
Prepends the specifiedVkVideoDecodeH264CapabilitiesEXTvalue to thepNextchain.
-
pNext
public VkVideoCapabilitiesKHR pNext(VkVideoDecodeH265CapabilitiesEXT value)
Prepends the specifiedVkVideoDecodeH265CapabilitiesEXTvalue to thepNextchain.
-
pNext
public VkVideoCapabilitiesKHR pNext(VkVideoEncodeCapabilitiesKHR value)
Prepends the specifiedVkVideoEncodeCapabilitiesKHRvalue to thepNextchain.
-
set
public VkVideoCapabilitiesKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkVideoCapabilitiesKHR set(VkVideoCapabilitiesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoCapabilitiesKHR malloc()
Returns a newVkVideoCapabilitiesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoCapabilitiesKHR calloc()
Returns a newVkVideoCapabilitiesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoCapabilitiesKHR create()
Returns a newVkVideoCapabilitiesKHRinstance allocated withBufferUtils.
-
create
public static VkVideoCapabilitiesKHR create(long address)
Returns a newVkVideoCapabilitiesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoCapabilitiesKHR createSafe(long address)
-
malloc
public static VkVideoCapabilitiesKHR.Buffer malloc(int capacity)
Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoCapabilitiesKHR.Buffer calloc(int capacity)
Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoCapabilitiesKHR.Buffer create(int capacity)
Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoCapabilitiesKHR.Buffer create(long address, int capacity)
Create aVkVideoCapabilitiesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoCapabilitiesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoCapabilitiesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCapabilitiesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoCapabilitiesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCapabilitiesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoCapabilitiesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCapabilitiesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoCapabilitiesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoCapabilitiesKHR.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().
-
ncapabilityFlags
public static int ncapabilityFlags(long struct)
Unsafe version ofcapabilityFlags().
-
nminBitstreamBufferOffsetAlignment
public static long nminBitstreamBufferOffsetAlignment(long struct)
Unsafe version ofminBitstreamBufferOffsetAlignment().
-
nminBitstreamBufferSizeAlignment
public static long nminBitstreamBufferSizeAlignment(long struct)
Unsafe version ofminBitstreamBufferSizeAlignment().
-
nvideoPictureExtentGranularity
public static VkExtent2D nvideoPictureExtentGranularity(long struct)
Unsafe version ofvideoPictureExtentGranularity().
-
nminExtent
public static VkExtent2D nminExtent(long struct)
Unsafe version ofminExtent().
-
nmaxExtent
public static VkExtent2D nmaxExtent(long struct)
Unsafe version ofmaxExtent().
-
nmaxReferencePicturesSlotsCount
public static int nmaxReferencePicturesSlotsCount(long struct)
Unsafe version ofmaxReferencePicturesSlotsCount().
-
nmaxReferencePicturesActiveCount
public static int nmaxReferencePicturesActiveCount(long struct)
Unsafe version ofmaxReferencePicturesActiveCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-