Add Vulkan AV1 video encoder (#1087)

Experimental support, is never automatically selected.
This commit is contained in:
schlegp
2026-11-16 17:24:08 +01:00
committed by GitHub
parent 540d95ae7e
commit 04837ba215
10 changed files with 767 additions and 5 deletions
+8
View File
@@ -111,6 +111,14 @@ protected:
virtual void * encode_info_next(uint32_t frame_num, size_t slot, std::optional<int32_t> reference_slot) = 0;
virtual vk::ExtensionProperties std_header_version() = 0;
// Codec-specific structures to prepend to the vkCmdBeginVideoCodingKHR pNext chain.
// Note that this chain accepts structures the vkCmdControlVideoCodingKHR one does not,
// so it must not be reused for rate control updates.
virtual const void * begin_coding_next(const void * next)
{
return next;
}
public:
void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo, uint8_t slot, uint64_t frame_index) override;
std::optional<data> encode(uint8_t slot, uint64_t frame_index) override;