change encode_10bit → bit-depth

This commit is contained in:
galister
2025-07-11 23:09:37 +02:00
committed by xytovl
parent ed32676299
commit ec42db83bc
10 changed files with 66 additions and 50 deletions
+2 -2
View File
@@ -192,8 +192,8 @@ std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h2
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
if (settings.use_10bit)
throw std::runtime_error("h264 codec does not support 10-bit encoding");
if (settings.bit_depth != 8)
throw std::runtime_error("h264 codec only supports 8-bit encoding");
std::unique_ptr<video_encoder_vulkan_h264> self(new video_encoder_vulkan_h264(vk, rect, video_caps, encode_caps, fps, stream_idx, settings));