Video profiles are provided as input to video capability queries such as GetPhysicalDeviceVideoCapabilitiesKHR or GetPhysicalDeviceVideoFormatPropertiesKHR, as well as when creating resources to be used by video coding operations such as images, buffers, query pools, and video sessions.
The full description of a video profile is specified by an instance of this structure, and the codec-specific and auxiliary structures provided in its pNext chain.
When this structure is specified as an input parameter to GetPhysicalDeviceVideoCapabilitiesKHR, or through the pProfiles member of an VkVideoProfileListInfoKHR structure in the pNext chain of the input parameter of a query command such as GetPhysicalDeviceVideoFormatPropertiesKHR or GetPhysicalDeviceImageFormatProperties2, the following error codes indicate specific causes of the failure of the query operation:
ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR indicates that the requested video picture layout (e.g. through the pictureLayout member of a VkVideoDecodeH264ProfileInfoKHR structure included in the pNext chain of VkVideoProfileInfoKHR) is not supported.ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR indicates that a video profile operation specified by videoCodecOperation is not supported.ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR indicates that video format parameters specified by chromaSubsampling, lumaBitDepth, or chromaBitDepth are not supported.ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR indicates that the codec-specific parameters corresponding to the video codec operation are not supported.chromaSubsampling must have a single bit setlumaBitDepth must have a single bit setchromaSubsampling is not VIDEO_CHROMA_SUBSAMPLING_MONOCHROME_BIT_KHR, then chromaBitDepth must have a single bit setvideoCodecOperation is VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then the pNext chain must include a VkVideoDecodeH264ProfileInfoKHR structurevideoCodecOperation is VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then the pNext chain must include a VkVideoDecodeH265ProfileInfoKHR structurevideoCodecOperation is VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT, then the pNext chain must include a VkVideoEncodeH264ProfileInfoEXT structurevideoCodecOperation is VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_EXT, then the pNext chain must include a VkVideoEncodeH265ProfileInfoEXT structuresType must be STRUCTURE_TYPE_VIDEO_PROFILE_INFO_KHRvideoCodecOperation must be a valid VkVideoCodecOperationFlagBitsKHR valuechromaSubsampling must be a valid combination of VkVideoChromaSubsamplingFlagBitsKHR valueschromaSubsampling must not be 0lumaBitDepth must be a valid combination of VkVideoComponentBitDepthFlagBitsKHR valueslumaBitDepth must not be 0chromaBitDepth must be a valid combination of VkVideoComponentBitDepthFlagBitsKHR valuesVkPhysicalDeviceVideoEncodeQualityLevelInfoKHR, VkVideoProfileListInfoKHR, VkVideoSessionCreateInfoKHR, GetPhysicalDeviceVideoCapabilitiesKHR
struct VkVideoProfileInfoKHR {
VkStructureType sType;
void const * pNext;
VkVideoCodecOperationFlagBitsKHR videoCodecOperation;
VkVideoChromaSubsamplingFlagsKHR chromaSubsampling;
VkVideoComponentBitDepthFlagsKHR lumaBitDepth;
VkVideoComponentBitDepthFlagsKHR chromaBitDepth;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVideoProfileInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CHROMABITDEPTH
The struct member offsets. |
| public static final int | CHROMASUBSAMPLING
The struct member offsets. |
| public static final int | LUMABITDEPTH
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | VIDEOCODECOPERATION
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVideoProfileInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoProfileInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoProfileInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | chromaBitDepth()
a bitmask of |
| public VkVideoProfileInfoKHR | |
| public int | chromaSubsampling()
a bitmask of |
| public VkVideoProfileInfoKHR | |
| protected VkVideoProfileInfoKHR | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVideoProfileInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR. | |
| public int | lumaBitDepth()
a bitmask of |
| public VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR | |
| public static VkVideoProfileInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoProfileInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoProfileInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkVideoProfileInfoKHR | |
| public VkVideoProfileInfoKHR | pNext(VkVideoDecodeH264ProfileInfoKHR value)
Prepends the specified |
| public VkVideoProfileInfoKHR | pNext(VkVideoDecodeH265ProfileInfoKHR value)
Prepends the specified |
| public VkVideoProfileInfoKHR | pNext(VkVideoDecodeUsageInfoKHR value)
Prepends the specified |
| public VkVideoProfileInfoKHR | pNext(VkVideoEncodeH264ProfileInfoEXT value)
Prepends the specified |
| public VkVideoProfileInfoKHR | pNext(VkVideoEncodeH265ProfileInfoEXT value)
Prepends the specified |
| public VkVideoProfileInfoKHR | pNext(VkVideoEncodeUsageInfoKHR value)
Prepends the specified |
| public VkVideoProfileInfoKHR | set(int sType, long pNext, int videoCodecOperation, int chromaSubsampling, int lumaBitDepth, int chromaBitDepth)
Initializes this struct with the specified values. |
| public VkVideoProfileInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkVideoProfileInfoKHR | |
| public VkVideoProfileInfoKHR | |
| public int | |
| public VkVideoProfileInfoKHR |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CHROMABITDEPTH | back to summary |
|---|---|
| public static final int CHROMABITDEPTH The struct member offsets. | |
| CHROMASUBSAMPLING | back to summary |
|---|---|
| public static final int CHROMASUBSAMPLING The struct member offsets. | |
| LUMABITDEPTH | back to summary |
|---|---|
| public static final int LUMABITDEPTH The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VIDEOCODECOPERATION | back to summary |
|---|---|
| public static final int VIDEOCODECOPERATION The struct member offsets. | |
| VkVideoProfileInfoKHR | back to summary |
|---|---|
| protected VkVideoProfileInfoKHR(long address, ByteBuffer container) | |
| VkVideoProfileInfoKHR | back to summary |
|---|---|
| public VkVideoProfileInfoKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Returns a new
| |
| chromaBitDepth | back to summary |
|---|---|
| public int chromaBitDepth() a bitmask of
| |
| chromaBitDepth | back to summary |
|---|---|
| public VkVideoProfileInfoKHR chromaBitDepth(int value) Sets the specified value to the | |
| chromaSubsampling | back to summary |
|---|---|
| public int chromaSubsampling() a bitmask of
| |
| chromaSubsampling | back to summary |
|---|---|
| public VkVideoProfileInfoKHR chromaSubsampling(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected VkVideoProfileInfoKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Like
| |
| lumaBitDepth | back to summary |
|---|---|
| public int lumaBitDepth() a bitmask of
| |
| lumaBitDepth | back to summary |
|---|---|
| public VkVideoProfileInfoKHR lumaBitDepth(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoProfileInfoKHR. Returns a new
| |
| nchromaBitDepth | back to summary |
|---|---|
| public static int nchromaBitDepth(long struct) Unsafe version of | |
| nchromaBitDepth | back to summary |
|---|---|
| public static void nchromaBitDepth(long struct, int value) Unsafe version of | |
| nchromaSubsampling | back to summary |
|---|---|
| public static int nchromaSubsampling(long struct) Unsafe version of | |
| nchromaSubsampling | back to summary |
|---|---|
| public static void nchromaSubsampling(long struct, int value) Unsafe version of | |
| nlumaBitDepth | back to summary |
|---|---|
| public static int nlumaBitDepth(long struct) Unsafe version of | |
| nlumaBitDepth | back to summary |
|---|---|
| public static void nlumaBitDepth(long struct, int value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| nvideoCodecOperation | back to summary |
|---|---|
| public static int nvideoCodecOperation(long struct) Unsafe version of | |
| nvideoCodecOperation | back to summary |
|---|---|
| public static void nvideoCodecOperation(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(long value) Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoDecodeH264ProfileInfoKHR value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoDecodeH265ProfileInfoKHR value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoDecodeUsageInfoKHR value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoEncodeH264ProfileInfoEXT value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoEncodeH265ProfileInfoEXT value) Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR pNext(VkVideoEncodeUsageInfoKHR value) Prepends the specified | |
| set | back to summary |
|---|---|
| public VkVideoProfileInfoKHR set(int sType, long pNext, int videoCodecOperation, int chromaSubsampling, int lumaBitDepth, int chromaBitDepth) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkVideoProfileInfoKHR set(VkVideoProfileInfoKHR src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkVideoProfileInfoKHR sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoProfileInfoKHR sType$Default() Sets the | |
| videoCodecOperation | back to summary |
|---|---|
| public int videoCodecOperation() a
| |
| videoCodecOperation | back to summary |
|---|---|
| public VkVideoProfileInfoKHR videoCodecOperation(int value) Sets the specified value to the | |
VkVideoProfileInfoKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkVideoProfileInfoKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkVideoProfileInfoKHR ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| chromaBitDepth | back to summary |
|---|---|
public int chromaBitDepth()
| |
| chromaBitDepth | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |
| chromaSubsampling | back to summary |
|---|---|
public int chromaSubsampling()
| |
| chromaSubsampling | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkVideoProfileInfoKHR getElementFactory() Implements abstract org.
| |
| lumaBitDepth | back to summary |
|---|---|
public int lumaBitDepth()
| |
| lumaBitDepth | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| pNext | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Prepends the specified | |
| self | back to summary |
|---|---|
| protected VkVideoProfileInfoKHR. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the | |
| videoCodecOperation | back to summary |
|---|---|
public int videoCodecOperation()
| |
| videoCodecOperation | back to summary |
|---|---|
| public VkVideoProfileInfoKHR. Sets the specified value to the | |