protectedMemory feature is not enabled or if VkVideoCapabilitiesKHR::flags does not include VIDEO_CAPABILITY_PROTECTED_CONTENT_BIT_KHR, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfile, then flags must not include VIDEO_SESSION_CREATE_PROTECTED_CONTENT_BIT_KHRpVideoProfile must be a supported video profilemaxDpbSlots must be less than or equal to VkVideoCapabilitiesKHR::maxDpbSlots, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfilemaxActiveReferencePictures must be less than or equal to VkVideoCapabilitiesKHR::maxActiveReferencePictures, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfilemaxDpbSlots or maxActiveReferencePictures is 0, then both must be 0maxCodedExtent must be between VkVideoCapabilitiesKHR::minCodedExtent and VkVideoCapabilitiesKHR::maxCodedExtent, inclusive, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfilepVideoProfile→videoCodecOperation specifies a decode operation and maxActiveReferencePictures is greater than 0, then referencePictureFormat must be one of the supported decode DPB formats, as returned by GetPhysicalDeviceVideoFormatPropertiesKHR in VkVideoFormatPropertiesKHR::format when called with the imageUsage member of its pVideoFormatInfo parameter containing IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR, and with a VkVideoProfileListInfoKHR structure specified in the pNext chain of its pVideoFormatInfo parameter whose pProfiles member contains an element matching pVideoProfilepVideoProfile→videoCodecOperation specifies an encode operation and maxActiveReferencePictures is greater than 0, then referencePictureFormat must be one of the supported decode DPB formats, as returned by then referencePictureFormat must be one of the supported encode DPB formats, as returned by GetPhysicalDeviceVideoFormatPropertiesKHR in VkVideoFormatPropertiesKHR::format when called with the imageUsage member of its pVideoFormatInfo parameter containing IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR, and with a VkVideoProfileListInfoKHR structure specified in the pNext chain of its pVideoFormatInfo parameter whose pProfiles member contains an element matching pVideoProfilepVideoProfile→videoCodecOperation specifies a decode operation, then pictureFormat must be one of the supported decode output formats, as returned by GetPhysicalDeviceVideoFormatPropertiesKHR in VkVideoFormatPropertiesKHR::format when called with the imageUsage member of its pVideoFormatInfo parameter containing IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR, and with a VkVideoProfileListInfoKHR structure specified in the pNext chain of its pVideoFormatInfo parameter whose pProfiles member contains an element matching pVideoProfilepVideoProfile→videoCodecOperation specifies an encode operation, then pictureFormat must be one of the supported encode input formats, as returned by GetPhysicalDeviceVideoFormatPropertiesKHR in VkVideoFormatPropertiesKHR::format when called with the imageUsage member of its pVideoFormatInfo parameter containing IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR, and with a VkVideoProfileListInfoKHR structure specified in the pNext chain of its pVideoFormatInfo parameter whose pProfiles member contains an element matching pVideoProfilepStdHeaderVersion→extensionName must match VkVideoCapabilitiesKHR::stdHeaderVersion.extensionName, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfilepStdHeaderVersion→specVersion must be less than or equal to VkVideoCapabilitiesKHR::stdHeaderVersion.specVersion, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile specified by pVideoProfilesType must be STRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHRpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkVideoEncodeH264SessionCreateInfoEXT or VkVideoEncodeH265SessionCreateInfoEXTsType value of each struct in the pNext chain must be uniqueflags must be a valid combination of VkVideoSessionCreateFlagBitsKHR valuespVideoProfile must be a valid pointer to a valid VkVideoProfileInfoKHR structurepictureFormat must be a valid VkFormat valuereferencePictureFormat must be a valid VkFormat valuepStdHeaderVersion must be a valid pointer to a valid VkExtensionProperties structureVkExtensionProperties, VkExtent2D, VkVideoProfileInfoKHR, CreateVideoSessionKHR
struct VkVideoSessionCreateInfoKHR {
VkStructureType sType;
void const * pNext;
uint32_t queueFamilyIndex;
VkVideoSessionCreateFlagsKHR flags;
VkVideoProfileInfoKHR const * pVideoProfile;
VkFormat pictureFormat;
VkExtent2D maxCodedExtent;
VkFormat referencePictureFormat;
uint32_t maxDpbSlots;
uint32_t maxActiveReferencePictures;
VkExtensionProperties const * pStdHeaderVersion;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVideoSessionCreateInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MAXACTIVEREFERENCEPICTURES
The struct member offsets. |
| public static final int | MAXCODEDEXTENT
The struct member offsets. |
| public static final int | MAXDPBSLOTS
The struct member offsets. |
| public static final int | PICTUREFORMAT
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | PSTDHEADERVERSION
The struct member offsets. |
| public static final int | PVIDEOPROFILE
The struct member offsets. |
| public static final int | QUEUEFAMILYINDEX
The struct member offsets. |
| public static final int | REFERENCEPICTUREFORMAT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVideoSessionCreateInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkVideoSessionCreateInfoKHR | |
| public static VkVideoSessionCreateInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoSessionCreateInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoSessionCreateInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkVideoSessionCreateInfoKHR | 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 VkVideoSessionCreateInfoKHR | |
| public static VkVideoSessionCreateInfoKHR | create(long address)
Returns a new |
| public static VkVideoSessionCreateInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVideoSessionCreateInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVideoSessionCreateInfoKHR | |
| public static VkVideoSessionCreateInfoKHR. | |
| public int | |
| public VkVideoSessionCreateInfoKHR | |
| public static VkVideoSessionCreateInfoKHR | |
| public static VkVideoSessionCreateInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoSessionCreateInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoSessionCreateInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | maxActiveReferencePictures()
the maximum number of active reference pictures that can be used in a single video coding operation using the created video session. |
| public VkVideoSessionCreateInfoKHR | maxActiveReferencePictures(int value)
Sets the specified value to the |
| public VkExtent2D | maxCodedExtent()
the maximum width and height of the coded frames the created video session will be used with. |
| public VkVideoSessionCreateInfoKHR | |
| public VkVideoSessionCreateInfoKHR | maxCodedExtent(Consumer<VkExtent2D> consumer)
Passes the |
| public int | |
| public VkVideoSessionCreateInfoKHR | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static VkExtent2D | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static VkExtensionProperties | |
| public static void | |
| public static VkVideoProfileInfoKHR | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | |
| public VkVideoSessionCreateInfoKHR | |
| public long | |
| public VkVideoSessionCreateInfoKHR | |
| public VkVideoSessionCreateInfoKHR | pNext(VkVideoEncodeH264SessionCreateInfoEXT value)
Prepends the specified |
| public VkVideoSessionCreateInfoKHR | pNext(VkVideoEncodeH265SessionCreateInfoEXT value)
Prepends the specified |
| public VkExtensionProperties | pStdHeaderVersion()
a pointer to a |
| public VkVideoSessionCreateInfoKHR | pStdHeaderVersion(VkExtensionProperties value)
Sets the address of the specified |
| public VkVideoProfileInfoKHR | pVideoProfile()
a pointer to a |
| public VkVideoSessionCreateInfoKHR | pVideoProfile(VkVideoProfileInfoKHR value)
Sets the address of the specified |
| public int | |
| public VkVideoSessionCreateInfoKHR | |
| public int | referencePictureFormat()
the image format of reference pictures stored in the DPB the created video session will be used with. |
| public VkVideoSessionCreateInfoKHR | |
| public VkVideoSessionCreateInfoKHR | set(int sType, long pNext, int queueFamilyIndex, int flags, VkVideoProfileInfoKHR pVideoProfile, int pictureFormat, VkExtent2D maxCodedExtent, int referencePictureFormat, int maxDpbSlots, int maxActiveReferencePictures, VkExtensionProperties pStdHeaderVersion)
Initializes this struct with the specified values. |
| public VkVideoSessionCreateInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkVideoSessionCreateInfoKHR | |
| public VkVideoSessionCreateInfoKHR | |
| public static void |