Change default scale to 0.8

This commit is contained in:
Patrick Nicolas
2024-02-19 10:49:07 +01:00
parent 7cf7cb7f81
commit 75c68a177c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Configurable items:
## `scale`
Default value: `1`
Default value: `0.8`
Controls the size of the video stream, either a number between 0 and 1 or a pair of numbers between 0 and 1. If two numbers are provided the first one is horizontal scale and the second vertical.
Scaling is applied in a foveated fashion: the center has a 1:1 ratio and the rest is scaled so that the total number of pixels matches the desired scale.
+1 -1
View File
@@ -214,7 +214,7 @@ wivrn_hmd::wivrn_hmd(std::shared_ptr<xrt::drivers::wivrn::wivrn_session> cnx,
auto eye_width = info.recommended_eye_width; // * config.scale.value_or(1);
auto eye_height = info.recommended_eye_height; // * config.scale.value_or(1);
auto scale = config.scale.value_or(std::array<double, 2>{1., 1.});
auto scale = config.scale.value_or(std::array<double, 2>{0.8, 0.8});
int foveated_eye_width = info.recommended_eye_width * scale[0];
int foveated_eye_height = info.recommended_eye_height * scale[1];
foveated_eye_height += foveated_eye_height % 2;