Package org.lwjgl.vulkan
Class VkPhysicalDeviceVideoFormatInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceVideoFormatInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceVideoFormatInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the codec video format.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHRpNextmust beNULL
See Also
VkVideoProfilesKHR,GetPhysicalDeviceVideoFormatPropertiesKHRLayout
struct VkPhysicalDeviceVideoFormatInfoKHR { VkStructureTypesType(); void *pNext(); VkImageUsageFlagsimageUsage();VkVideoProfilesKHRconst *pVideoProfiles(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceVideoFormatInfoKHR.BufferAn array ofVkPhysicalDeviceVideoFormatInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intIMAGEUSAGE
PNEXT
PVIDEOPROFILESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceVideoFormatInfoKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceVideoFormatInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceVideoFormatInfoKHRcalloc()Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withmemCalloc.static VkPhysicalDeviceVideoFormatInfoKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceVideoFormatInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVideoFormatInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVideoFormatInfoKHRcreate()Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withBufferUtils.static VkPhysicalDeviceVideoFormatInfoKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceVideoFormatInfoKHRcreate(long address)Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance for the specified memory address.static VkPhysicalDeviceVideoFormatInfoKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceVideoFormatInfoKHRcreateSafe(long address)static VkPhysicalDeviceVideoFormatInfoKHR.BuffercreateSafe(long address, int capacity)intimageUsage()a bitmask ofVkImageUsageFlagBitsspecifying intended video image usages.static VkPhysicalDeviceVideoFormatInfoKHRmalloc()Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withmemAlloc.static VkPhysicalDeviceVideoFormatInfoKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceVideoFormatInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVideoFormatInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated on the specifiedMemoryStack.static intnimageUsage(long struct)Unsafe version ofimageUsage().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkVideoProfilesKHRnpVideoProfiles(long struct)Unsafe version ofpVideoProfiles().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.VkPhysicalDeviceVideoFormatInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoProfilesKHRpVideoProfiles()a pointer to aVkVideoProfilesKHRstructure providing the video profile(s) of video session(s) that will use the image.VkPhysicalDeviceVideoFormatInfoKHRset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceVideoFormatInfoKHRset(VkPhysicalDeviceVideoFormatInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceVideoFormatInfoKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceVideoFormatInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceVideoFormatInfoKHR
public VkPhysicalDeviceVideoFormatInfoKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceVideoFormatInfoKHRinstance 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.
-
imageUsage
public int imageUsage()
a bitmask ofVkImageUsageFlagBitsspecifying intended video image usages.
-
pVideoProfiles
public VkVideoProfilesKHR pVideoProfiles()
a pointer to aVkVideoProfilesKHRstructure providing the video profile(s) of video session(s) that will use the image. For most use cases, the image is used by a single video session and a single video profile is provided. For a use case such as transcode, where a decode session output image may be used as encode input for one or more encode sessions, multiple video profiles representing the video sessions that will share the image may be provided.
-
sType
public VkPhysicalDeviceVideoFormatInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceVideoFormatInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceVideoFormatInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceVideoFormatInfoKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceVideoFormatInfoKHR set(VkPhysicalDeviceVideoFormatInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceVideoFormatInfoKHR malloc()
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceVideoFormatInfoKHR calloc()
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceVideoFormatInfoKHR create()
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceVideoFormatInfoKHR create(long address)
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceVideoFormatInfoKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceVideoFormatInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceVideoFormatInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVideoFormatInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVideoFormatInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVideoFormatInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVideoFormatInfoKHR.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().
-
nimageUsage
public static int nimageUsage(long struct)
Unsafe version ofimageUsage().
-
npVideoProfiles
public static VkVideoProfilesKHR npVideoProfiles(long struct)
Unsafe version ofpVideoProfiles().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-