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
@@ -144,8 +144,8 @@ video_encoder_nvenc::video_encoder_nvenc(
fps(fps),
bitrate(settings.bitrate)
{
if (settings.use_10bit)
throw std::runtime_error("nvenc encoder does not support 10-bit encoding");
if (settings.bit_depth != 8)
throw std::runtime_error("nvenc encoder only supports 8-bit encoding");
std::tie(cuda_fn, nvenc_fn, fn, cuda, session_handle) = init();
assert(settings.width % 32 == 0);