Class VkVideoPictureResourceInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkVideoPictureResourceInfoKHR>
org.lwjgl.vulkan.VkVideoPictureResourceInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkVideoPictureResourceInfoKHR extends org.lwjgl.system.Struct<VkVideoPictureResourceInfoKHR> implements org.lwjgl.system.NativeResource
Structure specifying the parameters of a video picture resource.
Description

The image subresource referred to by such a structure is defined as the image array layer index specified in baseArrayLayer relative to the image subresource range the image view specified in imageViewBinding was created with.

The meaning of the codedOffset and codedExtent depends on the command and context the video picture resource is used in, as well as on the used video profile and corresponding codec-specific semantics, as described later.

A video picture resource is uniquely defined by the image subresource referred to by an instance of this structure, together with the codedOffset and codedExtent members that identify the image subregion within the image subresource referenced corresponding to the video picture resource according to the particular codec-specific semantics.

Accesses to image data within a video picture resource happen at the granularity indicated by VkVideoCapabilitiesKHR::pictureAccessGranularity, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the used video profile. As a result, given an effective image subregion corresponding to a video picture resource, the actual image subregion accessed may be larger than that as it may include additional padding texels due to the picture access granularity. Any writes performed by video coding operations to such padding texels will result in undefined texel values.

Two video picture resources match if they refer to the same image subresource and they specify identical codedOffset and codedExtent values.

Valid Usage
  • baseArrayLayer must be less than the VkImageViewCreateInfo::subresourceRange.layerCount specified when the image view imageViewBinding was created
Valid Usage (Implicit)
See Also

VkExtent2D, VkOffset2D, VkVideoDecodeInfoKHR, VkVideoEncodeInfoKHR, VkVideoReferenceSlotInfoKHR

Layout


 struct VkVideoPictureResourceInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkOffset2D codedOffset();
     VkExtent2D codedExtent();
     uint32_t baseArrayLayer();
     VkImageView imageViewBinding();
 }