Package org.lwjgl.vulkan
Class VkVideoProfileKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkVideoProfileKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkVideoProfileKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the codec video profile.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VIDEO_PROFILE_KHRvideoCodecOperationmust be a validVkVideoCodecOperationFlagBitsKHRvaluechromaSubsamplingmust be a valid combination ofVkVideoChromaSubsamplingFlagBitsKHRvalueschromaSubsamplingmust not be 0lumaBitDepthmust be a valid combination ofVkVideoComponentBitDepthFlagBitsKHRvalueslumaBitDepthmust not be 0chromaBitDepthmust be a valid combination ofVkVideoComponentBitDepthFlagBitsKHRvalueschromaBitDepthmust not be 0
See Also
VkVideoProfilesKHR,VkVideoSessionCreateInfoKHR,GetPhysicalDeviceVideoCapabilitiesKHRLayout
struct VkVideoProfileKHR { VkStructureTypesType(); void *pNext(); VkVideoCodecOperationFlagBitsKHRvideoCodecOperation(); VkVideoChromaSubsamplingFlagsKHRchromaSubsampling(); VkVideoComponentBitDepthFlagsKHRlumaBitDepth(); VkVideoComponentBitDepthFlagsKHRchromaBitDepth(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkVideoProfileKHR.BufferAn array ofVkVideoProfileKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCHROMABITDEPTH
CHROMASUBSAMPLING
LUMABITDEPTH
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIDEOCODECOPERATIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkVideoProfileKHR(java.nio.ByteBuffer container)Creates aVkVideoProfileKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkVideoProfileKHRcalloc()Returns a newVkVideoProfileKHRinstance allocated withmemCalloc.static VkVideoProfileKHR.Buffercalloc(int capacity)Returns a newVkVideoProfileKHR.Bufferinstance allocated withmemCalloc.static VkVideoProfileKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfileKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkVideoProfileKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfileKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchromaBitDepth()a bitmask ofVkVideoComponentBitDepthFlagBitsKHRspecifying video chroma bit depth information.VkVideoProfileKHRchromaBitDepth(int value)Sets the specified value to thechromaBitDepth()field.intchromaSubsampling()a bitmask ofVkVideoChromaSubsamplingFlagBitsKHRspecifying video chroma subsampling information.VkVideoProfileKHRchromaSubsampling(int value)Sets the specified value to thechromaSubsampling()field.static VkVideoProfileKHRcreate()Returns a newVkVideoProfileKHRinstance allocated withBufferUtils.static VkVideoProfileKHR.Buffercreate(int capacity)Returns a newVkVideoProfileKHR.Bufferinstance allocated withBufferUtils.static VkVideoProfileKHRcreate(long address)Returns a newVkVideoProfileKHRinstance for the specified memory address.static VkVideoProfileKHR.Buffercreate(long address, int capacity)Create aVkVideoProfileKHR.Bufferinstance at the specified memory.static VkVideoProfileKHRcreateSafe(long address)static VkVideoProfileKHR.BuffercreateSafe(long address, int capacity)intlumaBitDepth()a bitmask ofVkVideoComponentBitDepthFlagBitsKHRspecifying video luma bit depth information.VkVideoProfileKHRlumaBitDepth(int value)Sets the specified value to thelumaBitDepth()field.static VkVideoProfileKHRmalloc()Returns a newVkVideoProfileKHRinstance allocated withmemAlloc.static VkVideoProfileKHR.Buffermalloc(int capacity)Returns a newVkVideoProfileKHR.Bufferinstance allocated withmemAlloc.static VkVideoProfileKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfileKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkVideoProfileKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkVideoProfileKHRinstance allocated on the specifiedMemoryStack.static intnchromaBitDepth(long struct)Unsafe version ofchromaBitDepth().static voidnchromaBitDepth(long struct, int value)Unsafe version ofchromaBitDepth.static intnchromaSubsampling(long struct)Unsafe version ofchromaSubsampling().static voidnchromaSubsampling(long struct, int value)Unsafe version ofchromaSubsampling.static intnlumaBitDepth(long struct)Unsafe version oflumaBitDepth().static voidnlumaBitDepth(long struct, int value)Unsafe version oflumaBitDepth.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 intnvideoCodecOperation(long struct)Unsafe version ofvideoCodecOperation().static voidnvideoCodecOperation(long struct, int value)Unsafe version ofvideoCodecOperation.longpNext()NULLor a pointer to a structure extending this structure.VkVideoProfileKHRpNext(long value)Sets the specified value to thepNext()field.VkVideoProfileKHRpNext(VkVideoDecodeH264ProfileEXT value)Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.VkVideoProfileKHRpNext(VkVideoDecodeH265ProfileEXT value)Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.VkVideoProfileKHRpNext(VkVideoEncodeH264ProfileEXT value)Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.VkVideoProfileKHRpNext(VkVideoEncodeH265ProfileEXT value)Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.VkVideoProfileKHRset(int sType, long pNext, int videoCodecOperation, int chromaSubsampling, int lumaBitDepth, int chromaBitDepth)Initializes this struct with the specified values.VkVideoProfileKHRset(VkVideoProfileKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkVideoProfileKHRsType(int value)Sets the specified value to thesType()field.VkVideoProfileKHRsType$Default()Sets theSTRUCTURE_TYPE_VIDEO_PROFILE_KHRvalue to thesType()field.intvideoCodecOperation()aVkVideoCodecOperationFlagBitsKHRvalue specifying a video codec operation.VkVideoProfileKHRvideoCodecOperation(int value)Sets the specified value to thevideoCodecOperation()field.
-
-
-
Constructor Detail
-
VkVideoProfileKHR
public VkVideoProfileKHR(java.nio.ByteBuffer container)
Creates aVkVideoProfileKHRinstance 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.
-
videoCodecOperation
public int videoCodecOperation()
aVkVideoCodecOperationFlagBitsKHRvalue specifying a video codec operation.
-
chromaSubsampling
public int chromaSubsampling()
a bitmask ofVkVideoChromaSubsamplingFlagBitsKHRspecifying video chroma subsampling information.
-
lumaBitDepth
public int lumaBitDepth()
a bitmask ofVkVideoComponentBitDepthFlagBitsKHRspecifying video luma bit depth information.
-
chromaBitDepth
public int chromaBitDepth()
a bitmask ofVkVideoComponentBitDepthFlagBitsKHRspecifying video chroma bit depth information.
-
sType
public VkVideoProfileKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkVideoProfileKHR sType$Default()
Sets theSTRUCTURE_TYPE_VIDEO_PROFILE_KHRvalue to thesType()field.
-
pNext
public VkVideoProfileKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkVideoProfileKHR pNext(VkVideoDecodeH264ProfileEXT value)
Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkVideoProfileKHR pNext(VkVideoDecodeH265ProfileEXT value)
Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.
-
pNext
public VkVideoProfileKHR pNext(VkVideoEncodeH264ProfileEXT value)
Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkVideoProfileKHR pNext(VkVideoEncodeH265ProfileEXT value)
Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.
-
videoCodecOperation
public VkVideoProfileKHR videoCodecOperation(int value)
Sets the specified value to thevideoCodecOperation()field.
-
chromaSubsampling
public VkVideoProfileKHR chromaSubsampling(int value)
Sets the specified value to thechromaSubsampling()field.
-
lumaBitDepth
public VkVideoProfileKHR lumaBitDepth(int value)
Sets the specified value to thelumaBitDepth()field.
-
chromaBitDepth
public VkVideoProfileKHR chromaBitDepth(int value)
Sets the specified value to thechromaBitDepth()field.
-
set
public VkVideoProfileKHR set(int sType, long pNext, int videoCodecOperation, int chromaSubsampling, int lumaBitDepth, int chromaBitDepth)
Initializes this struct with the specified values.
-
set
public VkVideoProfileKHR set(VkVideoProfileKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkVideoProfileKHR malloc()
Returns a newVkVideoProfileKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkVideoProfileKHR calloc()
Returns a newVkVideoProfileKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkVideoProfileKHR create()
Returns a newVkVideoProfileKHRinstance allocated withBufferUtils.
-
create
public static VkVideoProfileKHR create(long address)
Returns a newVkVideoProfileKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkVideoProfileKHR createSafe(long address)
-
malloc
public static VkVideoProfileKHR.Buffer malloc(int capacity)
Returns a newVkVideoProfileKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkVideoProfileKHR.Buffer calloc(int capacity)
Returns a newVkVideoProfileKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoProfileKHR.Buffer create(int capacity)
Returns a newVkVideoProfileKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkVideoProfileKHR.Buffer create(long address, int capacity)
Create aVkVideoProfileKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkVideoProfileKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkVideoProfileKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfileKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkVideoProfileKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfileKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkVideoProfileKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfileKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkVideoProfileKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkVideoProfileKHR.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().
-
nvideoCodecOperation
public static int nvideoCodecOperation(long struct)
Unsafe version ofvideoCodecOperation().
-
nchromaSubsampling
public static int nchromaSubsampling(long struct)
Unsafe version ofchromaSubsampling().
-
nlumaBitDepth
public static int nlumaBitDepth(long struct)
Unsafe version oflumaBitDepth().
-
nchromaBitDepth
public static int nchromaBitDepth(long struct)
Unsafe version ofchromaBitDepth().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvideoCodecOperation
public static void nvideoCodecOperation(long struct, int value)Unsafe version ofvideoCodecOperation.
-
nchromaSubsampling
public static void nchromaSubsampling(long struct, int value)Unsafe version ofchromaSubsampling.
-
nlumaBitDepth
public static void nlumaBitDepth(long struct, int value)Unsafe version oflumaBitDepth.
-
nchromaBitDepth
public static void nchromaBitDepth(long struct, int value)Unsafe version ofchromaBitDepth.
-
-