Add Vulkan AV1 video encoder (#1087)

Experimental support, is never automatically selected.
This commit is contained in:
schlegp authored and GitHub committed 2026-11-16 17:24:08 +01:00
1 parent 540d95ae7e
commit 04837ba215
10 files changed
+767 -5

No files matched your search

+9 -2
View File
@@ -204,8 +204,12 @@ class prober
U_LOG_I("GPU does not support H.265 Vulkan video encode");
return res;
}
case av1:
U_LOG_D("Vulkan video encode for AV1 is not implemented in WiVRn");
case av1: {
auto res = vk.has_device_ext(VK_KHR_VIDEO_ENCODE_AV1_EXTENSION_NAME) and flags & vk::VideoCodecOperationFlagBitsKHR::eEncodeAv1;
if (not res)
U_LOG_I("GPU does not support AV1 Vulkan video encode");
return res;
}
case raw:
return false;
}
@@ -240,6 +244,9 @@ public:
{
for (auto codec: codecs)
{
if (codec == video_codec::av1 and config.name.empty())
continue;
if (has_vk(codec))
return {encoder_vulkan, codec};
}