configure bitrate on client only
This commit is contained in:
@@ -132,6 +132,9 @@ configuration::configuration(xr::system & system)
|
||||
if (auto val = root["stream_scale"]; val.is_double())
|
||||
stream_scale = val.get_double();
|
||||
|
||||
if (auto val = root["bitrate_bps"]; val.is_number())
|
||||
bitrate_bps = val.get_uint64();
|
||||
|
||||
if (auto val = root["enable_stream_gui"]; val.is_bool())
|
||||
enable_stream_gui = val.get_bool();
|
||||
|
||||
@@ -192,6 +195,7 @@ configuration::configuration(xr::system & system)
|
||||
minimum_refresh_rate.reset();
|
||||
resolution_scale = 1.0;
|
||||
stream_scale = 0.5;
|
||||
bitrate_bps = 50'000'000;
|
||||
openxr_post_processing = {};
|
||||
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
|
||||
}
|
||||
@@ -255,6 +259,7 @@ void configuration::save()
|
||||
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
|
||||
json << ",\"resolution_scale\":" << resolution_scale;
|
||||
json << ",\"stream_scale\":" << stream_scale;
|
||||
json << ",\"bitrate_bps\":" << bitrate_bps;
|
||||
json << ",\"openxr_post_processing\":";
|
||||
write_openxr_post_processing(json, openxr_post_processing);
|
||||
json << ",\"passthrough_enabled\":" << std::boolalpha << passthrough_enabled;
|
||||
|
||||
Reference in New Issue
Block a user