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())
+1 -1
View File
@@ -50,7 +50,6 @@ struct configuration
std::optional<double> offset_y;
std::optional<int> group;
std::optional<wivrn::video_codec> codec;
std::optional<bool> use_10bit;
std::map<std::string, std::string> options;
std::optional<std::string> device;
};
@@ -63,6 +62,7 @@ struct configuration
std::vector<std::string> application;
bool debug_gui = false;
bool use_steamvr_lh = false;
bool encode_10bit = false;
bool tcp_only = false;
service_publication publication = service_publication::avahi;