Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8d2d41174 | ||
|
|
6d0cc60626 | ||
|
|
50c44c8422 | ||
|
|
a5b3178f36 | ||
|
|
d7c085ce15 | ||
|
|
49ab1af542 | ||
|
|
17654ff5e8 | ||
|
|
c7fc144a66 | ||
|
|
c8b8d798d1 | ||
|
|
7a307b796a | ||
|
|
5e4edc9857 | ||
|
|
461de7c540 | ||
|
|
a2e470799e | ||
|
|
d2191a354e | ||
|
|
1d1ab8108b | ||
|
|
9725ae7fc0 | ||
|
|
e7b218bfb6 | ||
|
|
b795bd191f | ||
|
|
93ba9b8367 | ||
|
|
30ceab5b30 | ||
|
|
4e433e3ecc | ||
|
|
810c9bd2fa | ||
|
|
869911fcd5 | ||
|
|
d310b2ab47 | ||
|
|
e744a91488 | ||
|
|
e603e30229 | ||
|
|
492a88c839 | ||
|
|
5ccc725ef7 | ||
|
|
bd5d4882a4 | ||
|
|
03cfe1c12d | ||
|
|
acea81c13f | ||
|
|
8dcd14b168 | ||
|
|
45d5d6dd7a | ||
|
|
d5ef8c1a85 |
@@ -36,17 +36,33 @@ body:
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: Installation method
|
||||
description: Describe how WiVRn and OpenComposite/xrizer were installed
|
||||
placeholder: flatpak --user, flatpak, AUR, Gentoo/Guru, built from sources...
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Server Config
|
||||
description: Provide the content of `config.json` for the server.
|
||||
placeholder: Add the content of config.json here...
|
||||
description: |
|
||||
Provide the content of `config.json` for the server.
|
||||
Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json`
|
||||
or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version
|
||||
placeholder: |
|
||||
{
|
||||
"encoders": [
|
||||
{"codec": "h264"}
|
||||
]
|
||||
}
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Server Logs
|
||||
description: Provide the `wivrn-server` output.
|
||||
placeholder: Add the output of the wivrn-server here...
|
||||
placeholder: |
|
||||
Add the output of the wivrn-server here.
|
||||
If more than a few lines, prefer file attachment.
|
||||
|
||||
- type: dropdown
|
||||
id: gpu
|
||||
@@ -64,7 +80,7 @@ body:
|
||||
attributes:
|
||||
label: Vulkan Info
|
||||
description: Provide the output of `vulkaninfo --summary` command.
|
||||
placeholder: Add the output of vulkaninfo command here...
|
||||
placeholder: Attach the output as a file here.
|
||||
|
||||
- type: dropdown
|
||||
id: hmd
|
||||
@@ -90,4 +106,4 @@ body:
|
||||
attributes:
|
||||
label: ADB Logs
|
||||
description: Provide the output of `adb logcat` command.
|
||||
placeholder: Add the output of adb logcat command here...
|
||||
placeholder: Attach the output of adb logcat as a file.
|
||||
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: >
|
||||
sudo apt-get update && sudo apt-get install libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev libboost-all-dev librsvg2-bin libssl-dev libnotify-dev librsvg2-dev
|
||||
sudo apt-get update && sudo apt-get install libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev libboost-all-dev librsvg2-bin libssl-dev libnotify-dev librsvg2-dev libarchive-dev
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
with:
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: >
|
||||
apt-get update && apt-get install --yes libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin libssl-dev libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git qcoro-qt6-dev librsvg2-dev
|
||||
apt-get update && apt-get install --yes libvulkan-dev libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin libssl-dev libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git qcoro-qt6-dev librsvg2-dev libarchive-dev
|
||||
# runtime: qml6-module-qtqml-workerscript qml6-module-qtquick-dialogs
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
@@ -192,7 +192,7 @@ jobs:
|
||||
|
||||
- name: install server dependencies
|
||||
run: >
|
||||
sudo apt-get update && sudo apt-get install libavahi-glib-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libnotify-dev librsvg2-dev
|
||||
sudo apt-get update && sudo apt-get install libavahi-glib-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libnotify-dev librsvg2-dev libarchive-dev
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
@@ -467,7 +467,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt update
|
||||
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev
|
||||
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev libcap-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
@@ -9,10 +9,14 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install gettext qt6-base-dev qt6-tools-dev qt6-l10n-tools qtchooser python3-polib
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install gettext
|
||||
pip install polib PyGithub
|
||||
|
||||
- name: Check that .po files are up to date
|
||||
run: |
|
||||
qtchooser -install qt6 $(which qmake6)
|
||||
export QT_SELECT=qt6
|
||||
tools/check_messages.sh
|
||||
if [[ "${{github.ref}}" == 'refs/heads/master' ]] ; then
|
||||
tools/check_po.py --manage-issues --github-repository "${{ github.repository }}" --github-token "${{ github.token }}"
|
||||
else
|
||||
tools/check_po.py
|
||||
fi
|
||||
|
||||
+2
-1
@@ -185,7 +185,8 @@ endif()
|
||||
|
||||
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
|
||||
pkg_check_modules(librsvg-2.0 REQUIRED IMPORTED_TARGET librsvg-2.0)
|
||||
find_package(PNG)
|
||||
find_package(LibArchive REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
endif()
|
||||
|
||||
if (WIVRN_BUILD_DASHBOARD)
|
||||
|
||||
@@ -214,6 +214,9 @@ configuration::configuration(xr::system & system)
|
||||
if (auto val = root["resolution_scale"]; val.is_double())
|
||||
resolution_scale = val.get_double();
|
||||
|
||||
if (auto val = root["enable_stream_gui"]; val.is_bool())
|
||||
enable_stream_gui = val.get_bool();
|
||||
|
||||
if (auto val = root["sgsr"]; val.is_object())
|
||||
parse_sgsr_options(val.get_object());
|
||||
|
||||
@@ -365,6 +368,7 @@ void configuration::save()
|
||||
json << ",\"mic_unprocessed_audio\":" << std::boolalpha << mic_unprocessed_audio;
|
||||
json << ",\"fb_lower_body\":" << std::boolalpha << fb_lower_body;
|
||||
json << ",\"fb_hip\":" << std::boolalpha << fb_hip;
|
||||
json << ",\"enable_stream_gui\":" << std::boolalpha << enable_stream_gui;
|
||||
for (auto & [key, value]: features)
|
||||
json << "," << key << ":" << std::boolalpha << value;
|
||||
json << ",\"virtual_keyboard_layout\":" << json_string(virtual_keyboard_layout);
|
||||
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
bool fb_lower_body = false;
|
||||
bool fb_hip = true;
|
||||
|
||||
bool enable_stream_gui = true;
|
||||
|
||||
// Snapdragon Game Super Resolution
|
||||
struct sgsr_settings
|
||||
{
|
||||
|
||||
+118
-83
@@ -383,9 +383,18 @@ void scenes::lobby::connect(const configuration::server_data & data)
|
||||
data.manual);
|
||||
}
|
||||
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(const std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & joints)
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints)
|
||||
{
|
||||
const auto & palm = joints[XR_HAND_JOINT_PALM_EXT].first;
|
||||
if (recentering_context and std::get<0>(*recentering_context) != space)
|
||||
return std::nullopt;
|
||||
|
||||
if (not joints)
|
||||
{
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
const auto & palm = (*joints)[XR_HAND_JOINT_PALM_EXT].first;
|
||||
const auto & o = palm.pose.orientation;
|
||||
const auto & p = palm.pose.position;
|
||||
glm::quat q{o.w, o.x, o.y, o.z};
|
||||
@@ -393,102 +402,130 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_gesture(const std::array<
|
||||
|
||||
if (glm::dot(q * glm::vec3(0, 1, 0), glm::vec3(0, -1, 0)) > constants::lobby::recenter_cosangle_min)
|
||||
{
|
||||
recentering_context.emplace(space, glm::vec3{}, 0);
|
||||
return v + glm::vec3(0, constants::lobby::recenter_distance_up, 0) + q * glm::vec3(0, 0, -constants::lobby::recenter_distance_front);
|
||||
}
|
||||
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_action(XrTime predicted_display_time, glm::vec3 head_position)
|
||||
{
|
||||
std::optional<std::pair<glm::vec3, glm::quat>> aim;
|
||||
glm::vec3 offset_position;
|
||||
glm::quat offset_orientation;
|
||||
xr::spaces controller;
|
||||
glm::vec3 recenter_position;
|
||||
float recenter_distance;
|
||||
|
||||
if (application::read_action_bool(recenter_left_action).value_or(std::pair{0, false}).second)
|
||||
if (recentering_context)
|
||||
{
|
||||
aim = application::locate_controller(application::space(xr::spaces::aim_left), application::space(xr::spaces::world), predicted_display_time);
|
||||
std::tie(offset_position, offset_orientation) = input->offset[xr::spaces::aim_left];
|
||||
}
|
||||
|
||||
if (application::read_action_bool(recenter_right_action).value_or(std::pair{0, false}).second)
|
||||
{
|
||||
aim = application::locate_controller(application::space(xr::spaces::aim_right), application::space(xr::spaces::world), predicted_display_time);
|
||||
std::tie(offset_position, offset_orientation) = input->offset[xr::spaces::aim_right];
|
||||
}
|
||||
|
||||
if (aim)
|
||||
{
|
||||
// Handle controller offset
|
||||
aim->first = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
|
||||
aim->second = aim->second * offset_orientation;
|
||||
|
||||
if (not gui_recenter_position or not gui_recenter_distance)
|
||||
controller = std::get<0>(*recentering_context);
|
||||
bool state;
|
||||
switch (controller)
|
||||
{
|
||||
// First frame where the recenter action is active
|
||||
imgui_context::controller_state state{
|
||||
.active = true,
|
||||
.aim_position = aim->first,
|
||||
.aim_orientation = aim->second,
|
||||
};
|
||||
case xr::spaces::aim_left:
|
||||
state = application::read_action_bool(recenter_left_action).value_or(std::pair{0, false}).second;
|
||||
break;
|
||||
|
||||
imgui_ctx->compute_pointer_position(state);
|
||||
case xr::spaces::aim_right:
|
||||
state = application::read_action_bool(recenter_right_action).value_or(std::pair{0, false}).second;
|
||||
break;
|
||||
|
||||
if (state.pointer_position) // TODO: check that the pointer is inside an imgui window
|
||||
{
|
||||
auto M = glm::mat3_cast(imgui_ctx->layers()[0].orientation);
|
||||
default:
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
// Pointer position in world
|
||||
glm::vec3 world_pointer_position = imgui_ctx->rw_from_vp(*state.pointer_position);
|
||||
if (not state)
|
||||
{
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
}
|
||||
else if (auto state = application::read_action_bool(recenter_left_action); state and state->second)
|
||||
controller = xr::spaces::aim_left;
|
||||
else if (auto state = application::read_action_bool(recenter_right_action); state and state->second)
|
||||
controller = xr::spaces::aim_right;
|
||||
else
|
||||
return std::nullopt;
|
||||
|
||||
// Pointer position in GUI
|
||||
gui_recenter_position = glm::transpose(M) * (world_pointer_position - imgui_ctx->layers()[0].position);
|
||||
gui_recenter_distance = glm::length(state.aim_position - world_pointer_position);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_recenter_position = glm::vec3(0, 0, 0);
|
||||
gui_recenter_distance = constants::lobby::recenter_action_distance;
|
||||
}
|
||||
auto aim = application::locate_controller(application::space(controller), application::space(xr::spaces::world), predicted_display_time);
|
||||
|
||||
if (not aim)
|
||||
{
|
||||
// The controller cannot be located
|
||||
recentering_context.reset();
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
// Handle controller offset
|
||||
auto [offset_position, offset_orientation] = input->offset[controller];
|
||||
aim->first = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
|
||||
aim->second = aim->second * offset_orientation;
|
||||
|
||||
if (not recentering_context)
|
||||
{
|
||||
// First frame of recentering
|
||||
imgui_context::controller_state state{
|
||||
.active = true,
|
||||
.aim_position = aim->first,
|
||||
.aim_orientation = aim->second,
|
||||
};
|
||||
|
||||
imgui_ctx->compute_pointer_position(state);
|
||||
|
||||
if (state.pointer_position) // TODO: check that the pointer is inside an imgui window
|
||||
{
|
||||
auto M = glm::mat3_cast(imgui_ctx->layers()[0].orientation);
|
||||
|
||||
// Pointer position in world
|
||||
glm::vec3 world_pointer_position = imgui_ctx->rw_from_vp(*state.pointer_position);
|
||||
|
||||
// Pointer position in GUI
|
||||
recenter_position = glm::transpose(M) * (world_pointer_position - imgui_ctx->layers()[0].position);
|
||||
recenter_distance = glm::length(state.aim_position - world_pointer_position);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Subsequent frames: find the GUI position that gives the correct world pointer position
|
||||
glm::vec3 controller_direction = -glm::column(glm::mat3_cast(aim->second), 2);
|
||||
glm::vec3 wanted_world_pointer_position = aim->first + controller_direction * *gui_recenter_distance;
|
||||
|
||||
// I'm sure there's an analytical solution but I can't be bothered to write it so
|
||||
// let's use a gradient descent instead
|
||||
auto f = [&](glm::vec3 new_gui_position) {
|
||||
auto q = compute_gui_orientation(head_position, new_gui_position);
|
||||
auto M = glm::mat3_cast(q); // plane-to-world transform
|
||||
|
||||
glm::vec3 world_pointer_position = new_gui_position + M * *gui_recenter_position;
|
||||
|
||||
return world_pointer_position - wanted_world_pointer_position;
|
||||
};
|
||||
|
||||
// One step is usually enough, the solution will continuously improve in the next frames
|
||||
glm::vec3 gui_position = imgui_ctx->layers()[0].position;
|
||||
float eps = 0.01;
|
||||
glm::vec3 obj = f(gui_position);
|
||||
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
|
||||
|
||||
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
|
||||
|
||||
gui_position -= glm::inverse(jacobian) * obj;
|
||||
|
||||
return gui_position;
|
||||
// Use the center of the GUI if the controller points outside of the GUI
|
||||
recenter_position = glm::vec3(0, 0, 0);
|
||||
recenter_distance = constants::lobby::recenter_action_distance;
|
||||
}
|
||||
|
||||
recentering_context.emplace(controller, recenter_position, recenter_distance);
|
||||
return std::nullopt;
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_recenter_position.reset();
|
||||
}
|
||||
// Subsequent frames: find the GUI position that gives the correct world pointer position
|
||||
std::tie(controller, recenter_position, recenter_distance) = *recentering_context;
|
||||
|
||||
return std::nullopt;
|
||||
glm::vec3 controller_direction = -glm::column(glm::mat3_cast(aim->second), 2);
|
||||
glm::vec3 wanted_world_pointer_position = aim->first + controller_direction * recenter_distance;
|
||||
|
||||
// I'm sure there's an analytical solution but I can't be bothered to write it so
|
||||
// let's use a gradient descent instead
|
||||
auto f = [&](glm::vec3 new_gui_position) {
|
||||
auto q = compute_gui_orientation(head_position, new_gui_position);
|
||||
auto M = glm::mat3_cast(q); // plane-to-world transform
|
||||
|
||||
glm::vec3 world_pointer_position = new_gui_position + M * recenter_position;
|
||||
|
||||
return world_pointer_position - wanted_world_pointer_position;
|
||||
};
|
||||
|
||||
// One step is usually enough, the solution will continuously improve in the next frames
|
||||
glm::vec3 gui_position = imgui_ctx->layers()[0].position;
|
||||
float eps = 0.01;
|
||||
glm::vec3 obj = f(gui_position);
|
||||
glm::vec3 obj_dx = (f(gui_position + glm::vec3(eps, 0, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dy = (f(gui_position + glm::vec3(0, eps, 0)) - obj) / eps;
|
||||
glm::vec3 obj_dz = (f(gui_position + glm::vec3(0, 0, eps)) - obj) / eps;
|
||||
|
||||
glm::mat3 jacobian{obj_dx, obj_dy, obj_dz};
|
||||
|
||||
gui_position -= glm::inverse(jacobian) * obj;
|
||||
|
||||
return gui_position;
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<glm::vec3> scenes::lobby::check_recenter_gui(glm::vec3 head_position, glm::quat head_orientation)
|
||||
@@ -620,18 +657,16 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
hand_model::apply(world, left, right);
|
||||
|
||||
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
{
|
||||
hide_left_controller = true;
|
||||
if (!new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(*left);
|
||||
}
|
||||
|
||||
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
|
||||
{
|
||||
hide_right_controller = true;
|
||||
if (!new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(*right);
|
||||
}
|
||||
|
||||
if (not new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_left, left);
|
||||
|
||||
if (not new_gui_position)
|
||||
new_gui_position = check_recenter_gesture(xr::spaces::palm_right, right);
|
||||
}
|
||||
|
||||
if (head_position && new_gui_position)
|
||||
|
||||
@@ -95,8 +95,10 @@ class lobby : public scene_impl<lobby>
|
||||
|
||||
XrAction recenter_left_action = XR_NULL_HANDLE;
|
||||
XrAction recenter_right_action = XR_NULL_HANDLE;
|
||||
std::optional<glm::vec3> gui_recenter_position;
|
||||
std::optional<float> gui_recenter_distance;
|
||||
// std::optional<glm::vec3> gui_recenter_position;
|
||||
// std::optional<float> gui_recenter_distance;
|
||||
// Which controller is used for recentering, position of the pointed point in the GUI, in GUI axes, and distance between the controller and the pointed point during recentering
|
||||
std::optional<std::tuple<xr::spaces, glm::vec3, float>> recentering_context;
|
||||
bool recenter_gui = true;
|
||||
void move_gui(glm::vec3 head_position, glm::vec3 new_gui_position);
|
||||
|
||||
@@ -121,7 +123,7 @@ class lobby : public scene_impl<lobby>
|
||||
ImTextureID about_picture;
|
||||
ImTextureID default_icon;
|
||||
std::unordered_map<std::string, ImTextureID> app_icons;
|
||||
XrTime timestamp_start_application{};
|
||||
std::optional<XrTime> timestamp_start_application;
|
||||
|
||||
virtual_keyboard keyboard;
|
||||
|
||||
@@ -154,7 +156,7 @@ class lobby : public scene_impl<lobby>
|
||||
void connect(const configuration::server_data & data);
|
||||
std::unique_ptr<wivrn_session> connect_to_session(wivrn_discover::service service, bool manual_connection);
|
||||
|
||||
std::optional<glm::vec3> check_recenter_gesture(const std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & joints);
|
||||
std::optional<glm::vec3> check_recenter_gesture(xr::spaces space, const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & joints);
|
||||
std::optional<glm::vec3> check_recenter_action(XrTime predicted_display_time, glm::vec3 head_position);
|
||||
std::optional<glm::vec3> check_recenter_gui(glm::vec3 head_position, glm::quat head_orientation);
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ void scenes::lobby::gui_connecting(locked_notifiable<pin_request_data> & pin_req
|
||||
if (next_scene)
|
||||
{
|
||||
current_tab = tab::connected;
|
||||
timestamp_start_application = 0;
|
||||
timestamp_start_application.reset();
|
||||
ImGui::CloseCurrentPopup();
|
||||
return;
|
||||
}
|
||||
@@ -408,7 +408,7 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
|
||||
}
|
||||
else
|
||||
{
|
||||
bool app_starting = predicted_display_time - timestamp_start_application < 10'000'000'000;
|
||||
bool app_starting = timestamp_start_application and (predicted_display_time - *timestamp_start_application < 10'000'000'000);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
|
||||
ImGui::BeginDisabled(app_starting);
|
||||
@@ -462,7 +462,7 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
|
||||
}();
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, 0);
|
||||
if (icon(app.name + "##" + app.id, texture, {256, 256}, 0, {icon_width, 0}))
|
||||
if (icon(app.name + "##" + app.id, texture, {256, 256}, ImGuiButtonFlags_PressedOnClickRelease, {icon_width, 0}))
|
||||
{
|
||||
timestamp_start_application = predicted_display_time;
|
||||
next_scene->start_application(app.id);
|
||||
@@ -990,6 +990,13 @@ void scenes::lobby::gui_settings()
|
||||
imgui_ctx->tooltip(_("This feature is not supported by your headset"));
|
||||
ImGui::EndDisabled();
|
||||
|
||||
{
|
||||
ImGui::Checkbox(_S("Enable in-stream window"), &config.enable_stream_gui);
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Enables the configuration window to be shown while the game is streaming.\nIf enabled, the window is activated by pressing both thumbsticks."));
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
|
||||
}
|
||||
|
||||
|
||||
@@ -465,8 +465,11 @@ void scenes::stream::on_focused()
|
||||
swapchain_imgui,
|
||||
std::vector{vp});
|
||||
|
||||
plots_toggle_1 = get_action("plots_toggle_1").first;
|
||||
plots_toggle_2 = get_action("plots_toggle_2").first;
|
||||
if (application::get_config().enable_stream_gui)
|
||||
{
|
||||
plots_toggle_1 = get_action("plots_toggle_1").first;
|
||||
plots_toggle_2 = get_action("plots_toggle_2").first;
|
||||
}
|
||||
recenter_left = get_action("recenter_left").first;
|
||||
recenter_right = get_action("recenter_right").first;
|
||||
foveation_pitch = get_action("foveation_pitch").first;
|
||||
|
||||
@@ -615,6 +615,8 @@ static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
|
||||
|
||||
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
|
||||
{
|
||||
if (not(plots_toggle_1 and plots_toggle_2))
|
||||
return;
|
||||
bool interactable = true;
|
||||
XrSpace world_space = application::space(xr::spaces::world);
|
||||
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
|
||||
|
||||
@@ -13,6 +13,7 @@ execute_process(
|
||||
|
||||
if (GIT_DESC)
|
||||
string(STRIP ${GIT_DESC} GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
message(STATUS "Setting version to ${GIT_DESC} from git")
|
||||
else()
|
||||
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
||||
|
||||
@@ -7,6 +7,7 @@ else()
|
||||
endif()
|
||||
|
||||
if (GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
configure_file(version.cpp.in version.cpp)
|
||||
else ()
|
||||
add_custom_target(wivrn-version ALL
|
||||
@@ -50,7 +51,7 @@ if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
|
||||
utils/ini.cpp
|
||||
application.cpp
|
||||
)
|
||||
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 PUBLIC wivrn-common-base)
|
||||
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive PUBLIC wivrn-common-base)
|
||||
|
||||
if (WIVRN_BUILD_TEST)
|
||||
add_executable(list-apps
|
||||
|
||||
@@ -84,7 +84,7 @@ steam_app_info read_steam_app_info(const std::filesystem::path & root)
|
||||
return {};
|
||||
}
|
||||
|
||||
std::filesystem::path find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
|
||||
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
|
||||
{
|
||||
const auto & app_info = info.get(app_id);
|
||||
|
||||
@@ -102,7 +102,7 @@ std::filesystem::path find_steam_icon(const std::filesystem::path & root, int ap
|
||||
|
||||
try
|
||||
{
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.LinuxClientIcon"))};
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.linuxclienticon"))};
|
||||
|
||||
auto icon_path = root / "steam/games" / (icon + ".zip");
|
||||
|
||||
@@ -113,7 +113,7 @@ std::filesystem::path find_steam_icon(const std::filesystem::path & root, int ap
|
||||
{
|
||||
}
|
||||
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
|
||||
+351
-300
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "load_icon.h"
|
||||
|
||||
#include <archive.h>
|
||||
#include <archive_entry.h>
|
||||
#include <cairo.h>
|
||||
#include <fstream>
|
||||
#include <librsvg/rsvg.h>
|
||||
@@ -126,10 +128,7 @@ std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size
|
||||
};
|
||||
|
||||
if (!rsvg_handle_render_document(handle.get(), cr.get(), &viewport, &error))
|
||||
{
|
||||
g_printerr("could not render: %s", error->message);
|
||||
return {};
|
||||
}
|
||||
throw std::runtime_error{std::string{"Could not render: "} + error->message};
|
||||
|
||||
// Write a PNG file
|
||||
std::vector<std::byte> png;
|
||||
@@ -143,11 +142,8 @@ std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
};
|
||||
|
||||
if (cairo_surface_write_to_png_stream(surface.get(), cb, &png) != CAIRO_STATUS_SUCCESS)
|
||||
{
|
||||
g_printerr("could not write output file");
|
||||
return {};
|
||||
}
|
||||
if (auto status = cairo_surface_write_to_png_stream(surface.get(), cb, &png); status != CAIRO_STATUS_SUCCESS)
|
||||
throw std::runtime_error{std::string{"Could not write output: "} + cairo_status_to_string(status)};
|
||||
|
||||
return png;
|
||||
}
|
||||
@@ -201,352 +197,407 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
|
||||
{
|
||||
const uint32_t ICO_PNG_MAGIC = 0x474e5089;
|
||||
|
||||
try
|
||||
auto ico = load_file(filename);
|
||||
|
||||
std::span header{ico};
|
||||
|
||||
auto reserved = read<uint16_t>(header);
|
||||
auto resource_type = read<uint16_t>(header);
|
||||
auto icon_count = read<uint16_t>(header);
|
||||
|
||||
if (reserved != 0 or resource_type != 1)
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
|
||||
std::vector<ico_file_entry> entries;
|
||||
int max_bpp = 0;
|
||||
|
||||
for (int i = 0; i < icon_count; i++)
|
||||
{
|
||||
auto ico = load_file(filename);
|
||||
ico_file_entry entry;
|
||||
entry.width = read<uint8_t>(header);
|
||||
entry.height = read<uint8_t>(header);
|
||||
auto num_colors = read<uint8_t>(header);
|
||||
auto reserved = read<uint8_t>(header); // reserved
|
||||
auto planes = read<uint16_t>(header);
|
||||
entry.bpp = read<uint16_t>(header);
|
||||
auto size = read<uint32_t>(header);
|
||||
auto offset = read<uint32_t>(header);
|
||||
|
||||
std::span header{ico};
|
||||
if (offset + size > ico.size())
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
|
||||
auto reserved = read<uint16_t>(header);
|
||||
auto resource_type = read<uint16_t>(header);
|
||||
auto icon_count = read<uint16_t>(header);
|
||||
entry.data = std::span{ico}.subspan(offset, size);
|
||||
if (entry.width == 0)
|
||||
entry.width = 256;
|
||||
if (entry.height == 0)
|
||||
entry.height = 256;
|
||||
if (reserved != 0)
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
if (planes != 0 and planes != 1)
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
|
||||
if (reserved != 0 or resource_type != 1)
|
||||
return {};
|
||||
entries.push_back(entry);
|
||||
|
||||
std::vector<ico_file_entry> entries;
|
||||
int max_bpp = 0;
|
||||
max_bpp = std::max(max_bpp, entry.bpp);
|
||||
}
|
||||
|
||||
for (int i = 0; i < icon_count; i++)
|
||||
const ico_file_entry * best_entry = index >= 0 ? &entries.at(index) : [&]() {
|
||||
const ico_file_entry * best_entry = nullptr;
|
||||
|
||||
// Look for the smallest multiple of the requested size
|
||||
int criterion = std::numeric_limits<int>::max();
|
||||
|
||||
for (const auto & entry: entries)
|
||||
{
|
||||
ico_file_entry entry;
|
||||
entry.width = read<uint8_t>(header);
|
||||
entry.height = read<uint8_t>(header);
|
||||
auto num_colors = read<uint8_t>(header);
|
||||
auto reserved = read<uint8_t>(header); // reserved
|
||||
auto planes = read<uint16_t>(header);
|
||||
entry.bpp = read<uint16_t>(header);
|
||||
auto size = read<uint32_t>(header);
|
||||
auto offset = read<uint32_t>(header);
|
||||
if (entry.bpp != max_bpp)
|
||||
continue;
|
||||
|
||||
if (offset + size > ico.size())
|
||||
return {};
|
||||
if (entry.width % size != 0 or entry.height % size != 0)
|
||||
continue;
|
||||
|
||||
entry.data = std::span{ico}.subspan(offset, size);
|
||||
if (entry.width == 0)
|
||||
entry.width = 256;
|
||||
if (entry.height == 0)
|
||||
entry.height = 256;
|
||||
if (reserved != 0)
|
||||
return {};
|
||||
if (planes != 0 and planes != 1)
|
||||
return {};
|
||||
|
||||
entries.push_back(entry);
|
||||
|
||||
max_bpp = std::max(max_bpp, entry.bpp);
|
||||
if (std::min(entry.width, entry.height) / size < criterion)
|
||||
{
|
||||
criterion = std::min(entry.width, entry.height);
|
||||
best_entry = &entry;
|
||||
}
|
||||
}
|
||||
|
||||
const ico_file_entry * best_entry = index >= 0 ? &entries.at(index) : [&]() {
|
||||
const ico_file_entry * best_entry = nullptr;
|
||||
|
||||
// Look for the smallest multiple of the requested size
|
||||
int criterion = std::numeric_limits<int>::max();
|
||||
|
||||
for (const auto & entry: entries)
|
||||
{
|
||||
if (entry.bpp != max_bpp)
|
||||
continue;
|
||||
|
||||
if (entry.width % size != 0 or entry.height % size != 0)
|
||||
continue;
|
||||
|
||||
if (std::min(entry.width, entry.height) / size < criterion)
|
||||
{
|
||||
criterion = std::min(entry.width, entry.height);
|
||||
best_entry = &entry;
|
||||
}
|
||||
}
|
||||
if (best_entry)
|
||||
return best_entry;
|
||||
|
||||
// No multiple found: pick the largest icon
|
||||
criterion = 0;
|
||||
|
||||
for (const auto & entry: entries)
|
||||
{
|
||||
if (entry.bpp != max_bpp)
|
||||
continue;
|
||||
|
||||
if (entry.width * entry.height > criterion)
|
||||
{
|
||||
criterion = entry.width * entry.height;
|
||||
best_entry = &entry;
|
||||
}
|
||||
}
|
||||
if (best_entry)
|
||||
return best_entry;
|
||||
}();
|
||||
|
||||
if (not best_entry)
|
||||
// No multiple found: pick the largest icon
|
||||
criterion = 0;
|
||||
|
||||
for (const auto & entry: entries)
|
||||
{
|
||||
if (entry.bpp != max_bpp)
|
||||
continue;
|
||||
|
||||
if (entry.width * entry.height > criterion)
|
||||
{
|
||||
criterion = entry.width * entry.height;
|
||||
best_entry = &entry;
|
||||
}
|
||||
}
|
||||
return best_entry;
|
||||
}();
|
||||
|
||||
if (not best_entry)
|
||||
return {};
|
||||
|
||||
auto data = best_entry->data;
|
||||
auto magic = read<uint32_t>(data);
|
||||
|
||||
if (magic == ICO_PNG_MAGIC)
|
||||
{
|
||||
// PNG file
|
||||
std::vector<std::byte> png_data;
|
||||
|
||||
// The PNG magic has already been consumed, put it back
|
||||
png_data.insert(png_data.end(), data.begin() - 4, data.end());
|
||||
|
||||
// Check if the PNG is valid
|
||||
std::vector<uint8_t> pixels;
|
||||
png_image png_ref{
|
||||
.version = PNG_IMAGE_VERSION,
|
||||
.format = PNG_FORMAT_BGRA,
|
||||
};
|
||||
if (not png_image_begin_read_from_memory(&png_ref, png_data.data(), png_data.size()))
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
|
||||
pixels.resize(PNG_IMAGE_SIZE(png_ref));
|
||||
|
||||
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
|
||||
{
|
||||
png_image_free(&png_ref);
|
||||
throw std::runtime_error{"Cannot read icon: " + filename.native()};
|
||||
}
|
||||
png_image_free(&png_ref);
|
||||
|
||||
return png_data;
|
||||
}
|
||||
else if (magic == 40)
|
||||
{
|
||||
auto width = read<uint32_t>(data); // Width of image in pixels
|
||||
auto height = read<uint32_t>(data); // Height of image in pixels
|
||||
auto planes = read<uint16_t>(data); // Must be 1
|
||||
auto bpp = read<uint16_t>(data); // 1, 4, 8, 16, 24, 32
|
||||
auto compression = read<uint32_t>(data); // Must be 0 for icons
|
||||
auto image_size = read<uint32_t>(data); // Size of image (without this header)
|
||||
auto x_res = read<uint32_t>(data);
|
||||
auto y_res = read<uint32_t>(data);
|
||||
auto used_colors = read<uint32_t>(data);
|
||||
auto important_colors = read<uint32_t>(data);
|
||||
|
||||
if (planes != 1 or compression != 0)
|
||||
return {};
|
||||
|
||||
auto data = best_entry->data;
|
||||
auto magic = read<uint32_t>(data);
|
||||
if (bpp != 1 and
|
||||
bpp != 4 and
|
||||
bpp != 8 and
|
||||
bpp != 16 and
|
||||
bpp != 24 and
|
||||
bpp != 32)
|
||||
return {};
|
||||
|
||||
if (magic == ICO_PNG_MAGIC)
|
||||
auto w = width;
|
||||
auto h = height / 2;
|
||||
|
||||
std::span<uint8_t> palette; // BGRX
|
||||
|
||||
if (bpp <= 16)
|
||||
{
|
||||
// PNG file
|
||||
std::vector<std::byte> png_data;
|
||||
// Load the palette
|
||||
if (used_colors == 0)
|
||||
used_colors = 1 << bpp;
|
||||
|
||||
// The PNG magic has already been consumed, put it back
|
||||
png_data.insert(png_data.end(), data.begin() - 4, data.end());
|
||||
|
||||
// Check if the PNG is valid
|
||||
std::vector<uint8_t> pixels;
|
||||
png_image png_ref{
|
||||
.version = PNG_IMAGE_VERSION,
|
||||
.format = PNG_FORMAT_BGRA,
|
||||
};
|
||||
if (not png_image_begin_read_from_memory(&png_ref, png_data.data(), png_data.size()))
|
||||
return {};
|
||||
|
||||
pixels.resize(PNG_IMAGE_SIZE(png_ref));
|
||||
|
||||
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
|
||||
{
|
||||
png_image_free(&png_ref);
|
||||
return {};
|
||||
}
|
||||
png_image_free(&png_ref);
|
||||
|
||||
return png_data;
|
||||
palette = read<uint8_t>(data, used_colors * 4);
|
||||
}
|
||||
else if (magic == 40)
|
||||
|
||||
size_t xor_stride = rowstride(w, bpp);
|
||||
size_t and_stride = rowstride(w, 1);
|
||||
size_t dst_stride = 4 * w;
|
||||
|
||||
std::span<uint8_t> xor_map = read<uint8_t>(data, xor_stride * h);
|
||||
std::span<uint8_t> and_map = read<uint8_t>(data, and_stride * h);
|
||||
|
||||
std::vector<uint8_t> dest_buffer;
|
||||
dest_buffer.resize(h * dst_stride);
|
||||
|
||||
switch (bpp)
|
||||
{
|
||||
auto width = read<uint32_t>(data); // Width of image in pixels
|
||||
auto height = read<uint32_t>(data); // Height of image in pixels
|
||||
auto planes = read<uint16_t>(data); // Must be 1
|
||||
auto bpp = read<uint16_t>(data); // 1, 4, 8, 16, 24, 32
|
||||
auto compression = read<uint32_t>(data); // Must be 0 for icons
|
||||
auto image_size = read<uint32_t>(data); // Size of image (without this header)
|
||||
auto x_res = read<uint32_t>(data);
|
||||
auto y_res = read<uint32_t>(data);
|
||||
auto used_colors = read<uint32_t>(data);
|
||||
auto important_colors = read<uint32_t>(data);
|
||||
case 1:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
if (planes != 1 or compression != 0)
|
||||
return {};
|
||||
|
||||
if (bpp != 1 and
|
||||
bpp != 4 and
|
||||
bpp != 8 and
|
||||
bpp != 16 and
|
||||
bpp != 24 and
|
||||
bpp != 32)
|
||||
return {};
|
||||
|
||||
auto w = width;
|
||||
auto h = height / 2;
|
||||
|
||||
std::span<uint8_t> palette; // BGRX
|
||||
|
||||
if (bpp <= 16)
|
||||
{
|
||||
// Load the palette
|
||||
if (used_colors == 0)
|
||||
used_colors = 1 << bpp;
|
||||
|
||||
palette = read<uint8_t>(data, used_colors * 4);
|
||||
}
|
||||
|
||||
size_t xor_stride = rowstride(w, bpp);
|
||||
size_t and_stride = rowstride(w, 1);
|
||||
size_t dst_stride = 4 * w;
|
||||
|
||||
std::span<uint8_t> xor_map = read<uint8_t>(data, xor_stride * h);
|
||||
std::span<uint8_t> and_map = read<uint8_t>(data, and_stride * h);
|
||||
|
||||
std::vector<uint8_t> dest_buffer;
|
||||
dest_buffer.resize(h * dst_stride);
|
||||
|
||||
switch (bpp)
|
||||
{
|
||||
case 1:
|
||||
for (int y = 0; y < h; y++)
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
int colour = (src_xor_row[x / 8] >> (7 - (x % 8))) & 0x1;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
int colour = (src_xor_row[x / 8] >> (7 - (x % 8))) & 0x1;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 4:
|
||||
for (int y = 0; y < h; y++)
|
||||
case 4:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
int colour = (src_xor_row[x / 2] >> (4 - 4 * (x % 2))) & 0xf;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
int colour = (src_xor_row[x / 2] >> (4 - 4 * (x % 2))) & 0xf;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 8:
|
||||
for (int y = 0; y < h; y++)
|
||||
case 8:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
int colour = *src_xor_row++;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
int colour = *src_xor_row++;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 16:
|
||||
for (int y = 0; y < h; y++)
|
||||
case 16:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
int colour = (src_xor_row[1] << 8) | src_xor_row[0];
|
||||
src_xor_row += 2;
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
int colour = (src_xor_row[1] << 8) | src_xor_row[0];
|
||||
src_xor_row += 2;
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
|
||||
if (colour >= used_colors)
|
||||
return {};
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
|
||||
uint8_t b = palette[4 * colour + 0]; // Blue
|
||||
uint8_t g = palette[4 * colour + 1]; // Green
|
||||
uint8_t r = palette[4 * colour + 2]; // Red
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 24:
|
||||
for (int y = 0; y < h; y++)
|
||||
case 24:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
|
||||
uint8_t * src_and_row = and_map.data() + and_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
uint8_t b = *src_xor_row++; // Blue
|
||||
uint8_t g = *src_xor_row++; // Green
|
||||
uint8_t r = *src_xor_row++; // Red
|
||||
|
||||
for (int x = 0, i = 0; x < w; x++)
|
||||
{
|
||||
uint8_t b = *src_xor_row++; // Blue
|
||||
uint8_t g = *src_xor_row++; // Green
|
||||
uint8_t r = *src_xor_row++; // Red
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
// Get alpha from AND mask (0: opaque => 0xff, 1: transparent => 0)
|
||||
uint8_t a = src_and_row[x / 8] & (1 << (7 - x % 8)) ? 0 : 0xff;
|
||||
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
*dst_row++ = b;
|
||||
*dst_row++ = g;
|
||||
*dst_row++ = r;
|
||||
*dst_row++ = a;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 32:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = (uint8_t *)xor_map.data() + xor_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
case 32:
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
uint8_t * src_xor_row = (uint8_t *)xor_map.data() + xor_stride * y;
|
||||
uint8_t * dst_row = dest_buffer.data() + dst_stride * (h - 1 - y);
|
||||
|
||||
memcpy(dst_row, src_xor_row, dst_stride);
|
||||
}
|
||||
break;
|
||||
}
|
||||
memcpy(dst_row, src_xor_row, dst_stride);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
png_image png{
|
||||
.version = PNG_IMAGE_VERSION,
|
||||
.width = w,
|
||||
.height = h,
|
||||
.format = PNG_FORMAT_BGRA,
|
||||
};
|
||||
png_image png{
|
||||
.version = PNG_IMAGE_VERSION,
|
||||
.width = w,
|
||||
.height = h,
|
||||
.format = PNG_FORMAT_BGRA,
|
||||
};
|
||||
|
||||
std::vector<std::byte> png_data{65536};
|
||||
png_alloc_size_t png_size = png_data.size();
|
||||
std::vector<std::byte> png_data{65536};
|
||||
png_alloc_size_t png_size = png_data.size();
|
||||
png_image_write_to_memory(&png, png_data.data(), &png_size, false /* convert_to_8_bit*/, dest_buffer.data(), w * 4, nullptr);
|
||||
|
||||
if (png_size > png_data.size())
|
||||
{
|
||||
png_data.resize(png_size);
|
||||
png_image_write_to_memory(&png, png_data.data(), &png_size, false /* convert_to_8_bit*/, dest_buffer.data(), w * 4, nullptr);
|
||||
|
||||
if (png_size > png_data.size())
|
||||
{
|
||||
png_data.resize(png_size);
|
||||
png_image_write_to_memory(&png, png_data.data(), &png_size, false /* convert_to_8_bit*/, dest_buffer.data(), w * 4, nullptr);
|
||||
}
|
||||
else
|
||||
png_data.resize(png_size);
|
||||
|
||||
return png_data;
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
else
|
||||
png_data.resize(png_size);
|
||||
|
||||
return png_data;
|
||||
}
|
||||
|
||||
return {};
|
||||
throw std::runtime_error{"Wrong magic number in " + filename.native()};
|
||||
}
|
||||
|
||||
std::vector<std::byte> load_zip(const std::filesystem::path & filename, int size)
|
||||
{
|
||||
std::unique_ptr<archive, decltype(&archive_read_free)> zip{archive_read_new(), &archive_read_free};
|
||||
|
||||
archive_read_support_filter_all(zip.get());
|
||||
archive_read_support_format_all(zip.get());
|
||||
|
||||
if (auto rc = archive_read_open_filename(zip.get(), filename.c_str(), 1'000'000); rc != ARCHIVE_OK)
|
||||
throw std::runtime_error{"Cannot open " + filename.native() + ": " + archive_error_string(zip.get())};
|
||||
|
||||
archive_entry * entry;
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
std::vector<std::byte> png;
|
||||
|
||||
while (archive_read_next_header(zip.get(), &entry) == ARCHIVE_OK)
|
||||
{
|
||||
printf("%s\n", archive_entry_pathname(entry));
|
||||
|
||||
std::vector<std::byte> buffer;
|
||||
buffer.resize(archive_entry_size(entry));
|
||||
|
||||
if (auto status = archive_read_data(zip.get(), buffer.data(), buffer.size()); status < 0)
|
||||
continue;
|
||||
|
||||
// Try reading the PNG
|
||||
std::vector<uint8_t> pixels;
|
||||
png_image png_ref{
|
||||
.version = PNG_IMAGE_VERSION,
|
||||
.format = PNG_FORMAT_BGRA,
|
||||
};
|
||||
|
||||
if (not png_image_begin_read_from_memory(&png_ref, buffer.data(), buffer.size()))
|
||||
{
|
||||
png_image_free(&png_ref);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Keep the largest icon only
|
||||
if (png_ref.width * png_ref.height < width * height)
|
||||
continue;
|
||||
|
||||
pixels.resize(PNG_IMAGE_SIZE(png_ref));
|
||||
|
||||
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
|
||||
{
|
||||
png_image_free(&png_ref);
|
||||
continue;
|
||||
}
|
||||
|
||||
// PNG read successfully: keep it until we find a better one
|
||||
width = png_ref.width;
|
||||
height = png_ref.height;
|
||||
png = std::move(buffer);
|
||||
|
||||
png_image_free(&png_ref);
|
||||
}
|
||||
|
||||
return png;
|
||||
}
|
||||
|
||||
std::unordered_map<std::filesystem::path, std::vector<std::byte>> icon_cache;
|
||||
@@ -556,7 +607,7 @@ std::unordered_map<std::filesystem::path, std::vector<std::byte>> icon_cache;
|
||||
const std::vector<std::byte> & wivrn::load_icon(const std::filesystem::path & filename, int size)
|
||||
{
|
||||
auto it = icon_cache.find(filename);
|
||||
if (it != icon_cache.end())
|
||||
if (it != icon_cache.end() and not it->second.empty())
|
||||
return it->second;
|
||||
|
||||
std::vector<std::byte> icon;
|
||||
@@ -573,7 +624,7 @@ const std::vector<std::byte> & wivrn::load_icon(const std::filesystem::path & fi
|
||||
else if (filename.extension() == ".zip")
|
||||
{
|
||||
// Steam icon (Linux)
|
||||
// TODO
|
||||
icon = load_zip(filename, size);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "steam_app_info.h"
|
||||
#include <bit>
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <span>
|
||||
@@ -89,6 +90,8 @@ void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, st
|
||||
while (type != 8)
|
||||
{
|
||||
std::string name{string_table.at(read<uint32_t>(bindata))};
|
||||
for (char & c: name)
|
||||
c = std::tolower(c);
|
||||
|
||||
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
|
||||
switch (type)
|
||||
|
||||
@@ -69,6 +69,20 @@
|
||||
<content_rating type="oars-1.1" />
|
||||
|
||||
<releases>
|
||||
<release version="25.8" date="2025-08-10">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.8</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>Add a screen to launch applications when the headset connects</li>
|
||||
<li>Add a screen with many options during stream, which can be summoned by pressing both thumbsticks</li>
|
||||
<li>Add XR_EXT_user_presence and XR_EXT_hand_interaction OpenXR extensions</li>
|
||||
<li>Fix vulkan video encode and performances issues with multiple nvenc encoders on NVIDIA GPUs</li>
|
||||
<li>Support 10-bit encoding on VAAPI for H.265 and AV1 codecs</li>
|
||||
<li>Xrizer is now the default OpenVR compatibility layer (may be overriden by distribution packages)</li>
|
||||
<li>Added Slovak and Turkish translations</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="25.6.1" date="2025-06-29">
|
||||
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.6.1</url>
|
||||
<description>
|
||||
|
||||
@@ -290,6 +290,7 @@ Kirigami.ScrollablePage {
|
||||
SelectGame {}
|
||||
|
||||
SteamLaunchOptions {
|
||||
visible: WivrnServer.steamCommand != ""
|
||||
Layout.topMargin: 2 * Kirigami.Units.largeSpacing
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
pkgs.librsvg
|
||||
pkgs.libpng
|
||||
pkgs.libarchive
|
||||
];
|
||||
|
||||
package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
|
||||
|
||||
@@ -25,7 +25,8 @@ finish-args:
|
||||
- --system-talk-name=org.freedesktop.hostname1
|
||||
# List applications from $XDG_DATA_DIRS
|
||||
- --filesystem=host-os:ro
|
||||
- --filesystem=xdg-data:ro
|
||||
- --filesystem=xdg-data/applications:ro
|
||||
- --filesystem=xdg-data/Steam:ro
|
||||
# List flatpak Steam games
|
||||
- --filesystem=~/.var/app/com.valvesoftware.Steam:ro
|
||||
# Pipewire
|
||||
|
||||
+3
-3
@@ -6,7 +6,7 @@ msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-04 15:49+0200\n"
|
||||
"PO-Revision-Date: 2025-08-02 00:41+0200\n"
|
||||
"PO-Revision-Date: 2025-08-10 17:11+0200\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language: es\n"
|
||||
@@ -470,7 +470,7 @@ msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
msgstr ""
|
||||
"Pulsa el botón de agarre o pon tu palma apuntando hacia arriba\n"
|
||||
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
|
||||
"para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2005
|
||||
@@ -591,7 +591,7 @@ msgstr "Estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:802
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Superposición de las estadísticas"
|
||||
msgstr "Superponer estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:805
|
||||
msgid "Compact view"
|
||||
|
||||
+117
-105
@@ -5,15 +5,15 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
|
||||
"PO-Revision-Date: 2025-07-30 14:47+0200\n"
|
||||
"POT-Creation-Date: 2025-08-12 13:35+0200\n"
|
||||
"PO-Revision-Date: 2025-08-12 13:37+0200\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Gtranslator 47.1\n"
|
||||
"X-Generator: Gtranslator 48.0\n"
|
||||
|
||||
#: client/scene.cpp:74
|
||||
msgid "No supported swapchain format"
|
||||
@@ -43,99 +43,99 @@ msgstr "Impossible de se connecter à {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Attente de connexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:156
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:159
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Qualité"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:161
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:812
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: client/scenes/stream_gui.cpp:814
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:195
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
msgid "Connection"
|
||||
msgstr "Connexion en cours"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:197
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Connexion à {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:227
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
msgid "PIN"
|
||||
msgstr "Code PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:249
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Entrez le code PIN affiché sur le tableau de bord"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:315
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connecté au serveur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:317
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connecté à {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur le serveur pour commencer la transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:419
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur le serveur ou depuis la liste pour commencer la "
|
||||
"transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:335
|
||||
#: client/scenes/lobby_gui.cpp:421
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur {} ou depuis la liste pour commencer la "
|
||||
"transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:383
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:394
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:403
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:411
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
msgid "TCP only"
|
||||
msgstr "TCP seulement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:432
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
msgid "Save"
|
||||
msgstr "Enregistrer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -143,32 +143,32 @@ msgstr ""
|
||||
"Démarrez un serveur WiVRn sur\n"
|
||||
"le réseau local"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:517
|
||||
#: client/scenes/lobby_gui.cpp:678
|
||||
msgid "Autoconnect"
|
||||
msgstr "Autoconnexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:543
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
msgid "Connect"
|
||||
msgstr "Connexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Version du serveur incompatible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:716
|
||||
msgid "Server not available"
|
||||
msgstr "Serveur non disponible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:641
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taux de rafraichissement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
|
||||
#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:650
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -177,59 +177,59 @@ msgstr ""
|
||||
"des performances mesurées.\n"
|
||||
"Peut causer des clignotements lors du changement de fréquence."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:667
|
||||
#: client/scenes/lobby_gui.cpp:828
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taux minimal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
msgid "Resolution scale"
|
||||
msgstr "Échelle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} par œil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:711
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activer le micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:720
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Utiliser les données brutes du micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:726
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Désactive les traitements tels que la suppression du bruit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:733
|
||||
#: client/scenes/lobby_gui.cpp:894
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activer le suivi des mains"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
|
||||
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
|
||||
#: client/scenes/lobby_gui.cpp:829
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Cette fonctionnalité n'est pas supportée par le casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activer le suivi des yeux"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:757
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activer le suivi du visage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:770
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Activer le suivi du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -240,11 +240,11 @@ msgstr ""
|
||||
"suivi des mouvements du casque.\n"
|
||||
"Sinon les positions seront déduites de celles des manettes et casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:799
|
||||
#: client/scenes/lobby_gui.cpp:960
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Activer le suivi du bas du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:805
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -255,11 +255,11 @@ msgstr ""
|
||||
"paramètres\n"
|
||||
"de suivi de mouvements du casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:969
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Activer le suivi des hanches"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -267,19 +267,33 @@ msgstr ""
|
||||
"N'a d'effet que si le suivi du bas du corps est activé.\n"
|
||||
"Peut être utile si les hanches sont suivies via un autre moyen."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:822
|
||||
#: client/scenes/lobby_gui.cpp:983
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Activer la vue réelle dans l'accueil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
|
||||
#: client/scenes/lobby_gui.cpp:994
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Activer la fenêtre WiVRn lors de la transmission"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:997
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
msgstr ""
|
||||
"Permet à la fenêtre de configuration d'être affichée pendant la transmission "
|
||||
"du jeu.\n"
|
||||
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
|
||||
"sticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-traitement OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
|
||||
#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438
|
||||
msgid "Supersampling"
|
||||
msgstr "Suréchantillonnage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
|
||||
#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -287,11 +301,11 @@ msgstr ""
|
||||
"Réduit le scintillement des contours à haut contraste.\n"
|
||||
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/lobby_gui.cpp:1040 client/scenes/stream_gui.cpp:464
|
||||
msgid "Sharpening"
|
||||
msgstr "Affinage de netteté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -299,11 +313,11 @@ msgstr ""
|
||||
"Améliore la clarté des contours à haut contraste et réduit le flou.\n"
|
||||
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:901
|
||||
#: client/scenes/lobby_gui.cpp:1069
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Activer Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:909
|
||||
#: client/scenes/lobby_gui.cpp:1077
|
||||
msgid ""
|
||||
"On this headset, this setting has been fully superseded by the native "
|
||||
"Sharpening setting above.\n"
|
||||
@@ -313,157 +327,157 @@ msgstr ""
|
||||
"de netteté ci-dessus.\n"
|
||||
"N’activer que si vous savez ce que vous faites."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:911
|
||||
#: client/scenes/lobby_gui.cpp:1079
|
||||
msgid ""
|
||||
"Client-side upscaling and sharpening, adds a performance cost on the headset"
|
||||
msgstr ""
|
||||
"Mise à l’échelle et affinage de netteté, ajoute un coût en performances pour "
|
||||
"le casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:929
|
||||
#: client/scenes/lobby_gui.cpp:1097
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Échelle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:948
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
msgid "Use edge direction"
|
||||
msgstr "Utiliser la direction de contours"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:954
|
||||
#: client/scenes/lobby_gui.cpp:1122
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Ajoute un coût additionnel en performances"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:959
|
||||
#: client/scenes/lobby_gui.cpp:1127
|
||||
msgid "Edge threshold"
|
||||
msgstr "Seuil de contour"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
|
||||
#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Recommandé : {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Netteté de contour"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
|
||||
#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
|
||||
msgid "CPU time"
|
||||
msgstr "Temps CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1075
|
||||
#: client/scenes/lobby_gui.cpp:1243
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Temps CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
|
||||
#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
|
||||
msgid "GPU time"
|
||||
msgstr "Temps GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1089
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Temps GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1132
|
||||
#: client/scenes/lobby_gui.cpp:1300
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Activer le micro ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
#: client/scenes/lobby_gui.cpp:1305
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Activer le suivi des yeux ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1142
|
||||
#: client/scenes/lobby_gui.cpp:1310
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Activer le suivi du visage ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1147
|
||||
#: client/scenes/lobby_gui.cpp:1315
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Activer le suivi du corps ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1323
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenue sur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1179
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1186
|
||||
#: client/scenes/lobby_gui.cpp:1354
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
|
||||
#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012
|
||||
msgid "Licenses"
|
||||
msgstr "Licences"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1519
|
||||
#: client/scenes/lobby_gui.cpp:1687
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Le micro est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1520
|
||||
#: client/scenes/lobby_gui.cpp:1688
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Le micro est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
#: client/scenes/lobby_gui.cpp:1697
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Le suivi des mains est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1530
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Le suivi des mains est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1539
|
||||
#: client/scenes/lobby_gui.cpp:1707
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Le suivi des yeux est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1540
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Le suivi des yeux est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1553
|
||||
#: client/scenes/lobby_gui.cpp:1721
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Le suivi du visage est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1554
|
||||
#: client/scenes/lobby_gui.cpp:1722
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Le suivi du visage est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1564
|
||||
#: client/scenes/lobby_gui.cpp:1732
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Le suivi du corps est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1565
|
||||
#: client/scenes/lobby_gui.cpp:1733
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Le suivi du corps est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1581
|
||||
#: client/scenes/lobby_gui.cpp:1749
|
||||
msgid "Add server"
|
||||
msgstr "Ajouter un serveur"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1826
|
||||
#: client/scenes/lobby_gui.cpp:1994
|
||||
msgid "Server list"
|
||||
msgstr "Serveurs"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
|
||||
#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1832
|
||||
#: client/scenes/lobby_gui.cpp:2000
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1836
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1841
|
||||
#: client/scenes/lobby_gui.cpp:2009
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1847
|
||||
#: client/scenes/lobby_gui.cpp:2015
|
||||
msgid "Exit"
|
||||
msgstr "Quitter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1864
|
||||
#: client/scenes/lobby_gui.cpp:2032
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -471,10 +485,9 @@ msgstr ""
|
||||
"Serrez la gâchette latérale ou pointez la paume\n"
|
||||
"vers le haut pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1866
|
||||
#: client/scenes/lobby_gui.cpp:2034
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr ""
|
||||
"Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:224
|
||||
msgid "Reproject"
|
||||
@@ -540,10 +553,9 @@ msgstr "Latence mouvement à photons estimée: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:396
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr ""
|
||||
"Serrez la gâchette latérale pour bouger la fenêtre"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
|
||||
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:752
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
|
||||
|
||||
@@ -585,15 +597,15 @@ msgstr "Utiliser le stick pour bouger le centre de fovéation"
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A pour sauvegarder, B pour annuler"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:793
|
||||
#: client/scenes/stream_gui.cpp:795
|
||||
msgid "Stats"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:802
|
||||
#: client/scenes/stream_gui.cpp:804
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Statistiques seules"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:805
|
||||
#: client/scenes/stream_gui.cpp:807
|
||||
msgid "Compact view"
|
||||
msgstr "Vue compacte"
|
||||
|
||||
|
||||
+114
-103
@@ -5,15 +5,15 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
|
||||
"PO-Revision-Date: 2025-07-30 09:59+0200\n"
|
||||
"POT-Creation-Date: 2025-08-12 13:35+0200\n"
|
||||
"PO-Revision-Date: 2025-08-12 13:41+0200\n"
|
||||
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: Italian\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Gtranslator 47.1\n"
|
||||
"X-Generator: Gtranslator 48.0\n"
|
||||
|
||||
#: client/scene.cpp:74
|
||||
msgid "No supported swapchain format"
|
||||
@@ -42,98 +42,98 @@ msgstr "Impossibile connettersi a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "In attesa di connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:156
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:159
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Alta qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:161
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:812
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: client/scenes/stream_gui.cpp:814
|
||||
msgid "Disconnect"
|
||||
msgstr "Sconnetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:195
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
msgid "Connection"
|
||||
msgstr "Connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:197
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Connessione a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:227
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:249
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Digitare il PIN visibile sul server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:315
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connesso al server WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:317
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connesso a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:419
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:335
|
||||
#: client/scenes/lobby_gui.cpp:421
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione su {} o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:383
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:394
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
msgid "Address"
|
||||
msgstr "Indirizzo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:403
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:411
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:432
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
msgid "Save"
|
||||
msgstr "Salva"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -141,32 +141,32 @@ msgstr ""
|
||||
"Avvia un server WiVRn sulla\n"
|
||||
"rete locale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:517
|
||||
#: client/scenes/lobby_gui.cpp:678
|
||||
msgid "Autoconnect"
|
||||
msgstr "Connessione automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:543
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
msgid "Connect"
|
||||
msgstr "Connetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versione del server incompatibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:716
|
||||
msgid "Server not available"
|
||||
msgstr "Server non disponibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:641
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frequenza di aggiornamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
|
||||
#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:650
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -175,60 +175,60 @@ msgstr ""
|
||||
"misurate dell'applicazione.\n"
|
||||
"Può causare un flash quando avviene il cambiamento."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:667
|
||||
#: client/scenes/lobby_gui.cpp:828
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Frequenza minima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:690
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
msgid "Resolution scale"
|
||||
msgstr "Scala di risoluzione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} per occhio"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr ""
|
||||
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:711
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
msgid "Enable microphone"
|
||||
msgstr "Attiva il microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:720
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Usare dati grezzi del microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:726
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Disattiva gli effetti come la cancellazione del rumore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:733
|
||||
#: client/scenes/lobby_gui.cpp:894
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Abilita il tracciamento delle mani"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
|
||||
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
|
||||
#: client/scenes/lobby_gui.cpp:829
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Questa funzionalità non è supportata dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Abilita il tracciamento oculare"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:757
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Abilita il tracciamento facciale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:770
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Abilita il tracciamento del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -241,11 +241,11 @@ msgstr ""
|
||||
"controller e\n"
|
||||
"del visore."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:799
|
||||
#: client/scenes/lobby_gui.cpp:960
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Abilita il tracciamento del basso del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:805
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -256,11 +256,11 @@ msgstr ""
|
||||
"impostazioni,\n"
|
||||
"sezione \"Tracking dei movimenti\"."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:969
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Abilitia il tracciamento delle anche"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -269,19 +269,31 @@ msgstr ""
|
||||
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
|
||||
"delle anche."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:822
|
||||
#: client/scenes/lobby_gui.cpp:983
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Abilita la visualizzazione reale in ingresso"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
|
||||
#: client/scenes/lobby_gui.cpp:994
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:997
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
msgstr ""
|
||||
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
|
||||
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-trattamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
|
||||
#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersamping"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
|
||||
#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -289,11 +301,11 @@ msgstr ""
|
||||
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
|
||||
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/lobby_gui.cpp:1040 client/scenes/stream_gui.cpp:464
|
||||
msgid "Sharpening"
|
||||
msgstr "Miglioramento della nitidezza"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -302,168 +314,168 @@ msgstr ""
|
||||
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
|
||||
"visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:901
|
||||
#: client/scenes/lobby_gui.cpp:1069
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Attivare Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:909
|
||||
#: client/scenes/lobby_gui.cpp:1077
|
||||
msgid ""
|
||||
"On this headset, this setting has been fully superseded by the native "
|
||||
"Sharpening setting above.\n"
|
||||
"Only enable if you know what you're doing."
|
||||
msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:911
|
||||
#: client/scenes/lobby_gui.cpp:1079
|
||||
msgid ""
|
||||
"Client-side upscaling and sharpening, adds a performance cost on the headset"
|
||||
msgstr ""
|
||||
"Aumento della risoluzione e nitidezza sul visore, diminuisce le prestazioni "
|
||||
"sul visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:929
|
||||
#: client/scenes/lobby_gui.cpp:1097
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Aumento di risoluzione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:948
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
msgid "Use edge direction"
|
||||
msgstr "Usare la direzione dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:954
|
||||
#: client/scenes/lobby_gui.cpp:1122
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Riduce le prestazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:959
|
||||
#: client/scenes/lobby_gui.cpp:1127
|
||||
msgid "Edge threshold"
|
||||
msgstr "Soglia dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
|
||||
#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Valore consigliato: {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Nitidezza dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
|
||||
#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1075
|
||||
#: client/scenes/lobby_gui.cpp:1243
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
|
||||
#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1089
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1132
|
||||
#: client/scenes/lobby_gui.cpp:1300
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Attivare il microfono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
#: client/scenes/lobby_gui.cpp:1305
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Attivare il tracciamento oculare?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1142
|
||||
#: client/scenes/lobby_gui.cpp:1310
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Attivare il tracciamento facciale?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1147
|
||||
#: client/scenes/lobby_gui.cpp:1315
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Attivare il tracciamento del corpo?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1323
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1179
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
msgid "Yes"
|
||||
msgstr "Sì"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1186
|
||||
#: client/scenes/lobby_gui.cpp:1354
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
|
||||
#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012
|
||||
msgid "Licenses"
|
||||
msgstr "Licenze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1519
|
||||
#: client/scenes/lobby_gui.cpp:1687
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Microfono attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1520
|
||||
#: client/scenes/lobby_gui.cpp:1688
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Microfono disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1529
|
||||
#: client/scenes/lobby_gui.cpp:1697
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Tracciamento delle mani attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1530
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Tracciamento delle mani disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1539
|
||||
#: client/scenes/lobby_gui.cpp:1707
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Tracciamento oculare attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1540
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Tracciamento oculare disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1553
|
||||
#: client/scenes/lobby_gui.cpp:1721
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Tracciamento facciale attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1554
|
||||
#: client/scenes/lobby_gui.cpp:1722
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Tracciamento facciale disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1564
|
||||
#: client/scenes/lobby_gui.cpp:1732
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Tracciamento del corpo attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1565
|
||||
#: client/scenes/lobby_gui.cpp:1733
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Tracciamento del corpo disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1581
|
||||
#: client/scenes/lobby_gui.cpp:1749
|
||||
msgid "Add server"
|
||||
msgstr "Aggiungi server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1826
|
||||
#: client/scenes/lobby_gui.cpp:1994
|
||||
msgid "Server list"
|
||||
msgstr "Elenco dei server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
|
||||
#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1832
|
||||
#: client/scenes/lobby_gui.cpp:2000
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-trattamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1836
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1841
|
||||
#: client/scenes/lobby_gui.cpp:2009
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1847
|
||||
#: client/scenes/lobby_gui.cpp:2015
|
||||
msgid "Exit"
|
||||
msgstr "Esci"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1864
|
||||
#: client/scenes/lobby_gui.cpp:2032
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -471,10 +483,9 @@ msgstr ""
|
||||
"Premi il pulsante laterale o punta il palmo della\n"
|
||||
"mano verso l'alto per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1866
|
||||
#: client/scenes/lobby_gui.cpp:2034
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr ""
|
||||
"Premi il pulsante laterale per spostare la finestra principale"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:224
|
||||
msgid "Reproject"
|
||||
@@ -542,7 +553,7 @@ msgstr "Latenza stimata da movimento a fotoni: {}ms"
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
|
||||
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:752
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
|
||||
|
||||
@@ -584,15 +595,15 @@ msgstr "Usa gli stick per spostare il centro di foveazione"
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A per salvare, B per annullare"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:793
|
||||
#: client/scenes/stream_gui.cpp:795
|
||||
msgid "Stats"
|
||||
msgstr "Statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:802
|
||||
#: client/scenes/stream_gui.cpp:804
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Solo statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:805
|
||||
#: client/scenes/stream_gui.cpp:807
|
||||
msgid "Compact view"
|
||||
msgstr "Modalità compatta"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 18e184e504d9f55dbba3f02c87f96410b2ce04ab Mon Sep 17 00:00:00 2001
|
||||
From 483ce192460569020fa57522ee2bea99198dac2e Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
||||
Subject: [PATCH 01/10] c/multi: early wake of compositor
|
||||
Subject: [PATCH 01/13] c/multi: early wake of compositor
|
||||
|
||||
---
|
||||
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
||||
@@ -10,10 +10,10 @@ Subject: [PATCH 01/10] c/multi: early wake of compositor
|
||||
3 files changed, 41 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
index 553565db4..789a2d042 100644
|
||||
index 94cea110e..88347a092 100644
|
||||
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
@@ -232,7 +232,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
|
||||
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
|
||||
os_mutex_lock(&mc->slot_lock);
|
||||
slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress);
|
||||
os_mutex_unlock(&mc->slot_lock);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From b31b5aa4e7e890ae079ae2953a1ce3fc2e47b954 Mon Sep 17 00:00:00 2001
|
||||
From 642f328ff08872289082f591b393aa72cdfffe0a Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 2 Apr 2024 17:14:42 +0200
|
||||
Subject: [PATCH 02/10] ipc/server: Always listen to stdin
|
||||
Subject: [PATCH 02/13] ipc/server: Always listen to stdin
|
||||
|
||||
---
|
||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 46cacda03c5552ffb70601dd89e0abe38e97c1d3 Mon Sep 17 00:00:00 2001
|
||||
From a06da2ceeddf3f7760501114efa35bd168ba74bc Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
||||
Subject: [PATCH 03/10] Use extern socket fd
|
||||
Subject: [PATCH 03/13] Use extern socket fd
|
||||
|
||||
---
|
||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 90c3842f38985e0f8f06bb51d0e58cccf437526f Mon Sep 17 00:00:00 2001
|
||||
From 4efe5b0e12a92284e46fdeb225102dc63a7eda51 Mon Sep 17 00:00:00 2001
|
||||
From: galister <3123227-galister@users.noreply.gitlab.com>
|
||||
Date: Mon, 19 Aug 2024 18:51:45 +0900
|
||||
Subject: [PATCH 04/10] c/render: Add storage usage to distortion mesh
|
||||
Subject: [PATCH 04/13] c/render: Add storage usage to distortion mesh
|
||||
|
||||
---
|
||||
src/xrt/compositor/render/render_distortion.c | 2 +-
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 9e2288bc85a5be9bb0228a42dc5a9419c4357eb8 Mon Sep 17 00:00:00 2001
|
||||
From a28d3e6a3e85b7c04392137b30958e8b1d13c591 Mon Sep 17 00:00:00 2001
|
||||
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
||||
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
||||
Subject: [PATCH 05/10] change environment blend mode selection logic
|
||||
Subject: [PATCH 05/13] change environment blend mode selection logic
|
||||
|
||||
---
|
||||
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 437469e6a4de72ab69719cce92b841e4de19156f Mon Sep 17 00:00:00 2001
|
||||
From ec28b5726922e300dc05085a30150223c6a2183a Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
||||
Subject: [PATCH 06/10] Convert to YCbCr in Monado
|
||||
Subject: [PATCH 06/13] Convert to YCbCr in Monado
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_renderer.c | 6 +-
|
||||
@@ -17,10 +17,10 @@ Subject: [PATCH 06/10] Convert to YCbCr in Monado
|
||||
10 files changed, 184 insertions(+), 86 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index c6f589466..0895ff694 100644
|
||||
index e45d33e22..d2518585c 100644
|
||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||
@@ -933,7 +933,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||
@@ -936,7 +936,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||
|
||||
// Target Vulkan resources..
|
||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
||||
@@ -30,7 +30,7 @@ index c6f589466..0895ff694 100644
|
||||
|
||||
// Target view information.
|
||||
struct render_viewport_data target_viewport_datas[XRT_MAX_VIEWS];
|
||||
@@ -949,7 +950,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||
@@ -952,7 +953,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||
eye_poses, //
|
||||
fovs, //
|
||||
target_image, //
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 5a791919ce1e01f2cb0034e4055bf22767a41121 Mon Sep 17 00:00:00 2001
|
||||
From 022835847793c2b97df20a1dc823512a36533d53 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Sun, 3 Nov 2024 13:40:00 +0100
|
||||
Subject: [PATCH 07/10] store alpha channel in layer 1
|
||||
Subject: [PATCH 07/13] store alpha channel in layer 1
|
||||
|
||||
---
|
||||
src/xrt/compositor/shaders/clear.comp | 4 ++--
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 877709160be24c4bd504b8d8cd04197cc2bf2b69 Mon Sep 17 00:00:00 2001
|
||||
From 0d2ae2efb84f1479151c096e26f3295eded3b170 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Thu, 27 Feb 2025 22:45:36 +0100
|
||||
Subject: [PATCH 08/10] c/main: allow custom pacing app factory
|
||||
Subject: [PATCH 08/13] c/main: allow custom pacing app factory
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_compositor.c | 10 ++++++----
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 53d8509dff69caccecdc38b443864b1a755486dd Mon Sep 17 00:00:00 2001
|
||||
From 1a9b288475830fc1caf9bbf340ea370677b239a5 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
||||
Subject: [PATCH 09/10] st/oxr: forward 0 refresh rate
|
||||
Subject: [PATCH 09/13] st/oxr: forward 0 refresh rate
|
||||
|
||||
---
|
||||
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
|
||||
|
||||
@@ -1,21 +1,30 @@
|
||||
From 1bc74f74b613cce9d32c0f4bf16de70ddb7fb482 Mon Sep 17 00:00:00 2001
|
||||
From 624849b80a893d073f2315eca909afa823c0a345 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Mon, 2 Jun 2025 14:51:11 +0200
|
||||
Subject: [PATCH 10/10] Replace distortion with pixel-aligned foveation
|
||||
Subject: [PATCH 10/13] Replace distortion with pixel-aligned foveation
|
||||
|
||||
---
|
||||
src/xrt/compositor/CMakeLists.txt | 2 +-
|
||||
src/xrt/compositor/render/render_compute.c | 181 ++-----------------
|
||||
src/xrt/compositor/CMakeLists.txt | 4 +-
|
||||
src/xrt/compositor/render/render_compute.c | 185 ++-----------------
|
||||
src/xrt/compositor/render/render_interface.h | 33 ++--
|
||||
src/xrt/compositor/render/render_resources.c | 71 +-------
|
||||
src/xrt/compositor/shaders/distortion.comp | 134 ++++----------
|
||||
src/xrt/compositor/render/render_resources.c | 71 +------
|
||||
src/xrt/compositor/shaders/distortion.comp | 167 ++++++-----------
|
||||
src/xrt/compositor/util/comp_render_cs.c | 33 +---
|
||||
6 files changed, 76 insertions(+), 378 deletions(-)
|
||||
6 files changed, 101 insertions(+), 392 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
||||
index 1ba5ec438..f1defe77a 100644
|
||||
index 1ba5ec438..eb068f5fc 100644
|
||||
--- a/src/xrt/compositor/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/CMakeLists.txt
|
||||
@@ -105,7 +105,7 @@ if(XRT_HAVE_VULKAN)
|
||||
spirv_shaders(
|
||||
SHADER_HEADERS
|
||||
SPIRV_VERSION
|
||||
- 1.0 # Currently targeting Vulkan 1.0
|
||||
+ 1.3 # Currently targeting Vulkan 1.3
|
||||
SOURCES
|
||||
${SHADERS}
|
||||
)
|
||||
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
||||
${SHADER_HEADERS}
|
||||
render/render_buffer.c
|
||||
@@ -26,9 +35,20 @@ index 1ba5ec438..f1defe77a 100644
|
||||
render/render_interface.h
|
||||
render/render_resources.c
|
||||
diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c
|
||||
index fd04801d4..5cd5a1726 100644
|
||||
index fd04801d4..44c3f0aee 100644
|
||||
--- a/src/xrt/compositor/render/render_compute.c
|
||||
+++ b/src/xrt/compositor/render/render_compute.c
|
||||
@@ -66,8 +66,8 @@ calc_dispatch_dims_views(const struct render_viewport_data views[XRT_MAX_VIEWS],
|
||||
#undef IMAX
|
||||
|
||||
// Power of two divide and round up.
|
||||
- w = uint_divide_and_round_up(w, 16);
|
||||
- h = uint_divide_and_round_up(h, 16);
|
||||
+ w = uint_divide_and_round_up(w, 8);
|
||||
+ h = uint_divide_and_round_up(h, 8);
|
||||
|
||||
*out_w = w;
|
||||
*out_h = h;
|
||||
@@ -167,8 +167,8 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
|
||||
VkSampler src_samplers[XRT_MAX_VIEWS],
|
||||
VkImageView src_image_views[XRT_MAX_VIEWS],
|
||||
@@ -478,10 +498,15 @@ index 5b9addd59..7d4d9cddb 100644
|
||||
|
||||
D(Pipeline, r->compute.clear.pipeline);
|
||||
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
|
||||
index 9ce46fe6f..f3be617bd 100644
|
||||
index 9ce46fe6f..cd1828ac9 100644
|
||||
--- a/src/xrt/compositor/shaders/distortion.comp
|
||||
+++ b/src/xrt/compositor/shaders/distortion.comp
|
||||
@@ -7,17 +7,17 @@
|
||||
@@ -4,20 +4,22 @@
|
||||
|
||||
#version 460
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
+#extension GL_KHR_shader_subgroup_basic: require
|
||||
+#extension GL_KHR_shader_subgroup_shuffle: require
|
||||
|
||||
#include "srgb.inc.glsl"
|
||||
|
||||
@@ -507,7 +532,7 @@ index 9ce46fe6f..f3be617bd 100644
|
||||
layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
|
||||
layout(set = 0, binding = 3, std140) uniform restrict Config
|
||||
{
|
||||
@@ -41,109 +41,40 @@ vec3 rgb_to_ycbcr(vec3 color)
|
||||
@@ -41,122 +43,59 @@ vec3 rgb_to_ycbcr(vec3 color)
|
||||
return transpose(color_space) * color + vec3(0, 0.5, 0.5);
|
||||
}
|
||||
|
||||
@@ -593,24 +618,13 @@ index 9ce46fe6f..f3be617bd 100644
|
||||
ivec2 extent = ivec2(ubo.views[iz].zw);
|
||||
- vec2 cbcrs[4];
|
||||
- vec4 alpha;
|
||||
+ vec3 cbcra = vec3(0);
|
||||
for (int k = 0; k < 2; k += 1) {
|
||||
uint iy = gl_GlobalInvocationID.y * 2 + k;
|
||||
+ uint ymin = foveation.y[MAX_DIM * iz + iy];
|
||||
+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1];
|
||||
+ if (ymin > ymax)
|
||||
+ {
|
||||
+ uint tmp = ymin;
|
||||
+ ymin = ymax;
|
||||
+ ymax = tmp;
|
||||
+ }
|
||||
for (int j = 0; j < 2; j += 1) {
|
||||
uint ix = gl_GlobalInvocationID.x * 2 + j;
|
||||
|
||||
- for (int k = 0; k < 2; k += 1) {
|
||||
- uint iy = gl_GlobalInvocationID.y * 2 + k;
|
||||
- for (int j = 0; j < 2; j += 1) {
|
||||
- uint ix = gl_GlobalInvocationID.x * 2 + j;
|
||||
-
|
||||
- vec2 dist_uv = position_to_uv(extent, ix, iy);
|
||||
+ uint xmin = foveation.x[MAX_DIM * iz + ix];
|
||||
+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1];
|
||||
|
||||
-
|
||||
- vec2 uv = texture(distortion[iz + 0], dist_uv).xy;
|
||||
- vec2 lod = texture(distortion[iz + 2], dist_uv).xy;
|
||||
-
|
||||
@@ -621,35 +635,68 @@ index 9ce46fe6f..f3be617bd 100644
|
||||
- vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5));
|
||||
-
|
||||
- colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
|
||||
+ vec4 colour = vec4(0);
|
||||
+ for (uint y = ymin ; y < ymax; y += 1) {
|
||||
+ for (uint x = xmin ; x < xmax; x += 1) {
|
||||
+ colour += texelFetch(source[iz], ivec2(x, y), 0);
|
||||
+ }
|
||||
+ }
|
||||
+ colour /= (xmax - xmin) * (ymax - ymin);
|
||||
+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
|
||||
+ uint iy = gl_GlobalInvocationID.y;
|
||||
+ uint ymin = foveation.y[MAX_DIM * iz + iy];
|
||||
+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1];
|
||||
+ if (ymin == ymax)
|
||||
+ return;
|
||||
+ if (ymin > ymax)
|
||||
+ {
|
||||
+ uint tmp = ymin;
|
||||
+ ymin = ymax;
|
||||
+ ymax = tmp;
|
||||
+ }
|
||||
+ uint ix = gl_GlobalInvocationID.x;
|
||||
|
||||
- int i = k * 2 + j;
|
||||
- cbcrs[i] = colour.yz;
|
||||
- alpha[i] = colour.a;
|
||||
+ cbcra.xy += colour.yz;
|
||||
+ cbcra.z += colour.a;
|
||||
+ uint xmin = foveation.x[MAX_DIM * iz + ix];
|
||||
+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1];
|
||||
+ if (xmin == xmax)
|
||||
+ return;
|
||||
|
||||
if (ix < extent.x && iy < extent.y) {
|
||||
imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
@@ -153,10 +84,7 @@ void main()
|
||||
if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) {
|
||||
return;
|
||||
- if (ix < extent.x && iy < extent.y) {
|
||||
- imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
- }
|
||||
+ vec4 colour = vec4(0);
|
||||
+ for (uint y = ymin ; y < ymax; y += 1) {
|
||||
+ for (uint x = xmin ; x < xmax; x += 1) {
|
||||
+ colour += texelFetch(source[iz], ivec2(x, y), 0);
|
||||
}
|
||||
}
|
||||
- if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) {
|
||||
- return;
|
||||
+ colour /= (xmax - xmin) * (ymax - ymin);
|
||||
+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
|
||||
+
|
||||
+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
+
|
||||
+ vec4 sum = colour;
|
||||
+ for (uint i = 0 ; i < gl_SubgroupSize; ++i)
|
||||
+ {
|
||||
+ uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i);
|
||||
+ vec4 c = subgroupShuffle(colour, i);
|
||||
+ if (
|
||||
+ other == gl_GlobalInvocationID + uvec3(1, 0, 0)
|
||||
+ || other == gl_GlobalInvocationID + uvec3(0, 1, 0)
|
||||
+ || other == gl_GlobalInvocationID + uvec3(1, 1, 0))
|
||||
+ {
|
||||
+ sum += c;
|
||||
+ }
|
||||
}
|
||||
- vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
|
||||
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0));
|
||||
-
|
||||
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcra.x, cbcra.y, 0, 0) / 4);
|
||||
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(cbcra.z, 0, 0, 0) / 4);
|
||||
imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
|
||||
|
||||
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
|
||||
- alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5));
|
||||
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
||||
+ if (ix %2 == 0 && iy %2 == 0)
|
||||
+ {
|
||||
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 0), vec4(sum.y, sum.z, 0, 0) / 4);
|
||||
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(sum.w, 0, 0, 0) / 4);
|
||||
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(0.5, 0.5, 0, 0));
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
||||
index b2d3ce10d..69429dc97 100644
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 4905a1bd2a32d0cef4ade575021b17cf453632f0 Mon Sep 17 00:00:00 2001
|
||||
From 34699c38c4ebb5c968b4e1053ddbf48b31dbe72d Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 15:51:48 +0200
|
||||
Subject: [PATCH 1/3] a/vk: Track VK_KHR_video_maintenance1
|
||||
Subject: [PATCH 11/13] a/vk: Track VK_KHR_video_maintenance1
|
||||
|
||||
---
|
||||
scripts/generate_vk_helpers.py | 1 +
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 26d9345724a868304b9d3ca5b58fecef02493df3 Mon Sep 17 00:00:00 2001
|
||||
From 2300c7509699db2a59e4bd0eee33890a2d906156 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 16:00:59 +0200
|
||||
Subject: [PATCH 2/3] a/vk: Expose video_maintenance_1 device feature
|
||||
Subject: [PATCH 12/13] a/vk: Expose video_maintenance_1 device feature
|
||||
|
||||
---
|
||||
src/xrt/auxiliary/vk/vk_bundle_init.c | 40 +++++++++++++++++++++++++--
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From b8e23426ec5ac97efdceaf2a319b9d5921e7b412 Mon Sep 17 00:00:00 2001
|
||||
From 8c874368dfaa363e088e91c05adf2a96f921671d Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 16:01:59 +0200
|
||||
Subject: [PATCH 3/3] c/util: Request video_maintenance_1 feature
|
||||
Subject: [PATCH 13/13] c/util: Request video_maintenance_1 feature
|
||||
|
||||
This will only be enabled if the VK_KHR_maintenance1 extension was
|
||||
requested.
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include "render/render_interface.h"
|
||||
#include "vk/vk_mini_helpers.h"
|
||||
|
||||
#include "wivrn_foveation.h"
|
||||
|
||||
@@ -44,22 +43,13 @@ bool render_distortion_images_ensure(struct render_resources * r,
|
||||
bool pre_rotate)
|
||||
{
|
||||
if (r->distortion.buffer == VK_NULL_HANDLE)
|
||||
{
|
||||
return vk_buffer_init(vk,
|
||||
sizeof(render_compute_distortion_foveation_data),
|
||||
VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
|
||||
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
|
||||
&r->distortion.buffer,
|
||||
&r->distortion.device_memory);
|
||||
}
|
||||
r->distortion.buffer = wivrn::wivrn_foveation::instance().get_gpu_buffer();
|
||||
return true;
|
||||
}
|
||||
|
||||
void render_distortion_images_fini(struct render_resources * r)
|
||||
{
|
||||
auto * vk = r->vk;
|
||||
D(Buffer, r->distortion.buffer);
|
||||
DF(Memory, r->distortion.device_memory);
|
||||
r->distortion.buffer = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
// a, b: parameters computed by solve_foveation
|
||||
@@ -320,20 +310,35 @@ wivrn_foveation::wivrn_foveation(wivrn_vk_bundle & bundle, const xrt_hmd_parts &
|
||||
.commandPool = *command_pool,
|
||||
.commandBufferCount = 1,
|
||||
})[0])),
|
||||
host_buffer(
|
||||
gpu_buffer(
|
||||
bundle.device,
|
||||
{
|
||||
.size = sizeof(render_compute_distortion_foveation_data),
|
||||
.usage = vk::BufferUsageFlagBits::eTransferSrc,
|
||||
.usage = vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
|
||||
},
|
||||
VmaAllocationCreateInfo{
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT,
|
||||
.usage = VMA_MEMORY_USAGE_AUTO,
|
||||
})
|
||||
},
|
||||
"foveation storage buffer")
|
||||
{
|
||||
if (not(gpu_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT))
|
||||
{
|
||||
host_buffer = buffer_allocation(
|
||||
bundle.device,
|
||||
{
|
||||
.size = gpu_buffer.info().size,
|
||||
.usage = vk::BufferUsageFlagBits::eTransferSrc,
|
||||
},
|
||||
{
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
|
||||
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST,
|
||||
},
|
||||
"foveation staging buffer");
|
||||
bundle.name(vk::Buffer(host_buffer), "foveation staging buffer");
|
||||
}
|
||||
bundle.name(command_pool, "foveation command pool");
|
||||
bundle.name(cmd, "foveation command buffer");
|
||||
bundle.name(vk::Buffer(host_buffer), "foveation staging buffer");
|
||||
}
|
||||
|
||||
void wivrn_foveation::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
@@ -389,7 +394,7 @@ std::array<to_headset::foveation_parameter, 2> wivrn_foveation::get_parameters()
|
||||
}
|
||||
|
||||
static void fill_ubo(
|
||||
uint32_t * ubo,
|
||||
std::span<uint32_t> ubo,
|
||||
const std::vector<uint16_t> & params,
|
||||
bool flip,
|
||||
size_t offset,
|
||||
@@ -398,9 +403,9 @@ static void fill_ubo(
|
||||
{
|
||||
assert(params.size() % 2 == 1);
|
||||
const int n_ratio = (params.size() - 1) / 2;
|
||||
*ubo = offset;
|
||||
ubo[0] = offset;
|
||||
if (flip)
|
||||
*ubo += size;
|
||||
ubo[0] += size;
|
||||
for (auto [i, n]: std::ranges::enumerate_view(params))
|
||||
{
|
||||
const int n_source = std::abs(n_ratio - int(i)) + 1;
|
||||
@@ -411,12 +416,12 @@ static void fill_ubo(
|
||||
ubo[1] = ubo[0] - n_source;
|
||||
else
|
||||
ubo[1] = ubo[0] + n_source;
|
||||
++ubo;
|
||||
ubo = ubo.subspan(1);
|
||||
--count;
|
||||
}
|
||||
}
|
||||
if (count > 0)
|
||||
std::fill(ubo + 1, ubo + count + 1, *ubo);
|
||||
if (not ubo.empty())
|
||||
std::ranges::fill(ubo, ubo[0]);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
@@ -434,6 +439,11 @@ static bool operator==(const xrt_fov & a, const xrt_fov & b)
|
||||
return a.angle_left == b.angle_left and a.angle_right == b.angle_right and a.angle_up == b.angle_up and a.angle_down == b.angle_down;
|
||||
}
|
||||
|
||||
vk::Buffer wivrn_foveation::get_gpu_buffer()
|
||||
{
|
||||
return gpu_buffer;
|
||||
}
|
||||
|
||||
vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
vk::Buffer target,
|
||||
bool flip_y,
|
||||
@@ -443,14 +453,6 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
if (not target)
|
||||
return nullptr;
|
||||
|
||||
if (target != gpu_buffer)
|
||||
{
|
||||
command_pool.reset();
|
||||
cmd.begin({});
|
||||
cmd.copyBuffer(host_buffer, target, vk::BufferCopy{.size = sizeof(render_compute_distortion_foveation_data)});
|
||||
cmd.end();
|
||||
}
|
||||
|
||||
// Check if the last value is still valid
|
||||
std::lock_guard lock(mutex);
|
||||
if (last.flip_y == flip_y //
|
||||
@@ -467,6 +469,15 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
)
|
||||
return nullptr;
|
||||
|
||||
assert(target == gpu_buffer);
|
||||
if (host_buffer)
|
||||
{
|
||||
command_pool.reset();
|
||||
cmd.begin({});
|
||||
cmd.copyBuffer(host_buffer, target, vk::BufferCopy{.size = sizeof(render_compute_distortion_foveation_data)});
|
||||
cmd.end();
|
||||
}
|
||||
|
||||
last = {
|
||||
.gaze = gaze,
|
||||
.flip_y = flip_y,
|
||||
@@ -478,7 +489,7 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
|
||||
compute_params(source, fovs);
|
||||
|
||||
auto ubo = (render_compute_distortion_foveation_data *)host_buffer.map();
|
||||
auto ubo = host_buffer ? host_buffer.data<render_compute_distortion_foveation_data>() : gpu_buffer.data<render_compute_distortion_foveation_data>();
|
||||
for (size_t view = 0; view < 2; ++view)
|
||||
{
|
||||
bool flip = false;
|
||||
@@ -495,7 +506,7 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
offset = source[view].offset.w;
|
||||
extent = source[view].extent.w;
|
||||
}
|
||||
fill_ubo(ubo->x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, params[view].x, flip, offset, extent, foveated_width);
|
||||
fill_ubo(std::span(ubo->x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS), params[view].x, flip, offset, extent, foveated_width);
|
||||
|
||||
if (source[view].extent.h < 0)
|
||||
{
|
||||
@@ -509,8 +520,10 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
|
||||
offset = source[view].offset.h;
|
||||
extent = source[view].extent.h;
|
||||
}
|
||||
fill_ubo(ubo->y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, params[view].y, flip, offset, extent, foveated_height);
|
||||
fill_ubo(std::span(ubo->y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS), params[view].y, flip, offset, extent, foveated_height);
|
||||
}
|
||||
return *cmd;
|
||||
if (host_buffer)
|
||||
return *cmd;
|
||||
return nullptr;
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "xrt/xrt_defines.h"
|
||||
#include "xrt/xrt_device.h"
|
||||
|
||||
#include "utils/singleton.h"
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
struct render_resources;
|
||||
@@ -34,7 +35,7 @@ namespace wivrn
|
||||
struct clock_offset;
|
||||
struct wivrn_vk_bundle;
|
||||
|
||||
class wivrn_foveation
|
||||
class wivrn_foveation : public singleton<wivrn_foveation>
|
||||
{
|
||||
std::mutex mutex;
|
||||
|
||||
@@ -53,8 +54,8 @@ class wivrn_foveation
|
||||
|
||||
vk::raii::CommandPool command_pool;
|
||||
vk::raii::CommandBuffer cmd;
|
||||
buffer_allocation gpu_buffer;
|
||||
buffer_allocation host_buffer;
|
||||
vk::Buffer gpu_buffer = nullptr;
|
||||
|
||||
// parameters used for last computation
|
||||
struct P
|
||||
@@ -81,6 +82,8 @@ public:
|
||||
void update_foveation_center_override(const from_headset::override_foveation_center &);
|
||||
std::array<to_headset::foveation_parameter, 2> get_parameters();
|
||||
|
||||
vk::Buffer get_gpu_buffer();
|
||||
|
||||
vk::CommandBuffer update_foveation_buffer(
|
||||
vk::Buffer target,
|
||||
bool flip_y,
|
||||
|
||||
@@ -147,6 +147,12 @@ static xrt_binding_input_pair hand_interaction_input_binding[] = {
|
||||
{XRT_INPUT_HAND_GRASP_READY, XRT_INPUT_HAND_GRASP_READY},
|
||||
};
|
||||
|
||||
static xrt_binding_input_pair simple_input_binding[] = {
|
||||
{XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_HAND_PINCH_VALUE},
|
||||
{XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_HAND_GRIP_POSE},
|
||||
{XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_HAND_AIM_POSE},
|
||||
};
|
||||
|
||||
static xrt_binding_profile wivrn_binding_profiles[] = {
|
||||
{
|
||||
.name = XRT_DEVICE_EXT_HAND_INTERACTION,
|
||||
@@ -155,6 +161,13 @@ static xrt_binding_profile wivrn_binding_profiles[] = {
|
||||
.outputs = nullptr,
|
||||
.output_count = 0,
|
||||
},
|
||||
{
|
||||
.name = XRT_DEVICE_SIMPLE_CONTROLLER,
|
||||
.inputs = simple_input_binding,
|
||||
.input_count = std::size(simple_input_binding),
|
||||
.outputs = nullptr,
|
||||
.output_count = 0,
|
||||
},
|
||||
};
|
||||
|
||||
namespace
|
||||
|
||||
@@ -759,12 +759,19 @@ void wivrn_session::operator()(from_headset::get_application_list && request)
|
||||
{
|
||||
if (app.icon_path)
|
||||
{
|
||||
auto icon = load_icon(*app.icon_path, 256);
|
||||
try
|
||||
{
|
||||
auto icon = load_icon(*app.icon_path, 256);
|
||||
|
||||
send_control(to_headset::application_icon{
|
||||
.id = id,
|
||||
.image = std::move(icon),
|
||||
});
|
||||
send_control(to_headset::application_icon{
|
||||
.id = id,
|
||||
.image = std::move(icon),
|
||||
});
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
U_LOG_W("Error loading icon %s: %s", app.icon_path->c_str(), e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+8
-1
@@ -425,7 +425,7 @@ gboolean headset_connected_success(void *)
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
std::cerr << "Failed to start application: " << e.what();
|
||||
std::cerr << "Failed to start application: " << e.what() << std::endl;
|
||||
}
|
||||
|
||||
delay_next_try = default_delay_next_try;
|
||||
@@ -969,6 +969,7 @@ int main(int argc, char * argv[])
|
||||
|
||||
std::string config_file;
|
||||
app.add_option("-f", config_file, "configuration file")->option_text("FILE")->check(CLI::ExistingFile);
|
||||
auto version_flag = app.add_flag("--version")->description("print version and exit");
|
||||
auto no_active_runtime = app.add_flag("--no-manage-active-runtime")->description("don't set the active runtime on connection");
|
||||
auto early_active_runtime = app.add_flag("--early-active-runtime")->description("forcibly manages the active runtime even if no headset present");
|
||||
auto no_instructions = app.add_flag("--no-instructions")->group("");
|
||||
@@ -981,6 +982,12 @@ int main(int argc, char * argv[])
|
||||
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
if (*version_flag)
|
||||
{
|
||||
std::cout << "WiVRn version " << wivrn::git_version << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (not config_file.empty())
|
||||
configuration::set_config_file(config_file);
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "start_systemd_unit.h"
|
||||
#include "systemd_manager.h"
|
||||
#include "systemd_unit.h"
|
||||
#include "utils/strings.h"
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
#include <iostream>
|
||||
@@ -211,11 +212,10 @@ void systemd_units_manager::start_application(const std::vector<std::string> & a
|
||||
variant_builder argv(G_VARIANT_TYPE("as"));
|
||||
for (const auto & arg: args)
|
||||
g_variant_builder_add(&argv, "s", arg.c_str());
|
||||
auto exec_start =
|
||||
g_variant_new("(s@asb)",
|
||||
args.front().c_str(),
|
||||
g_variant_new("as", &argv),
|
||||
false);
|
||||
auto exec_start = g_variant_new("(s@asb)",
|
||||
args.front().c_str(),
|
||||
g_variant_new("as", &argv),
|
||||
false);
|
||||
g_variant_builder_add(&b,
|
||||
"(sv)",
|
||||
"ExecStart",
|
||||
@@ -224,6 +224,17 @@ void systemd_units_manager::start_application(const std::vector<std::string> & a
|
||||
&exec_start,
|
||||
1));
|
||||
|
||||
if (auto path = std::getenv("PATH"))
|
||||
{
|
||||
variant_builder pathv(G_VARIANT_TYPE("as"));
|
||||
for (auto item: utils::split(path, ":"))
|
||||
g_variant_builder_add(&pathv, "s", item.c_str());
|
||||
g_variant_builder_add(&b,
|
||||
"(sv)",
|
||||
"ExecSearchPath",
|
||||
g_variant_new("as", &pathv));
|
||||
}
|
||||
|
||||
auto properties = b.end();
|
||||
auto aux = g_variant_new_array(G_VARIANT_TYPE("(sa(sv))"), nullptr, 0);
|
||||
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
WIVRN_CLIENT_POT=$(mktemp)
|
||||
WIVRN_DASHBOARD_POT=$(mktemp)
|
||||
|
||||
xgettext \
|
||||
--c++ --from-code=UTF-8 \
|
||||
--keyword=_:1,1t \
|
||||
--keyword=_S:1,1t \
|
||||
--keyword=_cS:1c,2,2t \
|
||||
--keyword=_F:1,1t \
|
||||
--output=$WIVRN_CLIENT_POT \
|
||||
--package-name=WiVRn \
|
||||
$(find client/ -name "*.cpp" | sort)
|
||||
|
||||
xgettext \
|
||||
--c++ --kde --from-code=UTF-8 \
|
||||
--keyword=i18n:1 \
|
||||
--keyword=i18nc:1c,2 \
|
||||
--keyword=i18np:1,2 \
|
||||
--keyword=i18ncp:1c,2,3 \
|
||||
--output=$WIVRN_DASHBOARD_POT \
|
||||
--package-name=WiVRn-dashboard \
|
||||
$(find dashboard/ -name "*.qml" -o -name "*.cpp" | sort)
|
||||
|
||||
sed -i 's/charset=CHARSET/charset=UTF-8/g' $WIVRN_CLIENT_POT $WIVRN_DASHBOARD_POT
|
||||
|
||||
RC=0
|
||||
|
||||
for i in locale/*
|
||||
do
|
||||
if [ -f $i/wivrn.po ]
|
||||
then
|
||||
tools/check_po.py $WIVRN_CLIENT_POT $i/wivrn.po $(basename $i)
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
RC=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f $i/wivrn-dashboard.po ]
|
||||
then
|
||||
tools/check_po.py $WIVRN_DASHBOARD_POT $i/wivrn-dashboard.po $(basename $i)
|
||||
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
RC=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
rm $WIVRN_CLIENT_POT $WIVRN_DASHBOARD_POT
|
||||
|
||||
exit $RC
|
||||
+117
-36
@@ -1,51 +1,132 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import polib
|
||||
import argparse
|
||||
import os
|
||||
import pathlib
|
||||
import subprocess
|
||||
import tempfile
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='check_po.py',
|
||||
description='Check that all strings are translated in a .po file')
|
||||
def list_files(base: str, exts: str|list[str]):
|
||||
if type(exts) == str:
|
||||
exts = [exts]
|
||||
for root, dirs, files in os.walk(base):
|
||||
for f in files:
|
||||
for ext in exts:
|
||||
if f.endswith(ext):
|
||||
yield os.path.join(root, f)
|
||||
|
||||
parser.add_argument('ref', type=pathlib.Path)
|
||||
parser.add_argument('file', type=pathlib.Path)
|
||||
parser.add_argument('lang', type=str)
|
||||
def flag(lang: str):
|
||||
# Map language code to a country flag
|
||||
countries = {
|
||||
'es': 'es',
|
||||
'fr': 'fr',
|
||||
'it': 'it',
|
||||
'ja': 'jp',
|
||||
'zh_TW': 'tw',
|
||||
'pt_BR': 'br'
|
||||
}
|
||||
|
||||
args = parser.parse_args()
|
||||
country = countries.get(lang, lang)
|
||||
|
||||
po_ref = polib.pofile(args.ref)
|
||||
res = ''
|
||||
for i in country.upper():
|
||||
res += chr(ord(i) + ord('🇦') - ord('A'))
|
||||
return res
|
||||
|
||||
po_file = polib.pofile(args.file)
|
||||
entries = [i.msgid for i in po_file.translated_entries()]
|
||||
ISSUE_LABEL="localisation"
|
||||
ISSUE_TITLE="[{lang}] Missing translations"
|
||||
|
||||
# Map language code to a country flag
|
||||
countries = {
|
||||
'es': 'es',
|
||||
'fr': 'fr',
|
||||
'it': 'it',
|
||||
'ja': 'jp',
|
||||
'zh_TW': 'tw',
|
||||
'pt_BR': 'br'
|
||||
}
|
||||
if __name__ == "__main__":
|
||||
root = os.path.dirname(os.path.dirname(__file__))
|
||||
locale_dir = os.path.join(root, "locale")
|
||||
cwd = os.getcwd()
|
||||
|
||||
if args.lang in countries:
|
||||
country = countries[args.lang]
|
||||
else:
|
||||
country = args.lang
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='check_po.py',
|
||||
description='Check that all strings are translated in a .po file')
|
||||
|
||||
flag = ''
|
||||
for i in country.upper():
|
||||
flag += chr(ord(i) + ord('🇦') - ord('A'))
|
||||
parser.add_argument('lang', type=str, nargs="*")
|
||||
parser.add_argument('--github-repository')
|
||||
parser.add_argument('--github-token')
|
||||
parser.add_argument('--manage-issues', action="store_true")
|
||||
|
||||
missing = 0
|
||||
for i in po_ref:
|
||||
if not i.obsolete:
|
||||
if not i.msgid in entries:
|
||||
missing = missing + 1
|
||||
print(f"::notice file={args.file}::{flag} Translation for {repr(i.msgid)} is missing")
|
||||
args = parser.parse_args()
|
||||
|
||||
if missing > 0:
|
||||
print(f"::warning file={args.file}::{flag} {missing} translations missing")
|
||||
sys.exit(1)
|
||||
if len(args.lang) == 0:
|
||||
for d in sorted(os.listdir(locale_dir)):
|
||||
if os.path.isdir(os.path.join(locale_dir, d)):
|
||||
args.lang.append(d)
|
||||
|
||||
if args.manage_issues:
|
||||
from github import Github, Auth
|
||||
gh = Github(auth=Auth.Token(args.github_token))
|
||||
repo = gh.get_repo(args.github_repository)
|
||||
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
client_pot = os.path.join(tmpdir, "client.pot")
|
||||
dashboard_pot = os.path.join(tmpdir, "dashboard.pot")
|
||||
|
||||
subprocess.check_call(
|
||||
["xgettext",
|
||||
"--c++", "--from-code=UTF-8",
|
||||
"--keyword=_:1,1t",
|
||||
"--keyword=_S:1,1t",
|
||||
"--keyword=_cS:1c,2,2t",
|
||||
"--keyword=_F:1,1t",
|
||||
"--output", client_pot,
|
||||
"--package-name=WiVRn",
|
||||
] + sorted(list_files(os.path.join(root, "client"), ".cpp"))
|
||||
)
|
||||
|
||||
subprocess.check_call(
|
||||
["xgettext",
|
||||
"--c++", "--kde", "--from-code=UTF-8",
|
||||
"--keyword=i18n:1",
|
||||
"--keyword=i18nc:1c,2",
|
||||
"--keyword=i18np:1,2",
|
||||
"--keyword=i18ncp:1c,2,3",
|
||||
"--output", dashboard_pot,
|
||||
"--package-name=WiVRn-dashboard",
|
||||
] + sorted(list_files(os.path.join(root, "dashboard"), [".cpp", ".qml"]))
|
||||
)
|
||||
|
||||
client_ref = polib.pofile(client_pot)
|
||||
dashboard_ref = polib.pofile(dashboard_pot)
|
||||
|
||||
for lang in args.lang:
|
||||
lang_issues = 0
|
||||
for po_ref, po in ((client_ref, os.path.join(locale_dir, lang, "wivrn.po")),
|
||||
(dashboard_ref, os.path.join(locale_dir, lang, "wivrn-dashboard.po"))):
|
||||
if not os.path.exists(po):
|
||||
continue
|
||||
po_file = polib.pofile(po)
|
||||
po = os.path.relpath(po, cwd)
|
||||
entries = [i.msgid for i in po_file.translated_entries()]
|
||||
|
||||
missing = 0
|
||||
for i in po_ref:
|
||||
if not i.obsolete:
|
||||
if not i.msgid in entries:
|
||||
missing = missing + 1
|
||||
print(f"::notice file={po}::{flag(lang)} Translation for {repr(i.msgid)} is missing")
|
||||
lang_issues += missing
|
||||
|
||||
if missing > 0:
|
||||
print(f"::warning file={po}::{flag(lang)} {missing} translations missing")
|
||||
|
||||
if args.manage_issues:
|
||||
issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)]
|
||||
if lang_issues > 0:
|
||||
if issues:
|
||||
for issue in issues:
|
||||
if issue.state != "open":
|
||||
issue.edit(state="open")
|
||||
else:
|
||||
issue = repo.create_issue(
|
||||
title=ISSUE_TITLE.format(lang=lang),
|
||||
labels=[ISSUE_LABEL]
|
||||
)
|
||||
else:
|
||||
for issue in issues:
|
||||
issue.edit(state="closed")
|
||||
|
||||
Reference in New Issue
Block a user