10-bit encoding as a global setting
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user