Limiting values are defined below that are referenced by the relevant valid usage statements of this structure.
VkOffset2D codedOffsetGranularity be the minimum alignment requirement for the coded offset of video picture resources. Unless otherwise defined, the value of the x and y members of codedOffsetGranularity are 0.
videoSession was created with an H.264 decode profile with a VkVideoDecodeH264ProfileInfoKHR::pictureLayout of VIDEO_DECODE_H264_PICTURE_LAYOUT_INTERLACED_SEPARATE_PLANES_BIT_KHR, then codedOffsetGranularity is equal to VkVideoDecodeH264CapabilitiesKHR::fieldOffsetGranularity, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for that video profile.videoSession must have memory bound to all of its memory bindings returned by GetVideoSessionMemoryRequirementsKHR for videoSessionVkVideoReferenceSlotInfoKHR::slotIndex specified in the elements of pReferenceSlots must be less than the VkVideoSessionCreateInfoKHR::maxDpbSlots specified when videoSession was createdNULL pPictureResource member specified in the elements of pReferenceSlots must be unique within pReferenceSlotspPictureResource member of any element of pReferenceSlots is not NULL, then the image view specified in pPictureResource→imageViewBinding for that element must be compatible with the video profile videoSession was created withpPictureResource member of any element of pReferenceSlots is not NULL, then the format of the image view specified in pPictureResource→imageViewBinding for that element must match the VkVideoSessionCreateInfoKHR::referencePictureFormat videoSession was created withpPictureResource member of any element of pReferenceSlots is not NULL, then its codedOffset member must be an integer multiple of codedOffsetGranularitypPictureResource member of any element of pReferenceSlots is not NULL, then its codedExtent member must be between minCodedExtent and maxCodedExtent, inclusive, videoSession was created withVkVideoCapabilitiesKHR::flags does not include VIDEO_CAPABILITY_SEPARATE_REFERENCE_IMAGES_BIT_KHR, as returned by GetPhysicalDeviceVideoCapabilitiesKHR for the video profile videoSession was created with, then pPictureResource→imageViewBinding of all elements of pReferenceSlots with a non-NULL pPictureResource member must specify image views created from the same imagevideoSession was created with a decode operation and the slotIndex member of any element of pReferenceSlots is not negative, then the image view specified in pPictureResource→imageViewBinding for that element must have been created with IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHRvideoSession was created with an encode operation and the slotIndex member of any element of pReferenceSlots is not negative, then the image view specified in pPictureResource→imageViewBinding for that element must have been created with IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHRvideoSession was created with the video codec operation VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR, then videoSessionParameters must not be NULL_HANDLEvideoSession was created with the video codec operation VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR, then videoSessionParameters must not be NULL_HANDLEvideoSession was created with the video codec operation VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_EXT, then videoSessionParameters must not be NULL_HANDLEvideoSession was created with the video codec operation VIDEO_CODEC_OPERATION_ENCODE_H265_BIT_EXT, then videoSessionParameters must not be NULL_HANDLEvideoSessionParameters is not NULL_HANDLE, it must have been created with videoSession specified in VkVideoSessionParametersCreateInfoKHR::videoSessionsType must be STRUCTURE_TYPE_VIDEO_BEGIN_CODING_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 VkVideoEncodeH264GopRemainingFrameInfoEXT, VkVideoEncodeH264RateControlInfoEXT, VkVideoEncodeH265GopRemainingFrameInfoEXT, VkVideoEncodeH265RateControlInfoEXT, or VkVideoEncodeRateControlInfoKHRsType value of each struct in the pNext chain must be uniqueflags must be 0videoSession must be a valid VkVideoSessionKHR handlevideoSessionParameters is not NULL_HANDLE, videoSessionParameters must be a valid VkVideoSessionParametersKHR handlereferenceSlotCount is not 0, pReferenceSlots must be a valid pointer to an array of referenceSlotCount valid VkVideoReferenceSlotInfoKHR structuresvideoSessionParameters is a valid handle, it must have been created, allocated, or retrieved from videoSessionvideoSession, and videoSessionParameters that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceVkVideoReferenceSlotInfoKHR, CmdBeginVideoCodingKHR
struct VkVideoBeginCodingInfoKHR {
VkStructureType sType;
void const * pNext;
VkVideoBeginCodingFlagsKHR flags;
VkVideoSessionKHR videoSession;
VkVideoSessionParametersKHR videoSessionParameters;
uint32_t referenceSlotCount;
VkVideoReferenceSlotInfoKHR const * pReferenceSlots;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVideoBeginCodingInfoKHR.
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 | PNEXT
The struct member offsets. |
| public static final int | PREFERENCESLOTS
The struct member offsets. |
| public static final int | REFERENCESLOTCOUNT
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 | VIDEOSESSION
The struct member offsets. |
| public static final int | VIDEOSESSIONPARAMETERS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVideoBeginCodingInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkVideoBeginCodingInfoKHR | |
| public static VkVideoBeginCodingInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoBeginCodingInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoBeginCodingInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkVideoBeginCodingInfoKHR | 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 VkVideoBeginCodingInfoKHR | |
| public static VkVideoBeginCodingInfoKHR | create(long address)
Returns a new |
| public static VkVideoBeginCodingInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVideoBeginCodingInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVideoBeginCodingInfoKHR | |
| public static VkVideoBeginCodingInfoKHR. | |
| public int | |
| public VkVideoBeginCodingInfoKHR | |
| public static VkVideoBeginCodingInfoKHR | |
| public static VkVideoBeginCodingInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoBeginCodingInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoBeginCodingInfoKHR. | 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 long | |
| public static void | |
| public static VkVideoReferenceSlotInfoKHR. | |
| public static void | npReferenceSlots(long struct, VkVideoReferenceSlotInfoKHR.
Unsafe version of |
| public static int | |
| public static void | nreferenceSlotCount(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkVideoBeginCodingInfoKHR | |
| public VkVideoBeginCodingInfoKHR | pNext(VkVideoEncodeH264GopRemainingFrameInfoEXT value)
Prepends the specified |
| public VkVideoBeginCodingInfoKHR | pNext(VkVideoEncodeH264RateControlInfoEXT value)
Prepends the specified |
| public VkVideoBeginCodingInfoKHR | pNext(VkVideoEncodeH265GopRemainingFrameInfoEXT value)
Prepends the specified |
| public VkVideoBeginCodingInfoKHR | pNext(VkVideoEncodeH265RateControlInfoEXT value)
Prepends the specified |
| public VkVideoBeginCodingInfoKHR | pNext(VkVideoEncodeRateControlInfoKHR value)
Prepends the specified |
| public VkVideoReferenceSlotInfoKHR. | pReferenceSlots()
a pointer to an array of |
| public VkVideoBeginCodingInfoKHR | pReferenceSlots(VkVideoReferenceSlotInfoKHR.
Sets the address of the specified |
| public int | |
| public VkVideoBeginCodingInfoKHR | set(int sType, long pNext, int flags, long videoSession, long videoSessionParameters, VkVideoReferenceSlotInfoKHR.
Initializes this struct with the specified values. |
| public VkVideoBeginCodingInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkVideoBeginCodingInfoKHR | |
| public VkVideoBeginCodingInfoKHR | |
| public static void | |
| public long | |
| public VkVideoBeginCodingInfoKHR | |
| public long | videoSessionParameters()
|
| public VkVideoBeginCodingInfoKHR |