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.
baseArrayLayer must be less than the VkImageViewCreateInfo::subresourceRange.layerCount specified when the image view imageViewBinding was createdsType must be STRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_INFO_KHRpNext must be NULLimageViewBinding must be a valid VkImageView handleVkExtent2D, VkOffset2D, VkVideoDecodeInfoKHR, VkVideoEncodeInfoKHR, VkVideoReferenceSlotInfoKHR
struct VkVideoPictureResourceInfoKHR {
VkStructureType sType;
void const * pNext;
VkOffset2D codedOffset;
VkExtent2D codedExtent;
uint32_t baseArrayLayer;
VkImageView imageViewBinding;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVideoPictureResourceInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BASEARRAYLAYER
The struct member offsets. |
| public static final int | CODEDEXTENT
The struct member offsets. |
| public static final int | CODEDOFFSET
The struct member offsets. |
| public static final int | IMAGEVIEWBINDING
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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVideoPictureResourceInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | baseArrayLayer()
the array layer of the image view specified in |
| public VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoPictureResourceInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoPictureResourceInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public VkExtent2D | |
| public VkVideoPictureResourceInfoKHR | |
| public VkVideoPictureResourceInfoKHR | |
| public VkOffset2D | |
| public VkVideoPictureResourceInfoKHR | |
| public VkVideoPictureResourceInfoKHR | |
| protected VkVideoPictureResourceInfoKHR | 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 VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR | create(long address)
Returns a new |
| public static VkVideoPictureResourceInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVideoPictureResourceInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR. | |
| public long | |
| public VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR | |
| public static VkVideoPictureResourceInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoPictureResourceInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoPictureResourceInfoKHR. | 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 VkExtent2D | |
| public static void | |
| public static VkOffset2D | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkVideoPictureResourceInfoKHR | |
| public VkVideoPictureResourceInfoKHR | set(int sType, long pNext, VkOffset2D codedOffset, VkExtent2D codedExtent, int baseArrayLayer, long imageViewBinding)
Initializes this struct with the specified values. |
| public VkVideoPictureResourceInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkVideoPictureResourceInfoKHR | |
| public VkVideoPictureResourceInfoKHR |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| BASEARRAYLAYER | back to summary |
|---|---|
| public static final int BASEARRAYLAYER The struct member offsets. | |
| CODEDEXTENT | back to summary |
|---|---|
| public static final int CODEDEXTENT The struct member offsets. | |
| CODEDOFFSET | back to summary |
|---|---|
| public static final int CODEDOFFSET The struct member offsets. | |
| IMAGEVIEWBINDING | back to summary |
|---|---|
| public static final int IMAGEVIEWBINDING 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. | |
| VkVideoPictureResourceInfoKHR | back to summary |
|---|---|
| protected VkVideoPictureResourceInfoKHR(long address, ByteBuffer container) | |
| VkVideoPictureResourceInfoKHR | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| baseArrayLayer | back to summary |
|---|---|
| public int baseArrayLayer() the array layer of the image view specified in
| |
| baseArrayLayer | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR baseArrayLayer(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Returns a new
| |
| codedExtent | back to summary |
|---|---|
| public VkExtent2D codedExtent() the size in pixels of the coded image data. | |
| codedExtent | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR codedExtent(VkExtent2D value) Copies the specified | |
| codedExtent | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR codedExtent(Consumer<VkExtent2D> consumer) Passes the | |
| codedOffset | back to summary |
|---|---|
| public VkOffset2D codedOffset() the offset in texels of the image subregion to use. | |
| codedOffset | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR codedOffset(VkOffset2D value) Copies the specified | |
| codedOffset | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR codedOffset(Consumer<VkOffset2D> consumer) Passes the | |
| create | back to summary |
|---|---|
| protected VkVideoPictureResourceInfoKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Like
| |
| imageViewBinding | back to summary |
|---|---|
| public long imageViewBinding() an image view representing the video picture resource.
| |
| imageViewBinding | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR imageViewBinding(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoPictureResourceInfoKHR. Returns a new
| |
| nbaseArrayLayer | back to summary |
|---|---|
| public static int nbaseArrayLayer(long struct) Unsafe version of | |
| nbaseArrayLayer | back to summary |
|---|---|
| public static void nbaseArrayLayer(long struct, int value) Unsafe version of | |
| ncodedExtent | back to summary |
|---|---|
| public static VkExtent2D ncodedExtent(long struct) Unsafe version of | |
| ncodedExtent | back to summary |
|---|---|
| public static void ncodedExtent(long struct, VkExtent2D value) Unsafe version of | |
| ncodedOffset | back to summary |
|---|---|
| public static VkOffset2D ncodedOffset(long struct) Unsafe version of | |
| ncodedOffset | back to summary |
|---|---|
| public static void ncodedOffset(long struct, VkOffset2D value) Unsafe version of | |
| nimageViewBinding | back to summary |
|---|---|
| public static long nimageViewBinding(long struct) Unsafe version of | |
| nimageViewBinding | back to summary |
|---|---|
| public static void nimageViewBinding(long struct, long 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 | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR set(int sType, long pNext, VkOffset2D codedOffset, VkExtent2D codedExtent, int baseArrayLayer, long imageViewBinding) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR set(VkVideoPictureResourceInfoKHR 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 VkVideoPictureResourceInfoKHR sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR sType$Default() Sets the | |
VkVideoPictureResourceInfoKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkVideoPictureResourceInfoKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkVideoPictureResourceInfoKHR 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) | |
| baseArrayLayer | back to summary |
|---|---|
public int baseArrayLayer()
| |
| baseArrayLayer | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Sets the specified value to the | |
| codedExtent | back to summary |
|---|---|
public VkExtent2D codedExtent()
| |
| codedExtent | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Copies the specified | |
| codedExtent | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Passes the | |
| codedOffset | back to summary |
|---|---|
public VkOffset2D codedOffset()
| |
| codedOffset | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Copies the specified | |
| codedOffset | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected VkVideoPictureResourceInfoKHR getElementFactory() Implements abstract org.
| |
| imageViewBinding | back to summary |
|---|---|
public long imageViewBinding()
| |
| imageViewBinding | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkVideoPictureResourceInfoKHR. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoPictureResourceInfoKHR. Sets the | |