Compare commits

...
Author SHA1 Message Date
Vindicus999 20b67a5a3c Merge remote-tracking branch 'upstream/master' 2025-08-04 11:15:24 +00:00
Patrick Nicolas 55def29a10 Update fr locale 2025-08-04 09:42:23 +02:00
Patrick Nicolas 88f5f2ace4 Show warning if no OpenVR library is detected 2025-08-04 09:40:09 +02:00
Guillaume Meunier 9a53aaa205 Add support for paletted icons, fix misc ico loading bugs 2025-08-04 09:13:51 +02:00
Guillaume Meunier de810d1eea Don't crash the client when the icon cannot be loaded 2025-08-04 09:13:51 +02:00
Guillaume Meunier 06240858fd Avoid loading app icons in the dashboard, add error handling when loading steam icon 2025-08-04 09:13:51 +02:00
Guillaume Meunier fddfb8eb57 Check sizes for overflow before serializing vectors, strings, and spans 2025-08-04 09:13:51 +02:00
Vindicus999 c55fec84fe Merge remote-tracking branch 'upstream/master' 2025-08-03 17:14:21 +00:00
Jayden d9a86cb1c8 updated zh_TW translation (#423) 2025-08-03 14:58:10 +02:00
ჼ 79139b38bc Add Slovak translation (#420) 2025-08-03 14:56:49 +02:00
Vindicus999 acf6cc03d0 Merge remote-tracking branch 'upstream/master' 2025-08-03 11:13:42 +00:00
Guillaume Meunier fc3d13ca9d Position the text correctly in the app list 2025-08-03 11:03:33 +02:00
Guillaume Meunier 22757c99ad Don't load too many textures in the same frame 2025-08-03 10:50:22 +02:00
Guillaume Meunier 993adbb651 Drag to scroll, even when hovering a widget 2025-08-03 10:50:22 +02:00
Guillaume Meunier 18f38b575d Cache the loaded icons 2025-08-03 10:50:22 +02:00
Sapphire 5d427f1464 Add librsvg and libpng to nix build inputs 2025-08-03 10:50:22 +02:00
Guillaume Meunier 51b1b3efeb Premultiply alpha when loading images 2025-08-03 10:50:22 +02:00
Guillaume Meunier a144f88f95 Fix horizontal scrolling 2025-08-03 10:50:22 +02:00
Guillaume Meunier fed26b0675 Improve scrolling with the thumbstick 2025-08-03 10:50:22 +02:00
Guillaume Meunier 02c3da3f9f Use a growable descriptor pool in imgui 2025-08-03 10:50:22 +02:00
Guillaume Meunier 1fa4ac0231 Avoid using boost::property_tree for ini parsing 2025-08-03 10:50:22 +02:00
Guillaume Meunier d830d3bdd0 Support older libstdc++ 2025-08-03 10:50:22 +02:00
Guillaume Meunier ce21f578a1 Fix Ubuntu package in CI 2025-08-03 10:50:22 +02:00
Guillaume Meunier 46ad809d56 Add dependency to librsvg2 in CI and docs 2025-08-03 10:50:22 +02:00
Guillaume Meunier 9ded9d37f7 Send packet size on 32 bits instead of 16 bits in TCP 2025-08-03 10:50:22 +02:00
Guillaume Meunier 8aca33e0a4 Set imgui textures to clamp to edge 2025-08-03 10:50:22 +02:00
Guillaume Meunier f3c668a331 Display app icons in lobby 2025-08-03 10:50:22 +02:00
Guillaume Meunier 5e93c87403 Send application icons to the headset 2025-08-03 10:50:22 +02:00
Guillaume Meunier 5435513da2 Allow loading texture from memory buffer for imgui 2025-08-03 10:50:22 +02:00
Patrick Nicolas e67c071be6 Dump velocities with WIVRN_DUMP_TRACKING 2025-08-03 10:48:44 +02:00
Patrick Nicolas 1370942833 Fix controller velocities with xrLocateSpaces 2025-08-03 10:15:28 +02:00
Vindicus999 0e2d46c152 Merge remote-tracking branch 'upstream/master' 2025-08-02 11:13:31 +00:00
Patrick Nicolas cd47a331de Bump xrizer to v0.3 2025-08-02 09:16:40 +02:00
Patrick Nicolas 315c2f4d82 Change mpc download mirror 2025-08-02 09:11:19 +02:00
Patrick Nicolas c8dc545198 Improve locale check summary 2025-08-02 09:06:23 +02:00
BlackCherryCat 8eaa62c3f8 Update es locale 2025-08-02 08:33:52 +02:00
mitsuami-megane 7884893ccc ja locale line breaks 2025-08-02 08:32:36 +02:00
Vindicus999 ea5d3b4185 Merge remote-tracking branch 'upstream/master' 2025-07-31 11:14:26 +00:00
mitsuami-megane d7d91cd84d update ja locale 2025-07-31 09:18:01 +02:00
46 changed files with 3914 additions and 481 deletions
+11 -4
View 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
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
- 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
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
# 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
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
- 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
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
- uses: actions/checkout@v4
with:
@@ -489,6 +489,13 @@ jobs:
patch -p1 --fuzz=0 --forward < "$p"
done
- name: Download stb
run: |
wget https://github.com/nothings/stb/archive/013ac3beddff3dbffafd5177e7972067cd2b5083.tar.gz -O stb.tar.gz
mkdir wivrn/stb-src
tar xzf stb.tar.gz --strip-components=1 -C wivrn/stb-src
- name: Edit changelog
working-directory: wivrn
run: >
+5
View File
@@ -183,6 +183,11 @@ if (WIVRN_BUILD_SERVER)
pkg_check_modules(libnotify REQUIRED IMPORTED_TARGET libnotify)
endif()
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
pkg_check_modules(librsvg-2.0 REQUIRED IMPORTED_TARGET librsvg-2.0)
find_package(PNG)
endif()
if (WIVRN_BUILD_DASHBOARD)
find_package(Qt6 REQUIRED COMPONENTS Core Quick Test Gui QuickControls2 Widgets Network)
+1
View File
@@ -153,6 +153,7 @@ WiVRn uses the following software:
- [FreeType](https://freetype.org/)
- [glm](http://glm.g-truc.net/)
- [HarfBuzz](https://harfbuzz.github.io/)
- [librsvg](https://wiki.gnome.org/Projects/LibRsvg)
- [Monado](https://monado.freedesktop.org/)
- [nvenc](https://developer.nvidia.com/nvidia-video-codec-sdk) optional, for hardware encoding on Nvidia
- [qCoro](https://qcoro.dev/)
Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

+4
View File
@@ -240,6 +240,10 @@ if(ANDROID)
COMMAND ${TOKTX} --encode astc --astc_blk_d 4x4 --astc_quality 100 --genmipmap ${ASSETS_DIR}/wivrn.ktx2 ${ASSETS_DIR}/wivrn.png
DEPENDS ${ASSETS_DIR}/wivrn.png)
add_custom_command(OUTPUT ${ASSETS_DIR}/default_icon.ktx2
COMMAND ${TOKTX} --encode astc --astc_blk_d 4x4 --astc_quality 100 --genmipmap ${ASSETS_DIR}/wivrn-pride.ktx2 ${ASSETS_DIR}/default_icon.png
DEPENDS ${ASSETS_DIR}/default_icon.png)
add_custom_command(OUTPUT ${ASSETS_DIR}/WoodFloor051_1K-JPG_Color.ktx2
COMMAND ${TOKTX} --encode astc --astc_blk_d 12x12 --astc_quality 100 --genmipmap ${ASSETS_DIR}/WoodFloor051_1K-JPG_Color.ktx2 ${AST_SRC_DIR}/WoodFloor051_1K-JPG_Color.jpg
DEPENDS ${AST_SRC_DIR}/WoodFloor051_1K-JPG_Color.jpg)
+1 -4
View File
@@ -28,9 +28,6 @@ namespace constants::gui
// Minimum distance between a GUI layer and a fingertip/controller to register a click
constexpr float min_pointer_distance = -0.1;
// Number of combined image samplers in ImGui descriptor pool
constexpr unsigned int nb_combined_image_samplers = 100;
// Font to use (desktop only)
constexpr const char font_name[] = "Noto Sans";
@@ -39,7 +36,7 @@ constexpr int font_size_small = 30;
constexpr int font_size_large = 75;
// Ratio between joystick position and scroll distance/s
constexpr float scroll_ratio = 3;
constexpr float scroll_ratio = 10;
// Threshold on the trigger value to register a click
constexpr float trigger_click_thd = 0.8;
+33 -5
View File
@@ -23,13 +23,41 @@
struct descriptor_set
{
growable_descriptor_pool & growable_pool;
growable_descriptor_pool * growable_pool;
vk::DescriptorPool pool;
vk::raii::DescriptorSet ds;
descriptor_set(const descriptor_set &) = delete;
descriptor_set & operator=(const descriptor_set &) = delete;
descriptor_set(growable_descriptor_pool * growable_pool,
vk::DescriptorPool pool,
vk::raii::DescriptorSet ds) :
growable_pool(growable_pool),
pool(pool),
ds(std::move(ds))
{
}
descriptor_set(descriptor_set && other) :
growable_pool(std::exchange(other.growable_pool, nullptr)),
pool(other.pool),
ds(std::move(other.ds))
{
}
descriptor_set & operator=(descriptor_set && other)
{
std::swap(*this, other);
return *this;
}
~descriptor_set()
{
for (auto & i: growable_pool.pools)
if (not growable_pool)
return;
for (auto & i: growable_pool->pools)
{
if (*i.descriptor_pool == pool)
{
@@ -43,7 +71,7 @@ struct descriptor_set
growable_descriptor_pool::growable_descriptor_pool(
vk::raii::Device & device,
vk::raii::DescriptorSetLayout & layout,
std::span<vk::DescriptorSetLayoutBinding> bindings,
std::span<const vk::DescriptorSetLayoutBinding> bindings,
int descriptorsets_per_pool) :
device(device),
layout_(nullptr),
@@ -84,7 +112,7 @@ std::shared_ptr<vk::raii::DescriptorSet> growable_descriptor_pool::allocate()
i.free_count--;
alloc_info.descriptorPool = *i.descriptor_pool;
auto ds = std::make_shared<descriptor_set>(*this, *i.descriptor_pool, std::move(device.allocateDescriptorSets(alloc_info)[0]));
auto ds = std::make_shared<descriptor_set>(this, *i.descriptor_pool, std::move(device.allocateDescriptorSets(alloc_info)[0]));
return std::shared_ptr<vk::raii::DescriptorSet>(ds, &ds->ds);
}
@@ -103,7 +131,7 @@ std::shared_ptr<vk::raii::DescriptorSet> growable_descriptor_pool::allocate()
alloc_info.descriptorPool = *pools.back().descriptor_pool;
auto ds = std::make_shared<descriptor_set>(*this, *pools.back().descriptor_pool, std::move(device.allocateDescriptorSets(alloc_info)[0]));
auto ds = std::make_shared<descriptor_set>(this, *pools.back().descriptor_pool, std::move(device.allocateDescriptorSets(alloc_info)[0]));
return std::shared_ptr<vk::raii::DescriptorSet>(ds, &ds->ds);
}
+1 -1
View File
@@ -40,7 +40,7 @@ class growable_descriptor_pool
std::vector<pool> pools;
public:
growable_descriptor_pool(vk::raii::Device & device, vk::raii::DescriptorSetLayout & layout, std::span<vk::DescriptorSetLayoutBinding> bindings, int descriptorsets_per_pool = 100);
growable_descriptor_pool(vk::raii::Device & device, vk::raii::DescriptorSetLayout & layout, std::span<const vk::DescriptorSetLayoutBinding> bindings, int descriptorsets_per_pool = 100);
std::shared_ptr<vk::raii::DescriptorSet> allocate();
};
+37
View File
@@ -471,6 +471,41 @@ static constexpr bool starts_with(std::span<const std::byte> data, std::span<con
return data.size() >= prefix.size() && !memcmp(data.data(), prefix.data(), prefix.size());
}
template <typename T>
void premultiply_alpha_aux(T * pixels, float alpha_scale, int width, int height)
{
for (int i = 0, n = width * height; i < n; i++)
{
float alpha = pixels[4 * i + 3] * alpha_scale;
pixels[4 * i + 0] = pixels[4 * i + 0] * alpha;
pixels[4 * i + 1] = pixels[4 * i + 1] * alpha;
pixels[4 * i + 2] = pixels[4 * i + 2] * alpha;
}
}
static void premultiply_alpha(void * pixels, vk::Extent3D extent, vk::Format format)
{
switch (format)
{
case vk::Format::eR8G8B8A8Srgb: // TODO: sRGB
case vk::Format::eR8G8B8A8Unorm:
premultiply_alpha_aux<uint8_t>((uint8_t *)pixels, 1. / 255., extent.width, extent.height);
break;
case vk::Format::eR16G16B16A16Unorm:
premultiply_alpha_aux<uint16_t>((uint16_t *)pixels, 1. / 65535., extent.width, extent.height);
break;
case vk::Format::eR32G32B32A32Sfloat:
premultiply_alpha_aux<float>((float *)pixels, 1, extent.width, extent.height);
break;
default:
break;
}
}
// Load a PNG/JPEG/KTX2 file
void image_loader::load(std::span<const std::byte> bytes, bool srgb)
{
@@ -517,6 +552,8 @@ void image_loader::load(std::span<const std::byte> bytes, bool srgb)
extent.height = h;
extent.depth = 1;
premultiply_alpha(pixels.get(), extent, format);
do_load_raw(pixels.get(), extent, format);
}
}
+45 -31
View File
@@ -289,32 +289,21 @@ imgui_context::imgui_frame & imgui_context::get_frame(vk::Image destination)
return frame;
}
static const std::array pool_sizes =
{
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = constants::gui::nb_combined_image_samplers,
}};
static const vk::DescriptorSetLayoutBinding layout_bindings{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment};
static const std::array layout_bindings = {
vk::DescriptorSetLayoutBinding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
}};
imgui_context::imgui_context(vk::raii::PhysicalDevice physical_device, vk::raii::Device & device, uint32_t queue_family_index, vk::raii::Queue & queue, std::span<controller> controllers_, xr::swapchain & swapchain, std::vector<viewport> layers) :
physical_device(physical_device),
device(device),
queue_family_index(queue_family_index),
queue(queue),
descriptor_pool(device,
vk::DescriptorPoolCreateInfo{
.flags = vk::DescriptorPoolCreateFlagBits::eFreeDescriptorSet,
.maxSets = pool_sizes[0].descriptorCount,
.poolSizeCount = pool_sizes.size(),
.pPoolSizes = pool_sizes.data(),
}),
ds_layout(device, vk::DescriptorSetLayoutCreateInfo{.bindingCount = 1, .pBindings = &layout_bindings}),
ds_layout(device, vk::DescriptorSetLayoutCreateInfo{.bindingCount = layout_bindings.size(), .pBindings = layout_bindings.data()}),
descriptor_pool(device, ds_layout, layout_bindings),
renderpass(create_renderpass(device, swapchain.format(), true)),
command_pool(device,
vk::CommandPoolCreateInfo{
@@ -353,13 +342,13 @@ imgui_context::imgui_context(vk::raii::PhysicalDevice physical_device, vk::raii:
.Device = *application::get_device(),
.QueueFamily = application::queue_family_index(),
.Queue = *application::get_queue(),
.DescriptorPool = *descriptor_pool,
.RenderPass = *renderpass,
.MinImageCount = 2,
.ImageCount = (uint32_t)swapchain.images().size(), // used to cycle between VkBuffers in ImGui_ImplVulkan_RenderDrawData
.MSAASamples = VK_SAMPLE_COUNT_1_BIT,
.PipelineCache = *application::get_pipeline_cache(),
.Subpass = 0,
.DescriptorPoolSize = 100,
.Allocator = nullptr,
.CheckVkResultFn = check_vk_result,
};
@@ -722,7 +711,7 @@ void imgui_context::new_frame(XrTime display_time)
ImPlot::SetCurrentContext(plot_context);
if (last_display_time)
io.DeltaTime = std::min((display_time - last_display_time) * 1e-9f, 0.1f);
io.DeltaTime = std::min((display_time - last_display_time) * 1e-9f, 0.0166f);
last_display_time = display_time;
// Uses the window list from last frame
@@ -752,7 +741,10 @@ void imgui_context::new_frame(XrTime display_time)
io.AddMousePosEvent(position->x, position->y);
if (glm::length(scroll) > constants::gui::scroll_value_thd)
io.AddMouseWheelEvent(scroll.x, scroll.y);
{
io.MouseWheel = scroll.y;
io.MouseWheelH = scroll.x;
}
}
}
@@ -1018,16 +1010,17 @@ imgui_context::~imgui_context()
}
ImTextureID imgui_context::load_texture(const std::string & filename, vk::raii::Sampler && sampler)
{
return load_texture(std::span<const std::byte>{asset{filename}}, std::move(sampler));
}
ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler)
{
bool srgb = true;
image_loader loader(physical_device, device, queue, command_pool);
loader.load(asset{filename}, srgb);
loader.load(bytes, srgb);
vk::raii::DescriptorSet ds = std::move(device.allocateDescriptorSets({
.descriptorPool = *descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*ds_layout,
})[0]);
std::shared_ptr<vk::raii::DescriptorSet> ds = descriptor_pool.allocate();
vk::DescriptorImageInfo image_info{
.sampler = *sampler,
@@ -1036,14 +1029,14 @@ ImTextureID imgui_context::load_texture(const std::string & filename, vk::raii::
};
vk::WriteDescriptorSet ds_write{
.dstSet = *ds,
.dstSet = **ds,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info};
device.updateDescriptorSets(ds_write, nullptr);
ImTextureID id = reinterpret_cast<ImTextureID>(VkDescriptorSet(*ds));
ImTextureID id = reinterpret_cast<ImTextureID>(VkDescriptorSet(**ds));
textures.emplace(
id,
@@ -1057,6 +1050,24 @@ ImTextureID imgui_context::load_texture(const std::string & filename, vk::raii::
return id;
}
ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes)
{
return load_texture(
bytes,
vk::raii::Sampler{
device,
vk::SamplerCreateInfo{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
.borderColor = vk::BorderColor::eFloatTransparentBlack,
},
});
}
ImTextureID imgui_context::load_texture(const std::string & filename)
{
return load_texture(
@@ -1067,6 +1078,9 @@ ImTextureID imgui_context::load_texture(const std::string & filename)
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
.borderColor = vk::BorderColor::eFloatTransparentBlack,
},
});
+5 -2
View File
@@ -18,6 +18,7 @@
#pragma once
#include "render/growable_descriptor_pool.h"
#include "wivrn_config.h"
#include "xr/hand_tracker.h"
#include "xr/space.h"
@@ -46,7 +47,7 @@ class imgui_context
{
vk::raii::Sampler sampler;
std::shared_ptr<vk::raii::ImageView> image_view;
vk::raii::DescriptorSet descriptor_set;
std::shared_ptr<vk::raii::DescriptorSet> descriptor_set;
};
public:
@@ -121,8 +122,8 @@ private:
vk::raii::Queue & queue;
vk::raii::Pipeline pipeline = nullptr;
vk::raii::DescriptorPool descriptor_pool;
vk::raii::DescriptorSetLayout ds_layout;
growable_descriptor_pool descriptor_pool;
vk::raii::RenderPass renderpass;
vk::raii::CommandPool command_pool;
@@ -207,6 +208,8 @@ public:
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
ImTextureID load_texture(const std::string & filename);
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler);
ImTextureID load_texture(const std::span<const std::byte> & bytes);
void free_texture(ImTextureID);
void set_current();
+12
View File
@@ -906,6 +906,16 @@ void scenes::lobby::on_focused()
{
about_picture = imgui_ctx->load_texture(image + ".png");
}
try
{
default_icon = imgui_ctx->load_texture("default_icon.ktx2");
}
catch (...)
{
default_icon = imgui_ctx->load_texture("default_icon.png");
}
setup_passthrough();
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
multicast = application::get_wifi_lock().get_multicast_lock();
@@ -926,6 +936,8 @@ void scenes::lobby::on_unfocused()
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets
about_picture = 0;
default_icon = 0;
app_icons.clear();
imgui_ctx.reset();
world.clear(); // Must be cleared before the renderer so that the descriptor sets are freed before their pools
+2
View File
@@ -118,6 +118,8 @@ class lobby : public scene_impl<lobby>
tab last_current_tab = tab::server_list;
int optional_feature_index = 0; // Which step of the first run screen are we in
ImTextureID about_picture;
ImTextureID default_icon;
std::unordered_map<std::string, ImTextureID> app_icons;
virtual_keyboard keyboard;
+163 -24
View File
@@ -32,40 +32,65 @@
#include "stream.h"
#include "utils/i18n.h"
#include "utils/overloaded.h"
#include "utils/ranges.h"
#include "version.h"
#include <algorithm>
#include <cassert>
#include <chrono>
#include <filesystem>
#include <glm/gtc/quaternion.hpp>
#include <ranges>
#include <spdlog/fmt/fmt.h>
#include <string>
#include <utility>
#include <utils/strings.h>
#include "IconsFontAwesome6.h"
static void ScrollWhenDraggingOnVoid()
using namespace std::chrono_literals;
// https://github.com/ocornut/imgui/issues/3379#issuecomment-2943903877
static void ScrollWhenDragging()
{
ImVec2 delta{0.0f, -ImGui::GetIO().MouseDelta.y};
const ImGuiMouseButton mouse_button = ImGuiMouseButton_Left;
// https://github.com/ocornut/imgui/issues/3379#issuecomment-1678718752
ImGuiContext & g = *ImGui::GetCurrentContext();
ImGuiWindow * window = g.CurrentWindow;
bool hovered = false;
bool held = false;
static bool held_prev = false;
// Don't drag for the first frame because the current controller might have just changed and have a large delta
ImGuiID id = window->GetID("##scrolldraggingoverlay");
ImGui::KeepAliveID(id);
if (g.HoveredId == 0) // If nothing hovered so far in the frame (not same as IsAnyItemHovered()!)
ImGui::ButtonBehavior(window->Rect(), id, &hovered, &held, ImGuiButtonFlags_MouseButtonLeft);
if (held and held_prev and delta.x != 0.0f)
ImGui::SetScrollX(window, window->Scroll.x + delta.x);
if (held and held_prev and delta.y != 0.0f)
ImGui::SetScrollY(window, window->Scroll.y + delta.y);
held_prev = held;
static int active_id;
static ImVec2 cumulated_delta;
bool HoveredIdAllowOverlap_backup = std::exchange(g.HoveredIdAllowOverlap, true);
bool ActiveIdAllowOverlap_backup = std::exchange(g.ActiveIdAllowOverlap, true);
if (active_id == 0 and ImGui::ItemHoverable(window->Rect(), 0, g.CurrentItemFlags) and ImGui::IsMouseClicked(mouse_button, ImGuiInputFlags_None, /*id*/ ImGuiKeyOwner_Any))
{
active_id = id;
// Don't scroll on the first step, in case the active controller just changed
delta = {};
cumulated_delta = {};
}
if (not g.IO.MouseDown[mouse_button])
active_id = 0;
if (active_id == id)
{
if (delta.x != 0.0f)
ImGui::SetScrollX(window, window->Scroll.x + delta.x);
if (delta.y != 0.0f)
ImGui::SetScrollY(window, window->Scroll.y + delta.y);
cumulated_delta += delta;
if (std::max(std::abs(cumulated_delta.x), std::abs(cumulated_delta.y)) > 50)
ImGui::ClearActiveID();
}
g.HoveredIdAllowOverlap = HoveredIdAllowOverlap_backup;
g.ActiveIdAllowOverlap = ActiveIdAllowOverlap_backup;
}
static void CenterTextH(const std::string & text)
@@ -147,6 +172,54 @@ static void display_recentering_tip(imgui_context & ctx, const std::string & tip
ImGui::PopFont();
}
// Display a button with an image and a text centred horizontally
static bool icon(const std::string & text, ImTextureRef tex_ref, const ImVec2 & image_size, ImGuiButtonFlags flags = 0, const ImVec2 & size_arg = ImVec2(0, 0), const ImVec2 & uv0 = ImVec2(0, 0), const ImVec2 & uv1 = ImVec2(1, 1), const ImVec4 & tint_col = ImVec4(1, 1, 1, 1))
{
// Based on ImGui::ButtonEx and ImGui::ImageButtonEx
ImGuiWindow * window = ImGui::GetCurrentWindow();
const ImGuiStyle & style = ImGui::GetStyle();
if (window->SkipItems)
return false;
const ImVec2 label_size = ImGui::CalcTextSize(text.c_str(), nullptr, true);
ImVec2 size = ImGui::CalcItemSize(
size_arg,
std::max(image_size.x, label_size.x) + style.FramePadding.x * 2.0f,
image_size.y + style.ItemInnerSpacing.y + label_size.y + style.FramePadding.y * 2.0f);
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
ImRect image_pos(
{(bb.Min.x + bb.Max.x - image_size.x) / 2, bb.Min.y + style.FramePadding.y},
{(bb.Min.x + bb.Max.x + image_size.x) / 2, bb.Min.y + style.FramePadding.y + image_size.y});
ImRect label_pos(
{bb.Min.x + style.FramePadding.x, image_pos.Max.y + style.ItemInnerSpacing.y},
{bb.Max.x - style.FramePadding.x, bb.Max.y - style.FramePadding.y});
ImGui::ItemSize(bb);
ImGuiID id = window->GetID(text.c_str());
if (!ImGui::ItemAdd(bb, id))
return false;
bool hovered, held;
bool pressed = ImGui::ButtonBehavior(bb, id, &hovered, &held, flags);
// Render
const ImU32 col = ImGui::GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered
: ImGuiCol_Button);
ImGui::RenderNavCursor(bb, id);
ImGui::RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
window->DrawList->AddImage(tex_ref, image_pos.Min, image_pos.Max, uv0, uv1, ImGui::GetColorU32(tint_col));
ImGui::RenderTextClipped(label_pos.Min, label_pos.Max, text.c_str(), NULL, &label_size, style.ButtonTextAlign, &bb);
return pressed;
}
std::string openxr_post_processing_flag_name(XrCompositionLayerSettingsFlagsFB flag)
{
switch (flag)
@@ -307,6 +380,11 @@ void scenes::lobby::gui_connected()
if (not next_scene)
{
current_tab = tab::server_list;
for (const auto & [app_id, app_icon]: app_icons)
imgui_ctx->free_texture(app_icon);
app_icons.clear();
return;
}
@@ -328,21 +406,82 @@ void scenes::lobby::gui_connected()
}
else
{
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, disconnect_size.y + 80), 0);
ImGui::Indent(20);
if (server_name.empty())
ImGui::Text("%s", _S("Start an application on your computer or select one to start streaming."));
else
ImGui::Text("%s", fmt::format(_F("Start an application on {} or select one to start streaming."), server_name).c_str());
for (const auto & app: apps->applications)
ImGui::Unindent();
float icon_width = 400;
float icon_spacing = ImGui::GetStyle().ItemSpacing.x;
float usable_window_width = ImGui::GetWindowSize().x - ImGui::GetCurrentWindow()->ScrollbarSizes.x;
int icons_per_line = (usable_window_width + icon_spacing) / (icon_width + icon_spacing);
float icon_line_width = icons_per_line * icon_width + (icons_per_line - 1) * icon_spacing;
ImGui::Indent((usable_window_width - icon_line_width) / 2);
auto t0 = std::chrono::steady_clock::now();
for (const auto [index, app]: utils::enumerate(apps->applications))
{
if (ImGui::Button(fmt::format(ICON_FA_PLAY "##{}", app.id).c_str()))
ImTextureID texture = [&]() -> ImTextureID {
if (app.image.empty())
return default_icon;
else
{
auto it = app_icons.find(app.id);
if (it == app_icons.end())
{
// Don't load too many textures at the same time to keep the GUI responsive
if (std::chrono::steady_clock::now() - t0 > 10ms)
return default_icon;
try
{
it = app_icons.emplace(app.id, imgui_ctx->load_texture(app.image)).first;
}
catch (std::exception & e)
{
spdlog::warn("Unable to load icon for \"{}\": {}", app.id, e.what());
app.image.clear();
return default_icon;
}
}
return it->second;
}
}();
ImGui::PushStyleColor(ImGuiCol_Button, 0);
if (icon(app.name + "##" + app.id, texture, {256, 256}, 0, {icon_width, 0}))
next_scene->start_application(app.id);
imgui_ctx->vibrate_on_hover();
ImGui::SameLine();
ImGui::Text("%s", app.name.c_str());
ImGui::PopStyleColor(); // ImGuiCol_Button
if (index % 3 != 2)
ImGui::SameLine();
}
ScrollWhenDraggingOnVoid();
ImGui::Unindent();
std::vector<std::pair<std::string, ImTextureID>> to_be_removed;
for (const auto & [app_id, app_icon]: app_icons)
{
if (not std::ranges::contains(apps->applications, app_id, &to_headset::application_list::application::id))
to_be_removed.emplace_back(app_id, app_icon);
}
for (const auto & [app_id, app_icon]: to_be_removed)
{
imgui_ctx->free_texture(app_icon);
app_icons.erase(app_id);
}
ScrollWhenDragging();
ImGui::EndChild();
ImGui::PopStyleVar(); // ImGuiStyleVar_WindowPadding
}
ImGui::PopStyleVar();
@@ -358,7 +497,7 @@ void scenes::lobby::gui_connected()
current_tab = tab::server_list;
}
imgui_ctx->vibrate_on_hover();
ImGui::PopStyleColor(3);
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
}
void scenes::lobby::gui_new_server()
@@ -1746,14 +1885,14 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> scenes::lobby::draw_gui(XrTi
}
else if (current_tab == tab::connected)
{
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 20});
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {0, 20});
ImGui::SetNextWindowSize({1400, 900});
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
ImGui::Begin("WiVRn", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
gui_connected();
ImGui::End();
ImGui::PopStyleVar(3); // ImGuiStyleVar_WindowPadding
ImGui::PopStyleVar(3); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding, ImGuiStyleVar_FramePadding
}
else
{
@@ -1816,7 +1955,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> scenes::lobby::draw_gui(XrTi
ImGui::Dummy(ImVec2(0, 20));
ScrollWhenDraggingOnVoid();
ScrollWhenDragging();
ImGui::EndChild();
ImGui::PopStyleVar(2); // ImGuiStyleVar_FrameRounding, ImGuiStyleVar_WindowPadding
+1
View File
@@ -156,6 +156,7 @@ public:
};
XrSpaceLocations spc_locations{
.type = XR_TYPE_SPACE_LOCATIONS,
.next = &spc_velocities,
.locationCount = uint32_t(locations.size()),
.locations = locations.data(),
};
+5 -1
View File
@@ -44,9 +44,13 @@ add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
add_library(wivrn-common-server STATIC EXCLUDE_FROM_ALL
utils/flatpak.cpp
utils/xdg_icon_lookup.cpp
utils/steam_app_info.cpp
utils/load_icon.cpp
utils/ini.cpp
application.cpp
)
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PUBLIC wivrn-common-base)
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 PUBLIC wivrn-common-base)
if (WIVRN_BUILD_TEST)
add_executable(list-apps
+103 -21
View File
@@ -20,7 +20,10 @@
#include "application.h"
#include "utils/flatpak.h"
#include "utils/load_icon.h"
#include "utils/steam_app_info.h"
#include "utils/xdg_base_directory.h"
#include "utils/xdg_icon_lookup.h"
#include <filesystem>
#include <fstream>
@@ -32,7 +35,6 @@ namespace wivrn
namespace
{
std::string read_file(const std::filesystem::path & path)
{
std::ifstream f(path);
@@ -47,30 +49,82 @@ std::filesystem::path home()
return home ? home : "";
}
std::pair<std::string, std::string> read_vr_manifest()
std::pair<std::string, std::optional<std::filesystem::path>> find_steam()
{
// system Steam
auto manifest = read_file(xdg_data_home() / "Steam/config/steamapps.vrmanifest");
if (not manifest.empty())
return {"steam", manifest};
if (std::filesystem::exists(xdg_data_home() / "Steam"))
return {"steam", xdg_data_home() / "Steam"};
auto h = home();
// system Steam (accessed from flatpak)
manifest = read_file(h / ".local/share/Steam/config/steamapps.vrmanifest");
if (not manifest.empty())
return {"steam", manifest};
if (std::filesystem::exists(h / ".local/share/Steam"))
return {"steam", h / ".local/share/Steam"};
// Flatpak Steam
manifest = read_file(h / ".var/app/com.valvesoftware.Steam/.steam/steam/config/steamapps.vrmanifest");
if (not manifest.empty())
return {"flatpak run com.valvesoftware.Steam", manifest};
if (std::filesystem::exists(h / ".var/app/com.valvesoftware.Steam/.steam/steam"))
return {"flatpak run com.valvesoftware.Steam", h / ".var/app/com.valvesoftware.Steam/.steam/steam"};
return {};
}
void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
std::string read_vr_manifest(const std::filesystem::path & root)
{
auto [command, manifest] = read_vr_manifest();
return read_file(root / "config/steamapps.vrmanifest");
}
steam_app_info read_steam_app_info(const std::filesystem::path & root)
{
try
{
return steam_app_info{root / "appcache/appinfo.vdf"};
}
catch (...)
{}
return {};
}
std::vector<std::byte> load_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
{
const auto & app_info = info.get(app_id);
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.clienticon"))};
auto image = load_icon(root / "steam/games" / (icon + ".ico"), 128);
if (not image.empty())
return image;
}
catch (...)
{
}
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.LinuxClientIcon"))};
auto image = load_icon(root / "steam/games" / (icon + ".zip"), 128);
if (not image.empty())
return image;
}
catch (...)
{
}
return {};
}
void read_steam_vr_apps(std::unordered_map<std::string, application> & res, bool load_icons)
{
auto [command, root] = find_steam();
if (not root)
return;
auto manifest = read_vr_manifest(*root);
auto info = read_steam_app_info(*root);
if (manifest.empty())
return;
nlohmann::json json = nlohmann::json::parse(manifest);
@@ -112,6 +166,22 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
}
}
if (load_icons)
{
try
{
const char prefix[] = "steam.app.";
if (app_key.starts_with(prefix))
{
uint32_t app_id = stoll(app_key.substr(strlen(prefix)));
app.image = load_steam_icon(*root, app_id, info);
}
}
catch (...)
{
}
}
if (not app.exec.empty())
res[app_key] = std::move(app);
}
@@ -211,7 +281,7 @@ bool contains(std::string_view entries, std::string_view val, char sep = ';')
return false;
}
std::optional<application> do_desktop_entry(const std::filesystem::path & filename)
std::optional<application> do_desktop_entry(const std::filesystem::path & filename, bool load_icons)
{
auto data = read_file(filename);
std::optional<application> res;
@@ -253,6 +323,16 @@ std::optional<application> do_desktop_entry(const std::filesystem::path & filena
res->exec = unescape(item.value);
if (item.key == "Path")
res->path = unescape(item.value);
if (item.key == "Icon" and load_icons)
{
try
{
if (auto filename = xdg_icon_lookup(std::string{item.value}, 256))
res->image = load_icon(*filename, 256);
}
catch (...)
{}
}
}
if (res->exec.empty() or not res->name.contains(""))
@@ -261,7 +341,7 @@ std::optional<application> do_desktop_entry(const std::filesystem::path & filena
return res;
}
void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, application> & res)
void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, application> & res, bool load_icons)
{
dir = dir / "applications";
if (not std::filesystem::is_directory(dir))
@@ -284,27 +364,29 @@ void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, appl
if (res.contains(file_id))
continue;
auto app = do_desktop_entry(entry.path());
auto app = do_desktop_entry(entry.path(), load_icons);
if (app)
res.emplace(std::move(file_id), std::move(*app));
}
}
} // namespace
std::unordered_map<std::string, application> list_applications(bool include_steam)
std::unordered_map<std::string, application> list_applications(bool include_steam, bool load_icons)
{
std::unordered_map<std::string, application> res;
if (include_steam)
read_steam_vr_apps(res);
read_steam_vr_apps(res, load_icons);
do_data_dir(xdg_data_home(), res, load_icons);
do_data_dir(xdg_data_home(), res);
for (auto && dir: xdg_data_dirs())
do_data_dir(std::move(dir), res);
do_data_dir(std::move(dir), res, load_icons);
if (wivrn::is_flatpak())
{
// Try to guess host data dirs
do_data_dir("/run/host/usr/share", res);
do_data_dir("/run/host/usr/share", res, load_icons);
}
return res;
+3 -1
View File
@@ -21,6 +21,7 @@
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
namespace wivrn
{
@@ -30,8 +31,9 @@ struct application
// localised names, with empty locale for default
std::unordered_map<std::string, std::string> name;
std::string exec;
std::vector<std::byte> image; // In PNG
std::optional<std::string> path;
};
std::unordered_map<std::string, application> list_applications(bool include_steam = true);
std::unordered_map<std::string, application> list_applications(bool include_steam = true, bool load_icons = true);
} // namespace wivrn
+92
View File
@@ -0,0 +1,92 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "ini.h"
#include <ranges>
static constexpr std::string_view strip(std::string_view sv)
{
size_t prefix_size = sv.find_first_not_of(' ');
if (prefix_size == std::string_view::npos)
return {};
sv.remove_prefix(prefix_size);
size_t suffix_size = sv.find_last_not_of(' ');
if (suffix_size == std::string_view::npos)
return {};
sv.remove_suffix(sv.size() - suffix_size - 1);
return sv;
}
static constexpr std::optional<wivrn::ini::key_value> parse_key_value(std::string_view section, std::string_view line)
{
size_t equal_sign = line.find('=');
if (equal_sign == std::string_view::npos)
return {};
auto key = strip(line.substr(0, equal_sign)); // TODO locale
auto value = strip(line.substr(equal_sign + 1));
return wivrn::ini::key_value{
.section = section,
.key = key,
.locale = "",
.value = value,
};
}
std::optional<std::string_view> wivrn::ini::get_optional(std::string_view section, std::string_view key) const
{
for (const auto & line: lines)
{
if (line.section == section and line.key == key)
return line.value;
}
return std::nullopt;
}
wivrn::ini::ini(std::istream & file)
{
contents = {std::istreambuf_iterator<char>{file}, {}};
std::string_view current_section;
for (auto bounds: contents | std::views::split('\n'))
{
auto line = strip({bounds.begin(), bounds.end()});
if (line.starts_with('#'))
continue;
if (line.starts_with('[') and line.ends_with(']'))
{
current_section = line.substr(1, line.size() - 2);
continue;
}
auto kv = parse_key_value(current_section, line);
if (kv)
lines.push_back(*kv);
}
}
+82
View File
@@ -0,0 +1,82 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <charconv>
#include <istream>
#include <optional>
#include <string>
#include <type_traits>
#include <vector>
namespace wivrn
{
class ini
{
public:
struct key_value
{
std::string_view section;
std::string_view key;
std::string_view locale;
std::string_view value;
};
private:
std::string contents;
std::vector<key_value> lines;
public:
ini() = default;
ini(ini &&) = default;
ini(const ini &) = delete;
ini & operator=(ini &&) = default;
ini & operator=(const ini &) = delete;
ini(std::istream & file);
std::optional<std::string_view> get_optional(std::string_view section, std::string_view key) const;
template <typename T>
T get(std::string_view section, std::string_view key, const T & default_value = T{}) const
{
using return_type = std::decay_t<T>;
auto value = get_optional(section, key);
if (not value)
return default_value;
if constexpr (std::is_same_v<return_type, std::string_view>)
return *value;
if constexpr (std::is_same_v<return_type, std::string>)
return std::string{*value};
if constexpr (std::is_integral_v<return_type>)
{
return_type v;
if (std::from_chars(value->data(), value->data() + value->size(), v).ec != std::errc{})
return default_value;
return v;
}
}
};
} // namespace wivrn
+585
View File
@@ -0,0 +1,585 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "load_icon.h"
#include <cairo.h>
#include <fstream>
#include <librsvg/rsvg.h>
#include <limits>
#include <png.h>
#include <span>
#include <unordered_map>
namespace
{
std::vector<std::byte> load_file(const std::filesystem::path & filename)
{
std::ifstream file(filename, std::ios::binary | std::ios::ate);
file.exceptions(std::ios_base::badbit | std::ios_base::failbit);
size_t size = file.tellg();
file.seekg(0);
std::vector<std::byte> bytes(size);
file.read(reinterpret_cast<char *>(bytes.data()), size);
return bytes;
}
template <typename T>
requires std::is_integral_v<T>
T read(std::span<std::byte> & buffer)
{
if (sizeof(T) > buffer.size())
throw std::runtime_error{"File truncated"};
T value;
memcpy(&value, buffer.data(), sizeof(T));
buffer = buffer.subspan(sizeof(T));
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
if constexpr (std::endian::native == std::endian::big)
return std::byteswap(value);
else
return value;
}
template <typename T>
requires std::is_integral_v<T>
std::span<T> read(std::span<std::byte> & buffer, size_t count)
{
if (count * sizeof(T) > buffer.size())
throw std::runtime_error{"File truncated"};
std::span<T> value{reinterpret_cast<T *>(buffer.data()), count};
buffer = buffer.subspan(count * sizeof(T));
return value;
}
std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size)
{
// TODO check if aspect ratio needs to be handled, dpi
struct deleter
{
void operator()(GFile * ptr)
{
g_object_unref(ptr);
}
void operator()(RsvgHandle * ptr)
{
g_object_unref(ptr);
}
void operator()(cairo_surface_t * ptr)
{
cairo_surface_destroy(ptr);
}
void operator()(cairo_t * ptr)
{
cairo_destroy(ptr);
}
};
using GFile_ptr = std::unique_ptr<GFile, deleter>;
using RsvgHandle_ptr = std::unique_ptr<RsvgHandle, deleter>;
using cairo_surface_t_ptr = std::unique_ptr<cairo_surface_t, deleter>;
using cairo_t_ptr = std::unique_ptr<cairo_t, deleter>;
GError * error{};
GFile_ptr file{g_file_new_for_path(filename.c_str())};
RsvgHandle_ptr handle{rsvg_handle_new_from_gfile_sync(file.get(), RSVG_HANDLE_FLAGS_NONE, nullptr, &error)};
// Create a Cairo image surface and a rendering context for it
cairo_surface_t_ptr surface{cairo_image_surface_create(CAIRO_FORMAT_ARGB32, size, size)};
cairo_t_ptr cr{cairo_create(surface.get())};
// Set the dots-per-inch
rsvg_handle_set_dpi(handle.get(), 96.0);
// Render the handle scaled proportionally into that whole surface
RsvgRectangle viewport = {
.x = 0.0,
.y = 0.0,
.width = (double)size,
.height = (double)size,
};
if (!rsvg_handle_render_document(handle.get(), cr.get(), &viewport, &error))
{
g_printerr("could not render: %s", error->message);
return {};
}
// Write a PNG file
std::vector<std::byte> png;
auto cb = [](void * closure, const unsigned char * data, unsigned int length) -> cairo_status_t {
std::vector<std::byte> & png = *reinterpret_cast<std::vector<std::byte> *>(closure);
size_t old_size = png.size();
png.resize(old_size + length);
memcpy(&png[old_size], data, length);
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 {};
}
return png;
}
// See https://gitlab.gnome.org/GNOME/gimp/-/tree/master/plug-ins/file-ico?ref_type=heads
struct ico_file_entry
{
int width; // Width of icon in pixels
int height; // Height of icon in pixels
int bpp; // 1, 4, 8, 16, 24 or 32 bits per pixel
std::span<std::byte> data;
};
constexpr int rowstride(int width, int bpp)
{
int words_per_line = (width * bpp + 31) / 32;
return words_per_line * 4;
}
static_assert(rowstride(1, 1) == 4);
static_assert(rowstride(8, 1) == 4);
static_assert(rowstride(16, 1) == 4);
static_assert(rowstride(32, 1) == 4);
static_assert(rowstride(33, 1) == 8);
static_assert(rowstride(1, 4) == 4);
static_assert(rowstride(8, 4) == 4);
static_assert(rowstride(16, 4) == 8);
static_assert(rowstride(32, 4) == 16);
static_assert(rowstride(33, 4) == 20);
static_assert(rowstride(1, 8) == 4);
static_assert(rowstride(8, 8) == 8);
static_assert(rowstride(16, 8) == 16);
static_assert(rowstride(32, 8) == 32);
static_assert(rowstride(33, 8) == 36);
static_assert(rowstride(1, 24) == 4);
static_assert(rowstride(8, 24) == 24);
static_assert(rowstride(16, 24) == 48);
static_assert(rowstride(32, 24) == 96);
static_assert(rowstride(33, 24) == 100);
static_assert(rowstride(1, 32) == 4);
static_assert(rowstride(8, 32) == 32);
static_assert(rowstride(16, 32) == 64);
static_assert(rowstride(32, 32) == 128);
static_assert(rowstride(33, 32) == 132);
std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size, int index = -1)
{
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)
return {};
std::vector<ico_file_entry> entries;
int max_bpp = 0;
for (int i = 0; i < icon_count; i++)
{
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 (offset + size > ico.size())
return {};
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);
}
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;
}
}
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()))
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;
}
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 {};
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++)
{
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++)
{
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
// 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;
}
}
break;
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++)
{
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
// 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;
}
}
break;
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++)
{
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
// 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;
}
}
break;
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++)
{
int colour = (src_xor_row[1] << 8) | src_xor_row[0];
src_xor_row += 2;
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
// 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;
}
}
break;
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 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;
*dst_row++ = b;
*dst_row++ = g;
*dst_row++ = r;
*dst_row++ = a;
}
}
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);
memcpy(dst_row, src_xor_row, dst_stride);
}
break;
}
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();
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)
{
}
return {};
}
std::unordered_map<std::filesystem::path, std::vector<std::byte>> icon_cache;
} // namespace
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())
return it->second;
std::vector<std::byte> icon;
if (filename.extension() == ".svg")
{
icon = load_svg(filename, size);
}
else if (filename.extension() == ".ico")
{
// Steam icon (Windows)
icon = load_ico(filename, size);
}
else if (filename.extension() == ".zip")
{
// Steam icon (Linux)
// TODO
}
else
{
// TODO read arbitrary format / rewrite as png
icon = load_file(filename);
}
return icon_cache.emplace(filename, std::move(icon)).first->second;
}
+27
View File
@@ -0,0 +1,27 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <filesystem>
#include <vector>
namespace wivrn
{
const std::vector<std::byte> & load_icon(const std::filesystem::path & filename, int size);
}
+183
View File
@@ -0,0 +1,183 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "steam_app_info.h"
#include <bit>
#include <cstring>
#include <fstream>
#include <span>
#include <string_view>
namespace
{
template <typename T>
T read(std::span<char> & buffer);
template <typename T>
requires std::is_integral_v<T>
T read(std::span<char> & buffer)
{
if (sizeof(T) > buffer.size())
throw std::runtime_error{"File truncated"};
T value;
memcpy(&value, buffer.data(), sizeof(T));
buffer = buffer.subspan(sizeof(T));
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
if constexpr (std::endian::native == std::endian::big)
return std::byteswap(value);
else
return value;
}
template <>
std::string_view read<std::string_view>(std::span<char> & buffer)
{
size_t size = strnlen((char *)buffer.data(), buffer.size());
if (size == buffer.size())
throw std::runtime_error{"File truncated"};
char * str = buffer.data();
buffer = buffer.subspan(size + 1);
return {str, size};
}
std::span<char> read(std::span<char> & buffer, size_t size)
{
if (size > buffer.size())
throw std::runtime_error{"File truncated"};
std::span<char> value{buffer.data(), size};
buffer = buffer.subspan(size);
return value;
}
std::vector<std::string_view> read_string_table(std::span<char> buffer)
{
std::vector<std::string_view> string_table;
uint32_t count = read<uint32_t>(buffer);
string_table.reserve(count);
for (size_t i = 0; i < count; i++)
string_table.emplace_back(read<std::string_view>(buffer));
return string_table;
}
void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, std::span<char> & bindata, const std::vector<std::string_view> & string_table)
{
int type = read<uint8_t>(bindata);
while (type != 8)
{
std::string name{string_table.at(read<uint32_t>(bindata))};
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
switch (type)
{
case 0: // Dictionary
read_vdf(info, prefix + name + ".", bindata, string_table);
break;
case 1: // UTF-8 string
info.emplace(prefix + name, read<std::string_view>(bindata));
break;
case 2: // uint32_t
info.emplace(prefix + name, read<uint32_t>(bindata));
break;
// case 3: // float
// break;
default:
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
}
type = read<uint8_t>(bindata);
}
}
} // namespace
wivrn::steam_app_info::steam_app_info(std::filesystem::path path)
{
std::vector<std::string_view> string_table;
{
std::ifstream f{path};
data = std::vector<char>{std::istreambuf_iterator{f}, {}};
}
std::span<char> buffer = data;
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#file-header
uint32_t magic = read<uint32_t>(buffer);
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
throw std::runtime_error{"Wrong magic number"};
int version = magic & 0xff;
if (version < 41)
throw std::runtime_error{"Unsupported version"};
int universe = read<uint32_t>(buffer);
if (version >= 41)
{
size_t string_offset = read<uint64_t>(buffer);
string_table = read_string_table(std::span<char>{data}.subspan(string_offset));
}
else
throw std::runtime_error{"Unsupported version"};
while (true)
{
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
auto app_id = read<uint32_t>(buffer);
if (app_id == 0)
break;
auto size_data = read<uint32_t>(buffer);
char * current_offset = buffer.data();
read<uint32_t>(buffer); // info_state
read<uint32_t>(buffer); // last_updated
read<uint64_t>(buffer); // pics_token
read(buffer, 20); // SHA1 of the app info
read<uint32_t>(buffer); // change number
// if (version < 38)
// read<uint8_t>(buffer); // section type
read(buffer, 20); // SHA1 of the bin data
auto bindata = read(buffer, size_data - (buffer.data() - current_offset));
try
{
bindata = bindata.subspan(4 + 1); // Skip the checksum + type (must be 0)
info app_info;
read_vdf(app_info, "", bindata, string_table);
app_data.emplace(app_id, app_info);
}
catch (...)
{
// Ignore errors
}
}
}
+51
View File
@@ -0,0 +1,51 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <filesystem>
#include <unordered_map>
#include <variant>
#include <vector>
namespace wivrn
{
class steam_app_info
{
public:
using info = std::unordered_map<std::string, std::variant<uint32_t, std::string_view>>;
private:
std::vector<char> data;
std::unordered_map<int, info> app_data;
public:
steam_app_info(std::filesystem::path path);
steam_app_info() = default;
steam_app_info(const steam_app_info &) = delete;
steam_app_info(steam_app_info &&) = default;
steam_app_info & operator=(const steam_app_info &) = delete;
steam_app_info & operator=(steam_app_info &&) = default;
const auto & get(int appid) const
{
return app_data.at(appid);
}
};
} // namespace wivrn
+218
View File
@@ -0,0 +1,218 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "xdg_icon_lookup.h"
#include "ini.h"
#include "strings.h"
#include "utils/flatpak.h"
#include "xdg_base_directory.h"
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <limits>
#include <optional>
namespace
{
enum class icon_theme_type
{
fixed,
scalable,
threshold
};
struct icon_theme_dir
{
std::filesystem::path path;
int size;
int scale;
icon_theme_type type;
int min_size;
int max_size;
int threshold;
bool match_size(int required_size, int required_scale) const
{
if (scale != required_scale)
return false;
switch (type)
{
case icon_theme_type::fixed:
return size == required_size;
case icon_theme_type::scalable:
return min_size <= required_size and required_size <= max_size;
case icon_theme_type::threshold:
return size - threshold <= required_size and required_size <= size + threshold;
}
return false;
}
int size_distance(int required_size, int required_scale) const
{
switch (type)
{
case icon_theme_type::fixed:
return abs(size * scale - required_size * required_scale);
case icon_theme_type::scalable:
if (required_size * required_scale < min_size * scale)
return min_size * scale - required_size * required_scale;
if (required_size * required_scale > max_size * scale)
return required_size * required_scale - max_size * scale;
return 0;
case icon_theme_type::threshold:
if (required_size * required_scale < (size - threshold) * scale)
return min_size * scale - required_size * required_scale;
if (required_size * required_scale > (size + threshold) * scale)
return required_size * required_scale - max_size * scale;
return 0;
}
return std::numeric_limits<int>::max();
}
};
void find_icon_theme_dirs_helper(const std::vector<std::filesystem::path> & base_dirs, std::vector<icon_theme_dir> & dirs, std::vector<std::string> & themes, std::string theme)
{
// Theme is passed by copy because the themes vector might be resized
for (const auto & base_dir: base_dirs)
{
const auto theme_dir = base_dir / "icons" / theme;
const auto index_theme = theme_dir / "index.theme";
if (not std::filesystem::exists(index_theme))
continue;
try
{
std::ifstream file{index_theme};
wivrn::ini index{file};
for (const auto & inherited_theme: utils::split(index.get<std::string>("Icon Theme", "Inherits", ""), ","))
{
if (inherited_theme != "" and not std::ranges::contains(themes, inherited_theme))
themes.push_back(inherited_theme);
}
for (auto directory: utils::split(index.get<std::string>("Icon Theme", "Directories", ""), ","))
{
int size = index.get<int>(directory, "Size");
int scale = index.get<int>(directory, "Scale", 1);
int min_size = index.get<int>(directory, "MinSize", size);
int max_size = index.get<int>(directory, "MaxSize", size);
int threshold = index.get<int>(directory, "Threshold", 2);
std::string type_str = index.get<std::string>(directory, "Type", "Threshold");
icon_theme_type type = icon_theme_type::threshold;
if (type_str == "Fixed")
type = icon_theme_type::fixed;
else if (type_str == "Scalable")
type = icon_theme_type::scalable;
else if (type_str == "Threshold")
type = icon_theme_type::threshold;
dirs.push_back(icon_theme_dir{
.path = theme_dir / directory,
.size = size,
.scale = scale,
.type = type,
.min_size = min_size,
.max_size = max_size,
.threshold = threshold,
});
}
}
catch (std::exception & e)
{
}
}
}
std::vector<icon_theme_dir> find_icon_theme_dirs(std::vector<std::string> themes)
{
std::vector<icon_theme_dir> dirs;
std::vector<std::filesystem::path> base_dirs = xdg_data_dirs();
if (wivrn::is_flatpak())
{
// Try to guess host data dirs
base_dirs.push_back("/run/host/usr/share");
}
for (size_t i = 0; i < themes.size(); ++i)
find_icon_theme_dirs_helper(base_dirs, dirs, themes, themes[i]);
if (not std::ranges::contains(themes, "hicolor"))
find_icon_theme_dirs_helper(base_dirs, dirs, themes, "hicolor");
return dirs;
}
} // namespace
std::optional<std::filesystem::path> wivrn::xdg_icon_lookup(const std::string & icon_name, int size, int scale)
{
if (std::filesystem::exists(icon_name))
return icon_name;
static const std::vector<icon_theme_dir> dirs = find_icon_theme_dirs({"hicolor"});
for (const auto & dir: dirs)
{
if (dir.match_size(size, scale))
{
for (const auto & ext: {".png", ".svg", ".xpm"})
{
if (std::filesystem::exists(dir.path / (icon_name + ext)))
return dir.path / (icon_name + ext);
}
}
}
int best_distance = std::numeric_limits<int>::max();
std::optional<std::filesystem::path> best_path;
for (const auto & dir: dirs)
{
if (dir.size_distance(size, scale) < best_distance)
{
for (const auto & ext: {".png", ".svg", ".xpm"})
{
if (std::filesystem::exists(dir.path / (icon_name + ext)))
{
best_distance = dir.size_distance(size, scale);
best_path = dir.path / (icon_name + ext);
}
}
}
}
return best_path;
}
+28
View File
@@ -0,0 +1,28 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <filesystem>
#include <optional>
#include <string>
namespace wivrn
{
std::optional<std::filesystem::path> xdg_icon_lookup(const std::string & icon_name, int size, int scale = 1);
}
+1
View File
@@ -675,6 +675,7 @@ struct application_list
{
std::string id;
std::string name;
std::vector<std::byte> image; // In PNG
};
std::vector<application> applications;
};
+42 -14
View File
@@ -28,6 +28,7 @@
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits>
#include <optional>
#include <span>
#include <stdexcept>
@@ -124,6 +125,13 @@ public:
std::runtime_error("Deserialization error\n" + hexdump(raw_data)) {}
};
class serialization_error : public std::runtime_error
{
public:
serialization_error() :
std::runtime_error("Serialization error") {}
};
class serialization_packet
{
std::vector<uint8_t> buffer;
@@ -547,6 +555,8 @@ struct serialization_traits<T, std::enable_if_t<std::is_aggregate_v<T> && !is_st
template <>
struct serialization_traits<std::string>
{
using size_type = uint16_t;
static constexpr void type_hash(details::hash_context & h)
{
h.feed("string");
@@ -554,14 +564,17 @@ struct serialization_traits<std::string>
static void serialize(const std::string & value, serialization_packet & packet)
{
packet.serialize<uint16_t>(value.size());
if (value.size() > std::numeric_limits<size_type>::max())
throw serialization_error{};
packet.serialize<size_type>(value.size());
packet.write(value.data(), value.size());
}
static std::string deserialize(deserialization_packet & packet)
{
std::string value;
size_t size = packet.deserialize<uint16_t>();
size_t size = packet.deserialize<size_type>();
packet.check_remaining_size(size);
@@ -576,13 +589,15 @@ struct serialization_traits<std::string>
}
static size_t size(const std::string & value)
{
return sizeof(uint16_t) + value.size();
return sizeof(size_type) + value.size();
}
};
template <typename T>
struct serialization_traits<std::vector<T>>
{
using size_type = uint16_t;
static constexpr void type_hash(details::hash_context & h)
{
h.feed("vector<");
@@ -592,7 +607,10 @@ struct serialization_traits<std::vector<T>>
static void serialize(const std::vector<T> & value, serialization_packet & packet)
{
packet.serialize<uint16_t>(value.size());
if (value.size() > std::numeric_limits<size_type>::max())
throw serialization_error{};
packet.serialize<size_type>(value.size());
if constexpr (serialization_traits<T>::is_trivially_serializable())
{
@@ -608,7 +626,7 @@ struct serialization_traits<std::vector<T>>
static std::vector<T> deserialize(deserialization_packet & packet)
{
std::vector<T> value;
size_t size = packet.deserialize<uint16_t>();
size_t size = packet.deserialize<size_type>();
if constexpr (serialization_traits<T>::is_trivially_serializable())
{
@@ -635,10 +653,10 @@ struct serialization_traits<std::vector<T>>
static size_t size(const std::vector<T> & value)
{
if constexpr (is_trivially_serializable())
return sizeof(uint16_t) + value.size() * sizeof(T);
return sizeof(size_type) + value.size() * sizeof(T);
else
{
size_t res = sizeof(uint16_t);
size_t res = sizeof(size_type);
for (const auto & item: value)
res += serialized_size(item);
return res;
@@ -756,6 +774,9 @@ struct serialization_traits<std::array<T, N>>
template <typename... T>
struct serialization_traits<std::variant<T...>>
{
using size_type = uint8_t;
static_assert(sizeof...(T) <= std::numeric_limits<size_type>::max() + 1);
template <typename U, typename... V>
static constexpr void type_list_hash(details::hash_context & h)
{
@@ -777,7 +798,7 @@ struct serialization_traits<std::variant<T...>>
static void serialize(const std::variant<T...> & value, serialization_packet & packet)
{
packet.serialize<uint8_t>(value.index());
packet.serialize<size_type>(value.index());
std::visit([&](const auto & x) { packet.serialize(x); }, value);
}
@@ -794,7 +815,7 @@ struct serialization_traits<std::variant<T...>>
static std::variant<T...> deserialize(deserialization_packet & packet)
{
uint8_t type_index = packet.deserialize<uint8_t>();
size_type type_index = packet.deserialize<size_type>();
if (type_index >= sizeof...(T))
throw deserialization_error(packet.initial_buffer);
@@ -807,7 +828,7 @@ struct serialization_traits<std::variant<T...>>
static size_t size(const std::variant<T...> & value)
{
return 1 + std::visit([](const auto & x) { return serialized_size(x); }, value);
return sizeof(size_type) + std::visit([](const auto & x) { return serialized_size(x); }, value);
}
};
@@ -850,6 +871,8 @@ struct serialization_traits<std::chrono::duration<Rep, Period>>
template <>
struct serialization_traits<std::span<uint8_t>>
{
using size_type = uint16_t;
static constexpr void type_hash(details::hash_context & h)
{
h.feed("span<uint8_t>");
@@ -857,22 +880,27 @@ struct serialization_traits<std::span<uint8_t>>
static void serialize(const std::span<uint8_t> & value, serialization_packet & packet)
{
packet.serialize<uint16_t>(value.size());
if (value.size() > std::numeric_limits<size_type>::max())
throw serialization_error{};
packet.serialize<size_type>(value.size());
packet.write(value);
}
static std::span<uint8_t> deserialize(deserialization_packet & packet)
{
size_t size = packet.deserialize<uint16_t>();
size_t size = packet.deserialize<size_type>();
return packet.read_span(size);
}
static bool consteval is_trivially_serializable()
{
return false;
}
static size_t size(const std::span<uint8_t> & x)
{
return 1 + x.size_bytes();
return sizeof(size_type) + x.size_bytes();
}
};
@@ -929,7 +957,7 @@ struct serialization_traits<crypto::bignum>
static size_t size(const crypto::bignum & value)
{
return 2 + value.data_size();
return sizeof(serialization_traits<std::string>::size_type) + value.data_size();
}
};
+16 -16
View File
@@ -471,14 +471,14 @@ wivrn::deserialization_packet wivrn::TCP::receive_raw()
{
ssize_t expected_size;
if (data.size_bytes() < sizeof(uint16_t))
if (data.size_bytes() < sizeof(uint32_t))
{
expected_size = sizeof(uint16_t) - data.size_bytes();
expected_size = sizeof(uint32_t) - data.size_bytes();
}
else
{
uint32_t payload_size = *reinterpret_cast<uint16_t *>(data.data());
expected_size = payload_size + sizeof(uint16_t) - data.size_bytes();
uint32_t payload_size = *reinterpret_cast<uint32_t *>(data.data());
expected_size = payload_size + sizeof(uint32_t) - data.size_bytes();
}
if (expected_size > capacity_left)
@@ -518,35 +518,35 @@ wivrn::deserialization_packet wivrn::TCP::receive_raw()
capacity_left -= received_size;
}
if (data.size_bytes() < sizeof(uint16_t))
if (data.size_bytes() < sizeof(uint32_t))
return {};
uint32_t payload_size = *reinterpret_cast<uint16_t *>(data.data());
uint32_t payload_size = *reinterpret_cast<uint32_t *>(data.data());
if (payload_size == 0)
throw std::runtime_error("Invalid packet: 0 size");
if (data.size_bytes() < sizeof(uint16_t) + payload_size)
if (data.size_bytes() < sizeof(uint32_t) + payload_size)
return {};
auto span = data.subspan(sizeof(uint16_t), payload_size);
data = data.subspan(sizeof(uint16_t) + payload_size);
auto span = data.subspan(sizeof(uint32_t), payload_size);
data = data.subspan(sizeof(uint32_t) + payload_size);
return deserialization_packet{buffer, span};
}
wivrn::deserialization_packet wivrn::TCP::receive_pending()
{
if (data.size_bytes() < sizeof(uint16_t))
if (data.size_bytes() < sizeof(uint32_t))
return {};
uint32_t payload_size = *reinterpret_cast<uint16_t *>(data.data());
uint32_t payload_size = *reinterpret_cast<uint32_t *>(data.data());
if (payload_size == 0)
throw std::runtime_error("Invalid packet: 0 size");
if (data.size_bytes() < sizeof(uint16_t) + payload_size)
if (data.size_bytes() < sizeof(uint32_t) + payload_size)
return {};
auto span = data.subspan(sizeof(uint16_t), payload_size);
data = data.subspan(sizeof(uint16_t) + payload_size);
auto span = data.subspan(sizeof(uint32_t), payload_size);
data = data.subspan(sizeof(uint32_t) + payload_size);
return deserialization_packet{buffer, span};
}
@@ -557,7 +557,7 @@ void wivrn::TCP::send_raw(serialization_packet && packet)
std::vector<std::span<uint8_t>> & data = packet;
uint16_t size = 0;
uint32_t size = 0;
iovecs.emplace_back(&size, sizeof(size));
for (const auto & span: data)
{
@@ -611,7 +611,7 @@ void wivrn::TCP::send_raw(serialization_packet && packet)
void wivrn::TCP::send_many_raw(std::span<serialization_packet> packets)
{
thread_local std::vector<iovec> iovecs;
thread_local std::vector<uint16_t> sizes;
thread_local std::vector<uint32_t> sizes;
thread_local std::vector<std::span<uint8_t>> spans;
if (packets.empty())
+1 -1
View File
@@ -25,7 +25,7 @@
Apps::Apps(QObject * parent)
{
auto apps = wivrn::list_applications();
auto apps = wivrn::list_applications(true /* Include steam apps */, false /* Don't load icons */);
for (const auto & [id, app]: apps)
{
+12
View File
@@ -74,6 +74,10 @@ Kirigami.ApplicationWindow {
// root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml"));
// }
// }
function onJsonConfigurationChanged() {
config.load(WivrnServer);
}
}
Component.onCompleted: {
@@ -153,6 +157,14 @@ Kirigami.ApplicationWindow {
visible: VulkanInfo.driverId == "AmdProprietary" || VulkanInfo.driverId == "AmdOpenSource"
}
Kirigami.InlineMessage {
Layout.fillWidth: true
text: i18n("No OpenVR compatibility detected, Steam games won't be able to load VR.\nInstall xrizer or OpenComposite.")
type: Kirigami.MessageType.Warning
showCloseButton: true
visible: WivrnServer.openVRCompat.length == 0 && config.openvr == ""
}
Kirigami.InlineMessage {
id: message_failed_to_start
Layout.fillWidth: true
+4
View File
@@ -243,6 +243,10 @@ void Settings::load(const wivrn_server * server)
else
set_openvr(QString::fromStdString(*it));
}
else
{
set_openvr("");
}
}
catch (...)
{
+1 -1
View File
@@ -4,7 +4,7 @@
## Dependencies
WiVRn requires avahi-client, eigen3, gettext, libpulse, libsystemd, nlohmann_json.
WiVRn requires avahi-client, eigen3, gettext, libpulse, libsystemd, nlohmann_json, librsvg2.
It also requires at least one encoder:
+9 -6
View File
@@ -7,15 +7,18 @@
systems = [ "x86_64-linux" ];
perSystem = { lib, pkgs, ... }: let
# Tools used for development work (clangd, clang-format)
devTools = with pkgs; [
clang-tools
gdb
ktx-tools
devTools = [
pkgs.clang-tools
pkgs.gdb
pkgs.ktx-tools
];
# Extra build inputs not yet in the nixpkgs recipe.
extraBuildInputs = with pkgs; [
extraBuildInputs = [
# XRT_FEATURE_DEBUG_GUI requires SDL2
sdl2-compat
pkgs.sdl2-compat
pkgs.librsvg
pkgs.libpng
];
package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
+2 -2
View File
@@ -102,7 +102,7 @@ modules:
url: https://sourceforge.net/projects/libisl/files/isl-0.26.tar.xz/download
sha256: a0b5cb06d24f9fa9e77b55fabbe9a3c94a336190345c2555f9915bb38e976504
- type: file
url: https://www.multiprecision.org/downloads/mpc-1.3.1.tar.gz
url: https://ftpmirror.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
sha256: ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
- type: file
url: https://invisible-mirror.net/archives/ncurses/ncurses-6.4.tar.gz
@@ -313,7 +313,7 @@ modules:
sources:
- type: git
url: https://github.com/Supreeeme/xrizer.git
tag: 366be00cdeb3156cf958fa48b49c39ce819cab86
tag: 76e01ac8ad79fed226a883985daa3cbe61271ca7
- xrizer-gen-src.json
- name: wivrn-library
+3 -3
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-18 21:12+0200\n"
"POT-Creation-Date: 2025-07-25 22:10+0200\n"
"PO-Revision-Date: 2025-06-20 19:47+0200\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish\n"
@@ -355,13 +355,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Ninguno"
#: dashboard/qml/SelectGame.qml:21
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SelectGame.qml:79
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+269 -152
View File
@@ -5,130 +5,135 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-17 18:10+0200\n"
"PO-Revision-Date: 2025-06-20 22:28+0200\n"
"POT-Creation-Date: 2025-07-30 09:32+0200\n"
"PO-Revision-Date: 2025-08-02 00:41+0200\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language-Team: Spanish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scenes/lobby.cpp:148
#: client/scene.cpp:74
msgid "No supported swapchain format"
msgstr "Formato de swapchain no compatible"
#: client/scenes/lobby.cpp:228
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Servidor WiVRn incompatible: no hay campo de protocolo en TXT"
#: client/scenes/lobby.cpp:231
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protocolo del servidor WiVRn incompatible (cliente: {}, servidor: {})"
#: client/scenes/lobby.cpp:246
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "No se puede resolver el nombre de host: {}"
#: client/scenes/lobby.cpp:333 client/scenes/lobby.cpp:339
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "No se puede conectar a {} ({}): {}"
#: client/scenes/lobby.cpp:453
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Esperando conexión"
#: client/scenes/lobby_gui.cpp:132
#: client/scenes/lobby_gui.cpp:156
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:135
#: client/scenes/lobby_gui.cpp:159
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Calidad"
#: client/scenes/lobby_gui.cpp:137
#: client/scenes/lobby_gui.cpp:161
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:198
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "Transmisión de video interrumpida"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"Conexión lista\n"
"Inicia una aplicación de VR en tu ordenador"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"Conexión lista\n"
"Inicia una aplicación de VR en {}"
#: client/scenes/lobby_gui.cpp:221
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
msgid "Close"
msgstr "Cerrar"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:195
msgid "Connection"
msgstr "Conexión"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:197
#, c++-format
msgid "Connection to {}"
msgstr "Conexión a {}"
#: client/scenes/lobby_gui.cpp:259
#: client/scenes/lobby_gui.cpp:227
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:281
#: client/scenes/lobby_gui.cpp:249
msgid "Input the PIN displayed on the dashboard"
msgstr "Ingresa el PIN que se muestra en el panel de control"
#: client/scenes/lobby_gui.cpp:356
#: client/scenes/lobby_gui.cpp:315
msgid "Connected to WiVRn server"
msgstr "Conectado al servidor WiVRn"
#: client/scenes/lobby_gui.cpp:317
#, c++-format
msgid "Connected to {}"
msgstr "Connectado a {}"
#: client/scenes/lobby_gui.cpp:327
msgid "Start an application on the server to start streaming."
msgstr "Inicia una aplicación en el servidor para empezar la retransmisión"
#: client/scenes/lobby_gui.cpp:333
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Inicia una aplicación en tu ordenador o selecciona una para empezar la "
"retransmisión"
#: client/scenes/lobby_gui.cpp:335
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Inicia una aplicación en {} o selecciona una para empezar la retransmisión"
#: client/scenes/lobby_gui.cpp:383
msgid "Name"
msgstr "Nombre"
#: client/scenes/lobby_gui.cpp:367
#: client/scenes/lobby_gui.cpp:394
msgid "Address"
msgstr "Dirección"
#: client/scenes/lobby_gui.cpp:376
#: client/scenes/lobby_gui.cpp:403
msgid "Port"
msgstr "Puerto"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:411
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:391
#: client/scenes/lobby_gui.cpp:418
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:432
msgid "Save"
msgstr "Guardar"
#: client/scenes/lobby_gui.cpp:458
#: client/scenes/lobby_gui.cpp:485
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -136,32 +141,32 @@ msgstr ""
"Inicia un servidor WiVRn en tu\n"
"red local"
#: client/scenes/lobby_gui.cpp:490
#: client/scenes/lobby_gui.cpp:517
msgid "Autoconnect"
msgstr "Conexión automática"
#: client/scenes/lobby_gui.cpp:516
#: client/scenes/lobby_gui.cpp:543
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versión del servidor incompatible"
#: client/scenes/lobby_gui.cpp:528
#: client/scenes/lobby_gui.cpp:555
msgid "Server not available"
msgstr "Servidor no disponible"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:641
msgid "Refresh rate"
msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automática"
#: client/scenes/lobby_gui.cpp:623
#: client/scenes/lobby_gui.cpp:650
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -170,61 +175,61 @@ msgstr ""
"aplicación.\n"
"Puede causar parpadeos cuando ocurre un cambio."
#: client/scenes/lobby_gui.cpp:640
#: client/scenes/lobby_gui.cpp:667
msgid "Minimum refresh rate"
msgstr "Tasa mínima de refresco"
#: client/scenes/lobby_gui.cpp:663
#: client/scenes/lobby_gui.cpp:690
msgid "Resolution scale"
msgstr "Escala de resolución"
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por ojo"
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:711
msgid "Enable microphone"
msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:720
msgid "Unprocessed Microphone Audio"
msgstr "Entrada de audio sin procesar"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:726
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
"ruido"
#: client/scenes/lobby_gui.cpp:707
#: client/scenes/lobby_gui.cpp:733
msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:714 client/scenes/lobby_gui.cpp:727
#: client/scenes/lobby_gui.cpp:740 client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:807
#: 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
msgid "This feature is not supported by your headset"
msgstr "Esta función no es compatible con tu visor"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:745
msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:757
msgid "Enable face tracking"
msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:747
#: client/scenes/lobby_gui.cpp:770
msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:764
#: client/scenes/lobby_gui.cpp:786
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -235,11 +240,11 @@ msgstr ""
"si no el seguimiento corporal será medido por la posición de los controles y "
"el visor"
#: client/scenes/lobby_gui.cpp:777
#: client/scenes/lobby_gui.cpp:799
msgid "Enable lower body tracking"
msgstr "Habilitar seguimiento de cintura para abajo"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:805
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -250,11 +255,11 @@ msgstr ""
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
"movimiento de Quest"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:808
msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:814
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -262,45 +267,19 @@ msgstr ""
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
"Puede ser necesario si está usando otro metodo para seguir la cintura"
#: client/scenes/lobby_gui.cpp:800
#: client/scenes/lobby_gui.cpp:822
msgid "Enable video passthrough in lobby"
msgstr "Activar video passthrough en el lobby"
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "Mostrar métricas de rendimiento"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "Puedes alternar la superposición presionando ambos joysticks"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:858 client/scenes/lobby_gui.cpp:866
#: client/scenes/stream_stats.cpp:161
msgid "GPU time"
msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:881
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
msgid "OpenXR post-processing"
msgstr "Post-procesamiento de OpenXR"
#: client/scenes/lobby_gui.cpp:885
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
msgid "Supersampling"
msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:867 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"
@@ -309,11 +288,11 @@ msgstr ""
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:910
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
msgid "Sharpening"
msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:930
#: client/scenes/lobby_gui.cpp:892 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"
@@ -322,11 +301,11 @@ msgstr ""
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:939
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:909
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
@@ -336,184 +315,288 @@ msgstr ""
"Opción de enfoque arriba.\n"
"Sólo habilita esto si sabes lo que estás haciendo."
#: client/scenes/lobby_gui.cpp:949
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Sobreescalado y nitidez de lado del cliente, supone un mayor coste de "
"rendimiento para el visor"
#: client/scenes/lobby_gui.cpp:967
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Factor de sobreescalado"
#: client/scenes/lobby_gui.cpp:986
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Usar la dirección del borde"
#: client/scenes/lobby_gui.cpp:992
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Añade un coste de rendimiento adicional"
#: client/scenes/lobby_gui.cpp:997
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Umbral del borde"
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomendado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1007
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Nitidez del borde"
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
msgid "CPU time"
msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1075
msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
msgid "GPU time"
msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1089
msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1132
msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1137
msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1142
msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1147
msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1155
msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1179
msgid "Yes"
msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1186
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
msgid "Licenses"
msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1440
#: client/scenes/lobby_gui.cpp:1519
msgid "Microphone is enabled"
msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1441
#: client/scenes/lobby_gui.cpp:1520
msgid "Microphone is disabled"
msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1450
#: client/scenes/lobby_gui.cpp:1529
msgid "Hand tracking is enabled"
msgstr "Seguimiento de manos activado"
#: client/scenes/lobby_gui.cpp:1451
#: client/scenes/lobby_gui.cpp:1530
msgid "Hand tracking is disabled"
msgstr "Seguimiento de manos desactivado"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1539
msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1461
#: client/scenes/lobby_gui.cpp:1540
msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
#: client/scenes/lobby_gui.cpp:1553
msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
#: client/scenes/lobby_gui.cpp:1554
msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1493
#: client/scenes/lobby_gui.cpp:1564
msgid "Body tracking is enabled"
msgstr "Seguimiento corporal está habilitado"
#: client/scenes/lobby_gui.cpp:1494
#: client/scenes/lobby_gui.cpp:1565
msgid "Body tracking is disabled"
msgstr "Seguimiento corporal está deshabilitado"
#: client/scenes/lobby_gui.cpp:1510
#: client/scenes/lobby_gui.cpp:1581
msgid "Add server"
msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1739
#: client/scenes/lobby_gui.cpp:1826
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1742
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
msgid "Settings"
msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1745
#: client/scenes/lobby_gui.cpp:1832
msgid "Post-processing"
msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1749
#: client/scenes/lobby_gui.cpp:1836
msgid "Debug"
msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1754
#: client/scenes/lobby_gui.cpp:1841
msgid "About"
msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:1760
#: client/scenes/lobby_gui.cpp:1847
msgid "Exit"
msgstr "Salir"
#: client/scenes/lobby_gui.cpp:1774
#: client/scenes/lobby_gui.cpp:1864
msgid ""
"Press A or X or put your palm up\n"
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Presiona A o X o levanta la palma\n"
"Pulsa el botón de agarre o pon tu palma apuntando hacia arriba\n"
"para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "Presiona A o X para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:1866
msgid "Press the grip button to move the main window"
msgstr "Pulsa el botón de agarre para mover la ventana principal"
#: client/scenes/stream_stats.cpp:161
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Reproyectar"
#: client/scenes/stream_stats.cpp:162
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Copia"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Red"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
msgid "Download"
msgstr "Descargar"
#: client/scenes/stream_stats.cpp:165
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
msgid "Upload"
msgstr "Subir"
#: client/scenes/stream_stats.cpp:234
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Decodificador {}"
#: client/scenes/stream_stats.cpp:246
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Tiempos [ms]"
#: client/scenes/stream_stats.cpp:306
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Codificar"
#: client/scenes/stream_stats.cpp:307
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Enviar"
#: client/scenes/stream_stats.cpp:308
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Recibir"
#: client/scenes/stream_stats.cpp:309
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Decodificar"
#: client/scenes/stream_stats.cpp:310
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Copiado"
#: client/scenes/stream_stats.cpp:311
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Mostrado"
#: client/scenes/stream_stats.cpp:312
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_stats.cpp:330
#: client/scenes/stream_gui.cpp:393
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latencia estimada de movimiento a fotones: {}ms"
#: client/scenes/stream_gui.cpp:396
msgid "Press the grip button to move the window"
msgstr "Pulsa el botón de agarre para mover la ventana"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
#: client/scenes/stream_gui.cpp:420
msgid "Motion to photon latency"
msgstr "Latencia entre el movimiento y la imagen mostrada"
#: client/scenes/stream_gui.cpp:492
msgid "Foveation center override"
msgstr "Reajustar el centro de la fóvea"
#: client/scenes/stream_gui.cpp:495
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} °"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distancia {:.2f} m"
#: client/scenes/stream_gui.cpp:505
msgid "Default"
msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:516
msgid "Change"
msgstr "Cambiar"
#: client/scenes/stream_gui.cpp:548
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa los joysticks para mover el centro de la fóvea"
#: client/scenes/stream_gui.cpp:549
msgid "Press A to save or B to cancel"
msgstr "Pulsa A para guardar o B para cancelar"
#: client/scenes/stream_gui.cpp:793
msgid "Stats"
msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:802
msgid "Statistics overlay"
msgstr "Superposición de las estadísticas"
#: client/scenes/stream_gui.cpp:805
msgid "Compact view"
msgstr "Vista compacta"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Tiempo de espera agotado"
@@ -530,5 +613,39 @@ msgstr "No se puede verificar el PIN"
msgid "Pairing is disabled on server"
msgstr "El emparejamiento está deshabilitado en el servidor."
#~ msgid "Video stream interrupted"
#~ msgstr "Transmisión de video interrumpida"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "Conexión lista\n"
#~ "Inicia una aplicación de VR en tu ordenador"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "Conexión lista\n"
#~ "Inicia una aplicación de VR en {}"
#~ msgid "Show performance metrics"
#~ msgstr "Mostrar métricas de rendimiento"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "Puedes alternar la superposición presionando ambos joysticks"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "Presiona A o X o levanta la palma\n"
#~ "para mover la ventana principal"
#~ msgid "Press A or X to move the main window"
#~ msgstr "Presiona A o X para mover la ventana principal"
#~ msgid "No preference"
#~ msgstr "Sin preferencia"
+39 -29
View File
@@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-18 21:11+0200\n"
"PO-Revision-Date: 2025-06-18 21:12+0200\n"
"POT-Creation-Date: 2025-08-04 09:40+0200\n"
"PO-Revision-Date: 2025-08-04 09:41+0200\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n"
"Language: French\n"
@@ -14,7 +14,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gtranslator 47.1\n"
"X-Generator: Gtranslator 48.0\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
@@ -82,8 +82,8 @@ msgstr "Vérification de la dernière version..."
msgid "No precompiled APK is available for this version."
msgstr "Aucun APK précompilé n'est disponible pour cette version."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "ADB is not installed."
msgstr "ADB n'est pas installé."
@@ -132,7 +132,7 @@ msgstr "Réinstaller WiVRn"
msgid "Install WiVRn"
msgstr "Installer WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#, kde-format
msgid "Headsets"
msgstr "Casques"
@@ -229,29 +229,29 @@ msgstr "Appairer un nouveau casque"
msgid "Headset statistics"
msgstr "Statistiques"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "Le serveur n'a pas la capacité CAP_SYS_NICE"
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Corriger"
#: dashboard/qml/Main.qml:119
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr ""
"La capacité CAP_SYS_NICE sera utilisée quand le serveur sera redémarré."
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Redémarrer"
#: dashboard/qml/Main.qml:136
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
@@ -259,12 +259,12 @@ msgstr ""
"Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle "
"est %1."
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Plus d'infos"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -273,75 +273,85 @@ msgstr ""
"Utilisez le driver Mesa (redv) pour les GPUs AMD\n"
"L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Aucune bibliothèque de compatibilité OpenVR trouvée, les jeux Steam ne "
"pourront pas charger le mode VR.\n"
"Veuillez installer xrizer ou OpenComposite."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Le serveur n'a pas pu démarrer"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Ouvrir les logs du serveur"
#: dashboard/qml/Main.qml:202
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Démarré"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Appairage"
#: dashboard/qml/Main.qml:230
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN : %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "Connexion par USB"
#: dashboard/qml/Main.qml:249
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur."
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Déconnecter"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Application"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Informations pour Steam"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:325
#, kde-format
msgid "Wizard"
msgstr "Assistant"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:332
#, kde-format
msgid "Install the app"
msgstr "Installer l'appli"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Paramètres"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Dépannage"
@@ -352,13 +362,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Aucune"
#: dashboard/qml/SelectGame.qml:21
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Personnalisé"
#: dashboard/qml/SelectGame.qml:79
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+4 -4
View File
@@ -252,8 +252,8 @@ msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
msgstr ""
"下半身トラッキングが有効な場合に使用可能。腰トラッカーを持ってる方は無効にし"
"ましょう。"
"下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。"
#: client/scenes/lobby_gui.cpp:822
msgid "Enable video passthrough in lobby"
@@ -454,7 +454,7 @@ msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"メイン・パネルを動かすには、グリップを握るか、"
"メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。"
#: client/scenes/lobby_gui.cpp:1866
@@ -529,7 +529,7 @@ msgstr "グリップを握ってパネルを動かしましょう。"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "両方のサムスティックを同時に押すことでWiVRn"
msgstr "両方のサムスティックを同時に押すことで設定表示"
#: client/scenes/stream_gui.cpp:420
msgid "Motion to photon latency"
+929
View File
@@ -0,0 +1,929 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn-dashboard package.
#
# SPDX-FileCopyrightText: 2025 not <github.superglue094@slmail.me>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-25 22:10+0200\n"
"PO-Revision-Date: 2025-08-02 18:48+0200\n"
"Last-Translator: not <github.superglue094@slmail.me>\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Lokalize 25.04.3\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "Sťahujem APK: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "Sťahujem APK: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
msgid "Download cancelled"
msgstr "Sťahovanie zrušené"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK sa nedá stiahnuť: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "Inštalujem APK"
#: dashboard/apk_installer.cpp:221
#, kde-format
msgid "adb failed to start: %1"
msgstr "Nepodarilo sa spustiť adb: %1"
#: dashboard/apk_installer.cpp:231
#, kde-format
msgid "adb exited abnormally: %1"
msgstr "adb sa neočakávane ukončil: %1"
#: dashboard/apk_installer.cpp:239
#, kde-format
msgid "The 'adb install' command failed: exit code %1"
msgstr "Príkaz 'adb install' zlyhal: kód ukončenia %1"
#: dashboard/apk_installer.cpp:244
#, kde-format
msgid "Installation successful"
msgstr "Inštalácia prebehla úspešne"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Ovládací panel WiVRn"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
msgid "Install the WiVRn app on your headset"
msgstr "Nainštaluj si aplikáciu WiVRn do headsetu"
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "Kontrolujem najnovšiu verziu…"
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
msgid "No precompiled APK is available for this version."
msgstr "Pre túto verziu nie je dostupné predkompilované APK."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#, kde-format
msgid "ADB is not installed."
msgstr "ADB nie je nainštalované."
#: dashboard/qml/ApkInstallPage.qml:47
#, kde-format
msgid "Connect a headset and make sure developer mode is enabled."
msgstr "Pripoj headset a uisti sa, že je zapnutý vývojársky režim."
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
#, kde-format
msgid ""
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"master/docs/building.md#client-headset\">documentation</a> to build your own "
"client."
msgstr ""
"Postupuj podľa pokynov v <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"master/docs/building.md#client-headset\">dokumentácii</a> na vytvorenie vlastn"
"ého "
"klienta."
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:59
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Späť"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
msgstr "Vyber svoj headset"
#: dashboard/qml/DeviceCard.qml:46
#, kde-format
msgid "WiVRn is already installed on this device"
msgstr "WiVRn je už na tomto zariadení nainštalovaný"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Reinstall WiVRn"
msgstr "Preinštalovať WiVRn"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Install WiVRn"
msgstr "Nainštalovať WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#, kde-format
msgid "Headsets"
msgstr "Headsety"
#: dashboard/qml/HeadsetsPage.qml:29
#, kde-format
msgid "Last connection: %1 second ago"
msgid_plural "Last connection: %1 seconds ago"
msgstr[0] "Posledné pripojenie: pred %1 sekundou"
msgstr[1] "Posledné pripojenie: pred %1 sekundami"
msgstr[2] "Posledné pripojenie: pred %1 sekundami"
#: dashboard/qml/HeadsetsPage.qml:31
#, kde-format
msgid "Last connection: %1 minute ago"
msgid_plural "Last connection: %1 minutes ago"
msgstr[0] "Posledné pripojenie: pred %1 minútou"
msgstr[1] "Posledné pripojenie: pred %1 minútami"
msgstr[2] "Posledné pripojenie: pred %1 minútami"
#: dashboard/qml/HeadsetsPage.qml:33
#, kde-format
msgid "Last connection: %1 hour ago"
msgid_plural "Last connection: %1 hours ago"
msgstr[0] "Posledné pripojenie: pred %1 hodinou"
msgstr[1] "Posledné pripojenie: pred %1 hodinami"
msgstr[2] "Posledné pripojenie: pred %1 hodinami"
#: dashboard/qml/HeadsetsPage.qml:35
#, kde-format
msgid "Last connection: %1 day ago"
msgid_plural "Last connection: %1 days ago"
msgstr[0] "Posledné pripojenie: pred %1 dňom"
msgstr[1] "Posledné pripojenie: pred %1 dňami"
msgstr[2] "Posledné pripojenie: pred %1 dňami"
#: dashboard/qml/HeadsetsPage.qml:40
#, kde-format
msgid "Rename headset"
msgstr "Premenovať headset"
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
#, kde-format
msgid "Rename"
msgstr "Premenovať"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:326 dashboard/qml/WizardPage.qml:410
#, kde-format
msgid "Cancel"
msgstr "Zrušiť"
#: dashboard/qml/HeadsetsPage.qml:64
#, kde-format
msgid "Headset name…"
msgstr "Názov headsetu…"
#: dashboard/qml/HeadsetsPage.qml:128
#, kde-format
msgid "Remove"
msgstr "Odstrániť"
#: dashboard/qml/HeadsetsPage.qml:143
#, kde-format
msgid "Pairing enabled, PIN: %1"
msgstr "Párovanie zapnuté, PIN: %1"
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:42
#, kde-format
msgid "Disable pairing"
msgstr "Vypnúť párovanie"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Start the WiVRn app on your headset and use the PIN: %1"
msgstr "Spusť aplikáciu WiVRn v headsete a zadaj PIN: %1"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Enable pairing to allow your headset to connect to this computer"
msgstr "Zapni párovanie, aby sa mohol headset pripojiť k tomuto počítaču"
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:37
#, kde-format
msgid "Enable pairing"
msgstr "Zapnúť párovanie"
#: dashboard/qml/HeadsetsPage.qml:191
#, kde-format
msgid "Pair a new headset"
msgstr "Spárovať nový headset"
#: dashboard/qml/HeadsetStatsPage.qml:12
#, kde-format
msgid "Headset statistics"
msgstr "Štatistiky headsetu"
#: dashboard/qml/Main.qml:103
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "Server nemá oprávnenia CAP_SYS_NICE."
#: dashboard/qml/Main.qml:110
#, kde-format
msgid "Fix it"
msgstr "Opraviť"
#: dashboard/qml/Main.qml:119
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "CAP_SYS_NICE bude použité po reštarte servera."
#: dashboard/qml/Main.qml:125
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reštartovať teraz"
#: dashboard/qml/Main.qml:136
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPU od NVIDIA vyžadujú minimálne verziu ovládača 565.77, aktuálna verzia je %1"
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "More info"
msgstr "Viac info"
#: dashboard/qml/Main.qml:150
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
msgstr ""
"Pre GPU od AMD používaj ovládač Mesa (radv)\n"
"Hardvérové kódovanie cez vaapi nefunguje s AMDVLK ani AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#, kde-format
msgid "Server failed to start"
msgstr "Nepodarilo sa spustiť server"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Zobraziť logy servera"
#: dashboard/qml/Main.qml:202
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Beží"
#: dashboard/qml/Main.qml:217
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Párovanie"
#: dashboard/qml/Main.qml:230
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "Pripojiť cez USB"
#: dashboard/qml/Main.qml:249
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "Žiadny headset nie je pripojený alebo nemá zapnutý vývojársky režim."
#: dashboard/qml/Main.qml:257
#, kde-format
msgid "Disconnect"
msgstr "Odpojiť"
#: dashboard/qml/Main.qml:274
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplikácia"
#: dashboard/qml/Main.qml:295
#, kde-format
msgid "Steam information"
msgstr "Informácie o Steame"
#: dashboard/qml/Main.qml:313
#, kde-format
msgid "Wizard"
msgstr "Sprievodca"
#: dashboard/qml/Main.qml:320
#, kde-format
msgid "Install the app"
msgstr "Nainštalovať aplikáciu"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Nastavenia"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Riešiť problémy"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
msgid "None"
msgstr "Žiadne"
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Vlastné"
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
msgstr "Prehľadať"
#: dashboard/qml/SettingsPage.qml:40
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "Manuálna foveation"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Foveation sila"
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
msgid "%1 %"
msgstr "%1 %"
#: dashboard/qml/SettingsPage.qml:68
#, kde-format
msgid ""
"A stronger foveation makes the image sharper in the center than in the "
"periphery and makes the decoding faster. This is better for fast paced "
"games.\n"
"\n"
"A weaker foveation gives a uniform sharpness in the whole image.\n"
"\n"
"The recommended values are between 20% and 50% for headsets without eye "
"tracking and between 50% and 70% for headsets with eye tracking."
msgstr ""
"Silnejšia foveácia zvyšuje ostrosť v strede obrazu a znižuje ju na okrajoch, č"
"ím zrýchľuje dekódovanie. Je vhodnejšia pre rýchle hry.\n"
"\n"
"Slabšia foveácia zachováva rovnomernú ostrosť v celom obraze.\n"
"\n"
"Odporúčané hodnoty sú medzi 20 % a 50 % pre headsety bez sledovania očí a medz"
"i 50 % a 70 % pre headsety so sledovaním očí."
#: dashboard/qml/SettingsPage.qml:74
#, kde-format
msgctxt "weaker foveation"
msgid "Weaker"
msgstr "Slabšia"
#: dashboard/qml/SettingsPage.qml:85
#, kde-format
msgctxt "stronger foveation"
msgid "Stronger"
msgstr "Silnejšia"
#: dashboard/qml/SettingsPage.qml:95
#, kde-format
msgid "Bitrate:"
msgstr "Bitrate:"
#: dashboard/qml/SettingsPage.qml:99 dashboard/qml/SettingsPage.qml:101
#, kde-format
msgctxt "bitrate"
msgid "%1 Mbit/s"
msgstr "%1 Mbit/s"
#: dashboard/qml/SettingsPage.qml:111
#, kde-format
msgid "Encoder layout:"
msgstr "Rozloženie enkodéra:"
#: dashboard/qml/SettingsPage.qml:114
#, kde-format
msgctxt "encoder preset"
msgid "Automatic"
msgstr "Automaticky"
#: dashboard/qml/SettingsPage.qml:118
#, kde-format
msgctxt "encoder preset"
msgid "Manual"
msgstr "Manuálne"
#: dashboard/qml/SettingsPage.qml:122
#, kde-format
msgctxt "encoder preset"
msgid "Default preset"
msgstr "Predvolený profil"
#: dashboard/qml/SettingsPage.qml:145
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Profil s nízkou odozvou"
#: dashboard/qml/SettingsPage.qml:170
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Bezpečný profil"
#: dashboard/qml/SettingsPage.qml:193
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
"Drag an edge to resize or remove encoders."
msgstr ""
"Ak chceš pridať nový enkodér, rozdeľ existujúci kliknutím pri jeho okraji.\n"
"Potiahnutím okraja môžeš meniť veľkosť alebo enkodér odstrániť."
#: dashboard/qml/SettingsPage.qml:220
#, kde-format
msgid "Encoder:"
msgstr "Enkodér:"
#: dashboard/qml/SettingsPage.qml:229
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:234
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPUs)"
#: dashboard/qml/SettingsPage.qml:239
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD a Intel GPUs)"
#: dashboard/qml/SettingsPage.qml:244
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (softvérové kódovanie)"
#: dashboard/qml/SettingsPage.qml:249
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:272
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Auto“ použije hardvérovú akceleráciu, ak je dostupná"
#: dashboard/qml/SettingsPage.qml:278
#, kde-format
msgid "Codec:"
msgstr "Kodek:"
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:289
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#, kde-format
msgid "Advanced options"
msgstr "Pokročilé nastavenia"
#: dashboard/qml/SettingsPage.qml:325
#, kde-format
msgid "Enable debug window"
msgstr "Zapnúť debug okno"
#: dashboard/qml/SettingsPage.qml:332
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "Zapnúť podporu pre SteamVR sledované zariadenia"
#: dashboard/qml/SettingsPage.qml:335
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
"Requires SteamVR to be installed.\n"
"Devices must be be powered on before connecting to WiVRn.\n"
"An external tool such as motoc is needed for calibration."
msgstr ""
"Umožňuje používanie ovládačov a trackerov založených na systéme Lighthouse.\n"
"Vyžaduje nainštalovaný SteamVR.\n"
"Zariadenia musia byť zapnuté pred pripojením k WiVRn.\n"
"Na kalibráciu je potrebný externý nástroj ako motoc."
#: dashboard/qml/SettingsPage.qml:343
#, kde-format
msgid "Custom adb location"
msgstr "Vlastná cesta k adb"
#: dashboard/qml/SettingsPage.qml:354
#, kde-format
msgid "Adb location:"
msgstr "Cesta k adb:"
#: dashboard/qml/SettingsPage.qml:363
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Prehľadať"
#: dashboard/qml/SettingsPage.qml:373
#, kde-format
msgid "Default"
msgstr "Predvolené"
#: dashboard/qml/SettingsPage.qml:387
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Vlastné"
#: dashboard/qml/SettingsPage.qml:392
#, kde-format
msgid "Disabled"
msgstr "Vypnuté"
#: dashboard/qml/SettingsPage.qml:400
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "Knižnica kompatibility OpenVR:"
#: dashboard/qml/SettingsPage.qml:426
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Cesta ku knižnici (okrem bin/linux64/vrclient.so)"
#: dashboard/qml/SteamLaunchOptions.qml:8
#, kde-format
msgid ""
"For Steam games, right click on the game in Steam, go in Properties > "
"General and paste this in \"Launch options\":"
msgstr ""
"Pre Steam hry klikni pravým tlačidlom na hru v Steame, otvor Vlastnosti > "
"Všeo becné a vlož toto do \"Spúšťacích parametrov“:"
#: dashboard/qml/SteamLaunchOptions.qml:20
#, kde-format
msgid "Paste this in the Steam launch options for the app you want to start"
msgstr ""
"Vlož toto do spúšťacích možností Steamu pre aplikáciu, ktorú chceš spustiť"
#: dashboard/qml/SteamLaunchOptions.qml:26
#, kde-format
msgctxt "copy text to the clipboard"
msgid "Copy"
msgstr "Kopírovať"
#: dashboard/qml/SteamLaunchOptions.qml:30
#, kde-format
msgid "Copied Steam launch command"
msgstr "Spúšťací príkaz pre Steam bol skopírovaný"
#: dashboard/qml/TroubleshootPage.qml:20
#, kde-format
msgid "I cannot find the WiVRn app on my headset"
msgstr "Nevidím svoj počítač v aplikácii WiVRn"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
"\"unknown sources\" section."
msgstr ""
"Ak si nainštaloval WiVRn cez USB na Meta headset, aplikácia sa nachádza v sekc"
"ii „neznáme zdroje“."
#: dashboard/qml/TroubleshootPage.qml:24
#, kde-format
msgid "I cannot see my computer in the WiVRn app"
msgstr "Nevidím svoj počítač v aplikácii WiVRn"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
msgstr ""
"Ak server nie je viditeľný alebo sa nepodarilo pripojenie, skontroluj, či sú v"
" tvojom firewalle otvorené porty 5353 (UDP) a 9757 (TCP aj UDP)."
#: dashboard/qml/TroubleshootPage.qml:28
#, kde-format
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
msgstr "Zobrazila sa chyba „Verzia servera nie je kompatibilná“ na headsete"
#: dashboard/qml/TroubleshootPage.qml:29
#, kde-format
msgid ""
"<p>The version of the headset app and the server on your computer must match."
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
"server version is <b>%1</b></li></ul>"
msgstr ""
"<p>Verzia aplikácie v headsete a verzia servera na tvojom počítači sa musia zh"
"odovať."
"</p><ul><li>Verziu aplikácie nájdeš v časti „O aplikácii“</li><li>Verzia "
"servera je <b>%1</b></li></ul>"
#: dashboard/qml/TroubleshootPage.qml:32
#, kde-format
msgid "I have a \"Pairing is disabled\" error"
msgstr "Zobrazila sa chyba „Párovanie je na serveri vypnuté“"
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid ""
"If you have reinstalled the server or the client or if you want to connect "
"another headset, you must enable pairing before connecting."
msgstr ""
"Ak si preinštaloval server alebo klienta, alebo ak chceš pripojiť iný headset,"
" musíš pred pripojením povoliť párovanie."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently enabled with PIN %1."
msgstr "Párovanie je momentálne zapnuté, PIN: %1."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently disabled."
msgstr "Párovanie je momentálne vypnuté."
#: dashboard/qml/TroubleshootPage.qml:49
#, kde-format
msgid "I have no sound on my headset"
msgstr "V headsete nemám zvuk"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
"device for applications to use it."
msgstr ""
"Keď je headset pripojený, vyber WiVRn ako predvolené zvukové zariadenie, aby h"
"o aplikácie používali."
#: dashboard/qml/TroubleshootPage.qml:67
#, kde-format
msgid "Report an issue"
msgstr "Nahlásiť problém"
#: dashboard/qml/TroubleshootPage.qml:72
#, kde-format
msgid "Ask on Discord"
msgstr "Opýtať sa na Discorde"
#: dashboard/qml/WizardPage.qml:14
#, kde-format
msgid "Getting started"
msgstr "Začíname"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:316
#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447
#: dashboard/qml/WizardPage.qml:484
#, kde-format
msgid "Back"
msgstr "Späť"
#: dashboard/qml/WizardPage.qml:64
#, kde-format
msgid "Welcome to WiVRn"
msgstr "Vitaj vo WiVRn"
#: dashboard/qml/WizardPage.qml:69
#, kde-format
msgid ""
"This wizard will help you set up WiVRn on your headset and connect it to "
"your computer."
msgstr ""
"Tento sprievodca ti pomôže nastaviť WiVRn na tvojom headsete a pripojiť ho k p"
"očítaču."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452
#: dashboard/qml/WizardPage.qml:489
#, kde-format
msgid "Next"
msgstr "Ďalej"
#: dashboard/qml/WizardPage.qml:112
#, kde-format
msgid "How to enable developer mode"
msgstr "Ako zapnúť vývojársky reži"
#: dashboard/qml/WizardPage.qml:119
#, kde-format
msgid "Follow the manufacturer's instructions below:"
msgstr "Postupuj podľa inštrukcií od výrobcu:"
#: dashboard/qml/WizardPage.qml:142
#, kde-format
msgid ""
"In order to use WiVRn, you will have to install the client app on your "
"headset.\n"
"You can either install it from the Meta store or directly over USB."
msgstr ""
"Na používanie WiVRn je potrebné nainštalovať klientsku aplikáciu do headsetu."
"\n"
"Môžeš ju nainštalovať buď z Meta obchodu alebo priamo cez USB."
#: dashboard/qml/WizardPage.qml:148
#, kde-format
msgid "Install from the Meta store"
msgstr "Nainštalovať z Meta Store"
#: dashboard/qml/WizardPage.qml:152
#, kde-format
msgid ""
"For the Quest 2, 3, 3S, and Pro, you can get the app from the <a "
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store</a>."
msgstr ""
"Pre Quest 2, 3, 3S a Pro si môžeš aplikáciu stiahnuť z <a "
"href=\"https://www.meta.com/experiences/7959676140827574/\">Meta obchodu</a>."
#: dashboard/qml/WizardPage.qml:164
#, kde-format
msgid ""
"A newer release is available: %1 → %2, the client app on the Meta store may "
"not be compatible."
msgstr ""
"K dispozícii je novšia verzia: %1 → %2, Aplikácia z obchodu Meta nemusí byť ko"
"mpatibilná."
#: dashboard/qml/WizardPage.qml:171
#, kde-format
msgid ""
"This is a nightly build, the client app on the Meta store may not be "
"compatible."
msgstr ""
"Toto je nightly verzia, aplikácia z Meta obchodu s ňou nemusí byť kompatibilná"
"."
#: dashboard/qml/WizardPage.qml:181
#, kde-format
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
msgid "Or"
msgstr "Alebo"
#: dashboard/qml/WizardPage.qml:187
#, kde-format
msgid "Install over USB"
msgstr "Nainštalovať cez USB"
#: dashboard/qml/WizardPage.qml:211
#, kde-format
msgid "ADB is not installed"
msgstr "ADB nie je nainštalované"
#: dashboard/qml/WizardPage.qml:219
#, kde-format
msgid ""
"<p>No headset detected. Make sure that:\n"
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
"href=\"#\">developer mode</a></li></ul></p>"
msgstr ""
"<p>Headset nebol rozpoznaný. Uisti sa, že:\n"
"<ul><li>Máš nainštalované ADB udev rules</li><li>Headset je v <a "
"href=\"#\">režime vývojára</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Vyber aplikáciu, ktorú chceš spustiť"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
msgid ""
"The application you choose will be started automatically when you connect "
"your headset."
msgstr "Vybraná aplikácia sa spustí automaticky po pripojení headsetu."
#: dashboard/qml/WizardPage.qml:300
#, kde-format
msgid "Important information"
msgstr "Dôležité informácie"
#: dashboard/qml/WizardPage.qml:307
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
"running."
msgstr ""
"WiVRn úplne nahrádza SteamVR, preto by si SteamVR nemal spúšťať, keď beží WiVR"
"n"
#: dashboard/qml/WizardPage.qml:358
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Spusť aplikáciu WiVRn v headsete"
#: dashboard/qml/WizardPage.qml:363
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
"and enter PIN \"%2\"."
msgstr ""
"Na pripojenie cez Wi-Fi spusti aplikáciu WiVRn v headsete, pripoj sa k \"%1“ a"
" "
"zadaj PIN \"%2“."
#: dashboard/qml/WizardPage.qml:370
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Pre pripojenie cez USB klikni na \"Pripojiť cez USB“."
#: dashboard/qml/WizardPage.qml:383
#, kde-format
msgid "Troubleshooting"
msgstr "Riešenie problémov"
#: dashboard/qml/WizardPage.qml:405
#, kde-format
msgid "Skip"
msgstr "Preskočiť"
#: dashboard/qml/WizardPage.qml:425
#, kde-format
msgid "Connection established"
msgstr "Pripojenie nadviazané"
#: dashboard/qml/WizardPage.qml:430
#, kde-format
msgid "Your headset is now connected."
msgstr "Headset je teraz pripojený."
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr ""
"Ak chceš pripojiť ďalší headset, uisti sa, že je v ovládacom paneli povolené p"
"árovanie."
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#, kde-format
msgid "Finish"
msgstr "Dokončiť"
#: dashboard/qml/WizardPage.qml:472
#, kde-format
msgid "Finished"
msgstr "Hotovo"
#: dashboard/wivrn_server.cpp:584
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+605
View File
@@ -0,0 +1,605 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
#
# SPDX-FileCopyrightText: 2025 not <github.superglue094@slmail.me>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:32+0200\n"
"PO-Revision-Date: 2025-08-02 18:41+0200\n"
"Last-Translator: not <github.superglue094@slmail.me>\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Lokalize 25.04.3\n"
#: client/scene.cpp:74
msgid "No supported swapchain format"
msgstr "Žiadny podporovaný formát swapchainu"
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr ""
"WiVRn server nie je kompatibilný: v TXT zázname chýba informácia o protokole"
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protokol WiVRn servera nie je kompatibilný (client: {}, server: {})"
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Nie je možné nájsť názov hostiteľa: {}"
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Nie je možné sa pripojiť k {} ({}): {}"
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Čaká sa na pripojenie"
#: client/scenes/lobby_gui.cpp:156
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normálna"
#: client/scenes/lobby_gui.cpp:159
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Vyššia kvalita"
#: client/scenes/lobby_gui.cpp:161
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Vypnuté"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
msgid "Disconnect"
msgstr "Odpojiť"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
msgid "Close"
msgstr "Zatvoriť"
#: client/scenes/lobby_gui.cpp:195
msgid "Connection"
msgstr "Pripojenie"
#: client/scenes/lobby_gui.cpp:197
#, c++-format
msgid "Connection to {}"
msgstr "Pripojenie k {}"
#: client/scenes/lobby_gui.cpp:227
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:249
msgid "Input the PIN displayed on the dashboard"
msgstr "Zadajte PIN zobrazený v okne aplikácie"
#: client/scenes/lobby_gui.cpp:315
msgid "Connected to WiVRn server"
msgstr "Pripojené k WiVRn serveru"
#: client/scenes/lobby_gui.cpp:317
#, c++-format
msgid "Connected to {}"
msgstr "Pripojené k {}"
#: client/scenes/lobby_gui.cpp:327
msgid "Start an application on the server to start streaming."
msgstr "Na serveri spustite aplikáciu, aby sa začalo streamovanie."
#: client/scenes/lobby_gui.cpp:333
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Na svojom počítači spustite aplikáciu alebo vyberte jednu na začatie streamova"
"nia."
#: client/scenes/lobby_gui.cpp:335
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Spustite aplikáciu na {} alebo vyberte jednu na začatie streamovania."
#: client/scenes/lobby_gui.cpp:383
msgid "Name"
msgstr "Názov"
#: client/scenes/lobby_gui.cpp:394
msgid "Address"
msgstr "Adresa"
#: client/scenes/lobby_gui.cpp:403
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:411
msgid "TCP only"
msgstr "Iba TCP"
#: client/scenes/lobby_gui.cpp:418
msgid "Cancel"
msgstr "Zrušiť"
#: client/scenes/lobby_gui.cpp:432
msgid "Save"
msgstr "Uložiť"
#: client/scenes/lobby_gui.cpp:485
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Spustite WiVRn server vo svojej\n"
"lokálnej sieti"
#: client/scenes/lobby_gui.cpp:517
msgid "Autoconnect"
msgstr "Automatické pripojenie"
#: client/scenes/lobby_gui.cpp:543
msgid "Connect"
msgstr "Pripojiť"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Verzia servera nie je kompatibilná"
#: client/scenes/lobby_gui.cpp:555
msgid "Server not available"
msgstr "Server nie je dostupný"
#: client/scenes/lobby_gui.cpp:641
msgid "Refresh rate"
msgstr "Obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automaticky"
#: client/scenes/lobby_gui.cpp:650
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
msgstr ""
"Vyber obnovovaciu frekvenciu podľa výkonu aplikácie.\n"
"Pri zmene sa môže obraz trochu trhať."
#: client/scenes/lobby_gui.cpp:667
msgid "Minimum refresh rate"
msgstr "Minimálna obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:690
msgid "Resolution scale"
msgstr "Rozlíšenie"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} na oko"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Rozlíšenie vyžšie ako {}x{} nemusí byť podporované vašim hedsetom"
#: client/scenes/lobby_gui.cpp:711
msgid "Enable microphone"
msgstr "Zapnúť mikrofón"
#: client/scenes/lobby_gui.cpp:720
msgid "Unprocessed Microphone Audio"
msgstr "Mikrofónu bez postrocesovaného zvuku"
#: client/scenes/lobby_gui.cpp:726
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Vynúťené vypnutie zvukových filtrov, ako napríklad potlačenie okolného hluku"
#: client/scenes/lobby_gui.cpp:733
msgid "Enable hand tracking"
msgstr "Zapnúť sledovanie rúk"
#: 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
msgid "This feature is not supported by your headset"
msgstr "Táto fíčura nieje podporovaná vašim hedsetom"
#: client/scenes/lobby_gui.cpp:745
msgid "Enable eye tracking"
msgstr "Zapnúť sledovanie očí"
#: client/scenes/lobby_gui.cpp:757
msgid "Enable face tracking"
msgstr "Zapnúť sledovanie tváre"
#: client/scenes/lobby_gui.cpp:770
msgid "Enable body tracking"
msgstr "Zapnúť sledovanie tela"
#: client/scenes/lobby_gui.cpp:786
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
"otherwise body data will be guessed from controller and headset positions"
msgstr ""
"Je potrebné 'Hand and body tracking' aby bolo zapnuté v Quest movement "
"tracking settings,\n"
"inak dáta o pozícii tela budú odhadované podla pozície hedsetu a ovládačov"
#: client/scenes/lobby_gui.cpp:799
msgid "Enable lower body tracking"
msgstr "Zapnúť sledovanie spodnej části tela"
#: client/scenes/lobby_gui.cpp:805
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings"
msgstr ""
"Odhad polohy kĺbov dolnej časti tela pomocou Generative Legs\n"
"Vyžaduje, aby bolo v nastaveniach Quest movement "
"tracking povolené „Hand and body tracking“"
#: client/scenes/lobby_gui.cpp:808
msgid "Enable hip tracking"
msgstr "Povoliť sledovanie pása"
#: client/scenes/lobby_gui.cpp:814
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
msgstr ""
"Platí len pri zapnutom sledovaní dolnej časti tela\n"
"Môže byť vhodné, ak sa používa iný zdroj sledovania pása"
#: client/scenes/lobby_gui.cpp:822
msgid "Enable video passthrough in lobby"
msgstr "Povoliť passthrough video v hlavnom menu"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
msgid "OpenXR post-processing"
msgstr "OpenXRPostprocesing"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:867 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"
msgstr ""
"Zníženie blikania pri okrajoch z vysokým kontrastom.\n"
"Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom hedsetu"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
msgid "Sharpening"
msgstr "Ostrosť"
#: client/scenes/lobby_gui.cpp:892 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"
msgstr ""
"Zlepšuje jasnosť pri okrajoch z vysokým kontrastom a potlačuje rozmazanie.\n"
"Užitočné, keď je vstupné rozlíšenie nízke v porovnaní s displejom hedsetu"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Zapnúť Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:909
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 ""
"V tomto headsete bolo toto nastavenie plne nahradené vyššie uvedeným natívnym"
"nastavením doostrenia.\n"
"Zapnite ho, len ak viete, čo robíte."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Zvýšenie rozlíšenia a doostrenie na strane klienta zvyšuje náklady na výkon he"
"dsetu"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Faktor upscalovania"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Použitie smeru okrajov"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Pridáva dodatočné náklady na výkon"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Hraničná hodnota okrajov"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Odporúčané: {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Ostrosť okrajov"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
msgid "CPU time"
msgstr "CPU odozva"
#: client/scenes/lobby_gui.cpp:1075
msgid "CPU time [ms]"
msgstr "CPU odozva [ms]"
#: client/scenes/lobby_gui.cpp:1085 client/scenes/lobby_gui.cpp:1093
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
msgid "GPU time"
msgstr "GPU odozva"
#: client/scenes/lobby_gui.cpp:1089
msgid "GPU time [ms]"
msgstr "GPU odozva [ms]"
#: client/scenes/lobby_gui.cpp:1132
msgid "Enable the microphone?"
msgstr "Zapnúť mikrofón?"
#: client/scenes/lobby_gui.cpp:1137
msgid "Enable eye tracking?"
msgstr "Povolenie sledovania očí?"
#: client/scenes/lobby_gui.cpp:1142
msgid "Enable face tracking?"
msgstr "Povolenie sledovania tváre?"
#: client/scenes/lobby_gui.cpp:1147
msgid "Enable body tracking?"
msgstr "Povoliť sledovanie tela?"
#: client/scenes/lobby_gui.cpp:1155
msgid "Welcome to WiVRn"
msgstr "Vitajte v WiVRn"
#: client/scenes/lobby_gui.cpp:1179
msgid "Yes"
msgstr "Áno"
#: client/scenes/lobby_gui.cpp:1186
msgid "No"
msgstr "Nie"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
msgid "Licenses"
msgstr "Licencie"
#: client/scenes/lobby_gui.cpp:1519
msgid "Microphone is enabled"
msgstr "Mikrofón je zapnutý"
#: client/scenes/lobby_gui.cpp:1520
msgid "Microphone is disabled"
msgstr "Mikrofón je vypnutý"
#: client/scenes/lobby_gui.cpp:1529
msgid "Hand tracking is enabled"
msgstr "Sledovanie rúk je zapnuté"
#: client/scenes/lobby_gui.cpp:1530
msgid "Hand tracking is disabled"
msgstr "Sledovanie rúk je vypnuté"
#: client/scenes/lobby_gui.cpp:1539
msgid "Eye tracking is enabled"
msgstr "Sledovanie očí je zapnuté"
#: client/scenes/lobby_gui.cpp:1540
msgid "Eye tracking is disabled"
msgstr "Sledovanie očí je vypnuté"
#: client/scenes/lobby_gui.cpp:1553
msgid "Face tracking is enabled"
msgstr "Sledovanie tváre je zapnuté"
#: client/scenes/lobby_gui.cpp:1554
msgid "Face tracking is disabled"
msgstr "Sledovanie tváre je vypnuté"
#: client/scenes/lobby_gui.cpp:1564
msgid "Body tracking is enabled"
msgstr "Sledovanie tela je zapnuté"
#: client/scenes/lobby_gui.cpp:1565
msgid "Body tracking is disabled"
msgstr "Sledovanie tela je vypnuté"
#: client/scenes/lobby_gui.cpp:1581
msgid "Add server"
msgstr "Pridať server"
#: client/scenes/lobby_gui.cpp:1826
msgid "Server list"
msgstr "Zoznam serverov"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
msgid "Settings"
msgstr "Nastavenia"
#: client/scenes/lobby_gui.cpp:1832
msgid "Post-processing"
msgstr "Postprocesing"
#: client/scenes/lobby_gui.cpp:1836
msgid "Debug"
msgstr "Ladenie"
#: client/scenes/lobby_gui.cpp:1841
msgid "About"
msgstr "O aplikácii"
#: client/scenes/lobby_gui.cpp:1847
msgid "Exit"
msgstr "Ukončiť"
#: client/scenes/lobby_gui.cpp:1864
msgid "Press the grip button or put your palm up\nto move the main window"
msgstr "Stlačte tlačidlo grip alebo zdvihnite dlaň\npre presunutie hlavného okna"
#: client/scenes/lobby_gui.cpp:1866
msgid "Press the grip button to move the main window"
msgstr "Pre presunutie hlavného okna stlačte grip"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Reprojekcia"
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "blitovanie"
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Sieť"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
msgid "Download"
msgstr "Prijímanie"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
msgid "Upload"
msgstr "Odosielanie"
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Dekodér {}"
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Časovanie [ms]"
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Kódovať"
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Poslať"
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Prijať"
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Dekódovať"
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Blitnutý"
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Zobrazený"
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Odhadovaný"
#: client/scenes/stream_gui.cpp:393
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Odhadovaná odozva od pohybu po zobrazenie: {}ms"
#: client/scenes/stream_gui.cpp:396
msgid "Press the grip button to move the window"
msgstr "Pre presunutie okna stlačte grip"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pre zobrazenie WiVRn okna stlačte oba joysticky"
#: client/scenes/stream_gui.cpp:420
msgid "Motion to photon latency"
msgstr "Odozva od pohybu po zobrazenie"
#: client/scenes/stream_gui.cpp:492
msgid "Foveation center override"
msgstr "Prepísanie foveation centra"
#: client/scenes/stream_gui.cpp:495
msgid "Enable"
msgstr "Povoliť"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Výška: {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Vzdialenosť: {:.2f} m"
#: client/scenes/stream_gui.cpp:505
msgid "Default"
msgstr "Predvolené"
#: client/scenes/stream_gui.cpp:516
msgid "Change"
msgstr "Zmeniť"
#: client/scenes/stream_gui.cpp:548
msgid "Use the thumbsticks to move the foveation center"
msgstr "Pomocou joysticku nastavte foveation centrum"
#: client/scenes/stream_gui.cpp:549
msgid "Press A to save or B to cancel"
msgstr "Stlač A pre uloženie alebo B pre zrušenie"
#: client/scenes/stream_gui.cpp:793
msgid "Stats"
msgstr "Štatistiky"
#: client/scenes/stream_gui.cpp:802
msgid "Statistics overlay"
msgstr "Štatistiky na obrazovke"
#: client/scenes/stream_gui.cpp:805
msgid "Compact view"
msgstr "Kompaktný vzhľad"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Čas vypršal"
#: client/wivrn_client.cpp:149
msgid "Incorrect PIN"
msgstr "Nesprávny PIN"
#: client/wivrn_client.cpp:153
msgid "Unable to check PIN"
msgstr "Nie je možné overiť PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Párovanie je na serveri vypnuté"
+3 -3
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-22 20:32+0800\n"
"POT-Creation-Date: 2025-08-03 18:33+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jayden Ha <jayden@jaydenha.uk>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -346,13 +346,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "無"
#: dashboard/qml/SelectGame.qml:21
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "自訂"
#: dashboard/qml/SelectGame.qml:79
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+264 -152
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-22 20:32+0800\n"
"POT-Creation-Date: 2025-08-03 18:33+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jayden Ha <jayden@jaydenha.uk>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,119 +17,121 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: client/scenes/lobby.cpp:148
#: client/scene.cpp:74
msgid "No supported swapchain format"
msgstr "不支援的交換鏈格式"
#: client/scenes/lobby.cpp:228
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "不相容的 WiVRn 伺服器: TXT 中沒有協議欄位"
#: client/scenes/lobby.cpp:231
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "不相容的 WiVRn 伺服器協議(用戶端: {},伺服器: {})"
#: client/scenes/lobby.cpp:246
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "無法解析主機名稱: {}"
#: client/scenes/lobby.cpp:333 client/scenes/lobby.cpp:339
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "無法連線至 {} ({}): {}"
#: client/scenes/lobby.cpp:453
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "等待連線"
#: client/scenes/lobby_gui.cpp:132
#: client/scenes/lobby_gui.cpp:229
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "正常"
#: client/scenes/lobby_gui.cpp:135
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "畫質"
#: client/scenes/lobby_gui.cpp:137
#: client/scenes/lobby_gui.cpp:234
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "已停用"
#: client/scenes/lobby_gui.cpp:198
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
msgid "Disconnect"
msgstr "中斷連線"
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "影片串流中斷"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"連線已就緒\n"
"請在您的電腦上啟動 VR 應用程式"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"連線已就緒\n"
"請在 {} 上啟動 VR 應用程式"
#: client/scenes/lobby_gui.cpp:221
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
msgid "Close"
msgstr "關閉"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:268
msgid "Connection"
msgstr "連線"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:270
#, c++-format
msgid "Connection to {}"
msgstr "連線至 {}"
#: client/scenes/lobby_gui.cpp:259
#: client/scenes/lobby_gui.cpp:300
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:281
#: client/scenes/lobby_gui.cpp:322
msgid "Input the PIN displayed on the dashboard"
msgstr "請輸入控制面板上顯示的 PIN 碼"
#: client/scenes/lobby_gui.cpp:356
#: client/scenes/lobby_gui.cpp:393
msgid "Connected to WiVRn server"
msgstr "已連線到 WiVRn 伺服器"
#: client/scenes/lobby_gui.cpp:395
#, c++-format
msgid "Connected to {}"
msgstr "已連線到 {}"
#: client/scenes/lobby_gui.cpp:405
msgid "Start an application on the server to start streaming."
msgstr "在伺服器那邊啟動程式來開始串流。"
#: client/scenes/lobby_gui.cpp:414
msgid "Start an application on your computer or select one to start streaming."
msgstr "在您的電腦上啟動應用程式,或是選擇一個來開始串流。"
#: client/scenes/lobby_gui.cpp:416
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "在 {} 上啟動應用程式,或是選擇一個來開始串流。"
#: client/scenes/lobby_gui.cpp:512
msgid "Name"
msgstr "名"
#: client/scenes/lobby_gui.cpp:367
#: client/scenes/lobby_gui.cpp:523
msgid "Address"
msgstr "伺服器位址"
#: client/scenes/lobby_gui.cpp:376
#: client/scenes/lobby_gui.cpp:532
msgid "Port"
msgstr "連接埠"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:540
msgid "TCP only"
msgstr "僅限 TCP"
#: client/scenes/lobby_gui.cpp:391
#: client/scenes/lobby_gui.cpp:547
msgid "Cancel"
msgstr "取消"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:561
msgid "Save"
msgstr "儲存"
#: client/scenes/lobby_gui.cpp:458
#: client/scenes/lobby_gui.cpp:614
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -137,32 +139,32 @@ msgstr ""
"在您的區域網路中啟動\n"
"WiVRn 伺服器"
#: client/scenes/lobby_gui.cpp:490
#: client/scenes/lobby_gui.cpp:646
msgid "Autoconnect"
msgstr "自動連線"
#: client/scenes/lobby_gui.cpp:516
#: client/scenes/lobby_gui.cpp:672
msgid "Connect"
msgstr "連線"
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:682 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "伺服器版本不相容"
#: client/scenes/lobby_gui.cpp:528
#: client/scenes/lobby_gui.cpp:684
msgid "Server not available"
msgstr "無法使用伺服器"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:770
msgid "Refresh rate"
msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
#: client/scenes/lobby_gui.cpp:770 client/scenes/lobby_gui.cpp:772
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:623
#: client/scenes/lobby_gui.cpp:779
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -170,59 +172,59 @@ msgstr ""
"根據測量的應用程式效能選擇刷新率。\n"
"變更時可能會造成閃爍。"
#: client/scenes/lobby_gui.cpp:640
#: client/scenes/lobby_gui.cpp:796
msgid "Minimum refresh rate"
msgstr "最低刷新率"
#: client/scenes/lobby_gui.cpp:663
#: client/scenes/lobby_gui.cpp:819
msgid "Resolution scale"
msgstr "解析度縮放比例"
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#: client/scenes/lobby_gui.cpp:823 client/scenes/lobby_gui.cpp:1062
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - 單眼 {}x{}"
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#: client/scenes/lobby_gui.cpp:834 client/scenes/lobby_gui.cpp:1073
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "解析度高於 {}x{} 可能不被頭戴式裝置支援"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:840
msgid "Enable microphone"
msgstr "啟用麥克風"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:849
msgid "Unprocessed Microphone Audio"
msgstr "未處理的麥克風音訊"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:855
msgid "Force disable audio filters, such as noise cancellation"
msgstr "強制停用音訊濾波器,例如降噪"
#: client/scenes/lobby_gui.cpp:707
#: client/scenes/lobby_gui.cpp:862
msgid "Enable hand tracking"
msgstr "啟用手部追蹤"
#: client/scenes/lobby_gui.cpp:714 client/scenes/lobby_gui.cpp:727
#: client/scenes/lobby_gui.cpp:740 client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:868 client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:892 client/scenes/lobby_gui.cpp:908
#: client/scenes/lobby_gui.cpp:958
msgid "This feature is not supported by your headset"
msgstr "您的頭戴式裝置不支援此功能"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:874
msgid "Enable eye tracking"
msgstr "啟用眼球追蹤"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:886
msgid "Enable face tracking"
msgstr "啟用臉部追蹤"
#: client/scenes/lobby_gui.cpp:747
#: client/scenes/lobby_gui.cpp:899
msgid "Enable body tracking"
msgstr "啟用身體追蹤"
#: client/scenes/lobby_gui.cpp:764
#: client/scenes/lobby_gui.cpp:915
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -231,11 +233,11 @@ msgstr ""
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」,\n"
"否則身體資料將根據控制器和頭戴式裝置的位置進行猜測"
#: client/scenes/lobby_gui.cpp:777
#: client/scenes/lobby_gui.cpp:928
msgid "Enable lower body tracking"
msgstr "啟用下半身追蹤"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:934
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -244,11 +246,11 @@ msgstr ""
"使用 Generative Legs 預估下半身關節位置\n"
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:937
msgid "Enable hip tracking"
msgstr "啟用臀部追蹤"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:943
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -256,45 +258,19 @@ msgstr ""
"僅在啟用下半身追蹤時生效\n"
"在使用其他臀部追蹤時可能需要此功能"
#: client/scenes/lobby_gui.cpp:800
#: client/scenes/lobby_gui.cpp:951
msgid "Enable video passthrough in lobby"
msgstr "在待機區啟用影像穿透 (Passthrough)"
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "顯示效能指標"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "同時按下兩個拇指搖桿可以切換覆蓋層"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "CPU 時間"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "CPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:858 client/scenes/lobby_gui.cpp:866
#: client/scenes/stream_stats.cpp:161
msgid "GPU time"
msgstr "GPU 時間"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "GPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:881
#: client/scenes/lobby_gui.cpp:972 client/scenes/stream_gui.cpp:434
msgid "OpenXR post-processing"
msgstr "OpenXR 後期處理"
#: client/scenes/lobby_gui.cpp:885
#: client/scenes/lobby_gui.cpp:976 client/scenes/stream_gui.cpp:438
msgid "Supersampling"
msgstr "超取樣"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:996 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"
@@ -302,11 +278,11 @@ msgstr ""
"減少高對比邊緣的閃爍。\n"
"當輸入解析度對於頭戴式顯示器來說很高時很有用"
#: client/scenes/lobby_gui.cpp:910
#: client/scenes/lobby_gui.cpp:1001 client/scenes/stream_gui.cpp:464
msgid "Sharpening"
msgstr "銳利化"
#: client/scenes/lobby_gui.cpp:930
#: client/scenes/lobby_gui.cpp:1021 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"
@@ -314,11 +290,11 @@ msgstr ""
"改善高對比邊緣的清晰度並抵消模糊。\n"
"當輸入解析度對於頭戴式顯示器來說較低時很有用"
#: client/scenes/lobby_gui.cpp:939
#: client/scenes/lobby_gui.cpp:1030
msgid "Enable Snapdragon Game Super Resolution"
msgstr "啟用 Snapdragon 遊戲超級解析度"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1038
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
@@ -327,182 +303,284 @@ msgstr ""
"在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n"
"僅在您了解自己在做什麼時啟用。"
#: client/scenes/lobby_gui.cpp:949
#: client/scenes/lobby_gui.cpp:1040
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔"
#: client/scenes/lobby_gui.cpp:967
#: client/scenes/lobby_gui.cpp:1058
msgid "Upscaling factor"
msgstr "向上取樣係數"
#: client/scenes/lobby_gui.cpp:986
#: client/scenes/lobby_gui.cpp:1077
msgid "Use edge direction"
msgstr "使用邊緣方向"
#: client/scenes/lobby_gui.cpp:992
#: client/scenes/lobby_gui.cpp:1083
msgid "Adds an additional performance cost"
msgstr "會增加額外的效能負擔"
#: client/scenes/lobby_gui.cpp:997
#: client/scenes/lobby_gui.cpp:1088
msgid "Edge threshold"
msgstr "邊緣閾值"
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#: client/scenes/lobby_gui.cpp:1095 client/scenes/lobby_gui.cpp:1104
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "推薦:{:.1f}"
#: client/scenes/lobby_gui.cpp:1007
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge sharpness"
msgstr "邊緣銳利度"
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
#: client/scenes/lobby_gui.cpp:1200 client/scenes/lobby_gui.cpp:1208
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
msgid "CPU time"
msgstr "CPU 時間"
#: client/scenes/lobby_gui.cpp:1204
msgid "CPU time [ms]"
msgstr "CPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1214 client/scenes/lobby_gui.cpp:1222
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
msgid "GPU time"
msgstr "GPU 時間"
#: client/scenes/lobby_gui.cpp:1218
msgid "GPU time [ms]"
msgstr "GPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1261
msgid "Enable the microphone?"
msgstr "要啟用麥克風嗎?"
#: client/scenes/lobby_gui.cpp:1266
msgid "Enable eye tracking?"
msgstr "要啟用眼部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1271
msgid "Enable face tracking?"
msgstr "要啟用臉部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1276
msgid "Enable body tracking?"
msgstr "要啟用身體追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1284
msgid "Welcome to WiVRn"
msgstr "歡迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1308
msgid "Yes"
msgstr "是"
#: client/scenes/lobby_gui.cpp:1315
msgid "No"
msgstr "否"
#: client/scenes/lobby_gui.cpp:1334 client/scenes/lobby_gui.cpp:1973
msgid "Licenses"
msgstr "授權資訊"
#: client/scenes/lobby_gui.cpp:1440
#: client/scenes/lobby_gui.cpp:1648
msgid "Microphone is enabled"
msgstr "麥克風已啟用"
#: client/scenes/lobby_gui.cpp:1441
#: client/scenes/lobby_gui.cpp:1649
msgid "Microphone is disabled"
msgstr "麥克風已停用"
#: client/scenes/lobby_gui.cpp:1450
#: client/scenes/lobby_gui.cpp:1658
msgid "Hand tracking is enabled"
msgstr "手部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1451
#: client/scenes/lobby_gui.cpp:1659
msgid "Hand tracking is disabled"
msgstr "手部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1668
msgid "Eye tracking is enabled"
msgstr "眼球追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1461
#: client/scenes/lobby_gui.cpp:1669
msgid "Eye tracking is disabled"
msgstr "眼球追蹤已停用"
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is enabled"
msgstr "臉部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
#: client/scenes/lobby_gui.cpp:1683
msgid "Face tracking is disabled"
msgstr "臉部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1493
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is enabled"
msgstr "身體追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1494
#: client/scenes/lobby_gui.cpp:1694
msgid "Body tracking is disabled"
msgstr "身體追蹤已停用"
#: client/scenes/lobby_gui.cpp:1510
#: client/scenes/lobby_gui.cpp:1710
msgid "Add server"
msgstr "新增伺服器"
#: client/scenes/lobby_gui.cpp:1739
#: client/scenes/lobby_gui.cpp:1955
msgid "Server list"
msgstr "伺服器列表"
#: client/scenes/lobby_gui.cpp:1742
#: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:796
msgid "Settings"
msgstr "設定"
#: client/scenes/lobby_gui.cpp:1745
#: client/scenes/lobby_gui.cpp:1961
msgid "Post-processing"
msgstr "後期處理"
#: client/scenes/lobby_gui.cpp:1749
#: client/scenes/lobby_gui.cpp:1965
msgid "Debug"
msgstr "偵錯"
#: client/scenes/lobby_gui.cpp:1754
#: client/scenes/lobby_gui.cpp:1970
msgid "About"
msgstr "關於"
#: client/scenes/lobby_gui.cpp:1760
#: client/scenes/lobby_gui.cpp:1976
msgid "Exit"
msgstr "離開"
#: client/scenes/lobby_gui.cpp:1774
#: client/scenes/lobby_gui.cpp:1993
msgid ""
"Press A or X or put your palm up\n"
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"按下 A 或 X 鍵,或將手掌向上\n"
"即可移動主視窗"
msgstr "按下握把按鈕或手掌向上\n以移動主視窗"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "按下 A 或 X 鍵即可移動主視窗"
#: client/scenes/lobby_gui.cpp:1995
msgid "Press the grip button to move the main window"
msgstr "按下握把按鈕以移動主視窗"
#: client/scenes/stream_stats.cpp:161
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "重新投影"
#: client/scenes/stream_stats.cpp:162
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "貼圖"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "網路"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
msgid "Download"
msgstr "下載"
#: client/scenes/stream_stats.cpp:165
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
msgid "Upload"
msgstr "上傳"
#: client/scenes/stream_stats.cpp:234
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "解碼器 {}"
#: client/scenes/stream_stats.cpp:246
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "時間資訊 [ms]"
#: client/scenes/stream_stats.cpp:306
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "編碼"
#: client/scenes/stream_stats.cpp:307
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "傳送"
#: client/scenes/stream_stats.cpp:308
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "接收"
#: client/scenes/stream_stats.cpp:309
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "解碼"
#: client/scenes/stream_stats.cpp:310
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "已貼圖"
#: client/scenes/stream_stats.cpp:311
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "已顯示"
#: client/scenes/stream_stats.cpp:312
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "已預測"
#: client/scenes/stream_stats.cpp:330
#: client/scenes/stream_gui.cpp:393
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "估計運動到光子的延遲: {}毫秒"
#: client/scenes/stream_gui.cpp:396
msgid "Press the grip button to move the window"
msgstr "按下握把按鈕來移動視窗"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "同時按下兩側搖桿以顯示 WiVRn 視窗"
#: client/scenes/stream_gui.cpp:420
msgid "Motion to photon latency"
msgstr "從動作到顯示的延遲"
#: client/scenes/stream_gui.cpp:492
msgid "Foveation center override"
msgstr "注視點渲染中心覆蓋"
#: client/scenes/stream_gui.cpp:495
msgid "Enable"
msgstr "啟用"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#, c++-format
msgid "Height {:.1f} deg"
msgstr "高度 {:.1f} 度"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距離 {:.2f} 公尺"
#: client/scenes/stream_gui.cpp:505
msgid "Default"
msgstr "預設"
#: client/scenes/stream_gui.cpp:516
msgid "Change"
msgstr "變更"
#: client/scenes/stream_gui.cpp:548
msgid "Use the thumbsticks to move the foveation center"
msgstr "使用搖桿移動注視點中心"
#: client/scenes/stream_gui.cpp:549
msgid "Press A to save or B to cancel"
msgstr "按下 A 儲存或 B 取消"
#: client/scenes/stream_gui.cpp:793
msgid "Stats"
msgstr "統計"
#: client/scenes/stream_gui.cpp:802
msgid "Statistics overlay"
msgstr "統計數據覆疊"
#: client/scenes/stream_gui.cpp:805
msgid "Compact view"
msgstr "精簡顯示"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "逾時"
@@ -518,3 +596,37 @@ msgstr "無法驗證 PIN 碼"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "伺服器上已停用配對"
#~ msgid "Video stream interrupted"
#~ msgstr "影片串流中斷"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "連線已就緒\n"
#~ "請在您的電腦上啟動 VR 應用程式"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "連線已就緒\n"
#~ "請在 {} 上啟動 VR 應用程式"
#~ msgid "Show performance metrics"
#~ msgstr "顯示效能指標"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "同時按下兩個拇指搖桿可以切換覆蓋層"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "按下 A 或 X 鍵,或將手掌向上\n"
#~ "即可移動主視窗"
#~ msgid "Press A or X to move the main window"
#~ msgstr "按下 A 或 X 鍵即可移動主視窗"
+8 -2
View File
@@ -498,7 +498,9 @@ static std::ostream & operator<<(std::ostream & out, const xrt_space_relation_cs
}
}
out << "x,y,z,";
out << "qw,qx,qy,qz";
out << "qw,qx,qy,qz,";
out << "vx,vy,vz,";
out << "avx,avy,avz";
return out;
}
@@ -506,13 +508,17 @@ static std::ostream & operator<<(std::ostream & out, const xrt_space_relation &
{
const auto & pos = rel.pose.position;
const auto & o = rel.pose.orientation;
const auto & v = rel.linear_velocity;
const auto & av = rel.angular_velocity;
for (const auto & [value, name]: magic_enum::enum_entries<xrt_space_relation_flags>())
{
if (value and value != XRT_SPACE_RELATION_BITMASK_ALL)
out << bool(rel.relation_flags & value) << ',';
}
out << pos.x << ',' << pos.y << ',' << pos.z << ',';
out << o.w << ',' << o.x << ',' << o.y << ',' << o.z;
out << o.w << ',' << o.x << ',' << o.y << ',' << o.z << ',';
out << v.x << ',' << v.y << ',' << v.z << ',';
out << av.x << ',' << av.y << ',' << av.z;
return out;
}
+2 -1
View File
@@ -739,7 +739,8 @@ void wivrn_session::operator()(from_headset::get_application_list && request)
response.applications.emplace_back(
std::move(id),
// FIXME: use locale
app.name.at(""));
app.name.at(""),
app.image);
}
send_control(std::move(response));
}
+2 -1
View File
@@ -44,7 +44,8 @@ for i in po_ref:
if not i.obsolete:
if not i.msgid in entries:
missing = missing + 1
print(f"::warning file={args.file}::{flag} Translation for {repr(i.msgid)} is missing")
print(f"::notice file={args.file}::{flag} Translation for {repr(i.msgid)} is missing")
if missing > 0:
print(f"::warning file={args.file}::{flag} {missing} translations missing")
sys.exit(1)