10-bit encoding as a global setting

This commit is contained in:
galister
2025-07-11 23:09:37 +02:00
committed by xytovl
parent d64d5909ee
commit ed32676299
3 changed files with 53 additions and 43 deletions
+3 -1
View File
@@ -147,7 +147,6 @@ configuration::encoder parse_encoder(const nlohmann::json & item)
SET_IF(codec);
if (e.codec == wivrn::video_codec(-1))
throw std::runtime_error("invalid codec value " + item["codec"].get<std::string>());
SET_IF(use_10bit);
SET_IF(options);
SET_IF(device);
return e;
@@ -201,6 +200,9 @@ configuration::configuration()
if (auto it = json.find("use-steamvr-lh"); it != json.end())
use_steamvr_lh = *it;
if (auto it = json.find("encode_10bit"); it != json.end())
encode_10bit = *it;
if (auto it = json.find("tcp-only"); it != json.end())
tcp_only = *it;
else if (auto it = json.find("tcp_only"); it != json.end())