Package org.lwjgl.vulkan
Class KHRVideoEncodeQueue
- java.lang.Object
-
- org.lwjgl.vulkan.KHRVideoEncodeQueue
-
public class KHRVideoEncodeQueue extends java.lang.ObjectVK_KHR_video_encode_queue
- Name String
VK_KHR_video_encode_queue- Extension Type
- Device extension
- Registered Extension Number
- 300
- Revision
- 4
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_video_queue - Requires
VK_KHR_synchronization2 - This is a provisional extension and must be used with caution. See the description of provisional header files for enablement and stability details.
- Contact
- Ahmed Abdelkhalek aabdelkh
Other Extension Metadata
- Last Modified Date
- 2022-02-10
- IP Status
- No known IP claims.
- Contributors
- Ahmed Abdelkhalek, AMD
- Damien Kessler, NVIDIA
- Daniel Rakos, AMD
- George Hao, AMD
- Jake Beju, AMD
- Peter Fang, AMD
- Piers Daniell, NVIDIA
- Srinath Kumarapuram, NVIDIA
- Thomas J. Meier, NVIDIA
- Tony Zlatinski, NVIDIA
- Yang Liu, AMD
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnvkCmdEncodeVideoKHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pEncodeInfo)Unsafe version of:CmdEncodeVideoKHRstatic voidvkCmdEncodeVideoKHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkVideoEncodeInfoKHR pEncodeInfo)Encode operation for bitstream generation.
-
-
-
Field Detail
-
VK_KHR_VIDEO_ENCODE_QUEUE_SPEC_VERSION
The extension specification version.
-
VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME
The extension name.
-
VK_PIPELINE_STAGE_2_VIDEO_ENCODE_BIT_KHR
ExtendsVkPipelineStageFlagBits2.
-
VK_ACCESS_2_VIDEO_ENCODE_READ_BIT_KHR, VK_ACCESS_2_VIDEO_ENCODE_WRITE_BIT_KHR
ExtendsVkAccessFlagBits2.Enum values:
-
VK_STRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHR, VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR, VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_LAYER_INFO_KHR, VK_STRUCTURE_TYPE_VIDEO_ENCODE_CAPABILITIES_KHR
-
VK_QUEUE_VIDEO_ENCODE_BIT_KHR
ExtendsVkQueueFlagBits.
-
VK_BUFFER_USAGE_VIDEO_ENCODE_DST_BIT_KHR, VK_BUFFER_USAGE_VIDEO_ENCODE_SRC_BIT_KHR
ExtendsVkBufferUsageFlagBits.Enum values:
-
VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR, VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR, VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR
ExtendsVkImageUsageFlagBits.Enum values:
-
VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR, VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_BIT_KHR
ExtendsVkFormatFeatureFlagBits.Enum values:
-
VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR, VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR, VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR
ExtendsVkImageLayout.Enum values:
-
VK_QUERY_TYPE_VIDEO_ENCODE_BITSTREAM_BUFFER_RANGE_KHR
ExtendsVkQueryType.
-
VK_FORMAT_FEATURE_2_VIDEO_ENCODE_INPUT_BIT_KHR, VK_FORMAT_FEATURE_2_VIDEO_ENCODE_DPB_BIT_KHR
ExtendsVkFormatFeatureFlagBits2.Enum values:
-
VK_VIDEO_ENCODE_DEFAULT_KHR, VK_VIDEO_ENCODE_RESERVED_0_BIT_KHR
VkVideoEncodeFlagBitsKHR - Video Encode Command FlagsDescription
VIDEO_ENCODE_RESERVED_0_BIT_KHRThe current version of the specification has reserved this value for future use.
Enum values:
-
VK_VIDEO_ENCODE_CAPABILITY_DEFAULT_KHR, VK_VIDEO_ENCODE_CAPABILITY_PRECEDING_EXTERNALLY_ENCODED_BYTES_BIT_KHR
VkVideoEncodeCapabilityFlagBitsKHR - Video encode capability flagsDescription
VIDEO_ENCODE_CAPABILITY_PRECEDING_EXTERNALLY_ENCODED_BYTES_BIT_KHRreports that the implementation supports use ofVkVideoEncodeInfoKHR::precedingExternallyEncodedBytes.
Enum values:
-
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_NONE_BIT_KHR, VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR, VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR
VkVideoEncodeRateControlModeFlagBitsKHR - Video encode rate control modesDescription
VIDEO_ENCODE_RATE_CONTROL_MODE_NONE_BIT_KHRfor disabling rate control.VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHRfor constant bitrate rate control mode.VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHRfor variable bitrate rate control mode.
See Also
-
VK_VIDEO_ENCODE_RATE_CONTROL_DEFAULT_KHR, VK_VIDEO_ENCODE_RATE_CONTROL_RESERVED_0_BIT_KHR
VkVideoEncodeRateControlFlagBitsKHR - Reserved for future useDescription
VkVideoEncodeRateControlFlagBitsKHRdefines bits which may be set in aVkVideoEncodeRateControlFlagsKHRvalue, but is currently unused.Enum values:
-
-
Method Detail
-
nvkCmdEncodeVideoKHR
public static void nvkCmdEncodeVideoKHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pEncodeInfo)Unsafe version of:CmdEncodeVideoKHR
-
vkCmdEncodeVideoKHR
public static void vkCmdEncodeVideoKHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkVideoEncodeInfoKHR pEncodeInfo)Encode operation for bitstream generation.C Specification
To launch an encode operation that results in bitstream generation, call:
void vkCmdEncodeVideoKHR( VkCommandBuffer commandBuffer, const VkVideoEncodeInfoKHR* pEncodeInfo);Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandlepEncodeInfomust be a valid pointer to a validVkVideoEncodeInfoKHRstructurecommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support encode operations - This command must only be called outside of a render pass instance
commandBuffermust be a primaryVkCommandBuffer
Host Synchronization
- Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Command Properties
Command Buffer Levels Render Pass Scope Supported Queue Types Primary Outside Encode See Also
- Parameters:
commandBuffer- the command buffer to be filled with this function for encoding to generate a bitstream.pEncodeInfo- a pointer to aVkVideoEncodeInfoKHRstructure.
-
-