Configure bitrate globally
This commit is contained in:
@@ -74,6 +74,11 @@ configuration configuration::read_user_configuration()
|
||||
result.scale = json["scale"];
|
||||
}
|
||||
|
||||
if (json.contains("bitrate"))
|
||||
{
|
||||
result.bitrate = json["bitrate"];
|
||||
}
|
||||
|
||||
if (json.contains("encoders"))
|
||||
{
|
||||
for (const auto & encoder: json["encoders"])
|
||||
@@ -89,7 +94,6 @@ configuration configuration::read_user_configuration()
|
||||
SET_IF(height);
|
||||
SET_IF(offset_x);
|
||||
SET_IF(offset_y);
|
||||
SET_IF(bitrate);
|
||||
SET_IF(group);
|
||||
SET_IF(codec);
|
||||
if (e.codec == xrt::drivers::wivrn::video_codec(-1))
|
||||
|
||||
@@ -35,7 +35,6 @@ struct configuration
|
||||
std::optional<double> height;
|
||||
std::optional<double> offset_x;
|
||||
std::optional<double> offset_y;
|
||||
std::optional<int> bitrate;
|
||||
std::optional<int> group;
|
||||
std::optional<xrt::drivers::wivrn::video_codec> codec;
|
||||
std::map<std::string, std::string> options;
|
||||
@@ -43,6 +42,7 @@ struct configuration
|
||||
};
|
||||
|
||||
std::vector<encoder> encoders;
|
||||
std::optional<int> bitrate;
|
||||
std::optional<std::array<double, 2>> scale;
|
||||
std::vector<std::string> application;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user