Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-09-24 21:25:03 -04:00
88 changed files with 6692 additions and 3956 deletions
+23 -5
View File
@@ -36,17 +36,33 @@ body:
validations:
required: true
- type: input
attributes:
label: Installation method
description: Describe how WiVRn and OpenComposite/xrizer were installed
placeholder: flatpak --user, flatpak, AUR, Gentoo/Guru, built from sources...
- type: textarea
attributes:
label: Server Config
description: Provide the content of `config.json` for the server.
placeholder: Add the content of config.json here...
description: |
Provide the content of `config.json` for the server.
Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json`
or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version
placeholder: |
{
"encoders": [
{"codec": "h264"}
]
}
- type: textarea
attributes:
label: Server Logs
description: Provide the `wivrn-server` output.
placeholder: Add the output of the wivrn-server here...
placeholder: |
Add the output of the wivrn-server here.
If more than a few lines, prefer file attachment.
- type: dropdown
id: gpu
@@ -64,7 +80,8 @@ body:
attributes:
label: Vulkan Info
description: Provide the output of `vulkaninfo --summary` command.
placeholder: Add the output of vulkaninfo command here...
render: text
placeholder: Attach the output as a file here.
- type: dropdown
id: hmd
@@ -90,4 +107,5 @@ body:
attributes:
label: ADB Logs
description: Provide the output of `adb logcat` command.
placeholder: Add the output of adb logcat command here...
render: plain
placeholder: Attach the output of adb logcat as a file.
+2 -2
View File
@@ -78,7 +78,7 @@ jobs:
build-dashboard:
name: Linux dashboard
runs-on: ubuntu-24.04
container: ubuntu:oracular
container: ubuntu:plucky
if: ${{ vars.APK_ONLY == '' }}
steps:
- uses: actions/checkout@v4
@@ -459,7 +459,7 @@ jobs:
strategy:
fail-fast: false
matrix:
distro: ['oracular', 'plucky']
distro: ['plucky']
runs-on: ubuntu-24.04
container: ubuntu:${{ matrix.distro }}
steps:
+4 -3
View File
@@ -6,6 +6,7 @@ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@@ -33,6 +34,7 @@ option(WIVRN_BUILD_WIVRNCTL "Build wivrnctl" ON)
option(WIVRN_BUILD_DISSECTOR "Build Wireshark dissector" OFF)
option(WIVRN_BUILD_TEST "Build test binaries" OFF)
option(WIVRN_WERROR "Treat warnings as errors" OFF)
option(WIVRN_OPTIMIZE_SHADERS "Run siprv-opt on compiled shaders" ON)
option(WIVRN_USE_NVENC "Enable nvenc (Nvidia) hardware encoder" ON)
auto_option(WIVRN_USE_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" AUTO)
@@ -276,9 +278,8 @@ FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.co
URL_HASH SHA256=1586508029a7d0670dfcb2d97575dcdc242d3868a259742b69f100801ab4e16b)
FetchContent_Declare(stb EXCLUDE_FROM_ALL SYSTEM URL https://github.com/nothings/stb/archive/013ac3beddff3dbffafd5177e7972067cd2b5083.zip
URL_HASH SHA256=b7f476902bbef1b30f8ecc2d9d95c459c32302c8b559d09b589b5955463b7af8)
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM
GIT_REPOSITORY https://github.com/KhronosGroup/KTX-Software
GIT_TAG 91ace88675ac59a97e55d0378a6602a9ae6b98bd)
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.4.0.tar.gz
URL_HASH SHA256=3585d76edcdcbe3a671479686f8c81c1c10339f419e4b02a9a6f19cc6e4e0612)
FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/3da8bd34299965d3b0ab124df743fe3e076fa222.zip
URL_HASH SHA256=e9b439a94aa6f09fcf12ed9c2cd784efe5e99e96242122aa683e690b29f7a59f)
file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*)
-32
View File
@@ -1,32 +0,0 @@
Snapdragon(TM) Game Super Resolution
Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
https://github.com/SnapdragonStudios/snapdragon-gsr
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
SPDX-License-Identifier: BSD-3-Clause
+72 -31
View File
@@ -17,45 +17,86 @@ allprojects {
apply plugin: 'com.android.application'
task "generatePngs"() {
group = 'Custom'
mkdir layout.buildDirectory.dir('generated_resources')
["mipmap-mdpi", "mipmap-hdpi", "mipmap-xhdpi", "mipmap-xxhdpi", "mipmap-xxxhdpi", ].each {
mkdir layout.buildDirectory.dir("generated_resources/${it}")
}
import javax.inject.Inject
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.*
import org.gradle.api.file.DirectoryProperty
import org.gradle.process.ExecOperations
def css = project.hasProperty('wivrn_css') ? project.wivrn_css: "images/wivrn-local.css"
abstract class GeneratePngsTask extends DefaultTask {
@Inject
abstract ExecOperations getExecOps()
exec {
executable = 'rsvg-convert'
args = [ "images/wivrn.svg", "-w", "48", "-h", "48", "-o", layout.buildDirectory.file('generated_resources/mipmap-mdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ]
}
@InputFile
abstract RegularFileProperty getSvg()
exec {
executable = 'rsvg-convert'
args = [ "images/wivrn.svg", "-w", "72", "-h", "72", "-o", layout.buildDirectory.file('generated_resources/mipmap-hdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ]
}
@InputFile
@Optional
abstract RegularFileProperty getCss()
exec {
executable = 'rsvg-convert'
args = [ "images/wivrn.svg", "-w", "96", "-h", "96", "-o", layout.buildDirectory.file('generated_resources/mipmap-xhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ]
}
@OutputDirectory
abstract DirectoryProperty getOutputDir()
exec {
executable = 'rsvg-convert'
args = [ "images/wivrn.svg", "-w", "144", "-h", "144", "-o", layout.buildDirectory.file('generated_resources/mipmap-xxhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ]
}
@TaskAction
void generate() {
def outDir = getOutputDir().get().asFile
outDir.mkdirs()
exec {
executable = 'rsvg-convert'
args = [ "images/wivrn.svg", "-w", "192", "-h", "192", "-o", layout.buildDirectory.file('generated_resources/mipmap-xxxhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ]
// Map of density → size
def dpiConfigs = [
"mipmap-mdpi" : 48,
"mipmap-hdpi" : 72,
"mipmap-xhdpi" : 96,
"mipmap-xxhdpi" : 144,
"mipmap-xxxhdpi": 192
]
def cssFile = getCss().isPresent() ? getCss().get().asFile : null
dpiConfigs.each { dpi, size ->
def dpiDir = new File(outDir, dpi)
dpiDir.mkdirs()
def outputFile = new File(dpiDir, "ic_wivrn_launcher.png")
def argsList = [
getSvg().get().asFile.absolutePath,
"-w", size.toString(),
"-h", size.toString(),
"-o", outputFile.absolutePath
]
if (cssFile != null) {
argsList.add("--stylesheet=${cssFile.absolutePath}")
}
execOps.exec {
executable = "rsvg-convert"
args = argsList
}
}
}
}
tasks.register("generatePngs", GeneratePngsTask) {
group = "Custom"
// configure defaults
svg.set(layout.projectDirectory.file("images/wivrn.svg"))
outputDir.set(layout.buildDirectory.dir("generated_resources"))
if (project.hasProperty("wivrn_css")) {
css.set(layout.projectDirectory.file(project.wivrn_css))
} else {
css.set(layout.projectDirectory.file("images/wivrn-local.css"))
}
}
android {
namespace "org.meumeu.wivrn"
ndkVersion "28.1.13356709"
namespace = "org.meumeu.wivrn"
ndkVersion = "28.1.13356709"
lint {
disable += "ExpiredTargetSdkVersion"
@@ -105,7 +146,7 @@ android {
keyAlias "default_key"
storePassword signingKeyPassword // Set in gradle.properties
keyPassword signingKeyPassword
enableV2Signing true
enableV2Signing = true
}
}
}
@@ -113,7 +154,7 @@ android {
buildTypes {
if (project.hasProperty("signingKeyPassword")) {
release {
signingConfig signingConfigs.release
signingConfig = signingConfigs.release
}
}
@@ -182,7 +223,7 @@ android {
externalNativeBuild {
cmake {
version '3.30.3'
version = '3.30.3'
path 'CMakeLists.txt'
}
}
+4 -1
View File
@@ -89,7 +89,7 @@ file(GLOB LOCAL_SOURCE CONFIGURE_DEPENDS
file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl")
target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS})
wivrn_compile_glsl(wivrn ${VULKAN_SHADERS})
wivrn_compile_glsl(wivrn SHADERS ${VULKAN_SHADERS})
target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm fastgltf FreetypeHarfbuzz stb Boost::url Boost::locale)
@@ -177,6 +177,9 @@ if(USE_ANDROID_VALIDATION_LAYER)
file(COPY
${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES})
else()
# silence "Manually-specified variables were not used by the project" warning
set(_unused ${CMAKE_ANDROID_LIB_DIRECTORIES})
endif()
+32 -36
View File
@@ -18,7 +18,7 @@
*/
#include "application.h"
#include "asset.h"
#include "hardware.h"
#include "openxr/openxr.h"
#include "scene.h"
@@ -26,6 +26,7 @@
#include "spdlog/spdlog.h"
#include "utils/contains.h"
#include "utils/files.h"
#include "utils/i18n.h"
#include "vk/check.h"
#include "wifi_lock.h"
#include "xr/actionset.h"
@@ -67,7 +68,6 @@ struct interaction_profile
std::string profile_name;
std::vector<std::string> required_extensions;
XrVersion min_version = XR_MAKE_VERSION(1, 0, 0);
XrVersion max_version = XR_MAKE_VERSION(2, 0, 0); // exclusive
std::vector<std::string> input_sources;
bool available;
};
@@ -134,8 +134,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/facebook/touch_controller_pro",
.required_extensions = {"XR_FB_touch_controller_pro"},
.max_version = XR_MAKE_VERSION(1, 1, 0),
.required_extensions = {XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/left/output/haptic_trigger_fb",
@@ -247,8 +246,7 @@ static std::vector<interaction_profile> interaction_profiles{
},
interaction_profile{
.profile_name = "/interaction_profiles/meta/touch_controller_plus",
.required_extensions = {"XR_META_touch_controller_plus"},
.max_version = XR_MAKE_VERSION(1, 1, 0),
.required_extensions = {XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME},
.input_sources = {
"/user/hand/left/output/haptic",
"/user/hand/right/output/haptic",
@@ -971,7 +969,8 @@ void application::initialize_actions()
std::vector<std::string> sources;
for (auto & profile: interaction_profiles)
{
profile.available = utils::contains_all(xr_extensions, profile.required_extensions) and profile.min_version <= api_version and profile.max_version > api_version;
profile.available = std::ranges::all_of(profile.required_extensions, [&](auto & ext) { return xr_instance.has_extension(ext); }) and
profile.min_version <= api_version;
if (profile.profile_name.ends_with("khr/simple_controller"))
{
@@ -1352,50 +1351,47 @@ void application::initialize()
vk_cmdpool = vk::raii::CommandPool{vk_device, cmdpool_create_info};
initialize_actions();
load_locale();
}
void application::load_locale()
{
gen.add_messages_domain("wivrn");
std::locale loc = gen("");
messages_info.encoding = "UTF-8";
if (config->locale.empty())
{
#ifdef __ANDROID__
jni::klass java_util_Locale("java/util/Locale");
auto default_locale = java_util_Locale.call<jni::object<"java/util/Locale">>("getDefault");
jni::klass java_util_Locale("java/util/Locale");
auto default_locale = java_util_Locale.call<jni::object<"java/util/Locale">>("getDefault");
// if (auto language = default_locale.call<jni::string>("toString"))
if (auto language = default_locale.call<jni::string>("getLanguage"))
messages_info.language = language;
if (auto country = default_locale.call<jni::string>("getCountry"))
messages_info.country = country;
messages_info.encoding = "UTF-8";
// if (auto language = default_locale.call<jni::string>("toString"))
if (auto language = default_locale.call<jni::string>("getLanguage"))
messages_info.language = language;
if (auto country = default_locale.call<jni::string>("getCountry"))
messages_info.country = country;
#else
auto & facet = std::use_facet<boost::locale::info>(loc);
messages_info.language = facet.language();
messages_info.country = facet.country();
messages_info.encoding = "UTF-8";
auto & facet = std::use_facet<boost::locale::info>(loc);
messages_info.language = facet.language();
messages_info.country = facet.country();
#endif
}
else
{
auto pos = config->locale.find("_");
messages_info.language = config->locale.substr(0, pos);
if (pos != std::string::npos)
messages_info.country = config->locale.substr(pos + 1);
}
spdlog::info("Current locale: language {}, country {}, encoding {}", messages_info.language, messages_info.country, messages_info.encoding);
messages_info.paths.push_back("locale");
messages_info.domains.push_back(boost::locale::gnu_gettext::messages_info::domain("wivrn"));
messages_info.callback = [](const std::string & file_name, const std::string & encoding) {
std::vector<char> buffer;
try
{
asset file(file_name);
buffer.resize(file.size());
memcpy(buffer.data(), file.data(), file.size());
}
catch (...)
{
}
return buffer;
};
messages_info.callback = open_locale_file;
loc = std::locale(loc, boost::locale::gnu_gettext::create_messages_facet<char>(messages_info));
std::locale::global(loc);
+2
View File
@@ -486,4 +486,6 @@ public:
{
return instance().messages_info;
}
void load_locale();
};
+6 -35
View File
@@ -214,8 +214,8 @@ configuration::configuration(xr::system & system)
if (auto val = root["resolution_scale"]; val.is_double())
resolution_scale = val.get_double();
if (auto val = root["sgsr"]; val.is_object())
parse_sgsr_options(val.get_object());
if (auto val = root["enable_stream_gui"]; val.is_bool())
enable_stream_gui = val.get_bool();
if (auto val = root["openxr_post_processing"]; val.is_object())
parse_openxr_post_processing_options(val.get_object());
@@ -254,6 +254,9 @@ configuration::configuration(xr::system & system)
if (auto val = root["first_run"]; val.is_bool())
first_run = val.get_bool();
if (auto val = root["locale"]; val.is_string())
locale = val.get_string().value();
}
catch (std::exception & e)
{
@@ -264,31 +267,11 @@ configuration::configuration(xr::system & system)
preferred_refresh_rate.reset();
minimum_refresh_rate.reset();
resolution_scale = 1.4;
sgsr = {};
openxr_post_processing = {};
passthrough_enabled = system.passthrough_supported() == xr::system::passthrough_type::color;
}
}
void configuration::parse_sgsr_options(simdjson::simdjson_result<simdjson::dom::object> sgsr_root)
{
sgsr = {};
if (auto val = sgsr_root["enabled"]; val.is_bool())
sgsr.enabled = val.get_bool();
if (auto val = sgsr_root["upscaling_factor"]; val.is_double())
sgsr.upscaling_factor = val.get_double();
if (auto val = sgsr_root["use_edge_direction"]; val.is_bool())
sgsr.use_edge_direction = val.get_bool();
if (auto val = sgsr_root["edge_threshold"]; val.is_double())
sgsr.edge_threshold = val.get_double();
if (auto val = sgsr_root["edge_sharpness"]; val.is_double())
sgsr.edge_sharpness = val.get_double();
}
void configuration::parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> openxr_post_processing_root)
{
openxr_post_processing = {};
@@ -304,17 +287,6 @@ static std::ostream & operator<<(std::ostream & stream, feature f)
return stream << "\"" << magic_enum::enum_name(f) << "\"";
}
static std::ostream & write_sgsr(std::ofstream & stream, const configuration::sgsr_settings & sgsr)
{
stream << "{\"enabled\":" << std::boolalpha << sgsr.enabled;
stream << ",\"upscaling_factor\":" << sgsr.upscaling_factor;
stream << ",\"use_edge_direction\":" << std::boolalpha << sgsr.use_edge_direction;
stream << ",\"edge_threshold\":" << sgsr.edge_threshold;
stream << ",\"edge_sharpness\":" << sgsr.edge_sharpness;
stream << "}";
return stream;
}
static std::ostream & write_openxr_post_processing(std::ofstream & stream, const configuration::openxr_post_processing_settings & openxr_post_processing)
{
stream << "{\"super_sampling\":" << openxr_post_processing.super_sampling;
@@ -357,8 +329,6 @@ void configuration::save()
if (minimum_refresh_rate)
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
json << ",\"resolution_scale\":" << resolution_scale;
json << ",\"sgsr\":";
write_sgsr(json, sgsr);
json << ",\"openxr_post_processing\":";
write_openxr_post_processing(json, openxr_post_processing);
json << ",\"passthrough_enabled\":" << std::boolalpha << passthrough_enabled;
@@ -372,5 +342,6 @@ void configuration::save()
json << ",\"override_foveation_pitch\":" << override_foveation_pitch;
json << ",\"override_foveation_distance\":" << override_foveation_distance;
json << ",\"first_run\":" << std::boolalpha << first_run;
json << ",\"locale\":" << json_string(locale);
json << "}";
}
+3 -11
View File
@@ -56,16 +56,7 @@ public:
bool fb_lower_body = false;
bool fb_hip = true;
// Snapdragon Game Super Resolution
struct sgsr_settings
{
bool enabled = false;
float upscaling_factor = 1.5;
bool use_edge_direction = true;
float edge_threshold = 4.0;
float edge_sharpness = 2.0;
};
sgsr_settings sgsr{};
bool enable_stream_gui = true;
// XR_FB_composition_layer_settings extension flags
struct openxr_post_processing_settings
@@ -83,6 +74,8 @@ public:
bool first_run = true;
std::string locale;
bool check_feature(feature f) const;
void set_feature(feature f, bool state);
@@ -90,7 +83,6 @@ private:
mutable std::mutex mutex;
std::map<feature, bool> features;
void parse_sgsr_options(simdjson::simdjson_result<simdjson::dom::object> root);
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
public:
+31 -17
View File
@@ -61,6 +61,7 @@ const char * mime(wivrn::video_codec codec)
return "video/av01";
}
assert(false);
__builtin_unreachable();
}
void check(media_status_t status, const char * msg)
@@ -72,6 +73,26 @@ void check(media_status_t status, const char * msg)
}
}
struct android_blit_handle : public decoder::blit_handle
{
std::shared_ptr<wivrn::android::decoder::mapped_hardware_buffer> vk_data;
std::shared_ptr<AImageReader> image_reader;
AImage_ptr aimage;
android_blit_handle(
const wivrn::from_headset::feedback & feedback,
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info,
vk::ImageView image_view,
vk::Image image,
vk::ImageLayout & current_layout,
decltype(vk_data) vk_data,
decltype(image_reader) image_reader,
decltype(aimage) aimage) :
decoder::blit_handle(feedback, view_info, image_view, image, current_layout),
vk_data(vk_data),
image_reader(image_reader),
aimage(std::move(aimage)) {}
};
} // namespace
namespace wivrn::android
@@ -85,7 +106,7 @@ decoder::decoder(
uint8_t stream_index,
std::weak_ptr<scenes::stream> weak_scene,
shard_accumulator * accumulator) :
description(description), stream_index(stream_index), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator)
wivrn::decoder(description), stream_index(stream_index), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator)
{
spdlog::info("hbm_mutex.native_handle() = {}", (void *)hbm_mutex.native_handle());
@@ -222,7 +243,7 @@ void decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame
current_input_buffer = input_buffer{};
}
void decoder::frame_completed(wivrn::from_headset::feedback & feedback, const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info)
void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info)
{
if (not media_codec)
{
@@ -255,7 +276,7 @@ void decoder::on_image_available(AImageReader * reader)
assert(reader == image_reader.get());
// Executed on image reader thread
decltype(blit_handle::aimage) image;
decltype(android_blit_handle::aimage) image;
try
{
AImage * tmp;
@@ -280,13 +301,13 @@ void decoder::on_image_available(AImageReader * reader)
auto vk_data = map_hardware_buffer(image.get());
auto handle = std::make_shared<decoder::blit_handle>(
auto handle = std::make_shared<android_blit_handle>(
info->feedback,
info->view_info,
vk_data->image_view,
*vk_data->image_view,
*vk_data->vimage,
&vk_data->layout,
vk_data,
vk_data->layout,
std::move(vk_data),
image_reader,
std::move(image));
@@ -388,7 +409,8 @@ std::shared_ptr<decoder::mapped_hardware_buffer> decoder::map_hardware_buffer(AI
if (!*ycbcr_sampler || memcmp(&ahb_format, &format_properties, sizeof(format_properties)))
{
memcpy(&ahb_format, &format_properties, sizeof(format_properties));
extent = {buffer_desc.width, buffer_desc.height};
extent_ = {buffer_desc.width, buffer_desc.height};
spdlog::info("decoded image size: {}x{}", buffer_desc.width, buffer_desc.height);
create_sampler(buffer_desc, ahb_format);
hardware_buffer_map.clear();
// TODO tell the reprojector to recreate the pipeline
@@ -514,11 +536,6 @@ void decoder::on_media_output_available(AMediaCodec * media_codec, void * userda
});
}
void decoder::blit_handle::deleter::operator()(AImage * aimage)
{
AImage_delete(aimage);
}
static bool hardware_accelerated(AMediaCodec * media_codec)
{
// MediaCodecInfo has isHardwareAccelerated, but this does not exist in NDK.
@@ -542,9 +559,8 @@ static bool hardware_accelerated(AMediaCodec * media_codec)
return true;
}
std::vector<wivrn::video_codec> decoder::supported_codecs()
void decoder::supported_codecs(std::vector<wivrn::video_codec> & result)
{
std::vector<wivrn::video_codec> result;
// Make sure we update this code when codecs are changed
static_assert(magic_enum::enum_count<wivrn::video_codec>() == 3);
@@ -563,8 +579,6 @@ std::vector<wivrn::video_codec> decoder::supported_codecs()
spdlog::info("video codec {}: {}supported", magic_enum::enum_name(codec), supported ? "" : "NOT ");
}
return result;
}
} // namespace wivrn::android
+7 -39
View File
@@ -19,6 +19,7 @@
#pragma once
#include "decoder/decoder.h"
#include "utils/sync_queue.h"
#include "wivrn_packets.h"
#include <functional>
@@ -59,31 +60,12 @@ class stream;
namespace wivrn::android
{
class decoder
class decoder : public wivrn::decoder
{
public:
struct mapped_hardware_buffer;
struct blit_handle
{
struct deleter
{
void operator()(AImage *);
};
wivrn::from_headset::feedback feedback;
wivrn::to_headset::video_stream_data_shard::view_info_t view_info;
vk::raii::ImageView & image_view;
vk::Image image = nullptr;
vk::ImageLayout * current_layout = nullptr;
std::shared_ptr<mapped_hardware_buffer> vk_data;
std::shared_ptr<AImageReader> image_reader;
AImage_ptr aimage;
};
private:
wivrn::to_headset::video_stream_description::item description;
uint8_t stream_index;
float fps;
@@ -92,7 +74,6 @@ private:
vk::AndroidHardwareBufferFormatPropertiesANDROID ahb_format;
vk::raii::SamplerYcbcrConversion ycbcr_conversion = nullptr;
vk::raii::Sampler ycbcr_sampler = nullptr;
vk::Extent2D extent{};
std::mutex hbm_mutex;
std::shared_ptr<AImageReader> image_reader;
@@ -146,33 +127,20 @@ public:
uint8_t stream_index,
std::weak_ptr<scenes::stream> scene,
shard_accumulator * accumulator);
decoder(const decoder &) = delete;
decoder(decoder &&) = delete;
~decoder();
void push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial);
void push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial) override;
void frame_completed(
wivrn::from_headset::feedback & feedback,
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info);
const wivrn::from_headset::feedback & feedback,
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) override;
const auto & desc() const
{
return description;
}
vk::Sampler sampler()
vk::Sampler sampler() override
{
return *ycbcr_sampler;
}
vk::Extent2D image_size()
{
return extent;
}
static std::vector<wivrn::video_codec> supported_codecs();
static void supported_codecs(std::vector<wivrn::video_codec> &);
};
} // namespace wivrn::android
+67
View File
@@ -0,0 +1,67 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.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 "decoder.h"
#ifdef __ANDROID__
#include "decoder/android/android_decoder.h"
#else
#include "decoder/ffmpeg/ffmpeg_decoder.h"
#endif
wivrn::decoder::~decoder() = default;
std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
vk::raii::Device & device,
vk::raii::PhysicalDevice & phys_dev,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
uint8_t stream_index,
std::weak_ptr<scenes::stream> scene,
shard_accumulator * acc)
{
#ifdef __ANDROID__
return std::make_shared<wivrn::android::decoder>(
device,
phys_dev,
description,
fps,
stream_index,
scene,
acc);
#else
return std::make_shared<wivrn::ffmpeg::decoder>(
device,
phys_dev,
description,
stream_index,
scene,
acc);
#endif
}
std::vector<wivrn::video_codec> wivrn::decoder::supported_codecs()
{
std::vector<wivrn::video_codec> res;
#ifdef __ANDROID__
android::decoder::supported_codecs(res);
#else
ffmpeg::decoder::supported_codecs(res);
#endif
return res;
}
+79
View File
@@ -0,0 +1,79 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.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 "wivrn_packets.h"
#include <cstdint>
#include <memory>
#include <span>
#include <vulkan/vulkan_raii.hpp>
namespace scenes
{
class stream;
}
namespace wivrn
{
class shard_accumulator;
class decoder
{
public:
struct blit_handle
{
wivrn::from_headset::feedback feedback;
wivrn::to_headset::video_stream_data_shard::view_info_t view_info;
vk::ImageView image_view = nullptr;
vk::Image image = nullptr;
vk::ImageLayout & current_layout;
};
const wivrn::to_headset::video_stream_description::item description;
protected:
decoder(const wivrn::to_headset::video_stream_description::item & description) :
description(description) {}
vk::Extent2D extent_; // Must be populated when sampler is set
public:
static std::shared_ptr<decoder> make(
vk::raii::Device &,
vk::raii::PhysicalDevice &,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
uint8_t stream_index,
std::weak_ptr<scenes::stream>,
shard_accumulator *);
virtual ~decoder();
virtual void push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial) = 0;
virtual void frame_completed(
const from_headset::feedback & feedback,
const to_headset::video_stream_data_shard::view_info_t & view_info) = 0;
virtual vk::Sampler sampler() = 0;
const vk::Extent2D extent()
{
return extent_;
}
static std::vector<wivrn::video_codec> supported_codecs();
};
} // namespace wivrn
+46 -19
View File
@@ -61,24 +61,53 @@ static AVCodecID codec_id(wivrn::video_codec codec)
__builtin_unreachable();
}
decoder::blit_handle::~blit_handle()
struct decoder::ffmpeg_blit_handle : public wivrn::decoder::blit_handle
{
std::unique_lock lock(self->mutex);
if (image_index < 0)
return;
int image_index;
wivrn::ffmpeg::decoder * self;
self->free_images.push_back(image_index);
}
ffmpeg_blit_handle(
const wivrn::from_headset::feedback & feedback,
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info,
vk::ImageView image_view,
vk::Image image,
vk::ImageLayout & current_layout,
int image_index,
wivrn::ffmpeg::decoder * self) :
wivrn::decoder::blit_handle{
feedback,
view_info,
image_view,
image,
current_layout,
},
image_index(image_index),
self(self)
{}
~ffmpeg_blit_handle()
{
std::unique_lock lock(self->mutex);
if (image_index < 0)
return;
self->free_images.push_back(image_index);
}
};
decoder::decoder(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
uint8_t stream_index,
std::weak_ptr<scenes::stream> scene,
shard_accumulator * accumulator) :
device(device), description(description), codec(nullptr, free_codec_context), sws(nullptr, sws_freeContext), weak_scene(scene), accumulator(accumulator)
wivrn::decoder(description),
device(device),
codec(nullptr, free_codec_context),
sws(nullptr, sws_freeContext),
weak_scene(scene),
accumulator(accumulator)
{
free_images.resize(image_count);
@@ -108,7 +137,7 @@ decoder::decoder(
decoded_images[i].image = image_allocation(device, image_info, alloc_info);
decoded_images[i].image.map();
extent = vk::Extent2D{description.width, description.height};
extent_ = vk::Extent2D{description.width, description.height};
vk::ImageSubresource resource;
resource.aspectMask = vk::ImageAspectFlagBits::eColor;
@@ -221,12 +250,12 @@ void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, co
if (res == 0)
throw std::runtime_error{"sws_scale failed"};
auto handle = std::make_shared<decoder::blit_handle>(
auto handle = std::make_shared<ffmpeg_blit_handle>(
feedback,
view_info,
decoded_images[index].image_view,
(vk::Image)decoded_images[index].image,
&decoded_images[index].current_layout,
*decoded_images[index].image_view,
decoded_images[index].image,
decoded_images[index].current_layout,
index,
this);
@@ -234,13 +263,11 @@ void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, co
scene->push_blit_handle(accumulator, std::move(handle));
}
std::vector<wivrn::video_codec> decoder::supported_codecs()
void decoder::supported_codecs(std::vector<wivrn::video_codec> & res)
{
return {
wivrn::video_codec::h264,
wivrn::video_codec::h265,
wivrn::video_codec::av1,
};
res.push_back(wivrn::video_codec::h264);
res.push_back(wivrn::video_codec::h265);
res.push_back(wivrn::video_codec::av1);
}
} // namespace wivrn::ffmpeg
+7 -37
View File
@@ -19,6 +19,7 @@
#pragma once
#include "decoder/decoder.h"
#include "vk/allocation.h"
#include "wivrn_packets.h"
#include <memory>
@@ -46,24 +47,10 @@ class stream;
namespace wivrn::ffmpeg
{
class decoder
class decoder : public wivrn::decoder
{
public:
struct blit_handle
{
wivrn::from_headset::feedback feedback;
wivrn::to_headset::video_stream_data_shard::view_info_t view_info;
vk::raii::ImageView & image_view;
vk::Image image = nullptr;
vk::ImageLayout * current_layout = nullptr;
int image_index;
decoder * self;
~blit_handle();
};
private:
struct ffmpeg_blit_handle;
static const int image_count = 12;
struct image
{
@@ -78,11 +65,8 @@ private:
vk::raii::Sampler rgb_sampler = nullptr;
std::array<image, image_count> decoded_images;
vk::Extent2D extent{};
std::vector<int> free_images;
wivrn::to_headset::video_stream_description::item description;
std::unique_ptr<AVCodecContext, void (*)(AVCodecContext *)> codec;
std::unique_ptr<SwsContext, void (*)(SwsContext *)> sws;
std::vector<uint8_t> packet;
@@ -96,35 +80,21 @@ public:
decoder(vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
uint8_t stream_index,
std::weak_ptr<scenes::stream> scene,
shard_accumulator * accumulator);
decoder(const decoder &) = delete;
decoder(decoder &&) = delete;
void push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial);
void push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial) override;
void frame_completed(
const wivrn::from_headset::feedback & feedback,
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info);
const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) override;
const auto & desc() const
{
return description;
}
vk::Sampler sampler()
vk::Sampler sampler() override
{
return *rgb_sampler;
}
vk::Extent2D image_size()
{
return extent;
}
static std::vector<wivrn::video_codec> supported_codecs();
static void supported_codecs(std::vector<wivrn::video_codec> &);
};
} // namespace wivrn::ffmpeg
+2 -2
View File
@@ -186,7 +186,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx)
payload.emplace_back(data_shards[idx]->payload);
bool frame_complete = last_idx == data_shards.size() and data_shards.back()->flags & video_stream_data_shard::end_of_frame;
decoder->push_data(payload, data_shards[shard_idx]->frame_idx, not frame_complete);
decoder_->push_data(payload, data_shards[shard_idx]->frame_idx, not frame_complete);
if (not frame_complete)
return;
@@ -206,7 +206,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx)
}
// Try to extract a frame
decoder->frame_completed(current.feedback, *data_shards.front()->view_info);
decoder_->frame_completed(current.feedback, *data_shards.front()->view_info);
send_feedback(current.feedback);
+26 -20
View File
@@ -19,27 +19,30 @@
#pragma once
#include <memory>
#include <vulkan/vulkan.hpp>
#ifdef __ANDROID__
#include "decoder/android/android_decoder.h"
using decoder_impl = ::wivrn::android::decoder;
#else
#include "decoder/ffmpeg/ffmpeg_decoder.h"
using decoder_impl = ::wivrn::ffmpeg::decoder;
#endif
#include "decoder.h"
#include "wivrn_packets.h"
#include <memory>
#include <optional>
#include <vector>
#include <vulkan/vulkan_raii.hpp>
namespace xr
{
class instance;
}
namespace scenes
{
class stream;
}
namespace wivrn
{
class shard_accumulator
{
std::shared_ptr<decoder_impl> decoder;
std::shared_ptr<decoder> decoder_;
public:
using data_shard = wivrn::to_headset::video_stream_data_shard;
@@ -50,7 +53,7 @@ public:
void reset(uint64_t frame_index);
bool empty() const;
std::optional<uint16_t> insert(data_shard &&);
std::optional<uint16_t> insert(data_shard &&, xr::instance & instance);
wivrn::from_headset::feedback feedback{};
@@ -70,19 +73,22 @@ private:
shard_set current;
shard_set next;
std::weak_ptr<scenes::stream> weak_scene;
xr::instance & instance;
public:
explicit shard_accumulator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
xr::instance & instance,
const wivrn::to_headset::video_stream_description::item & description,
float fps,
std::weak_ptr<scenes::stream> scene,
uint8_t stream_index) :
decoder(std::make_shared<decoder_impl>(device, physical_device, description, fps, stream_index, scene, this)),
decoder_(decoder::make(device, physical_device, description, fps, stream_index, scene, this)),
current(stream_index),
next(stream_index),
weak_scene(scene)
weak_scene(scene),
instance(instance)
{
next.reset(1);
}
@@ -91,20 +97,20 @@ public:
auto & desc() const
{
return decoder->desc();
return decoder_->description;
}
vk::Sampler sampler()
{
return decoder->sampler();
return decoder_->sampler();
}
vk::Extent2D image_size()
const vk::Extent2D extent()
{
return decoder->image_size();
return decoder_->extent();
}
using blit_handle = decoder_impl::blit_handle;
using blit_handle = decoder::blit_handle;
private:
void try_submit_frame(std::optional<uint16_t> shard_idx);
+15 -15
View File
@@ -490,22 +490,22 @@ static std::vector<std::string> find_font(std::u16string sample_text, const std:
void imgui_context::initialize_fonts()
{
std::u16string sample_text = u"Hello world";
const auto & locale = application::get_messages_info();
auto it = glyph_set_per_language.find(locale.language + "_" + locale.country);
if (it == glyph_set_per_language.end())
it = glyph_set_per_language.find(locale.language);
if (it != glyph_set_per_language.end())
for (char16_t c: it->second)
sample_text += c;
// Load Fonts
auto fonts = find_font(sample_text, application::get_messages_info().language);
for (auto & i: fonts)
std::vector<std::string> fonts;
for (auto & [code, glyphs]: glyph_set_per_language)
{
spdlog::info("Font {}", i);
std::u16string sample_text = u"Hello world";
for (char16_t c: glyphs)
sample_text += c;
auto language = code.substr(0, code.find("_"));
// Load Fonts
for (auto && i: find_font(sample_text, language))
{
spdlog::info("Font for {} {}", code, i);
if (not std::ranges::contains(fonts, i))
fonts.push_back(std::move(i));
}
}
asset font_awesome_regular("Font Awesome 6 Free-Regular-400.otf");
-3
View File
@@ -34,7 +34,6 @@
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/quaternion.hpp>
#include <map>
#include <memory>
#include <ranges>
#include <spdlog/spdlog.h>
@@ -42,8 +41,6 @@
#include <vulkan/vulkan_enums.hpp>
#include <vulkan/vulkan_structs.hpp>
extern const std::map<std::string, std::vector<uint32_t>> shaders;
// TODO move in lobby?
vk::Format scene_renderer::find_usable_image_format(
vk::raii::PhysicalDevice physical_device,
+364
View File
@@ -0,0 +1,364 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.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 "blitter.h"
#include "application.h"
#include "utils/ranges.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "vk/specialization_constants.h"
#include <format>
#include <ranges>
#include <spdlog/spdlog.h>
namespace wivrn
{
static const uint32_t num_views = 2;
blitter::blitter(vk::raii::Device & device, size_t view) :
device(device), view(view)
{
}
void blitter::reset(const to_headset::video_stream_description & desc)
{
using channels_t = to_headset::video_stream_description::channels_t;
this->desc = desc;
current = {};
target = image_allocation();
image_view = nullptr;
rp = nullptr;
fb = nullptr;
sampler = nullptr;
pipelines.clear();
passthrough_rgb = passthrough_a = -1;
auto w = desc.width / num_views;
for (auto [i, item]: utils::enumerate(desc.items))
{
if (item.offset_x <= view * w and
item.offset_y == 0 and
item.offset_x + item.width * item.subsampling >= (view + 1) * w and
item.height * item.subsampling >= desc.height)
{
spdlog::info("Stream {} is eligible for blit-less path on view {}", i, view);
switch (item.channels)
{
case channels_t::colour:
passthrough_rgb = i;
break;
case channels_t::alpha:
passthrough_a = i;
break;
}
const bool alpha = item.channels == to_headset::video_stream_description::channels_t::alpha;
auto & r = alpha ? current.rect_a : current.rect_rgb;
r = vk::Rect2D{
.offset = {
.x = int32_t(view * w) - item.offset_x,
.y = 0,
},
};
}
}
if (passthrough_rgb != -1 and passthrough_a != -1)
return;
target = image_allocation(
device,
vk::ImageCreateInfo{
.imageType = vk::ImageType::e2D,
.format = vk::Format::eB8G8R8A8Srgb,
.extent = {
.width = w,
.height = desc.height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 1,
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eColorAttachment,
},
{
.usage = VMA_MEMORY_USAGE_AUTO,
},
std::format("blit image {}", view));
image_view = device.createImageView(vk::ImageViewCreateInfo{
.image = vk::Image(target),
.viewType = vk::ImageViewType::e2D,
.format = target.info().format,
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.layerCount = 1,
}});
// render pass
{
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
.colorAttachmentCount = 1,
.pColorAttachments = &color_ref,
};
vk::AttachmentDescription color_desc{
.format = target.info().format,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
};
rp = device.createRenderPass(vk::RenderPassCreateInfo{
.attachmentCount = 1,
.pAttachments = &color_desc,
.subpassCount = 1,
.pSubpasses = &subpass,
});
}
fb = device.createFramebuffer(
vk::FramebufferCreateInfo{
.renderPass = *rp,
.attachmentCount = 1,
.pAttachments = &*image_view,
.width = w,
.height = desc.height,
.layers = 1,
});
sampler = device.createSampler(vk::SamplerCreateInfo{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToBorder,
.addressModeV = vk::SamplerAddressMode::eClampToBorder,
.addressModeW = vk::SamplerAddressMode::eClampToBorder,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
});
pipelines.resize(desc.items.size());
for (auto [i, item]: utils::enumerate(desc.items))
{
pipelines[i].used = item.offset_x < (view + 1) * w and
item.offset_x + item.width * item.subsampling > view * w;
}
current.rgb = *image_view;
current.sampler_rgb = *sampler;
current.rect_rgb = vk::Rect2D{.extent = {w, desc.height}};
current.layout_rgb = vk::ImageLayout::eShaderReadOnlyOptimal;
}
void blitter::begin(vk::raii::CommandBuffer & cmd)
{
assert(not desc.items.empty());
if (*fb == VK_NULL_HANDLE)
{
current.rgb = nullptr;
current.a = nullptr;
current.sampler_rgb = nullptr;
current.sampler_a = nullptr;
return;
}
current.rgb = *image_view;
current.sampler_rgb = *sampler;
cmd.beginRenderPass(
{
.renderPass = *rp,
.framebuffer = *fb,
.renderArea = {
.offset = {0, 0},
.extent = {target.info().extent.width, target.info().extent.height},
},
},
vk::SubpassContents::eInline);
}
void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Sampler sampler, const vk::Extent2D & extent_, vk::ImageView image, vk::ImageLayout layout)
{
if (stream == passthrough_rgb)
{
current.rgb = image;
current.sampler_rgb = sampler;
current.layout_rgb = layout;
current.rect_rgb.extent = vk::Extent2D{
extent_.width * desc.items[stream].subsampling,
extent_.height * desc.items[stream].subsampling,
};
return;
}
if (stream == passthrough_a)
{
current.a = image;
current.sampler_a = sampler;
current.layout_a = layout;
current.rect_a.extent = vk::Extent2D{
extent_.width * desc.items[stream].subsampling,
extent_.height * desc.items[stream].subsampling,
};
return;
}
if (pipelines.empty())
return;
assert(stream < pipelines.size());
auto & p = pipelines[stream];
if (not p.used)
return;
const auto & extent = target.info().extent;
const auto & description = desc.items[stream];
if (not *p.pipeline)
{
const bool alpha = description.channels == to_headset::video_stream_description::channels_t::alpha;
vk::DescriptorSetLayoutBinding sampler_layout_binding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
.pImmutableSamplers = &sampler,
};
p.set_layout = device.createDescriptorSetLayout(vk::DescriptorSetLayoutCreateInfo{
.flags = vk::DescriptorSetLayoutCreateFlagBits::ePushDescriptorKHR,
.bindingCount = 1,
.pBindings = &sampler_layout_binding,
});
auto vert_constants = make_specialization_constants(
float(description.width) / extent_.width,
float(description.height) / extent_.height);
auto frag_constants = make_specialization_constants(
VkBool32(alpha));
// Create graphics pipeline
vk::raii::ShaderModule vertex_shader = load_shader(device, "stream.vert");
vk::raii::ShaderModule fragment_shader = load_shader(device, "stream.frag");
p.layout = device.createPipelineLayout(vk::PipelineLayoutCreateInfo{
.setLayoutCount = 1,
.pSetLayouts = &*p.set_layout,
});
vk::pipeline_builder pipeline_info{
.Stages = {{
.stage = vk::ShaderStageFlagBits::eVertex,
.module = *vertex_shader,
.pName = "main",
.pSpecializationInfo = vert_constants,
},
{
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = frag_constants,
}},
.VertexBindingDescriptions = {},
.VertexAttributeDescriptions = {},
.InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip,
}},
// With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports
// and scissors is still used, put a vector with one element
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1,
}},
.MultisampleState = {{
.rasterizationSamples = vk::SampleCountFlagBits::e1,
}},
.ColorBlendAttachments = {
{.colorWriteMask = alpha ? vk::ColorComponentFlagBits::eA
: vk::ColorComponentFlagBits::eA | vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB}},
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
.layout = *p.layout,
.renderPass = *rp,
.subpass = 0,
};
p.pipeline = device.createGraphicsPipeline(application::get_pipeline_cache(), pipeline_info);
spdlog::info("Created blit pipeline for stream {}, view {}", stream, view);
}
cmd.bindPipeline(vk::PipelineBindPoint::eGraphics, *p.pipeline);
vk::DescriptorImageInfo image_info{
.imageView = image,
.imageLayout = layout,
};
cmd.pushDescriptorSetKHR(
vk::PipelineBindPoint::eGraphics,
*p.layout,
0,
vk::WriteDescriptorSet{
.dstBinding = 0,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info,
});
int x0 = description.offset_x - view * extent.width;
int y0 = description.offset_y;
int x1 = x0 + description.width * description.subsampling;
int y1 = y0 + description.height * description.subsampling;
cmd.setViewport(
0,
vk::Viewport{
.x = (float)x0,
.y = (float)y0,
.width = float(description.width * description.subsampling),
.height = float(description.height * description.subsampling),
.minDepth = 0,
.maxDepth = 1,
});
x0 = std::clamp<int>(x0, 0, extent.width);
x1 = std::clamp<int>(x1, 0, extent.width);
y0 = std::clamp<int>(y0, 0, extent.height);
y1 = std::clamp<int>(y1, 0, extent.height);
cmd.setScissor(
0,
vk::Rect2D{
.offset = {.x = x0, .y = y0},
.extent = {.width = uint32_t(x1 - x0), .height = uint32_t(y1 - y0)},
});
cmd.draw(3, 1, 0, 0);
}
blitter::output blitter::end(vk::raii::CommandBuffer & cmd)
{
if (*fb)
cmd.endRenderPass();
return current;
}
} // namespace wivrn
+72
View File
@@ -0,0 +1,72 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.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 "vk/allocation.h"
#include "wivrn_packets.h"
#include <vulkan/vulkan_raii.hpp>
namespace wivrn
{
class blitter
{
public:
struct output
{
vk::ImageView rgb;
vk::Sampler sampler_rgb;
vk::Rect2D rect_rgb;
vk::ImageLayout layout_rgb;
vk::ImageView a;
vk::Sampler sampler_a;
vk::Rect2D rect_a;
vk::ImageLayout layout_a;
};
private:
vk::raii::Device & device;
size_t view;
to_headset::video_stream_description desc;
// indices to simply passthrough, if -1 image needs to be blitted
int passthrough_rgb = -1;
int passthrough_a = -1;
image_allocation target;
vk::raii::ImageView image_view = nullptr;
vk::raii::RenderPass rp = nullptr;
vk::raii::Framebuffer fb = nullptr;
vk::raii::Sampler sampler = nullptr;
struct pipeline_t
{
vk::raii::DescriptorSetLayout set_layout = nullptr;
vk::raii::PipelineLayout layout = nullptr;
vk::raii::Pipeline pipeline = nullptr;
bool used = false; // true if we need this image for blitting
};
std::vector<pipeline_t> pipelines;
output current;
public:
blitter(vk::raii::Device & device, size_t view);
void reset(const to_headset::video_stream_description & desc);
void begin(vk::raii::CommandBuffer &);
void push_image(vk::raii::CommandBuffer & buf, uint8_t stream, vk::Sampler sampler, const vk::Extent2D &, vk::ImageView image, vk::ImageLayout);
output end(vk::raii::CommandBuffer &);
};
} // namespace wivrn
+40 -85
View File
@@ -17,6 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <uni_algo/case.h>
#define IMGUI_DEFINE_MATH_OPERATORS
#ifdef __ANDROID__
@@ -139,7 +140,7 @@ static void InputText(const char * label, std::string & text, const ImVec2 & siz
return 0;
};
ImGui::InputTextEx(label, nullptr, text.data(), text.size(), size, flags | ImGuiInputTextFlags_CallbackResize, callback, &text);
ImGui::InputTextEx(label, nullptr, text.data(), text.size() + 1, size, flags | ImGuiInputTextFlags_CallbackResize, callback, &text);
}
static void display_recentering_tip(imgui_context & ctx, const std::string & tip)
@@ -771,6 +772,43 @@ void scenes::lobby::gui_settings()
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20));
{
auto language_name = [&](const std::locale & loc = std::locale()) {
return boost::locale::pgettext("language selection, replace with the name of the language", "English", loc);
};
std::vector<std::tuple<std::string, std::locale, std::string>> languages;
for (const auto & msg_info: get_locales())
{
std::string code = msg_info.language;
if (not msg_info.country.empty())
code += "_" + msg_info.country;
std::locale loc(std::locale(), boost::locale::gnu_gettext::create_messages_facet<char>(msg_info));
languages.emplace_back(language_name(loc), loc, std::move(code));
}
std::ranges::sort(languages, [](auto & l, auto & r) {
return una::casesens::collate_utf8(std::get<0>(l), std::get<0>(r)) < 0;
});
if (ImGui::BeginCombo(_S("Language"), config.locale.empty() ? _S("System language") : language_name().c_str()))
{
if (ImGui::Selectable(_S("System language"), config.locale.empty(), ImGuiSelectableFlags_SelectOnRelease))
{
config.locale.clear();
config.save();
application::instance().load_locale();
}
for (const auto & [lang, locale, code]: languages)
{
if (ImGui::Selectable(lang.c_str(), code == config.locale, ImGuiSelectableFlags_SelectOnRelease))
{
config.locale = code;
config.save();
application::instance().load_locale();
}
}
ImGui::EndCombo();
}
}
if (instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
{
const auto & refresh_rates = session.get_refresh_rates();
@@ -1034,89 +1072,6 @@ void scenes::lobby::gui_post_processing()
ImGui::Unindent();
}
{
// SGSR
{
if (ImGui::Checkbox(_S("Enable Snapdragon Game Super Resolution"), &config.sgsr.enabled))
{
config.save();
}
imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered())
{
if (application::get_openxr_post_processing_supported())
imgui_ctx->tooltip(_("On this headset, this setting has been fully superseded by the native Sharpening setting above.\nOnly enable if you know what you're doing."));
else
imgui_ctx->tooltip(_("Client-side upscaling and sharpening, adds a performance cost on the headset"));
}
if (application::get_openxr_post_processing_supported())
{
ImGui::SameLine();
ImGui::TextColored(ImColor(0xf9, 0x73, 0x06) /*orange*/, ICON_FA_TRIANGLE_EXCLAMATION);
}
}
{
ImGui::BeginDisabled(not config.sgsr.enabled);
ImGui::Indent();
{
const auto current = config.sgsr.upscaling_factor;
const auto width = stream_view.recommendedImageRectWidth * config.resolution_scale;
const auto height = stream_view.recommendedImageRectHeight * config.resolution_scale;
auto intScale = int(current * 100);
const auto slider = ImGui::SliderInt(
_("Upscaling factor").append("##upscaling_factor").c_str(),
&intScale,
100,
200,
fmt::format(_F("%d%% - {}x{} per eye"), int(width * current), int(height * current)).c_str());
if (slider)
{
config.sgsr.upscaling_factor = intScale * 0.01;
config.save();
}
imgui_ctx->vibrate_on_hover();
if (width * current > stream_view.maxImageRectWidth or height * current > stream_view.maxImageRectHeight)
{
ImGui::TextColored(ImColor(0xf9, 0x73, 0x06) /*orange*/, ICON_FA_TRIANGLE_EXCLAMATION);
ImGui::SameLine();
ImGui::Text("%s", fmt::format(_F("Resolution larger than {}x{} may not be supported by the headset"), stream_view.maxImageRectWidth, stream_view.maxImageRectHeight).c_str());
}
}
{
if (ImGui::Checkbox(_S("Use edge direction"), &config.sgsr.use_edge_direction))
{
config.save();
}
imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered())
imgui_ctx->tooltip(_("Adds an additional performance cost"));
}
{
const float current = config.sgsr.edge_threshold;
int intScale = int(current);
if (ImGui::SliderInt(_S("Edge threshold"), &intScale, 1, 16, "%d.0"))
{
config.sgsr.edge_threshold = float(intScale);
config.save();
}
imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered())
imgui_ctx->tooltip(fmt::format(_F("Recommended: {:.1f}"), 4.0));
}
{
if (ImGui::SliderFloat(_S("Edge sharpness"), &config.sgsr.edge_sharpness, 1.0, 2.0, "%.2f"))
{
config.save();
}
imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered())
imgui_ctx->tooltip(fmt::format(_F("Recommended: {:.1f}"), 2.0));
}
ImGui::Unindent();
ImGui::EndDisabled();
}
}
ImGui::PopStyleVar();
}
@@ -1347,7 +1302,7 @@ void scenes::lobby::gui_licenses()
ImGui::Text("%s", _("Licenses").c_str());
ImGui::PopFont();
const auto components = {"WiVRn", "FontAwesome", "openxr-loader", "simdjson", "SGSR"};
const auto components = {"WiVRn", "FontAwesome", "openxr-loader", "simdjson"};
if (not license)
{
selected_item = *components.begin();
+95 -389
View File
@@ -17,11 +17,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "constants.h"
#include "utils/overloaded.h"
#include "xr/fb_body_tracker.h"
#include "xr/body_tracker.h"
#include "xr/face_tracker.h"
#include "xr/fb_face_tracker2.h"
#include "xr/htc_body_tracker.h"
#include "xr/pico_body_tracker.h"
#include "xr/space.h"
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
@@ -40,8 +38,6 @@
#include "utils/contains.h"
#include "utils/named_thread.h"
#include "utils/ranges.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "wivrn_packets.h"
#include <algorithm>
#include <mutex>
@@ -49,6 +45,11 @@
#include <thread>
#include <vulkan/vulkan_raii.hpp>
#include "wivrn_config.h"
#if WIVRN_FEATURE_RENDERDOC
#include "vk/renderdoc.h"
#endif
using namespace wivrn;
// clang-format off
@@ -151,7 +152,8 @@ static const std::array supported_depth_formats{
};
scenes::stream::stream() :
scene_impl<stream>(supported_color_formats, supported_depth_formats)
scene_impl<stream>(supported_color_formats, supported_depth_formats),
blitters{blitter(device, 0), blitter(device, 1)}
{
}
@@ -189,7 +191,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
self->network_session = std::move(network_session);
self->network_session->send_control([&]() {
from_headset::headset_info_packet info{};
from_headset::headset_info_packet info{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
.variant = application::get_messages_info().variant,
};
auto view = self->system.view_configuration_views(self->viewconfig)[0];
view = override_view(view, guess_model());
@@ -251,46 +257,49 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (config.check_feature(feature::face_tracking))
{
info.face_tracking = std::visit(utils::overloaded{
[](std::monostate &) {
return from_headset::face_type::none;
},
[](xr::fb_face_tracker2 &) {
return from_headset::face_type::fb2;
},
[](xr::htc_face_tracker &) {
return from_headset::face_type::htc;
},
[](xr::pico_face_tracker &) {
return from_headset::face_type::fb2;
},
},
application::get_face_tracker());
switch (self->system.face_tracker_supported())
{
case xr::face_tracker_type::none:
info.face_tracking = from_headset::face_type::none;
break;
case xr::face_tracker_type::fb:
case xr::face_tracker_type::pico:
info.face_tracking = from_headset::face_type::fb2;
break;
case xr::face_tracker_type::htc:
info.face_tracking = from_headset::face_type::htc;
break;
}
}
info.num_generic_trackers = 0;
if (config.check_feature(feature::body_tracking))
{
info.num_generic_trackers = std::visit(utils::overloaded{
[&](std::monostate &) {
return size_t(0);
},
[&](auto & b) {
return b.count();
},
},
application::get_body_tracker());
switch (self->system.body_tracker_supported())
{
case xr::body_tracker_type::none:
break;
case xr::body_tracker_type::fb:
info.num_generic_trackers = xr::fb_body_tracker::get_whitelisted_joints(config.fb_lower_body, config.fb_hip).size();
break;
case xr::body_tracker_type::htc:
info.num_generic_trackers = application::get_generic_trackers().size();
break;
case xr::body_tracker_type::pico:
info.num_generic_trackers = xr::pico_body_tracker::joint_whitelist.size();
break;
}
}
info.palm_pose = application::space(xr::spaces::palm_left) or application::space(xr::spaces::palm_right);
info.passthrough = self->system.passthrough_supported() != xr::system::passthrough_type::no_passthrough;
info.passthrough = self->system.passthrough_supported() != xr::passthrough_type::none;
info.system_name = std::string(self->system.properties().systemName);
audio::get_audio_description(info);
if (not(config.check_feature(feature::microphone)))
info.microphone = {};
info.supported_codecs = decoder_impl::supported_codecs();
info.supported_codecs = decoder::supported_codecs();
return info;
}());
@@ -311,15 +320,6 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
}
}
{
const auto & info = application::get_messages_info();
self->network_session->send_control(from_headset::get_application_list{
.language = info.language,
.country = info.country,
.variant = info.variant,
});
}
{
const auto & config = application::get_config();
self->override_foveation_enable = config.override_foveation_enable;
@@ -363,7 +363,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
{
self->haptics_actions.emplace(id, haptics_action{
.action = action.first,
.path = application::string_to_path(path),
.path = self->instance.string_to_path(path),
});
}
}
@@ -394,7 +394,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
void scenes::stream::on_focused()
{
gui_status_last_change = application::now();
gui_status_last_change = instance.now();
auto views = system.view_configuration_views(viewconfig);
// stream_view = override_view(views[0], guess_model());
@@ -402,7 +402,7 @@ void scenes::stream::on_focused()
height = views[0].recommendedImageRectHeight;
renderer.emplace(device, physical_device, queue, commandpool);
loader.emplace(device, physical_device, queue, application::queue_family_index(), renderer->get_default_material());
loader.emplace(device, physical_device, queue, queue_family_index, renderer->get_default_material());
std::string profile = controller_name();
input.emplace(
@@ -470,8 +470,11 @@ void scenes::stream::on_focused()
swapchain_imgui,
std::vector{vp});
plots_toggle_1 = get_action("plots_toggle_1").first;
plots_toggle_2 = get_action("plots_toggle_2").first;
if (application::get_config().enable_stream_gui)
{
plots_toggle_1 = get_action("plots_toggle_1").first;
plots_toggle_2 = get_action("plots_toggle_2").first;
}
recenter_left = get_action("recenter_left").first;
recenter_right = get_action("recenter_right").first;
foveation_pitch = get_action("foveation_pitch").first;
@@ -494,6 +497,8 @@ void scenes::stream::on_unfocused()
loader.reset();
renderer.reset();
clear_swapchains();
left_hand.reset();
right_hand.reset();
imgui_ctx.reset();
swapchain_imgui = xr::swapchain();
@@ -524,16 +529,16 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
{
if (decoder != decoders[stream].decoder.get())
return;
handle->feedback.received_from_decoder = application::now();
handle->feedback.received_from_decoder = instance.now();
std::swap(handle, decoders[stream].latest_frames[handle->feedback.frame_index % decoders[stream].latest_frames.size()]);
}
if (state_ != state::streaming and std::ranges::all_of(decoders, [](accumulator_images & i) {
return i.alpha() or not i.frames().empty();
return i.alpha() or not i.empty();
}))
{
state_ = state::streaming;
spdlog::info("Stream scene ready at t={}", application::now());
spdlog::info("Stream scene ready at t={}", instance.now());
}
}
@@ -548,15 +553,14 @@ bool scenes::stream::accumulator_images::alpha() const
return decoder->desc().channels == wivrn::to_headset::video_stream_description::channels_t::alpha;
}
std::vector<uint64_t> scenes::stream::accumulator_images::frames() const
bool scenes::stream::accumulator_images::empty() const
{
std::vector<uint64_t> result;
for (const auto & frame: latest_frames)
{
if (frame)
result.push_back(frame->feedback.frame_index);
return false;
}
return result;
return true;
}
std::vector<std::shared_ptr<shard_accumulator::blit_handle>> scenes::stream::common_frame(XrTime display_time)
@@ -766,138 +770,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
}
if (state_ == state::stalled)
application::pop_scene();
assert(swapchain);
for (auto & i: decoders)
{
if (auto sampler = i.decoder->sampler(); sampler and not *i.blit_pipeline)
{
// Create blit pipeline
// Create VkDescriptorSetLayout with an immutable sampler
vk::DescriptorSetLayoutBinding sampler_layout_binding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
.pImmutableSamplers = &sampler,
};
network_session->send_control(from_headset::get_application_list{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
.variant = application::get_messages_info().variant,
});
vk::DescriptorSetLayoutCreateInfo layout_info{
.bindingCount = 1,
.pBindings = &sampler_layout_binding,
};
i.descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info);
i.descriptor_set = device.allocateDescriptorSets(
vk::DescriptorSetAllocateInfo{
.descriptorPool = *blit_descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*i.descriptor_set_layout,
})[0]
.release();
const auto & description = i.decoder->desc();
vk::Extent2D image_size = i.decoder->image_size();
std::array useful_size{
float(description.width) / image_size.width,
float(description.height) / image_size.height,
};
spdlog::info("useful size: {}x{} with buffer {}x{}",
description.width,
description.height,
image_size.width,
image_size.height);
std::array specialization_constants_desc{
vk::SpecializationMapEntry{
.constantID = 0,
.offset = 0,
.size = sizeof(float),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = sizeof(float),
.size = sizeof(float),
}};
vk::SpecializationInfo vert_specialization_info;
vert_specialization_info.setMapEntries(specialization_constants_desc);
vert_specialization_info.setData<float>(useful_size);
std::array<VkBool32, 2> constants = {
need_srgb_conversion(guess_model()),
i.alpha(),
};
std::array frag_specialization_constant_desc = {
vk::SpecializationMapEntry{
.constantID = 0,
.offset = 0,
.size = sizeof(constants[0]),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = sizeof(constants[0]),
.size = sizeof(constants[1]),
},
};
vk::SpecializationInfo frag_specialization_info;
frag_specialization_info.setMapEntries(frag_specialization_constant_desc);
frag_specialization_info.setData<VkBool32>(constants);
// Create graphics pipeline
vk::raii::ShaderModule vertex_shader = load_shader(device, "stream.vert");
vk::raii::ShaderModule fragment_shader = load_shader(device, "stream.frag");
vk::PipelineLayoutCreateInfo pipeline_layout_info{
.setLayoutCount = 1,
.pSetLayouts = &*i.descriptor_set_layout,
};
i.blit_pipeline_layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
vk::pipeline_builder pipeline_info{
.Stages = {{
.stage = vk::ShaderStageFlagBits::eVertex,
.module = *vertex_shader,
.pName = "main",
.pSpecializationInfo = &vert_specialization_info,
},
{
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = &frag_specialization_info,
}},
.VertexBindingDescriptions = {},
.VertexAttributeDescriptions = {},
.InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip,
}},
// With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports
// and scissors is still used, put a vector with one element
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1,
}},
.MultisampleState = {{
.rasterizationSamples = vk::SampleCountFlagBits::e1,
}},
.ColorBlendAttachments = {
{.colorWriteMask = i.alpha() ? vk::ColorComponentFlagBits::eA
: vk::ColorComponentFlagBits::eA | vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB}},
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
.layout = *i.blit_pipeline_layout,
.renderPass = *blit_render_pass,
.subpass = 0,
};
i.blit_pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info);
}
application::pop_scene();
}
assert(swapchain);
if (device.waitForFences(*fence, VK_TRUE, UINT64_MAX) == vk::Result::eTimeout)
throw std::runtime_error("Vulkan fence timeout");
@@ -928,11 +811,13 @@ void scenes::stream::render(const XrFrameState & frame_state)
std::array<int, view_count> image_indices;
#if WIVRN_FEATURE_RENDERDOC
renderdoc_begin(*vk_instance);
#endif
command_buffer.reset();
vk::CommandBufferBeginInfo begin_info;
begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
command_buffer.begin(begin_info);
command_buffer.begin(vk::CommandBufferBeginInfo{
.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit,
});
// Keep a reference to the resources needed to blit the images until vkWaitForFences
@@ -947,13 +832,12 @@ void scenes::stream::render(const XrFrameState & frame_state)
std::array<wivrn::to_headset::foveation_parameter, 2> foveation{};
bool use_alpha = false;
// Blit images from the decoders
for (auto [i, blit_handle]: std::views::zip(decoders, current_blit_handles))
for (auto & blit_handle: current_blit_handles)
{
if (not blit_handle or not *i.blit_pipeline)
if (not blit_handle)
continue;
blit_handle->feedback.blitted = application::now();
blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
state_ = stream::state::stalled;
++blit_handle->feedback.times_displayed;
@@ -964,27 +848,12 @@ void scenes::stream::render(const XrFrameState & frame_state)
foveation = blit_handle->view_info.foveation;
use_alpha = blit_handle->view_info.alpha;
vk::DescriptorImageInfo image_info{
.imageView = *blit_handle->image_view,
.imageLayout = vk::ImageLayout::eGeneral,
};
vk::WriteDescriptorSet descriptor_write{
.dstSet = i.descriptor_set,
.dstBinding = 0,
.dstArrayElement = 0,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info,
};
device.updateDescriptorSets(descriptor_write, {});
if (*blit_handle->current_layout != vk::ImageLayout::eGeneral)
if (blit_handle->current_layout == vk::ImageLayout::eUndefined)
{
vk::ImageMemoryBarrier barrier{
.srcAccessMask = vk::AccessFlagBits::eNone,
.dstAccessMask = vk::AccessFlagBits::eMemoryRead,
.oldLayout = *blit_handle->current_layout,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eGeneral,
.image = blit_handle->image,
.subresourceRange = {
@@ -995,72 +864,22 @@ void scenes::stream::render(const XrFrameState & frame_state)
};
command_buffer.pipelineBarrier(vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eAllCommands, {}, {}, {}, barrier);
*blit_handle->current_layout = vk::ImageLayout::eGeneral;
blit_handle->current_layout = vk::ImageLayout::eGeneral;
}
}
uint16_t x_offset = 0;
for (auto & out: decoder_output)
// Blit images from the decoders
std::array<blitter::output, view_count> blitted;
for (auto [i, b]: utils::enumerate(blitters))
{
command_buffer.beginRenderPass(
{
.renderPass = *blit_render_pass,
.framebuffer = *out.frame_buffer,
.renderArea = {
.offset = {0, 0},
.extent = decoder_out_size,
},
.clearValueCount = 0,
},
vk::SubpassContents::eInline);
for (const auto & decoder: decoders)
b.begin(command_buffer);
for (auto [j, blit_handle]: utils::enumerate(current_blit_handles))
{
if (not *decoder.blit_pipeline)
if (not blit_handle)
continue;
if (decoder.alpha() and not use_alpha)
continue;
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *decoder.blit_pipeline);
const auto & description = decoder.decoder->desc();
int x0 = description.offset_x - x_offset;
int y0 = description.offset_y;
int x1 = x0 + description.width * description.subsampling;
int y1 = y0 + description.height * description.subsampling;
vk::Viewport viewport{
.x = (float)x0,
.y = (float)y0,
.width = float(description.width * description.subsampling),
.height = float(description.height * description.subsampling),
.minDepth = 0,
.maxDepth = 1,
};
x0 = std::clamp<int>(x0, 0, decoder_out_size.width);
x1 = std::clamp<int>(x1, 0, decoder_out_size.width);
y0 = std::clamp<int>(y0, 0, decoder_out_size.height);
y1 = std::clamp<int>(y1, 0, decoder_out_size.height);
vk::Rect2D scissor{
.offset = {.x = x0, .y = y0},
.extent = {.width = (uint32_t)(x1 - x0), .height = (uint32_t)(y1 - y0)},
};
command_buffer.setViewport(0, viewport);
command_buffer.setScissor(0, scissor);
command_buffer.bindDescriptorSets(
vk::PipelineBindPoint::eGraphics,
*decoder.blit_pipeline_layout,
0,
decoder.descriptor_set,
nullptr);
command_buffer.draw(3, 1, 0, 0);
b.push_image(command_buffer, j, decoders[j].decoder->sampler(), decoders[j].decoder->extent(), blit_handle->image_view, blit_handle->current_layout);
}
command_buffer.endRenderPass();
x_offset += decoder_out_size.width;
blitted[i] = b.end(command_buffer);
}
command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 1);
@@ -1071,7 +890,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
int32_t max_height = 0;
for (size_t i = 0; i < view_count; ++i)
{
extents[i] = reprojector->defoveated_size(foveation[i]);
extents[i] = defoveator->defoveated_size(foveation[i]);
max_width = std::max(max_width, extents[i].width);
max_height = std::max(max_height, extents[i].height);
}
@@ -1101,7 +920,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
// defoveate the image
int image_index = swapchain.acquire();
swapchain.wait();
reprojector->reproject(command_buffer, foveation, image_index);
defoveator->defoveate(command_buffer, foveation, blitted, image_index);
command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 2);
@@ -1109,6 +928,9 @@ void scenes::stream::render(const XrFrameState & frame_state)
vk::SubmitInfo submit_info;
submit_info.setCommandBuffers(*command_buffer);
queue.lock()->submit(submit_info, *fence);
#if WIVRN_FEATURE_RENDERDOC
renderdoc_end(*vk_instance);
#endif
swapchain.release();
std::vector<XrCompositionLayerProjectionView> layer_view(view_count);
@@ -1275,119 +1097,15 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
}
video_stream_description = description;
const uint32_t video_width = description.width / view_count;
const uint32_t video_height = description.height;
// Create renderpass
{
vk::AttachmentDescription color_desc{
.format = vk::Format::eA8B8G8R8SrgbPack32,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.initialLayout = vk::ImageLayout::eUndefined,
.finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
};
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
};
subpass.setColorAttachments(color_ref);
vk::RenderPassCreateInfo renderpass_info{
.flags = {},
};
renderpass_info.setAttachments(color_desc);
renderpass_info.setSubpasses(subpass);
blit_render_pass = vk::raii::RenderPass(device, renderpass_info);
}
// Create outputs for the decoders
decoder_out_size = vk::Extent2D{video_width, video_height};
{
decoder_out_format = vk::Format::eA8B8G8R8SrgbPack32;
vk::ImageCreateInfo image_info{
.flags = vk::ImageCreateFlags{},
.imageType = vk::ImageType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.extent = {video_width, video_height, 1},
.mipLevels = 1,
.arrayLayers = view_count,
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eColorAttachment,
.sharingMode = vk::SharingMode::eExclusive,
.initialLayout = vk::ImageLayout::eUndefined,
};
VmaAllocationCreateInfo alloc_info{
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
};
decoder_out_image = image_allocation{device, image_info, alloc_info};
vk::ImageViewCreateInfo image_view_info{
.image = vk::Image{decoder_out_image},
.viewType = vk::ImageViewType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.components = {},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = 1,
},
};
for (uint32_t view = 0; view < view_count; ++view)
{
auto & output = decoder_output[view];
image_view_info.subresourceRange.baseArrayLayer = view;
output.image_view = vk::raii::ImageView(device, image_view_info);
output.frame_buffer = vk::raii::Framebuffer(
device,
vk::FramebufferCreateInfo{
.renderPass = *blit_render_pass,
.attachmentCount = 1,
.pAttachments = &*output.image_view,
.width = decoder_out_size.width,
.height = decoder_out_size.height,
.layers = 1,
});
}
}
{
vk::DescriptorPoolSize pool_size{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = uint32_t(2 * description.items.size()),
};
blit_descriptor_pool = vk::raii::DescriptorPool(
device,
vk::DescriptorPoolCreateInfo{
.maxSets = uint32_t(2 * description.items.size()),
.poolSizeCount = 1,
.pPoolSizes = &pool_size,
});
}
for (auto & b: blitters)
b.reset(description);
for (const auto & [stream_index, item]: utils::enumerate(description.items))
{
spdlog::info("Creating decoder size {}x{} offset {},{}", item.width, item.height, item.offset_x, item.offset_y);
decoders.push_back(accumulator_images{
.decoder = std::make_unique<shard_accumulator>(device, physical_device, item, description.fps, shared_from_this(), stream_index),
.decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, item, description.fps, shared_from_this(), stream_index),
});
}
}
@@ -1400,15 +1118,6 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
const uint32_t video_width = video_stream_description->width / view_count;
const uint32_t video_height = video_stream_description->height;
const configuration::sgsr_settings sgsr = application::get_config().sgsr;
if (sgsr.enabled)
{
const float upscaling_factor = sgsr.upscaling_factor;
spdlog::info("Using SGSR with an upscale factor of {}", upscaling_factor);
swapchain_width *= upscaling_factor;
swapchain_height *= upscaling_factor;
}
auto views = system.view_configuration_views(viewconfig);
swapchain = xr::swapchain(session, device, swapchain_format, swapchain_width, swapchain_height, 1, views.size());
@@ -1425,12 +1134,9 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
for (auto & image: swapchain.images())
swapchain_images.push_back(image.image);
reprojector.emplace(
defoveator.emplace(
device,
physical_device,
decoder_out_image,
vk::Extent2D{.width = video_width, .height = video_height},
2,
swapchain_images,
extent,
swapchain.format());
+19 -23
View File
@@ -23,8 +23,9 @@
#include "decoder/shard_accumulator.h"
#include "render/imgui_impl.h"
#include "scene.h"
#include "scenes/blitter.h"
#include "scenes/input_profile.h"
#include "stream_reprojection.h"
#include "stream_defoveator.h"
#include "utils/thread_safe.h"
#include "wifi_lock.h"
#include "wivrn_client.h"
@@ -48,6 +49,13 @@ public:
};
static const size_t image_buffer_size = 3;
struct app
{
std::string id;
std::string name;
std::vector<std::byte> image;
};
private:
static const size_t view_count = 2;
@@ -56,16 +64,12 @@ private:
struct accumulator_images
{
std::unique_ptr<wivrn::shard_accumulator> decoder;
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::DescriptorSet descriptor_set = nullptr;
vk::raii::PipelineLayout blit_pipeline_layout = nullptr;
vk::raii::Pipeline blit_pipeline = nullptr;
// latest frames from oldest to most recent
// latest frames, rolling buffer
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, image_buffer_size> latest_frames;
std::shared_ptr<wivrn::shard_accumulator::blit_handle> frame(uint64_t id) const;
bool alpha() const;
std::vector<uint64_t> frames() const;
bool empty() const;
};
wifi_lock::wifi wifi;
@@ -77,9 +81,9 @@ private:
std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
std::thread network_thread;
std::mutex tracking_control_mutex;
to_headset::tracking_control tracking_control{};
thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
std::atomic<bool> interaction_profile_changed = false;
std::atomic<bool> recenter_requested = false;
std::atomic<XrDuration> display_time_phase = 0;
std::atomic<XrDuration> display_time_period = 0;
@@ -90,21 +94,10 @@ private:
std::shared_mutex decoder_mutex;
std::optional<to_headset::video_stream_description> video_stream_description;
std::vector<accumulator_images> decoders; // Locked by decoder_mutex
vk::raii::DescriptorPool blit_descriptor_pool = nullptr;
vk::raii::RenderPass blit_render_pass = nullptr;
vk::Extent2D decoder_out_size;
vk::Format decoder_out_format;
image_allocation decoder_out_image;
std::array<blitter, view_count> blitters;
struct renderpass_output
{
vk::raii::ImageView image_view = nullptr;
vk::raii::Framebuffer frame_buffer = nullptr;
};
std::array<renderpass_output, view_count> decoder_output;
std::optional<stream_reprojection> reprojector;
std::optional<stream_defoveator> defoveator;
vk::raii::Fence fence = nullptr;
vk::raii::CommandBuffer command_buffer = nullptr;
@@ -125,6 +118,8 @@ private:
std::optional<audio> audio_handle;
std::optional<xr::hand_tracker> left_hand;
std::optional<xr::hand_tracker> right_hand;
std::optional<input_profile> input;
static inline const uint32_t layer_controllers = 1 << 0;
static inline const uint32_t layer_rays = 1 << 1;
@@ -176,7 +171,7 @@ private:
std::vector<std::shared_ptr<wivrn::shard_accumulator::blit_handle>> current_blit_handles;
// Last application list received from server
thread_safe<to_headset::application_list> applications;
thread_safe<std::vector<app>> applications;
stream();
@@ -202,6 +197,7 @@ public:
void operator()(to_headset::video_stream_description &&);
void operator()(to_headset::refresh_rate_change &&);
void operator()(to_headset::application_list &&);
void operator()(to_headset::application_icon &&);
void operator()(audio_data &&);
void push_blit_handle(wivrn::shard_accumulator * decoder, std::shared_ptr<wivrn::shard_accumulator::blit_handle> handle);
@@ -17,13 +17,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "stream_reprojection.h"
#include "stream_defoveator.h"
#include "application.h"
#include "utils/contains.h"
#include "utils/ranges.h"
#include "vk/allocation.h"
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "vk/specialization_constants.h"
#include <array>
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>
@@ -31,22 +32,21 @@
#include <vulkan/vulkan_core.h>
#include <vulkan/vulkan_raii.hpp>
struct stream_reprojection::vertex
struct stream_defoveator::vertex
{
// output image position
alignas(8) glm::vec2 position;
// input texture coordinates
alignas(8) glm::vec2 uv;
// input texture coordinates + shading rate in the first 4 bits of x
alignas(8) glm::uvec2 uv;
};
struct SgsrSpecializationConstants
struct vert_pc
{
VkBool32 use_edge_direction;
float edge_threshold;
float edge_sharpness;
glm::ivec4 rgb_rect;
glm::ivec4 a_rect;
};
void stream_reprojection::ensure_vertices(size_t num_vertices)
void stream_defoveator::ensure_vertices(size_t num_vertices)
{
vk::BufferCreateInfo create_info{
.size = num_vertices * sizeof(vertex) * view_count,
@@ -65,212 +65,81 @@ void stream_reprojection::ensure_vertices(size_t num_vertices)
vertices_size = num_vertices * sizeof(vertex);
}
stream_reprojection::vertex * stream_reprojection::get_vertices(size_t view)
stream_defoveator::vertex * stream_defoveator::get_vertices(size_t view)
{
assert(buffer);
return reinterpret_cast<vertex *>(reinterpret_cast<uintptr_t>(buffer.map()) + view * vertices_size);
}
stream_reprojection::stream_reprojection(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
vk::Image input_image_,
vk::Extent2D input_extent,
uint32_t view_count,
std::vector<vk::Image> output_images_,
vk::Extent2D output_extent,
vk::Format format) :
view_count(view_count),
device(device),
input_image(input_image_),
input_extent(input_extent),
output_images(std::move(output_images_)),
output_extent(output_extent)
stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a)
{
vk::SamplerCreateInfo sampler_info{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eNearest,
.addressModeU = vk::SamplerAddressMode::eClampToBorder,
.addressModeV = vk::SamplerAddressMode::eClampToBorder,
.addressModeW = vk::SamplerAddressMode::eClampToBorder,
.mipLodBias = 0.0f,
.anisotropyEnable = VK_FALSE,
.maxAnisotropy = 1,
.compareEnable = VK_FALSE,
.compareOp = vk::CompareOp::eNever,
.minLod = 0.0f,
.maxLod = 0.0f,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
.unnormalizedCoordinates = VK_FALSE,
};
auto & target = a ? pipeline_a[view] : pipeline_rgb[view];
if (*target.pipeline)
return target;
if (utils::contains(application::get_vk_device_extensions(), VK_IMG_FILTER_CUBIC_EXTENSION_NAME))
sampler_info.magFilter = vk::Filter::eCubicIMG;
sampler = vk::raii::Sampler(device, sampler_info);
std::array samplers{rgb, a};
int32_t alpha = a ? 1 : 0;
// Create VkDescriptorSetLayout
vk::DescriptorSetLayoutBinding layout_binding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eFragment,
};
vk::DescriptorSetLayoutCreateInfo layout_info;
layout_info.setBindings(layout_binding);
descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info);
std::array pool_size{
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = (uint32_t)view_count,
std::array layout_binding{
vk::DescriptorSetLayoutBinding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = uint32_t(alpha + 1),
.stageFlags = vk::ShaderStageFlagBits::eFragment,
.pImmutableSamplers = samplers.data(),
},
};
vk::DescriptorPoolCreateInfo pool_info{
.maxSets = view_count,
.poolSizeCount = pool_size.size(),
.pPoolSizes = pool_size.data(),
target.descriptor_set_layout = device.createDescriptorSetLayout(vk::DescriptorSetLayoutCreateInfo{
.bindingCount = layout_binding.size(),
.pBindings = layout_binding.data(),
});
target.ds = device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{
.descriptorPool = *ds_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*target.descriptor_set_layout,
})[0]
.release();
// pipeline layout
vk::PushConstantRange pc_range{
.stageFlags = vk::ShaderStageFlagBits::eVertex,
.size = sizeof(vert_pc),
};
descriptor_pool = vk::raii::DescriptorPool(device, pool_info);
vk::PipelineLayoutCreateInfo pipeline_layout_info{
.setLayoutCount = 1,
.pSetLayouts = &*target.descriptor_set_layout,
.pushConstantRangeCount = 1,
.pPushConstantRanges = &pc_range,
};
// Create image views and descriptor sets
for (uint32_t view = 0; view < view_count; ++view)
target.layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
const auto & vk_device_extensions = application::get_vk_device_extensions();
bool fragment_shading_rate = false;
if (utils::contains(vk_device_extensions, VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME) and
utils::contains(vk_device_extensions, VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME))
{
vk::ImageViewCreateInfo iv_info{
.image = input_image,
.viewType = vk::ImageViewType::e2D,
.format = vk::Format::eA8B8G8R8SrgbPack32,
.components = {
.r = vk::ComponentSwizzle::eIdentity,
.g = vk::ComponentSwizzle::eIdentity,
.b = vk::ComponentSwizzle::eIdentity,
.a = vk::ComponentSwizzle::eIdentity,
},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = view,
.layerCount = 1,
},
};
vk::ImageView input_image_view = *input_image_views.emplace_back(device, iv_info);
vk::DescriptorSetAllocateInfo ds_info{
.descriptorPool = *descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*descriptor_set_layout,
};
auto descriptor_set = descriptor_sets.emplace_back(device.allocateDescriptorSets(ds_info)[0].release());
vk::DescriptorImageInfo image_info{
.sampler = *sampler,
.imageView = input_image_view,
.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
};
device.updateDescriptorSets(
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 0,
.dstArrayElement = 0,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = &image_info,
},
{});
const auto & [prop, rate_prop] = physical_device.getProperties2<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceFragmentShadingRatePropertiesKHR>();
const auto & [feat, fragment_feat] = physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
fragment_shading_rate = rate_prop.fragmentShadingRateNonTrivialCombinerOps and
fragment_feat.primitiveFragmentShadingRate and
fragment_feat.attachmentFragmentShadingRate;
}
// Create renderpass
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::AttachmentDescription attachment{
.format = format,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.initialLayout = vk::ImageLayout::eColorAttachmentOptimal,
.finalLayout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
};
subpass.setColorAttachments(color_ref);
vk::StructureChain renderpass_info{
vk::RenderPassCreateInfo{
.attachmentCount = 1,
.pAttachments = &attachment,
.subpassCount = 1,
.pSubpasses = &subpass,
},
};
renderpass = vk::raii::RenderPass(device, renderpass_info.get());
// Vertex shader
vk::raii::ShaderModule vertex_shader = load_shader(device, "reprojection.vert");
vk::raii::ShaderModule vertex_shader = load_shader(device, fragment_shading_rate ? "reprojection_vsr.vert" : "reprojection.vert");
// Fragment shader
std::string fragment_shader_name = "reprojection.frag";
auto specialization = make_specialization_constants(
int32_t(alpha),
VkBool32(need_srgb_conversion(guess_model())));
vk::raii::ShaderModule fragment_shader = load_shader(device, "reprojection.frag");
vk::SpecializationInfo fragment_specialization_info;
SgsrSpecializationConstants fragment_specialization_constants;
std::vector<vk::SpecializationMapEntry> fragment_specialization_constants_desc;
const configuration::sgsr_settings sgsr = application::get_config().sgsr;
if (sgsr.enabled)
{
fragment_shader_name = "reprojection_sgsr.frag";
fragment_specialization_constants = {
.use_edge_direction = sgsr.use_edge_direction,
.edge_threshold = float(sgsr.edge_threshold / 255.0),
.edge_sharpness = sgsr.edge_sharpness,
};
fragment_specialization_constants_desc = {
vk::SpecializationMapEntry{
.constantID = 0,
.offset = offsetof(SgsrSpecializationConstants, use_edge_direction),
.size = sizeof(fragment_specialization_constants.use_edge_direction),
},
vk::SpecializationMapEntry{
.constantID = 1,
.offset = offsetof(SgsrSpecializationConstants, edge_threshold),
.size = sizeof(fragment_specialization_constants.edge_threshold),
},
vk::SpecializationMapEntry{
.constantID = 2,
.offset = offsetof(SgsrSpecializationConstants, edge_sharpness),
.size = sizeof(fragment_specialization_constants.edge_sharpness),
},
};
fragment_specialization_info.setMapEntries(fragment_specialization_constants_desc);
fragment_specialization_info.setDataSize(sizeof(fragment_specialization_constants));
fragment_specialization_info.setPData(&fragment_specialization_constants);
}
vk::raii::ShaderModule fragment_shader = load_shader(device, fragment_shader_name);
// Create graphics pipeline
vk::PipelineLayoutCreateInfo pipeline_layout_info;
pipeline_layout_info.setSetLayouts(*descriptor_set_layout);
layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
vk::pipeline_builder pipeline_info{
vk::pipeline_builder pipeline_info_builder{
.flags = {},
.Stages = {
{
@@ -282,7 +151,7 @@ stream_reprojection::stream_reprojection(
.stage = vk::ShaderStageFlagBits::eFragment,
.module = *fragment_shader,
.pName = "main",
.pSpecializationInfo = &fragment_specialization_info,
.pSpecializationInfo = specialization,
},
},
.VertexBindingDescriptions = {
@@ -302,25 +171,15 @@ stream_reprojection::stream_reprojection(
{
.location = 1,
.binding = 0,
.format = vk::Format::eR32G32Sfloat,
.format = vk::Format::eR32G32Uint,
.offset = offsetof(vertex, uv),
},
},
.InputAssemblyState = {{
.topology = vk::PrimitiveTopology::eTriangleStrip,
}},
.Viewports = {{
.x = 0,
.y = 0,
.width = (float)output_extent.width,
.height = (float)output_extent.height,
.minDepth = 0,
.maxDepth = 1,
}},
.Scissors = {{
.offset = {.x = 0, .y = 0},
.extent = output_extent,
}},
.Viewports = {{}},
.Scissors = {{}},
.RasterizationState = {{
.polygonMode = vk::PolygonMode::eFill,
.lineWidth = 1,
@@ -332,12 +191,109 @@ stream_reprojection::stream_reprojection(
.ColorBlendAttachments = {{
.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA,
}},
.layout = *layout,
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
.layout = *target.layout,
.renderPass = *renderpass,
.subpass = 0,
};
pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info);
vk::GraphicsPipelineCreateInfo pipeline_info(pipeline_info_builder);
// Variable fragment shading
std::array combiner{
vk::FragmentShadingRateCombinerOpKHR::eMax,
vk::FragmentShadingRateCombinerOpKHR::eMax,
};
vk::PipelineFragmentShadingRateStateCreateInfoKHR shading{
.fragmentSize = vk::Extent2D{1, 1},
.combinerOps = combiner,
};
if (fragment_shading_rate)
{
pipeline_info.pNext = &shading;
spdlog::info("Available fragment shading rates:");
for (const auto rate: physical_device.getFragmentShadingRatesKHR())
{
if (rate.sampleCounts & vk::SampleCountFlagBits::e1)
{
spdlog::info("\tfragment size: {}x{}", rate.fragmentSize.width, rate.fragmentSize.height);
int flags = 0;
if (rate.fragmentSize.width == 4)
flags |= 8;
else if (rate.fragmentSize.width == 2)
flags |= 4;
if (rate.fragmentSize.height == 4)
flags |= 2;
else if (rate.fragmentSize.height == 2)
flags |= 1;
for (int y = std::bit_width(rate.fragmentSize.height) - 1; y < 3; ++y)
{
for (int x = std::bit_width(rate.fragmentSize.width) - 1; x < 3; ++x)
{
if (fragment_sizes[x][y] == 0)
fragment_sizes[x][y] = flags << 28;
}
}
}
}
}
target.pipeline = device.createGraphicsPipeline(application::get_pipeline_cache(), pipeline_info);
return target;
}
stream_defoveator::stream_defoveator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
std::vector<vk::Image> output_images_,
vk::Extent2D output_extent,
vk::Format format) :
device(device),
physical_device(physical_device),
output_images(std::move(output_images_)),
output_extent(output_extent)
{
// Create renderpass
vk::AttachmentDescription attachment{
.format = format,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eDontCare,
.storeOp = vk::AttachmentStoreOp::eStore,
.finalLayout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::AttachmentReference color_ref{
.attachment = 0,
.layout = vk::ImageLayout::eColorAttachmentOptimal,
};
vk::SubpassDescription subpass{
.pipelineBindPoint = vk::PipelineBindPoint::eGraphics,
.colorAttachmentCount = 1,
.pColorAttachments = &color_ref,
};
vk::StructureChain renderpass_info{
vk::RenderPassCreateInfo{
.attachmentCount = 1,
.pAttachments = &attachment,
.subpassCount = 1,
.pSubpasses = &subpass,
},
};
renderpass = vk::raii::RenderPass(device, renderpass_info.get());
vk::DescriptorPoolSize pool_size{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = view_count * 4,
};
ds_pool = device.createDescriptorPool(vk::DescriptorPoolCreateInfo{
.maxSets = view_count * 2,
.poolSizeCount = 1,
.pPoolSizes = &pool_size,
});
// Create image views and framebuffers
output_image_views.reserve(output_images.size() * view_count);
@@ -390,9 +346,25 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p
return (2 * (p.x.size() + 1) + 1) * p.y.size();
}
void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
int destination)
uint32_t stream_defoveator::shading_rate(int pixels_x, int pixels_y)
{
int x = 0;
if (pixels_x >= 2)
x = 1;
if (pixels_x >= 4)
x = 2;
int y = 0;
if (pixels_y >= 2)
y = 1;
if (pixels_y >= 4)
y = 2;
return fragment_sizes[x][y];
}
void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
std::span<wivrn::blitter::output> inputs,
int destination)
{
if (destination < 0 || destination >= (int)output_images.size())
throw std::runtime_error("Invalid destination image index");
@@ -401,6 +373,7 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
for (size_t view = 0; view < view_count; ++view)
{
const auto out_size = defoveated_size(foveation[view]);
auto vertices = get_vertices(view);
const auto & [px, py] = foveation[view];
assert(px.size() % 2 == 1);
@@ -408,67 +381,64 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
const int n_ratio_y = (py.size() - 1) / 2;
const int n_ratio_x = (px.size() - 1) / 2;
glm::vec2 in(0), out(0); // pixel coordinates
glm::vec2 in_pixel_size(1. / input_extent.width,
1. / input_extent.height);
glm::vec2 out_pixel_size(2. / output_extent.width,
2. / output_extent.height);
command_buffer.setScissor(
0,
vk::Rect2D{
.extent = {.width = uint32_t(out_size.width), .height = uint32_t(out_size.height)},
});
command_buffer.setViewport(
0,
vk::Viewport{
.x = 0,
.y = 0,
.width = float(out_size.width),
.height = float(out_size.height),
.minDepth = 0,
.maxDepth = 1,
});
glm::uvec2 in(0);
glm::vec2 out(-0.5 * out_size.width, -0.5 * out_size.height); // pixel coordinates
glm::vec2 out_pixel_size(2. / out_size.width,
2. / out_size.height);
for (auto [iy, n_out_y]: utils::enumerate_range(py))
{
// number of output pixels per source pixels
const int ratio_y = std::abs(n_ratio_y - int(iy)) + 1;
in.x = 0;
out.x = 0;
out.x = -0.5 * out_size.width;
for (auto [ix, n_out_x]: utils::enumerate_range(px))
{
const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1;
glm::uvec2 rate = glm::uvec2(shading_rate(ratio_x, ratio_y), 0);
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in | rate,
};
*vertices++ = {
.position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size - glm::vec2(1),
.uv = (in + glm::vec2(0, n_out_y)) * in_pixel_size,
.position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size,
.uv = (in + glm::uvec2(0, n_out_y)) | rate,
};
in.x += n_out_x;
out.x += n_out_x * ratio_x;
}
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
in.y += n_out_y;
out.y += n_out_y * ratio_y;
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
*vertices++ = {
.position = out * out_pixel_size - glm::vec2(1),
.uv = in * in_pixel_size,
.position = out * out_pixel_size,
.uv = in,
};
}
}
command_buffer.pipelineBarrier(
vk::PipelineStageFlagBits::eTopOfPipe,
vk::PipelineStageFlagBits::eColorAttachmentOutput,
{},
{},
{},
vk::ImageMemoryBarrier{
.srcAccessMask = {},
.dstAccessMask = vk::AccessFlagBits::eColorAttachmentWrite,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eColorAttachmentOptimal,
.image = output_images[destination],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.layerCount = view_count,
},
});
for (size_t view = 0; view < view_count; ++view)
{
vk::RenderPassBeginInfo begin_info{
@@ -480,9 +450,49 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
},
};
const auto & input = inputs[view];
auto & pipeline = ensure_pipeline(view, input.sampler_rgb, input.sampler_a);
std::array image_info{
vk::DescriptorImageInfo{
.sampler = input.sampler_rgb,
.imageView = input.rgb,
.imageLayout = input.layout_rgb,
},
vk::DescriptorImageInfo{
.sampler = input.sampler_a,
.imageView = input.a,
.imageLayout = input.layout_a,
},
};
std::array descriptor_writes{
vk::WriteDescriptorSet{
.dstSet = pipeline.ds,
.dstBinding = 0,
.descriptorCount = input.sampler_a ? 2u : 1u,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = image_info.data(),
},
};
vert_pc pc{
.rgb_rect = glm::ivec4(input.rect_rgb.offset.x,
input.rect_rgb.offset.y,
input.rect_rgb.extent.width,
input.rect_rgb.extent.height),
.a_rect = glm::ivec4(input.rect_a.offset.x,
input.rect_a.offset.y,
input.rect_a.extent.width,
input.rect_a.extent.height),
};
device.updateDescriptorSets(descriptor_writes, {});
command_buffer.beginRenderPass(begin_info, vk::SubpassContents::eInline);
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline);
command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *layout, 0, descriptor_sets[view], {});
command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline.pipeline);
command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *pipeline.layout, 0, pipeline.ds, {});
command_buffer.pushConstants<vert_pc>(*pipeline.layout, vk::ShaderStageFlagBits::eVertex, 0, pc);
command_buffer.bindVertexBuffers(0, vk::Buffer(buffer), vertices_size * view);
command_buffer.draw(required_vertices(foveation[view]), 1, 0, 0);
command_buffer.endRenderPass();
@@ -502,7 +512,7 @@ static uint16_t count_pixels(const std::vector<uint16_t> & param)
return res;
}
XrExtent2Di stream_reprojection::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
{
return {
count_pixels(view.x),
@@ -19,34 +19,42 @@
#pragma once
#include "blitter.h"
#include "vk/allocation.h"
#include "wivrn_packets.h"
#include <vulkan/vulkan_raii.hpp>
#include <openxr/openxr.h>
class stream_reprojection
class stream_defoveator
{
struct vertex;
const uint32_t view_count;
static const uint32_t view_count = 2;
// Vertex buffer
buffer_allocation buffer;
size_t vertices_size = 0;
vk::raii::Device & device;
vk::raii::PhysicalDevice & physical_device;
// Graphic pipeline
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::raii::DescriptorPool descriptor_pool = nullptr;
vk::raii::PipelineLayout layout = nullptr;
vk::raii::RenderPass renderpass = nullptr;
vk::raii::Pipeline pipeline = nullptr;
vk::raii::DescriptorPool ds_pool = nullptr;
struct pipeline_t
{
vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr;
vk::DescriptorSet ds;
vk::raii::PipelineLayout layout = nullptr;
vk::raii::Pipeline pipeline = nullptr;
};
pipeline_t pipeline_rgb[view_count];
pipeline_t pipeline_a[view_count];
// Source image
vk::raii::Sampler sampler = nullptr;
vk::Image input_image;
std::vector<vk::raii::ImageView> input_image_views;
std::vector<vk::DescriptorSet> descriptor_sets;
vk::Extent2D input_extent;
// Allowed sizes for variable shading rate
// indices are for x, y
// 0 is 1 pixel
// 1 is 2 or 3 pixels
// 2 is 4 pixels or more
uint32_t fragment_sizes[3][3] = {};
// Destination images
std::vector<vk::Image> output_images;
@@ -57,22 +65,23 @@ class stream_reprojection
void ensure_vertices(size_t num_vertices);
vertex * get_vertices(size_t view);
uint32_t shading_rate(int pixels_x, int pixels_y);
pipeline_t & ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a);
public:
stream_reprojection(
stream_defoveator(
vk::raii::Device & device,
vk::raii::PhysicalDevice & physical_device,
vk::Image input_image,
vk::Extent2D input_extent,
uint32_t view_count,
std::vector<vk::Image> output_images,
vk::Extent2D output_extent,
vk::Format format);
stream_reprojection(const stream_reprojection &) = delete;
stream_defoveator(const stream_defoveator &) = delete;
void reproject(
void defoveate(
vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
std::span<wivrn::blitter::output> inputs,
int destination);
XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const;
-179
View File
@@ -1,179 +0,0 @@
/*
* Snapdragon™ Game Super Resolution
* Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
*
* https://github.com/SnapdragonStudios/snapdragon-gsr
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#version 450
precision mediump float;
precision highp int;
#define OperationMode 1
layout (constant_id = 0) const bool use_edge_direction = true;
layout (constant_id = 1) const float edge_threshold = 4.0/255.0;
layout (constant_id = 2) const float edge_sharpness = 2.0;
layout(set = 0, binding = 0) uniform mediump sampler2D texSampler;
layout(location = 0) in highp vec2 inUV;
layout(location = 0) out vec4 outColor;
float fastLanczos2(float x)
{
float wA = x-4.0;
float wB = x*wA-wA;
wA *= wA;
return wB*wA;
}
vec2 weightY(float dx, float dy, float c, vec3 data)
{
float std = data.x;
vec2 dir = data.yz;
float edgeDis = ((dx*dir.y)+(dy*dir.x));
float x = (((dx*dx)+(dy*dy))+((edgeDis*edgeDis)*((clamp(((c*c)*std),0.0,1.0)*0.7)+-1.0)));
float w = fastLanczos2(x);
return vec2(w, w * c);
}
vec2 weightYned(float dx, float dy, float c, float std)
{
float x = ((dx*dx)+(dy* dy))* 0.55 + clamp(abs(c)*std, 0.0, 1.0);
float w = fastLanczos2(x);
return vec2(w, w * c);
}
vec2 edgeDirection(vec4 left, vec4 right)
{
vec2 dir;
float RxLz = (right.x + (-left.z));
float RwLy = (right.w + (-left.y));
vec2 delta;
delta.x = (RxLz + RwLy);
delta.y = (RxLz + (-RwLy));
float lengthInv = inversesqrt((delta.x * delta.x+ 3.075740e-05) + (delta.y * delta.y));
dir.x = (delta.x * lengthInv);
dir.y = (delta.y * lengthInv);
return dir;
}
void main()
{
vec4 color = textureLod(texSampler,inUV,0.0).xyzw;
float alpha = color.a;
if (OperationMode == 1)
color.a = 0.0;
if (OperationMode != 4)
{
vec2 dim = textureSize(texSampler, 0);
vec4 viewportInfo = vec4(1/dim.x, 1/dim.y, dim.x, dim.y);
highp vec2 imgCoord = ((inUV.xy*viewportInfo.zw)+vec2(-0.5,0.5));
highp vec2 imgCoordPixel = floor(imgCoord);
highp vec2 coord = (imgCoordPixel*viewportInfo.xy);
vec2 pl = (imgCoord+(-imgCoordPixel));
vec4 left = textureGather(texSampler,coord, OperationMode);
float edgeVote = abs(left.z - left.y) + abs(color[OperationMode] - left.y) + abs(color[OperationMode] - left.z) ;
if(edgeVote > edge_threshold)
{
coord.x += viewportInfo.x;
vec4 right = textureGather(texSampler,coord + vec2(viewportInfo.x, 0.0), OperationMode);
vec4 upDown;
upDown.xy = textureGather(texSampler,coord + vec2(0.0, -viewportInfo.y),OperationMode).wz;
upDown.zw = textureGather(texSampler,coord + vec2(0.0, viewportInfo.y), OperationMode).yx;
float mean = (left.y+left.z+right.x+right.w)*0.25;
left = left - vec4(mean);
right = right - vec4(mean);
upDown = upDown - vec4(mean);
color.w =color[OperationMode] - mean;
float sum = (((((abs(left.x)+abs(left.y))+abs(left.z))+abs(left.w))+(((abs(right.x)+abs(right.y))+abs(right.z))+abs(right.w)))+(((abs(upDown.x)+abs(upDown.y))+abs(upDown.z))+abs(upDown.w)));
float sumMean = 1.014185e+01/sum;
float std = (sumMean*sumMean);
vec2 aWY;
if (use_edge_direction) {
vec3 data = vec3(std, edgeDirection(left, right));
aWY = weightY(pl.x, pl.y+1.0, upDown.x,data);
aWY += weightY(pl.x-1.0, pl.y+1.0, upDown.y,data);
aWY += weightY(pl.x-1.0, pl.y-2.0, upDown.z,data);
aWY += weightY(pl.x, pl.y-2.0, upDown.w,data);
aWY += weightY(pl.x+1.0, pl.y-1.0, left.x,data);
aWY += weightY(pl.x, pl.y-1.0, left.y,data);
aWY += weightY(pl.x, pl.y, left.z,data);
aWY += weightY(pl.x+1.0, pl.y, left.w,data);
aWY += weightY(pl.x-1.0, pl.y-1.0, right.x,data);
aWY += weightY(pl.x-2.0, pl.y-1.0, right.y,data);
aWY += weightY(pl.x-2.0, pl.y, right.z,data);
aWY += weightY(pl.x-1.0, pl.y, right.w,data);
} else {
aWY = weightYned(pl.x, pl.y+1.0, upDown.x,std);
aWY += weightYned(pl.x-1.0, pl.y+1.0, upDown.y,std);
aWY += weightYned(pl.x-1.0, pl.y-2.0, upDown.z,std);
aWY += weightYned(pl.x, pl.y-2.0, upDown.w,std);
aWY += weightYned(pl.x+1.0, pl.y-1.0, left.x,std);
aWY += weightYned(pl.x, pl.y-1.0, left.y,std);
aWY += weightYned(pl.x, pl.y, left.z,std);
aWY += weightYned(pl.x+1.0, pl.y, left.w,std);
aWY += weightYned(pl.x-1.0, pl.y-1.0, right.x,std);
aWY += weightYned(pl.x-2.0, pl.y-1.0, right.y,std);
aWY += weightYned(pl.x-2.0, pl.y, right.z,std);
aWY += weightYned(pl.x-1.0, pl.y, right.w,std);
}
float finalY = aWY.y/aWY.x;
float maxY = max(max(left.y,left.z),max(right.x,right.w));
float minY = min(min(left.y,left.z),min(right.x,right.w));
float deltaY = clamp(edge_sharpness*finalY, minY, maxY) -color.w;
//smooth high contrast input
deltaY = clamp(deltaY, -23.0 / 255.0, 23.0 / 255.0);
color.x = clamp((color.x+deltaY),0.0,1.0);
color.y = clamp((color.y+deltaY),0.0,1.0);
color.z = clamp((color.z+deltaY),0.0,1.0);
}
}
outColor = vec4(color.rgb, alpha);
}
+3 -27
View File
@@ -45,40 +45,16 @@ void main()
#ifdef FRAG_SHADER
layout(binding = 0) uniform sampler2D texSampler;
layout(constant_id = 0) const bool do_srgb = true;
layout(constant_id = 1) const bool is_alpha = false;
layout(constant_id = 0) const bool is_alpha = false;
layout(location = 0) in vec2 inUV;
layout(location = 0) out vec4 outColor;
float sRGB_to_linear(float x)
{
if (x <= 0.04045)
return x / 12.92;
return pow((x + 0.055) / 1.055, 2.4);
}
vec4 sRGB_to_linear_rgba(vec4 x)
{
return vec4(
sRGB_to_linear(x.r),
sRGB_to_linear(x.g),
sRGB_to_linear(x.b),
x.r);
}
void main()
{
if (do_srgb)
{
outColor = sRGB_to_linear_rgba(texture(texSampler, inUV));
}
else
{
outColor = texture(texSampler, inUV);
outColor.a = outColor.r;
}
outColor = texture(texSampler, inUV);
outColor.a = outColor.r;
if (!is_alpha)
{
outColor.a = 1;
+70
View File
@@ -0,0 +1,70 @@
/*
* WiVRn VR streaming
* Copyright (C) 2024 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2024 Patrick Nicolas <patricknicolas@laposte.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 "i18n.h"
#include "asset.h"
#include <map>
#include <string>
#include <vector>
extern std::map<std::string, std::vector<int>> glyph_set_per_language;
std::vector<boost::locale::gnu_gettext::messages_info> get_locales()
{
boost::locale::gnu_gettext::messages_info messages_info;
messages_info.paths.push_back("locale");
messages_info.encoding = "UTF-8";
messages_info.domains.push_back(boost::locale::gnu_gettext::messages_info::domain("wivrn"));
messages_info.callback = open_locale_file;
std::vector<boost::locale::gnu_gettext::messages_info> res;
messages_info.language = "en";
messages_info.country = "US";
res.push_back(messages_info);
for (const auto & [code, glyphs]: glyph_set_per_language)
{
auto pos = code.find("_");
messages_info.language = code.substr(0, pos);
if (pos == std::string::npos)
messages_info.country = "";
else
messages_info.country = code.substr(pos + 1);
res.push_back(messages_info);
}
return res;
}
std::vector<char> open_locale_file(const std::string & file_name, const std::string & encoding)
{
std::vector<char> buffer;
try
{
asset file(file_name);
buffer.resize(file.size());
memcpy(buffer.data(), file.data(), file.size());
}
catch (...)
{
}
return buffer;
}
+3
View File
@@ -23,3 +23,6 @@
#define _F(x) fmt::runtime(boost::locale::gettext(x))
#define _S(x) boost::locale::gettext(x).c_str()
#define _cS(c, x) boost::locale::pgettext(c, x).c_str()
std::vector<boost::locale::gnu_gettext::messages_info> get_locales();
std::vector<char> open_locale_file(const std::string & file_name, const std::string & encoding);
+45
View File
@@ -0,0 +1,45 @@
#include "renderdoc.h"
#include "renderdoc_app.h"
#include <dlfcn.h>
#include <iostream>
static RENDERDOC_API_1_0_0 * renderdoc_init()
{
RENDERDOC_API_1_0_0 * renderdoc_api = nullptr;
auto renderdoc_module = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD);
if (not renderdoc_module)
return nullptr;
auto * func = reinterpret_cast<pRENDERDOC_GetAPI>(dlsym(renderdoc_module, "RENDERDOC_GetAPI"));
if (!func)
{
std::cerr << "Failed to load RENDERDOC_GetAPI function." << std::endl;
return nullptr;
}
if (!func(eRENDERDOC_API_Version_1_0_0, reinterpret_cast<void **>(&renderdoc_api)))
{
std::cerr << "Failed to obtain RenderDoc 1.0.0 API." << std::endl;
return nullptr;
}
int major, minor, patch;
renderdoc_api->GetAPIVersion(&major, &minor, &patch);
return renderdoc_api;
}
static RENDERDOC_API_1_0_0 * get_renderdoc()
{
static RENDERDOC_API_1_0_0 * renderdoc_api = renderdoc_init();
return renderdoc_api;
}
void wivrn::renderdoc_begin(VkInstance inst)
{
if (auto renderdoc_api = get_renderdoc())
renderdoc_api->StartFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst), nullptr);
}
void wivrn::renderdoc_end(VkInstance inst)
{
if (auto renderdoc_api = get_renderdoc())
renderdoc_api->EndFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst), nullptr);
}
+6
View File
@@ -0,0 +1,6 @@
#include <vulkan/vulkan.h>
namespace wivrn
{
void renderdoc_begin(VkInstance);
void renderdoc_end(VkInstance);
} // namespace wivrn
+2 -1
View File
@@ -18,12 +18,13 @@
*/
#include "shader.h"
#include "wivrn_shaders.h"
vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::vector<uint32_t> & spirv)
{
vk::ShaderModuleCreateInfo create_info{
.codeSize = spirv.size() * sizeof(uint32_t),
.pCode = data(spirv),
.pCode = spirv.data(),
};
return vk::raii::ShaderModule{device, create_info};
-3
View File
@@ -19,12 +19,9 @@
#pragma once
#include <map>
#include <string>
#include <vector>
#include <vulkan/vulkan_raii.hpp>
extern const std::map<std::string, std::vector<uint32_t>> shaders;
vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::vector<uint32_t> & spirv);
vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::string & name);
+88 -16
View File
@@ -24,6 +24,8 @@
#include <algorithm>
#include <cassert>
#include <cstring>
#include <map>
#include <set>
#include <spdlog/spdlog.h>
#include <vulkan/vulkan.h>
#include <openxr/openxr.h>
@@ -41,7 +43,54 @@ static XrBool32 debug_callback(
return XR_FALSE;
}
static std::pair<XrVersion, XrInstance> create_instance(XrInstanceCreateInfo & info)
namespace
{
struct version_info
{
std::set<const char *, std::less<>> promoted_extensions;
std::set<const char *, std::less<>> removed_extensions;
bool shall_request(std::string_view extension) const
{
return not(promoted_extensions.contains(extension) or removed_extensions.contains(extension));
}
static const std::map<XrVersion, version_info> versions;
static const version_info * get(XrVersion version)
{
auto it = versions.find(XR_MAKE_VERSION(XR_VERSION_MAJOR(version), XR_VERSION_MINOR(version), 0));
if (it == versions.end())
return nullptr;
return &it->second;
}
};
const std::map<XrVersion, version_info> version_info::versions = {{
XR_MAKE_VERSION(1, 1, 0),
{
.promoted_extensions = {
XR_KHR_LOCATE_SPACES_EXTENSION_NAME,
XR_KHR_MAINTENANCE1_EXTENSION_NAME,
XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME,
XR_EXT_LOCAL_FLOOR_EXTENSION_NAME,
XR_EXT_PALM_POSE_EXTENSION_NAME,
XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME,
XR_EXT_UUID_EXTENSION_NAME,
XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME,
XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME,
XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME,
XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME,
XR_VARJO_QUAD_VIEWS_EXTENSION_NAME,
},
.removed_extensions = {
// Extensions that are included, but actually different
XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME,
XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME,
},
},
}};
} // namespace
static std::pair<XrVersion, XrInstance> create_instance(XrInstanceCreateInfo & info, std::vector<const char *> & in_extensions)
{
XrResult res;
for (XrVersion version: {
@@ -49,11 +98,34 @@ static std::pair<XrVersion, XrInstance> create_instance(XrInstanceCreateInfo & i
XR_API_VERSION_1_0,
})
{
std::vector<const char *> extensions;
info.applicationInfo.apiVersion = version;
auto v_info = version_info::get(version);
if (v_info)
{
std::ranges::copy_if(
in_extensions,
std::back_inserter(extensions),
[v_info](const char * ext) { return v_info->shall_request(ext); });
info.enabledExtensionNames = extensions.data();
info.enabledExtensionCount = extensions.size();
}
else
{
info.enabledExtensionNames = in_extensions.data();
info.enabledExtensionCount = in_extensions.size();
}
XrInstance inst;
res = xrCreateInstance(&info, &inst);
if (XR_SUCCEEDED(res))
{
if (v_info)
{
extensions.insert(extensions.end(), v_info->promoted_extensions.begin(), v_info->promoted_extensions.end());
std::swap(in_extensions, extensions);
}
return {version, inst};
}
spdlog::info("Failed to create OpenXR instance version {}: {}",
xr::to_string(version),
xr::to_string(res));
@@ -128,20 +200,6 @@ xr::instance::instance(std::string_view application_name, std::vector<const char
#endif
}
spdlog::info("Using OpenXR extensions:");
for (auto & i: extensions)
{
uint32_t version = 0;
for (auto & j: all_extensions)
{
if (!strcmp(j.extensionName, i))
version = j.extensionVersion;
}
loaded_extensions.emplace(i, version);
spdlog::info(" {}", i);
}
XrInstanceCreateInfo create_info{
.type = XR_TYPE_INSTANCE_CREATE_INFO,
.enabledApiLayerCount = (uint32_t)layers.size(),
@@ -160,7 +218,21 @@ xr::instance::instance(std::string_view application_name, std::vector<const char
create_info.next = &instanceCreateInfoAndroid;
#endif
std::tie(api_version, id) = create_instance(create_info);
std::tie(api_version, id) = create_instance(create_info, extensions);
spdlog::info("Using OpenXR extensions:");
for (auto i: extensions)
{
uint32_t version = 0;
for (auto & j: all_extensions)
{
if (!strcmp(j.extensionName, i))
version = j.extensionVersion;
}
loaded_extensions.emplace(i, version);
spdlog::info(" {}", i);
}
if (debug_utils_found)
{
+72 -9
View File
@@ -17,13 +17,76 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef VERT_SHADER
#include "actionset.h"
#include "error.h"
#include "instance.h"
#include "session.h"
#include "swapchain.h"
#include "system.h"
#include "xr/check.h"
#include "xr/to_string.h"
#if VSR
#extension GL_EXT_fragment_shading_rate: enable
#endif
layout (location = 0) in vec2 vPosition;
layout (location = 1) in uvec2 vUV;
layout(location = 0) out vec4 outUV;
layout(push_constant) uniform pc
{
ivec4 rgb_rect;
ivec4 a_rect;
};
void main()
{
gl_Position = vec4(vPosition, 0.0, 1.0);
#if VSR
gl_PrimitiveShadingRateEXT = int(bitfieldExtract(vUV.x, 28, 4));
vec2 uv = bitfieldInsert(vUV, uvec2(0), 28, 4);
#else
vec2 uv = vUV;
#endif
outUV.xy = (uv + rgb_rect.xy) / rgb_rect.zw;
outUV.zw = (uv + a_rect.xy) / a_rect.zw;
}
#endif
#ifdef FRAG_SHADER
layout(constant_id = 0) const int alpha = 1;
layout(constant_id = 1) const bool do_srgb = false;
layout(set = 0, binding = 0) uniform sampler2D rgb[alpha + 1];
layout(location = 0) in vec4 inUV;
layout(location = 0) out vec4 outColor;
float sRGB_to_linear(float x)
{
if (x <= 0.04045)
return x / 12.92;
return pow((x + 0.055) / 1.055, 2.4);
}
vec4 sRGB_to_linear_rgba(vec4 x)
{
return vec4(
sRGB_to_linear(x.r),
sRGB_to_linear(x.g),
sRGB_to_linear(x.b),
x.a);
}
void main()
{
if (alpha == 1)
outColor = vec4(texture(rgb[0], inUV.xy).rgb, texture(rgb[1], inUV.zw).r);
else
outColor = texture(rgb[0], inUV.xy).rgba;
if (do_srgb)
{
outColor = sRGB_to_linear_rgba(outColor);
}
}
#endif
+54 -9
View File
@@ -1,5 +1,8 @@
set(_THIS_MODULE_BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")
function(compile_glsl_aux shader_stage shader_name glsl_filename output)
find_program(HEXDUMP hexdump REQUIRED)
function(compile_glsl_aux shader_stage shader_name glsl_filename output target_env)
string(TOUPPER ${shader_stage} shader_stage_upper)
cmake_path(REPLACE_FILENAME output "${shader_name}.spv" OUTPUT_VARIABLE SPV_FILE)
@@ -11,11 +14,29 @@ function(compile_glsl_aux shader_stage shader_name glsl_filename output)
")
add_custom_command(
OUTPUT "${SPV_FILE}"
COMMAND Vulkan::glslangValidator -V -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} -x -o "${SPV_FILE}"
OUTPUT "${SPV_FILE}-nopt"
COMMAND Vulkan::glslangValidator -V --target-env ${target_env} -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} -o "${SPV_FILE}-nopt"
DEPENDS "${glsl_filename}"
VERBATIM
)
if (WIVRN_OPTIMIZE_SHADERS)
add_custom_command(
OUTPUT "${SPV_FILE}-opt"
COMMAND spirv-opt --target-env=${target_env} -O "${SPV_FILE}-nopt" -o "${SPV_FILE}-opt"
DEPENDS "${SPV_FILE}-nopt"
VERBATIM
)
set(_spv "${SPV_FILE}-opt")
else()
set(_spv "${SPV_FILE}-nopt")
endif()
set(_format "/4 \"0x%02X, \"")
add_custom_command(
OUTPUT "${SPV_FILE}"
COMMAND "${HEXDUMP}" -ve "${_format}" ${_spv} > "${SPV_FILE}"
DEPENDS "${_spv}"
VERBATIM
)
get_source_file_property(deps "${output}" OBJECT_DEPENDS)
if (deps)
@@ -30,33 +51,57 @@ endfunction()
function(wivrn_compile_glsl target)
set(options)
set(oneValueArgs TARGET_ENV NAMESPACE)
set(multiValueArgs SHADERS)
cmake_parse_arguments(_args "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT _args_TARGET_ENV)
set(_args_TARGET_ENV vulkan1.0)
endif()
if (_args_NAMESPACE)
set(_namespace_begin "namespace ${_args_NAMESPACE} {")
set(_namespace_end "}")
endif()
cmake_path(APPEND OUTPUT "${CMAKE_CURRENT_BINARY_DIR}" "${target}_shaders.cpp")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${target}_shaders.h" "\
#include <cstdint>
#include <map>
#include <vector>
#include <string>
${_namespace_begin}
extern const std::map<std::string, std::vector<uint32_t>> shaders;
${_namespace_end}")
file(WRITE ${OUTPUT} "\
#include <cstdint>
#include <map>
#include <vector>
#include <string>
${_namespace_begin}
extern const std::map<std::string, std::vector<uint32_t>> shaders = {
")
foreach(in_file IN LISTS ARGN)
if (in_file MATCHES "\.\(vert|frag|tesc|tese|geom|comp\)\.glsl$")
foreach(in_file IN LISTS _args_SHADERS)
if (in_file MATCHES "\.\(vert|frag|tesc|tese|geom|comp\)\(\.glsl\)?$")
set(shader_stage ${CMAKE_MATCH_1})
cmake_path(GET in_file STEM LAST_ONLY shader_name)
compile_glsl_aux(${shader_stage} ${shader_name} ${in_file} ${OUTPUT})
compile_glsl_aux(${shader_stage} ${shader_name} ${in_file} ${OUTPUT} ${_args_TARGET_ENV})
else()
cmake_path(GET in_file STEM LAST_ONLY shader_name)
compile_glsl_aux(vert ${shader_name}.vert ${in_file} ${OUTPUT})
compile_glsl_aux(frag ${shader_name}.frag ${in_file} ${OUTPUT})
compile_glsl_aux(vert ${shader_name}.vert ${in_file} ${OUTPUT} ${_args_TARGET_ENV})
compile_glsl_aux(frag ${shader_name}.frag ${in_file} ${OUTPUT} ${_args_TARGET_ENV})
endif()
endforeach()
file(APPEND ${OUTPUT} "};")
file(APPEND ${OUTPUT} "};${_namespace_end}")
target_sources(${target} PRIVATE ${OUTPUT})
target_include_directories(${target} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
endfunction()
+215 -200
View File
@@ -18,10 +18,12 @@
#include "load_icon.h"
#include <archive.h>
#include <archive_entry.h>
#include <bit>
#include <cairo.h>
#include <fstream>
#include <librsvg/rsvg.h>
#include <limits>
#include <png.h>
#include <span>
#include <unordered_map>
@@ -44,7 +46,7 @@ std::vector<std::byte> load_file(const std::filesystem::path & filename)
template <typename T>
requires std::is_integral_v<T>
T read(std::span<std::byte> & buffer)
T read(std::span<const std::byte> & buffer)
{
if (sizeof(T) > buffer.size())
throw std::runtime_error{"File truncated"};
@@ -63,27 +65,22 @@ T read(std::span<std::byte> & buffer)
template <typename T>
requires std::is_integral_v<T>
std::span<T> read(std::span<std::byte> & buffer, size_t count)
std::span<const T> read(std::span<const 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};
std::span<const T> value{reinterpret_cast<const 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)
std::vector<wivrn::icon> try_load_svg(const std::vector<std::byte> & data, 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);
@@ -100,15 +97,15 @@ std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size
}
};
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)};
RsvgHandle_ptr handle{rsvg_handle_new_from_data((guint8 *)data.data(), data.size(), &error)};
if (!handle)
throw std::runtime_error{std::string{"Could not open: "} + error->message};
// 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)};
@@ -126,10 +123,7 @@ std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size
};
if (!rsvg_handle_render_document(handle.get(), cr.get(), &viewport, &error))
{
g_printerr("could not render: %s", error->message);
return {};
}
throw std::runtime_error{std::string{"Could not render: "} + error->message};
// Write a PNG file
std::vector<std::byte> png;
@@ -143,154 +137,83 @@ std::vector<std::byte> load_svg(const std::filesystem::path & filename, int size
return CAIRO_STATUS_SUCCESS;
};
if (cairo_surface_write_to_png_stream(surface.get(), cb, &png) != CAIRO_STATUS_SUCCESS)
{
g_printerr("could not write output file");
return {};
}
if (auto status = cairo_surface_write_to_png_stream(surface.get(), cb, &png); status != CAIRO_STATUS_SUCCESS)
throw std::runtime_error{std::string{"Could not write output: "} + cairo_status_to_string(status)};
return png;
return {{size, size, 32, std::move(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)
std::vector<wivrn::icon> try_load_ico(const std::vector<std::byte> & ico)
{
const uint32_t ICO_PNG_MAGIC = 0x474e5089;
try
// See https://gitlab.gnome.org/GNOME/gimp/-/tree/master/plug-ins/file-ico?ref_type=heads
auto 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::span header{ico};
auto reserved = read<uint16_t>(header);
auto resource_type = read<uint16_t>(header);
auto icon_count = read<uint16_t>(header);
if (reserved != 0 or resource_type != 1)
throw std::runtime_error{"Cannot read icon"};
std::vector<wivrn::icon> icons;
for (int i = 0; i < icon_count; i++)
{
auto ico = load_file(filename);
auto width = read<uint8_t>(header);
auto 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);
auto bpp = read<uint16_t>(header);
auto size = read<uint32_t>(header);
auto offset = read<uint32_t>(header);
std::span header{ico};
if (offset + size > ico.size())
throw std::runtime_error{"Cannot read icon"};
auto reserved = read<uint16_t>(header);
auto resource_type = read<uint16_t>(header);
auto icon_count = read<uint16_t>(header);
auto data = std::span{ico}.subspan(offset, size);
if (reserved != 0)
throw std::runtime_error{"Cannot read icon"};
if (planes != 0 and planes != 1)
throw std::runtime_error{"Cannot read icon"};
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)
@@ -308,18 +231,21 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
.format = PNG_FORMAT_BGRA,
};
if (not png_image_begin_read_from_memory(&png_ref, png_data.data(), png_data.size()))
return {};
continue;
// throw std::runtime_error{"Cannot read icon: " + filename.native()};
pixels.resize(PNG_IMAGE_SIZE(png_ref));
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
{
png_image_free(&png_ref);
return {};
continue;
// throw std::runtime_error{"Cannot read icon: " + filename.native()};
}
png_image_free(&png_ref);
return png_data;
// TODO: get bit depth from PNG instead of trusting the ico header
icons.emplace_back(png_ref.width, png_ref.height, bpp, std::move(png_data));
png_image_free(&png_ref);
}
else if (magic == 40)
{
@@ -348,7 +274,7 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
auto w = width;
auto h = height / 2;
std::span<uint8_t> palette; // BGRX
std::span<const uint8_t> palette; // BGRX
if (bpp <= 16)
{
@@ -363,8 +289,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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::span xor_map = read<uint8_t>(data, xor_stride * h);
std::span and_map = read<uint8_t>(data, and_stride * h);
std::vector<uint8_t> dest_buffer;
dest_buffer.resize(h * dst_stride);
@@ -374,8 +300,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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;
const uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
const 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++)
@@ -402,8 +328,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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;
const uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
const 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++)
@@ -430,8 +356,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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;
const uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
const 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++)
@@ -458,8 +384,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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;
const uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
const 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++)
@@ -488,8 +414,8 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
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;
const uint8_t * src_xor_row = xor_map.data() + xor_stride * y;
const 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++)
@@ -512,7 +438,7 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
case 32:
for (int y = 0; y < h; y++)
{
uint8_t * src_xor_row = (uint8_t *)xor_map.data() + xor_stride * y;
const uint8_t * src_xor_row = 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);
@@ -539,47 +465,136 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
else
png_data.resize(png_size);
return png_data;
icons.emplace_back(w, h, bpp, std::move(png_data));
}
}
catch (std::exception & e)
{
}
return {};
return icons;
}
std::unordered_map<std::filesystem::path, std::vector<std::byte>> icon_cache;
std::vector<wivrn::icon> try_load_zip(const std::vector<std::byte> & data)
{
std::unique_ptr<archive, decltype(&archive_read_free)> zip{archive_read_new(), &archive_read_free};
archive_read_support_filter_all(zip.get());
archive_read_support_format_all(zip.get());
if (auto rc = archive_read_open_memory(zip.get(), data.data(), data.size()); rc != ARCHIVE_OK)
throw std::runtime_error{std::string("Cannot open ZIP: ") + archive_error_string(zip.get())};
archive_entry * entry;
std::vector<wivrn::icon> icons;
while (archive_read_next_header(zip.get(), &entry) == ARCHIVE_OK)
{
std::vector<std::byte> buffer;
buffer.resize(archive_entry_size(entry));
if (auto status = archive_read_data(zip.get(), buffer.data(), buffer.size()); status < 0)
continue;
// Try reading the PNG
std::vector<uint8_t> pixels;
png_image png_ref{
.version = PNG_IMAGE_VERSION,
.format = PNG_FORMAT_BGRA,
};
if (not png_image_begin_read_from_memory(&png_ref, buffer.data(), buffer.size()))
{
png_image_free(&png_ref);
continue;
}
pixels.resize(PNG_IMAGE_SIZE(png_ref));
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
{
png_image_free(&png_ref);
continue;
}
// PNG read successfully
icons.emplace_back(png_ref.width, png_ref.height, 32, std::move(buffer)); // TODO: check how to get bit depth
png_image_free(&png_ref);
}
return icons;
}
std::vector<wivrn::icon> try_load_png(const std::vector<std::byte> & png_data)
{
std::vector<wivrn::icon> icons;
// Try reading the PNG
std::vector<uint8_t> pixels;
png_image png_ref{
.version = PNG_IMAGE_VERSION,
.format = PNG_FORMAT_BGRA,
};
if (not png_image_begin_read_from_memory(&png_ref, png_data.data(), png_data.size()))
{
png_image_free(&png_ref);
throw std::runtime_error("");
}
pixels.resize(PNG_IMAGE_SIZE(png_ref));
if (!png_image_finish_read(&png_ref, nullptr, pixels.data(), 0, nullptr))
{
png_image_free(&png_ref);
throw std::runtime_error("");
}
// PNG read successfully
icons.emplace_back(png_ref.width, png_ref.height, 32, std::move(png_data)); // TODO: check how to get bit depth
png_image_free(&png_ref);
return icons;
}
std::unordered_map<std::filesystem::path, std::vector<wivrn::icon>> icon_cache;
} // namespace
const std::vector<std::byte> & wivrn::load_icon(const std::filesystem::path & filename, int size)
const std::vector<wivrn::icon> & wivrn::load_icon(const std::filesystem::path & filename)
{
auto it = icon_cache.find(filename);
if (it != icon_cache.end())
if (it != icon_cache.end() and not it->second.empty())
return it->second;
std::vector<std::byte> icon;
auto data = load_file(filename);
if (filename.extension() == ".svg")
try
{
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, try_load_svg(data, 256)).first->second;
}
catch (...)
{}
return icon_cache.emplace(filename, std::move(icon)).first->second;
try
{
return icon_cache.emplace(filename, try_load_ico(data)).first->second;
}
catch (...)
{}
try
{
return icon_cache.emplace(filename, try_load_zip(data)).first->second;
}
catch (...)
{}
try
{
return icon_cache.emplace(filename, try_load_png(data)).first->second;
}
catch (...)
{}
throw std::runtime_error{"Cannot load icon: " + filename.native()};
}
+11
View File
@@ -17,6 +17,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <cctype>
#include <iterator>
namespace wivrn
{
extern const char git_version[];
@@ -24,4 +27,12 @@ namespace wivrn
extern const char git_commit[];
const char git_commit[] = "@GIT_COMMIT@";
const char* display_version()
{
if (std::size(git_version) > 2 and git_version[0] == 'v' and isdigit(git_version[1]))
return git_version + 1;
else
return git_version;
}
}
+2
View File
@@ -4,4 +4,6 @@ namespace wivrn
{
extern const char git_version[];
extern const char git_commit[];
const char * display_version();
} // namespace wivrn
+1
View File
@@ -30,6 +30,7 @@
#cmakedefine01 WIVRN_USE_PULSEAUDIO
#cmakedefine01 WIVRN_FEATURE_DEBUG_GUI
#cmakedefine01 WIVRN_FEATURE_RENDERDOC
#cmakedefine01 WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
#cmakedefine01 WIVRN_FEATURE_SOLARXR
+1 -3
View File
@@ -42,9 +42,7 @@ bool apk_installer::isTagged() const
QString apk_installer::currentVersion() const
{
if (wivrn::git_version[0] == 'v')
return &wivrn::git_version[1];
return wivrn::git_version;
return wivrn::display_version();
}
QCoro::Task<> apk_installer::doRefreshLatestVersion()
@@ -69,6 +69,30 @@
<content_rating type="oars-1.1" />
<releases>
<release version="25.9" date="2025-09-17">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.9</url>
<description>
<ul>
<li>GPU usage reduction on headset</li>
<li>Disable face and body tracking when not used</li>
<li>Fix black screen on Unreal Engine games</li>
</ul>
</description>
</release>
<release version="25.8" date="2025-08-10">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.8</url>
<description>
<ul>
<li>Add a screen to launch applications when the headset connects</li>
<li>Add a screen with many options during stream, which can be summoned by pressing both thumbsticks</li>
<li>Add XR_EXT_user_presence and XR_EXT_hand_interaction OpenXR extensions</li>
<li>Fix vulkan video encode and performances issues with multiple nvenc encoders on NVIDIA GPUs</li>
<li>Support 10-bit encoding on VAAPI for H.265 and AV1 codecs</li>
<li>Xrizer is now the default OpenVR compatibility layer (may be overriden by distribution packages)</li>
<li>Added Slovak and Turkish translations</li>
</ul>
</description>
</release>
<release version="25.6.1" date="2025-06-29">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.6.1</url>
<description>
+2 -14
View File
@@ -129,15 +129,9 @@ Kirigami.ScrollablePage {
},
{
width: 0.5,
height: 0.75,
height: 1,
offset_x: 0.5,
offset_y: 0
},
{
width: 0.5,
height: 0.25,
offset_x: 0.5,
offset_y: 0.75
}
]
},
@@ -154,15 +148,9 @@ Kirigami.ScrollablePage {
},
{
width: 0.5,
height: 0.75,
height: 1,
offset_x: 0,
offset_y: 0
},
{
width: 0.5,
height: 0.25,
offset_x: 0,
offset_y: 0.75
}
]
},
+1
View File
@@ -29,6 +29,7 @@
#include <cassert>
#include <memory>
#include <nlohmann/json.hpp>
#include <unistd.h>
#if WIVRN_CHECK_CAPSYSNICE
#include <sys/capability.h>
+1 -1
View File
@@ -44,7 +44,7 @@ Bit depth of the video. 8-bit is supported by all encoders. 10-bit is supported
## `encoders`
A list of encoders to use.
Default value: 3 encoders in order 1/8th, 3/8th and 4/8th of the image.
Default value: one encoder per eye
WiVRn has the ability to split the video in blocks that are processed independently, this may use resources more effectively and reduce latency.
All the provided encoders are put into groups, groups are executed concurrently and items within a group are processed sequentially.
+741
View File
@@ -0,0 +1,741 @@
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2024 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
#pragma once
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// Documentation for the API is available at https://renderdoc.org/docs/in_application_api.html
//
#if !defined(RENDERDOC_NO_STDINT)
#include <stdint.h>
#endif
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
#define RENDERDOC_CC __cdecl
#elif defined(__linux__) || defined(__FreeBSD__)
#define RENDERDOC_CC
#elif defined(__APPLE__)
#define RENDERDOC_CC
#else
#error "Unknown platform"
#endif
#ifdef __cplusplus
extern "C" {
#endif
//////////////////////////////////////////////////////////////////////////////////////////////////
// Constants not used directly in below API
// This is a GUID/magic value used for when applications pass a path where shader debug
// information can be found to match up with a stripped shader.
// the define can be used like so: const GUID RENDERDOC_ShaderDebugMagicValue =
// RENDERDOC_ShaderDebugMagicValue_value
#define RENDERDOC_ShaderDebugMagicValue_struct \
{ \
0xeab25520, 0x6670, 0x4865, 0x84, 0x29, 0x6c, 0x8, 0x51, 0x54, 0x00, 0xff \
}
// as an alternative when you want a byte array (assuming x86 endianness):
#define RENDERDOC_ShaderDebugMagicValue_bytearray \
{ \
0x20, 0x55, 0xb2, 0xea, 0x70, 0x66, 0x65, 0x48, 0x84, 0x29, 0x6c, 0x8, 0x51, 0x54, 0x00, 0xff \
}
// truncated version when only a uint64_t is available (e.g. Vulkan tags):
#define RENDERDOC_ShaderDebugMagicValue_truncated 0x48656670eab25520ULL
//////////////////////////////////////////////////////////////////////////////////////////////////
// RenderDoc capture options
//
typedef enum RENDERDOC_CaptureOption
{
// Allow the application to enable vsync
//
// Default - enabled
//
// 1 - The application can enable or disable vsync at will
// 0 - vsync is force disabled
eRENDERDOC_Option_AllowVSync = 0,
// Allow the application to enable fullscreen
//
// Default - enabled
//
// 1 - The application can enable or disable fullscreen at will
// 0 - fullscreen is force disabled
eRENDERDOC_Option_AllowFullscreen = 1,
// Record API debugging events and messages
//
// Default - disabled
//
// 1 - Enable built-in API debugging features and records the results into
// the capture, which is matched up with events on replay
// 0 - no API debugging is forcibly enabled
eRENDERDOC_Option_APIValidation = 2,
eRENDERDOC_Option_DebugDeviceMode = 2, // deprecated name of this enum
// Capture CPU callstacks for API events
//
// Default - disabled
//
// 1 - Enables capturing of callstacks
// 0 - no callstacks are captured
eRENDERDOC_Option_CaptureCallstacks = 3,
// When capturing CPU callstacks, only capture them from actions.
// This option does nothing without the above option being enabled
//
// Default - disabled
//
// 1 - Only captures callstacks for actions.
// Ignored if CaptureCallstacks is disabled
// 0 - Callstacks, if enabled, are captured for every event.
eRENDERDOC_Option_CaptureCallstacksOnlyDraws = 4,
eRENDERDOC_Option_CaptureCallstacksOnlyActions = 4,
// Specify a delay in seconds to wait for a debugger to attach, after
// creating or injecting into a process, before continuing to allow it to run.
//
// 0 indicates no delay, and the process will run immediately after injection
//
// Default - 0 seconds
//
eRENDERDOC_Option_DelayForDebugger = 5,
// Verify buffer access. This includes checking the memory returned by a Map() call to
// detect any out-of-bounds modification, as well as initialising buffers with undefined contents
// to a marker value to catch use of uninitialised memory.
//
// NOTE: This option is only valid for OpenGL and D3D11. Explicit APIs such as D3D12 and Vulkan do
// not do the same kind of interception & checking and undefined contents are really undefined.
//
// Default - disabled
//
// 1 - Verify buffer access
// 0 - No verification is performed, and overwriting bounds may cause crashes or corruption in
// RenderDoc.
eRENDERDOC_Option_VerifyBufferAccess = 6,
// The old name for eRENDERDOC_Option_VerifyBufferAccess was eRENDERDOC_Option_VerifyMapWrites.
// This option now controls the filling of uninitialised buffers with 0xdddddddd which was
// previously always enabled
eRENDERDOC_Option_VerifyMapWrites = eRENDERDOC_Option_VerifyBufferAccess,
// Hooks any system API calls that create child processes, and injects
// RenderDoc into them recursively with the same options.
//
// Default - disabled
//
// 1 - Hooks into spawned child processes
// 0 - Child processes are not hooked by RenderDoc
eRENDERDOC_Option_HookIntoChildren = 7,
// By default RenderDoc only includes resources in the final capture necessary
// for that frame, this allows you to override that behaviour.
//
// Default - disabled
//
// 1 - all live resources at the time of capture are included in the capture
// and available for inspection
// 0 - only the resources referenced by the captured frame are included
eRENDERDOC_Option_RefAllResources = 8,
// **NOTE**: As of RenderDoc v1.1 this option has been deprecated. Setting or
// getting it will be ignored, to allow compatibility with older versions.
// In v1.1 the option acts as if it's always enabled.
//
// By default RenderDoc skips saving initial states for resources where the
// previous contents don't appear to be used, assuming that writes before
// reads indicate previous contents aren't used.
//
// Default - disabled
//
// 1 - initial contents at the start of each captured frame are saved, even if
// they are later overwritten or cleared before being used.
// 0 - unless a read is detected, initial contents will not be saved and will
// appear as black or empty data.
eRENDERDOC_Option_SaveAllInitials = 9,
// In APIs that allow for the recording of command lists to be replayed later,
// RenderDoc may choose to not capture command lists before a frame capture is
// triggered, to reduce overheads. This means any command lists recorded once
// and replayed many times will not be available and may cause a failure to
// capture.
//
// NOTE: This is only true for APIs where multithreading is difficult or
// discouraged. Newer APIs like Vulkan and D3D12 will ignore this option
// and always capture all command lists since the API is heavily oriented
// around it and the overheads have been reduced by API design.
//
// 1 - All command lists are captured from the start of the application
// 0 - Command lists are only captured if their recording begins during
// the period when a frame capture is in progress.
eRENDERDOC_Option_CaptureAllCmdLists = 10,
// Mute API debugging output when the API validation mode option is enabled
//
// Default - enabled
//
// 1 - Mute any API debug messages from being displayed or passed through
// 0 - API debugging is displayed as normal
eRENDERDOC_Option_DebugOutputMute = 11,
// Option to allow vendor extensions to be used even when they may be
// incompatible with RenderDoc and cause corrupted replays or crashes.
//
// Default - inactive
//
// No values are documented, this option should only be used when absolutely
// necessary as directed by a RenderDoc developer.
eRENDERDOC_Option_AllowUnsupportedVendorExtensions = 12,
// Define a soft memory limit which some APIs may aim to keep overhead under where
// possible. Anything above this limit will where possible be saved directly to disk during
// capture.
// This will cause increased disk space use (which may cause a capture to fail if disk space is
// exhausted) as well as slower capture times.
//
// Not all memory allocations may be deferred like this so it is not a guarantee of a memory
// limit.
//
// Units are in MBs, suggested values would range from 200MB to 1000MB.
//
// Default - 0 Megabytes
eRENDERDOC_Option_SoftMemoryLimit = 13,
} RENDERDOC_CaptureOption;
// Sets an option that controls how RenderDoc behaves on capture.
//
// Returns 1 if the option and value are valid
// Returns 0 if either is invalid and the option is unchanged
typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionU32)(RENDERDOC_CaptureOption opt, uint32_t val);
typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionF32)(RENDERDOC_CaptureOption opt, float val);
// Gets the current value of an option as a uint32_t
//
// If the option is invalid, 0xffffffff is returned
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionU32)(RENDERDOC_CaptureOption opt);
// Gets the current value of an option as a float
//
// If the option is invalid, -FLT_MAX is returned
typedef float(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionF32)(RENDERDOC_CaptureOption opt);
typedef enum RENDERDOC_InputButton
{
// '0' - '9' matches ASCII values
eRENDERDOC_Key_0 = 0x30,
eRENDERDOC_Key_1 = 0x31,
eRENDERDOC_Key_2 = 0x32,
eRENDERDOC_Key_3 = 0x33,
eRENDERDOC_Key_4 = 0x34,
eRENDERDOC_Key_5 = 0x35,
eRENDERDOC_Key_6 = 0x36,
eRENDERDOC_Key_7 = 0x37,
eRENDERDOC_Key_8 = 0x38,
eRENDERDOC_Key_9 = 0x39,
// 'A' - 'Z' matches ASCII values
eRENDERDOC_Key_A = 0x41,
eRENDERDOC_Key_B = 0x42,
eRENDERDOC_Key_C = 0x43,
eRENDERDOC_Key_D = 0x44,
eRENDERDOC_Key_E = 0x45,
eRENDERDOC_Key_F = 0x46,
eRENDERDOC_Key_G = 0x47,
eRENDERDOC_Key_H = 0x48,
eRENDERDOC_Key_I = 0x49,
eRENDERDOC_Key_J = 0x4A,
eRENDERDOC_Key_K = 0x4B,
eRENDERDOC_Key_L = 0x4C,
eRENDERDOC_Key_M = 0x4D,
eRENDERDOC_Key_N = 0x4E,
eRENDERDOC_Key_O = 0x4F,
eRENDERDOC_Key_P = 0x50,
eRENDERDOC_Key_Q = 0x51,
eRENDERDOC_Key_R = 0x52,
eRENDERDOC_Key_S = 0x53,
eRENDERDOC_Key_T = 0x54,
eRENDERDOC_Key_U = 0x55,
eRENDERDOC_Key_V = 0x56,
eRENDERDOC_Key_W = 0x57,
eRENDERDOC_Key_X = 0x58,
eRENDERDOC_Key_Y = 0x59,
eRENDERDOC_Key_Z = 0x5A,
// leave the rest of the ASCII range free
// in case we want to use it later
eRENDERDOC_Key_NonPrintable = 0x100,
eRENDERDOC_Key_Divide,
eRENDERDOC_Key_Multiply,
eRENDERDOC_Key_Subtract,
eRENDERDOC_Key_Plus,
eRENDERDOC_Key_F1,
eRENDERDOC_Key_F2,
eRENDERDOC_Key_F3,
eRENDERDOC_Key_F4,
eRENDERDOC_Key_F5,
eRENDERDOC_Key_F6,
eRENDERDOC_Key_F7,
eRENDERDOC_Key_F8,
eRENDERDOC_Key_F9,
eRENDERDOC_Key_F10,
eRENDERDOC_Key_F11,
eRENDERDOC_Key_F12,
eRENDERDOC_Key_Home,
eRENDERDOC_Key_End,
eRENDERDOC_Key_Insert,
eRENDERDOC_Key_Delete,
eRENDERDOC_Key_PageUp,
eRENDERDOC_Key_PageDn,
eRENDERDOC_Key_Backspace,
eRENDERDOC_Key_Tab,
eRENDERDOC_Key_PrtScrn,
eRENDERDOC_Key_Pause,
eRENDERDOC_Key_Max,
} RENDERDOC_InputButton;
// Sets which key or keys can be used to toggle focus between multiple windows
//
// If keys is NULL or num is 0, toggle keys will be disabled
typedef void(RENDERDOC_CC *pRENDERDOC_SetFocusToggleKeys)(RENDERDOC_InputButton *keys, int num);
// Sets which key or keys can be used to capture the next frame
//
// If keys is NULL or num is 0, captures keys will be disabled
typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureKeys)(RENDERDOC_InputButton *keys, int num);
typedef enum RENDERDOC_OverlayBits
{
// This single bit controls whether the overlay is enabled or disabled globally
eRENDERDOC_Overlay_Enabled = 0x1,
// Show the average framerate over several seconds as well as min/max
eRENDERDOC_Overlay_FrameRate = 0x2,
// Show the current frame number
eRENDERDOC_Overlay_FrameNumber = 0x4,
// Show a list of recent captures, and how many captures have been made
eRENDERDOC_Overlay_CaptureList = 0x8,
// Default values for the overlay mask
eRENDERDOC_Overlay_Default = (eRENDERDOC_Overlay_Enabled | eRENDERDOC_Overlay_FrameRate |
eRENDERDOC_Overlay_FrameNumber | eRENDERDOC_Overlay_CaptureList),
// Enable all bits
eRENDERDOC_Overlay_All = ~0U,
// Disable all bits
eRENDERDOC_Overlay_None = 0,
} RENDERDOC_OverlayBits;
// returns the overlay bits that have been set
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetOverlayBits)();
// sets the overlay bits with an and & or mask
typedef void(RENDERDOC_CC *pRENDERDOC_MaskOverlayBits)(uint32_t And, uint32_t Or);
// this function will attempt to remove RenderDoc's hooks in the application.
//
// Note: that this can only work correctly if done immediately after
// the module is loaded, before any API work happens. RenderDoc will remove its
// injected hooks and shut down. Behaviour is undefined if this is called
// after any API functions have been called, and there is still no guarantee of
// success.
typedef void(RENDERDOC_CC *pRENDERDOC_RemoveHooks)();
// DEPRECATED: compatibility for code compiled against pre-1.4.1 headers.
typedef pRENDERDOC_RemoveHooks pRENDERDOC_Shutdown;
// This function will unload RenderDoc's crash handler.
//
// If you use your own crash handler and don't want RenderDoc's handler to
// intercede, you can call this function to unload it and any unhandled
// exceptions will pass to the next handler.
typedef void(RENDERDOC_CC *pRENDERDOC_UnloadCrashHandler)();
// Sets the capture file path template
//
// pathtemplate is a UTF-8 string that gives a template for how captures will be named
// and where they will be saved.
//
// Any extension is stripped off the path, and captures are saved in the directory
// specified, and named with the filename and the frame number appended. If the
// directory does not exist it will be created, including any parent directories.
//
// If pathtemplate is NULL, the template will remain unchanged
//
// Example:
//
// SetCaptureFilePathTemplate("my_captures/example");
//
// Capture #1 -> my_captures/example_frame123.rdc
// Capture #2 -> my_captures/example_frame456.rdc
typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureFilePathTemplate)(const char *pathtemplate);
// returns the current capture path template, see SetCaptureFileTemplate above, as a UTF-8 string
typedef const char *(RENDERDOC_CC *pRENDERDOC_GetCaptureFilePathTemplate)();
// DEPRECATED: compatibility for code compiled against pre-1.1.2 headers.
typedef pRENDERDOC_SetCaptureFilePathTemplate pRENDERDOC_SetLogFilePathTemplate;
typedef pRENDERDOC_GetCaptureFilePathTemplate pRENDERDOC_GetLogFilePathTemplate;
// returns the number of captures that have been made
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetNumCaptures)();
// This function returns the details of a capture, by index. New captures are added
// to the end of the list.
//
// filename will be filled with the absolute path to the capture file, as a UTF-8 string
// pathlength will be written with the length in bytes of the filename string
// timestamp will be written with the time of the capture, in seconds since the Unix epoch
//
// Any of the parameters can be NULL and they'll be skipped.
//
// The function will return 1 if the capture index is valid, or 0 if the index is invalid
// If the index is invalid, the values will be unchanged
//
// Note: when captures are deleted in the UI they will remain in this list, so the
// capture path may not exist anymore.
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetCapture)(uint32_t idx, char *filename,
uint32_t *pathlength, uint64_t *timestamp);
// Sets the comments associated with a capture file. These comments are displayed in the
// UI program when opening.
//
// filePath should be a path to the capture file to add comments to. If set to NULL or ""
// the most recent capture file created made will be used instead.
// comments should be a NULL-terminated UTF-8 string to add as comments.
//
// Any existing comments will be overwritten.
typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureFileComments)(const char *filePath,
const char *comments);
// returns 1 if the RenderDoc UI is connected to this application, 0 otherwise
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_IsTargetControlConnected)();
// DEPRECATED: compatibility for code compiled against pre-1.1.1 headers.
// This was renamed to IsTargetControlConnected in API 1.1.1, the old typedef is kept here for
// backwards compatibility with old code, it is castable either way since it's ABI compatible
// as the same function pointer type.
typedef pRENDERDOC_IsTargetControlConnected pRENDERDOC_IsRemoteAccessConnected;
// This function will launch the Replay UI associated with the RenderDoc library injected
// into the running application.
//
// if connectTargetControl is 1, the Replay UI will be launched with a command line parameter
// to connect to this application
// cmdline is the rest of the command line, as a UTF-8 string. E.g. a captures to open
// if cmdline is NULL, the command line will be empty.
//
// returns the PID of the replay UI if successful, 0 if not successful.
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_LaunchReplayUI)(uint32_t connectTargetControl,
const char *cmdline);
// RenderDoc can return a higher version than requested if it's backwards compatible,
// this function returns the actual version returned. If a parameter is NULL, it will be
// ignored and the others will be filled out.
typedef void(RENDERDOC_CC *pRENDERDOC_GetAPIVersion)(int *major, int *minor, int *patch);
// Requests that the replay UI show itself (if hidden or not the current top window). This can be
// used in conjunction with IsTargetControlConnected and LaunchReplayUI to intelligently handle
// showing the UI after making a capture.
//
// This will return 1 if the request was successfully passed on, though it's not guaranteed that
// the UI will be on top in all cases depending on OS rules. It will return 0 if there is no current
// target control connection to make such a request, or if there was another error
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_ShowReplayUI)();
//////////////////////////////////////////////////////////////////////////
// Capturing functions
//
// A device pointer is a pointer to the API's root handle.
//
// This would be an ID3D11Device, HGLRC/GLXContext, ID3D12Device, etc
typedef void *RENDERDOC_DevicePointer;
// A window handle is the OS's native window handle
//
// This would be an HWND, GLXDrawable, etc
typedef void *RENDERDOC_WindowHandle;
// A helper macro for Vulkan, where the device handle cannot be used directly.
//
// Passing the VkInstance to this macro will return the RENDERDOC_DevicePointer to use.
//
// Specifically, the value needed is the dispatch table pointer, which sits as the first
// pointer-sized object in the memory pointed to by the VkInstance. Thus we cast to a void** and
// indirect once.
#define RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst) (*((void **)(inst)))
// This sets the RenderDoc in-app overlay in the API/window pair as 'active' and it will
// respond to keypresses. Neither parameter can be NULL
typedef void(RENDERDOC_CC *pRENDERDOC_SetActiveWindow)(RENDERDOC_DevicePointer device,
RENDERDOC_WindowHandle wndHandle);
// capture the next frame on whichever window and API is currently considered active
typedef void(RENDERDOC_CC *pRENDERDOC_TriggerCapture)();
// capture the next N frames on whichever window and API is currently considered active
typedef void(RENDERDOC_CC *pRENDERDOC_TriggerMultiFrameCapture)(uint32_t numFrames);
// When choosing either a device pointer or a window handle to capture, you can pass NULL.
// Passing NULL specifies a 'wildcard' match against anything. This allows you to specify
// any API rendering to a specific window, or a specific API instance rendering to any window,
// or in the simplest case of one window and one API, you can just pass NULL for both.
//
// In either case, if there are two or more possible matching (device,window) pairs it
// is undefined which one will be captured.
//
// Note: for headless rendering you can pass NULL for the window handle and either specify
// a device pointer or leave it NULL as above.
// Immediately starts capturing API calls on the specified device pointer and window handle.
//
// If there is no matching thing to capture (e.g. no supported API has been initialised),
// this will do nothing.
//
// The results are undefined (including crashes) if two captures are started overlapping,
// even on separate devices and/oror windows.
typedef void(RENDERDOC_CC *pRENDERDOC_StartFrameCapture)(RENDERDOC_DevicePointer device,
RENDERDOC_WindowHandle wndHandle);
// Returns whether or not a frame capture is currently ongoing anywhere.
//
// This will return 1 if a capture is ongoing, and 0 if there is no capture running
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_IsFrameCapturing)();
// Ends capturing immediately.
//
// This will return 1 if the capture succeeded, and 0 if there was an error capturing.
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_EndFrameCapture)(RENDERDOC_DevicePointer device,
RENDERDOC_WindowHandle wndHandle);
// Ends capturing immediately and discard any data stored without saving to disk.
//
// This will return 1 if the capture was discarded, and 0 if there was an error or no capture
// was in progress
typedef uint32_t(RENDERDOC_CC *pRENDERDOC_DiscardFrameCapture)(RENDERDOC_DevicePointer device,
RENDERDOC_WindowHandle wndHandle);
// Only valid to be called between a call to StartFrameCapture and EndFrameCapture. Gives a custom
// title to the capture produced which will be displayed in the UI.
//
// If multiple captures are ongoing, this title will be applied to the first capture to end after
// this call. The second capture to end will have no title, unless this function is called again.
//
// Calling this function has no effect if no capture is currently running, and if it is called
// multiple times only the last title will be used.
typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureTitle)(const char *title);
//////////////////////////////////////////////////////////////////////////////////////////////////
// RenderDoc API versions
//
// RenderDoc uses semantic versioning (http://semver.org/).
//
// MAJOR version is incremented when incompatible API changes happen.
// MINOR version is incremented when functionality is added in a backwards-compatible manner.
// PATCH version is incremented when backwards-compatible bug fixes happen.
//
// Note that this means the API returned can be higher than the one you might have requested.
// e.g. if you are running against a newer RenderDoc that supports 1.0.1, it will be returned
// instead of 1.0.0. You can check this with the GetAPIVersion entry point
typedef enum RENDERDOC_Version
{
eRENDERDOC_API_Version_1_0_0 = 10000, // RENDERDOC_API_1_0_0 = 1 00 00
eRENDERDOC_API_Version_1_0_1 = 10001, // RENDERDOC_API_1_0_1 = 1 00 01
eRENDERDOC_API_Version_1_0_2 = 10002, // RENDERDOC_API_1_0_2 = 1 00 02
eRENDERDOC_API_Version_1_1_0 = 10100, // RENDERDOC_API_1_1_0 = 1 01 00
eRENDERDOC_API_Version_1_1_1 = 10101, // RENDERDOC_API_1_1_1 = 1 01 01
eRENDERDOC_API_Version_1_1_2 = 10102, // RENDERDOC_API_1_1_2 = 1 01 02
eRENDERDOC_API_Version_1_2_0 = 10200, // RENDERDOC_API_1_2_0 = 1 02 00
eRENDERDOC_API_Version_1_3_0 = 10300, // RENDERDOC_API_1_3_0 = 1 03 00
eRENDERDOC_API_Version_1_4_0 = 10400, // RENDERDOC_API_1_4_0 = 1 04 00
eRENDERDOC_API_Version_1_4_1 = 10401, // RENDERDOC_API_1_4_1 = 1 04 01
eRENDERDOC_API_Version_1_4_2 = 10402, // RENDERDOC_API_1_4_2 = 1 04 02
eRENDERDOC_API_Version_1_5_0 = 10500, // RENDERDOC_API_1_5_0 = 1 05 00
eRENDERDOC_API_Version_1_6_0 = 10600, // RENDERDOC_API_1_6_0 = 1 06 00
} RENDERDOC_Version;
// API version changelog:
//
// 1.0.0 - initial release
// 1.0.1 - Bugfix: IsFrameCapturing() was returning false for captures that were triggered
// by keypress or TriggerCapture, instead of Start/EndFrameCapture.
// 1.0.2 - Refactor: Renamed eRENDERDOC_Option_DebugDeviceMode to eRENDERDOC_Option_APIValidation
// 1.1.0 - Add feature: TriggerMultiFrameCapture(). Backwards compatible with 1.0.x since the new
// function pointer is added to the end of the struct, the original layout is identical
// 1.1.1 - Refactor: Renamed remote access to target control (to better disambiguate from remote
// replay/remote server concept in replay UI)
// 1.1.2 - Refactor: Renamed "log file" in function names to just capture, to clarify that these
// are captures and not debug logging files. This is the first API version in the v1.0
// branch.
// 1.2.0 - Added feature: SetCaptureFileComments() to add comments to a capture file that will be
// displayed in the UI program on load.
// 1.3.0 - Added feature: New capture option eRENDERDOC_Option_AllowUnsupportedVendorExtensions
// which allows users to opt-in to allowing unsupported vendor extensions to function.
// Should be used at the user's own risk.
// Refactor: Renamed eRENDERDOC_Option_VerifyMapWrites to
// eRENDERDOC_Option_VerifyBufferAccess, which now also controls initialisation to
// 0xdddddddd of uninitialised buffer contents.
// 1.4.0 - Added feature: DiscardFrameCapture() to discard a frame capture in progress and stop
// capturing without saving anything to disk.
// 1.4.1 - Refactor: Renamed Shutdown to RemoveHooks to better clarify what is happening
// 1.4.2 - Refactor: Renamed 'draws' to 'actions' in callstack capture option.
// 1.5.0 - Added feature: ShowReplayUI() to request that the replay UI show itself if connected
// 1.6.0 - Added feature: SetCaptureTitle() which can be used to set a title for a
// capture made with StartFrameCapture() or EndFrameCapture()
typedef struct RENDERDOC_API_1_6_0
{
pRENDERDOC_GetAPIVersion GetAPIVersion;
pRENDERDOC_SetCaptureOptionU32 SetCaptureOptionU32;
pRENDERDOC_SetCaptureOptionF32 SetCaptureOptionF32;
pRENDERDOC_GetCaptureOptionU32 GetCaptureOptionU32;
pRENDERDOC_GetCaptureOptionF32 GetCaptureOptionF32;
pRENDERDOC_SetFocusToggleKeys SetFocusToggleKeys;
pRENDERDOC_SetCaptureKeys SetCaptureKeys;
pRENDERDOC_GetOverlayBits GetOverlayBits;
pRENDERDOC_MaskOverlayBits MaskOverlayBits;
// Shutdown was renamed to RemoveHooks in 1.4.1.
// These unions allow old code to continue compiling without changes
union
{
pRENDERDOC_Shutdown Shutdown;
pRENDERDOC_RemoveHooks RemoveHooks;
};
pRENDERDOC_UnloadCrashHandler UnloadCrashHandler;
// Get/SetLogFilePathTemplate was renamed to Get/SetCaptureFilePathTemplate in 1.1.2.
// These unions allow old code to continue compiling without changes
union
{
// deprecated name
pRENDERDOC_SetLogFilePathTemplate SetLogFilePathTemplate;
// current name
pRENDERDOC_SetCaptureFilePathTemplate SetCaptureFilePathTemplate;
};
union
{
// deprecated name
pRENDERDOC_GetLogFilePathTemplate GetLogFilePathTemplate;
// current name
pRENDERDOC_GetCaptureFilePathTemplate GetCaptureFilePathTemplate;
};
pRENDERDOC_GetNumCaptures GetNumCaptures;
pRENDERDOC_GetCapture GetCapture;
pRENDERDOC_TriggerCapture TriggerCapture;
// IsRemoteAccessConnected was renamed to IsTargetControlConnected in 1.1.1.
// This union allows old code to continue compiling without changes
union
{
// deprecated name
pRENDERDOC_IsRemoteAccessConnected IsRemoteAccessConnected;
// current name
pRENDERDOC_IsTargetControlConnected IsTargetControlConnected;
};
pRENDERDOC_LaunchReplayUI LaunchReplayUI;
pRENDERDOC_SetActiveWindow SetActiveWindow;
pRENDERDOC_StartFrameCapture StartFrameCapture;
pRENDERDOC_IsFrameCapturing IsFrameCapturing;
pRENDERDOC_EndFrameCapture EndFrameCapture;
// new function in 1.1.0
pRENDERDOC_TriggerMultiFrameCapture TriggerMultiFrameCapture;
// new function in 1.2.0
pRENDERDOC_SetCaptureFileComments SetCaptureFileComments;
// new function in 1.4.0
pRENDERDOC_DiscardFrameCapture DiscardFrameCapture;
// new function in 1.5.0
pRENDERDOC_ShowReplayUI ShowReplayUI;
// new function in 1.6.0
pRENDERDOC_SetCaptureTitle SetCaptureTitle;
} RENDERDOC_API_1_6_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_1;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_2;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_1;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_2;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_2_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_3_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_0;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_1;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_2;
typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_5_0;
//////////////////////////////////////////////////////////////////////////////////////////////////
// RenderDoc API entry point
//
// This entry point can be obtained via GetProcAddress/dlsym if RenderDoc is available.
//
// The name is the same as the typedef - "RENDERDOC_GetAPI"
//
// This function is not thread safe, and should not be called on multiple threads at once.
// Ideally, call this once as early as possible in your application's startup, before doing
// any API work, since some configuration functionality etc has to be done also before
// initialising any APIs.
//
// Parameters:
// version is a single value from the RENDERDOC_Version above.
//
// outAPIPointers will be filled out with a pointer to the corresponding struct of function
// pointers.
//
// Returns:
// 1 - if the outAPIPointers has been filled with a pointer to the API struct requested
// 0 - if the requested version is not supported or the arguments are invalid.
//
typedef int(RENDERDOC_CC *pRENDERDOC_GetAPI)(RENDERDOC_Version version, void **outAPIPointers);
#ifdef __cplusplus
} // extern "C"
#endif
+5 -1
View File
@@ -20,6 +20,9 @@
pkgs.librsvg
pkgs.libpng
];
extraNativeBuildInputs = [
pkgs.util-linux
];
package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
src = ./.;
@@ -40,11 +43,12 @@
# Keep in sync with CMakeLists.txt monado rev
rev = builtins.readFile ./monado-rev;
# Nix will output the correct hash when it doesn't match
hash = "sha256-4P/ejRAitrYn8hXZPaDOcx27utfm+aVLjtqL6JxZYAg=";
hash = "sha256-asb4uwuu+UEgznlOoAka+xG6Zj68lPHWiPN072LpTQQ=";
};
};
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs;
dontWrapQtApps = true;
+7 -12
View File
@@ -25,17 +25,16 @@ finish-args:
- --system-talk-name=org.freedesktop.hostname1
# List applications from $XDG_DATA_DIRS
- --filesystem=host-os:ro
- --filesystem=xdg-data:ro
# List flatpak Steam games
- --filesystem=xdg-data/applications:ro
# List Steam games
- --filesystem=xdg-data/Steam:ro
- --filesystem=~/.steam:ro
- --filesystem=~/.var/app/com.valvesoftware.Steam:ro
# Pipewire
- --filesystem=xdg-run/pipewire-0
# Set the active OpenXR / OpenVR runtime
- --filesystem=xdg-config/openxr:create
- --filesystem=xdg-config/openvr:create
# SlimeVR
- --filesystem=xdg-run/SlimeVRInput
- --filesystem=xdg-run/SlimeVRRpc
# Let outside application access the WiVRn socket
- --filesystem=xdg-run/wivrn:create
- --own-name=io.github.wivrn.Server
@@ -282,7 +281,7 @@ modules:
sources:
- type: git
url: https://gitlab.com/znixian/OpenOVR.git
tag: 538639b86c5c71223f11040b09479e5c0a83078c
tag: cff07db75c4823afe93ed7027b03d5f7bc86f164
- name: xrizer
buildsystem: simple
@@ -354,10 +353,6 @@ modules:
- WIVRN_SRC1
WIVRN_SRC2
WIVRN_SRC3
- type: archive
url: BOOSTPFR_URL
dest: deps/boostpfr-src
sha256: BOOSTPFR_SHA256
- type: git
url: https://gitlab.freedesktop.org/monado/monado
tag: MONADO_COMMIT
@@ -365,7 +360,6 @@ modules:
- type: shell
commands:
- cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/*
- cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch
- name: wivrn
buildsystem: cmake-ninja
@@ -380,7 +374,8 @@ modules:
- -DWIVRN_USE_NVENC=ON
- -DWIVRN_USE_VULKAN_ENCODE=ON
- -DWIVRN_USE_PULSEAUDIO=OFF
- -DWIVRN_FEATURE_SOLARXR=ON
- -DWIVRN_USE_PIPEWIRE=ON
- -DWIVRN_USE_SYSTEM_BOOST=OFF
- -DWIVRN_WERROR=ON
- -DWIVRN_CHECK_CAPSYSNICE=OFF # Capabilities don't work inside flatpak
- -DFETCHCONTENT_FULLY_DISCONNECTED=ON
+58 -58
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 09:40+0200\n"
"POT-Creation-Date: 2025-09-12 14:54+0200\n"
"PO-Revision-Date: 2025-08-06 19:20+0200\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish\n"
@@ -86,7 +86,7 @@ msgid "No precompiled APK is available for this version."
msgstr "No hay ningún APK precompilado disponible para esta versión."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADB no está instalado."
@@ -135,7 +135,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "Visores"
@@ -180,7 +180,7 @@ msgstr "Renombrar"
#: 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
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "Cancelar"
@@ -312,7 +312,7 @@ msgstr "Emparejando"
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "Conectar por USB"
@@ -339,22 +339,22 @@ msgstr "Aplicación"
msgid "Steam information"
msgstr "Información de Steam"
#: dashboard/qml/Main.qml:325
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "Asistente"
#: dashboard/qml/Main.qml:332
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "Instalar aplicación"
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Solucionar problemas"
@@ -460,19 +460,19 @@ msgctxt "encoder preset"
msgid "Default preset"
msgstr "Preajuste predeterminado"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Preajuste de baja latencia"
#: dashboard/qml/SettingsPage.qml:170
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Preajuste seguro"
#: dashboard/qml/SettingsPage.qml:193
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
@@ -482,84 +482,84 @@ msgstr ""
"clic cerca de un borde.\n"
"Arrastra un borde para cambiar el tamaño o eliminar codificadores."
#: dashboard/qml/SettingsPage.qml:220
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "Codificador"
#: dashboard/qml/SettingsPage.qml:229
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Automático"
#: dashboard/qml/SettingsPage.qml:234
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPUs)"
#: dashboard/qml/SettingsPage.qml:239
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD y Intel GPUs)"
#: dashboard/qml/SettingsPage.qml:244
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (codificación por software)"
#: dashboard/qml/SettingsPage.qml:249
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:272
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Auto\" utilizará aceleración por hardware si está disponible"
#: dashboard/qml/SettingsPage.qml:278
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "Códec"
#: dashboard/qml/SettingsPage.qml:285
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Automático"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "Opciones avanzadas"
#: dashboard/qml/SettingsPage.qml:325
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "Habilitar ventana de depuración"
#: dashboard/qml/SettingsPage.qml:332
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "Habilitar soporte para dispositivos de seguimiento a través de SteamVR"
#: dashboard/qml/SettingsPage.qml:335
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -573,44 +573,44 @@ msgstr ""
"Los dispositivos deben de estar encendidos antes de conectarte a WiVRn.\n"
"Una herramienta externa como motoc será necesaria para la calibración."
#: dashboard/qml/SettingsPage.qml:343
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "Ruta de adb personalizada"
#: dashboard/qml/SettingsPage.qml:354
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "Ruta de adb:"
#: dashboard/qml/SettingsPage.qml:363
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Explorar"
#: dashboard/qml/SettingsPage.qml:373
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "Por defecto"
#: dashboard/qml/SettingsPage.qml:387
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SettingsPage.qml:392
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "Deshabilitado"
#: dashboard/qml/SettingsPage.qml:400
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "Librería de compatibilidad para OpenVR:"
#: dashboard/qml/SettingsPage.qml:426
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Ruta de librería, excluyendo bin/linux64/vrclient.so"
@@ -647,7 +647,7 @@ msgstr "Comando de lanzamiento de Steam copiado"
msgid "I cannot find the WiVRn app on my headset"
msgstr "No puedo encontrar la aplicación WiVRn en mi visor"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -661,7 +661,7 @@ msgstr ""
msgid "I cannot see my computer in the WiVRn app"
msgstr "No puedo ver mi computadora en la aplicación WiVRn"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
@@ -715,7 +715,7 @@ msgstr "El emparejamiento está actualmente desactivado."
msgid "I have no sound on my headset"
msgstr "No tengo sonido en mi visor"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -740,9 +740,9 @@ msgid "Getting started"
msgstr "Comenzando"
#: 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
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "Atrás"
@@ -762,8 +762,8 @@ msgstr ""
"computadora."
#: 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
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "Siguiente"
@@ -861,12 +861,12 @@ msgstr ""
"La aplicación que elijas se iniciará automáticamente cuando conectes tu "
"visor."
#: dashboard/qml/WizardPage.qml:300
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "Información importante"
#: dashboard/qml/WizardPage.qml:307
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -875,12 +875,12 @@ msgstr ""
"WiVRn sustituye completamente a SteamVR, no deberías iniciar SteamVR "
"mientras WiVRn esté en ejecución"
#: dashboard/qml/WizardPage.qml:358
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Inicia la aplicación WiVRn en tu visor"
#: dashboard/qml/WizardPage.qml:363
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -889,32 +889,32 @@ msgstr ""
"Para conectarte por WiFi, inicia la aplicación WiVRn en tu visor, conéctate "
"a \"%1\" y ingresa el PIN \"%2\"."
#: dashboard/qml/WizardPage.qml:370
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Para conectarte por USB, haz clic en \"Conectar por USB\"."
#: dashboard/qml/WizardPage.qml:383
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "Solución de problemas"
#: dashboard/qml/WizardPage.qml:405
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "Saltar"
#: dashboard/qml/WizardPage.qml:425
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "Conexión establecida"
#: dashboard/qml/WizardPage.qml:430
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "Tu visor está ahora conectado."
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
@@ -923,22 +923,22 @@ msgstr ""
"Para conectar otro visor, asegúrate de que el emparejamiento esté habilitado "
"en el panel antes de conectar."
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "Finalizar"
#: dashboard/qml/WizardPage.qml:472
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "Terminado"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+172 -155
View File
@@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 15:49+0200\n"
"PO-Revision-Date: 2025-08-02 00:41+0200\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-18 17:35+0200\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish\n"
"Language: es\n"
@@ -16,7 +16,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Formato de swapchain no compatible"
@@ -43,97 +43,97 @@ msgstr "No se puede conectar a {} ({}): {}"
msgid "Waiting for connection"
msgstr "Esperando conexión"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:232
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Calidad"
#: client/scenes/lobby_gui.cpp:234
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Cerrar"
#: client/scenes/lobby_gui.cpp:268
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Conexión"
#: client/scenes/lobby_gui.cpp:270
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Conexión a {}"
#: client/scenes/lobby_gui.cpp:300
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:322
#: client/scenes/lobby_gui.cpp:326
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:393
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Conectado al servidor WiVRn"
#: client/scenes/lobby_gui.cpp:395
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connectado a {}"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:409
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:414
#: client/scenes/lobby_gui.cpp:421
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:416
#: client/scenes/lobby_gui.cpp:423
#, 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:522
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nombre"
#: client/scenes/lobby_gui.cpp:533
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Dirección"
#: client/scenes/lobby_gui.cpp:542
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Puerto"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:557
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:571
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Guardar"
#: client/scenes/lobby_gui.cpp:624
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -141,32 +141,45 @@ msgstr ""
"Inicia un servidor WiVRn en tu\n"
"red local"
#: client/scenes/lobby_gui.cpp:656
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Conexión automática"
#: client/scenes/lobby_gui.cpp:682
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versión del servidor incompatible"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Servidor no disponible"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Español"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Idioma"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Idioma del sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automática"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,61 +188,61 @@ msgstr ""
"aplicación.\n"
"Puede causar parpadeos cuando ocurre un cambio."
#: client/scenes/lobby_gui.cpp:806
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Tasa mínima de refresco"
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Escala de resolución"
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por ojo"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:905
#, 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:850
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:859
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Entrada de audio sin procesar"
#: client/scenes/lobby_gui.cpp:865
#: client/scenes/lobby_gui.cpp:926
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:872
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Esta función no es compatible con tu visor"
#: client/scenes/lobby_gui.cpp:884
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:896
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:909
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:925
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -240,11 +253,11 @@ msgstr ""
"si no el seguimiento corporal será medido por la posición de los controles y "
"el visor"
#: client/scenes/lobby_gui.cpp:938
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Habilitar seguimiento de cintura para abajo"
#: client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -255,11 +268,11 @@ msgstr ""
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
"movimiento de Quest"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:953
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -267,19 +280,31 @@ 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:961
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Activar video passthrough en el lobby"
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Habilitar ventana mientras se juega"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Permite que la ventana de configuración se muestre mientras se juega.\n"
"Si se habilita, la ventana se activará al presionar ambos joysticks."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-procesamiento de OpenXR"
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -288,11 +313,11 @@ msgstr ""
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -301,179 +326,133 @@ msgstr ""
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:1048
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 ""
"En este visor, está opción ha sido reemplazada totalmente por la nativa "
"Opción de enfoque arriba.\n"
"Sólo habilita esto si sabes lo que estás haciendo."
#: client/scenes/lobby_gui.cpp:1050
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:1068
msgid "Upscaling factor"
msgstr "Factor de sobreescalado"
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "Usar la dirección del borde"
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "Añade un coste de rendimiento adicional"
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "Umbral del borde"
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomendado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "Nitidez del borde"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1214
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1228
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1271
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1276
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1281
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1286
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1294
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1318
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1325
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Seguimiento de manos activado"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Seguimiento de manos desactivado"
#: client/scenes/lobby_gui.cpp:1678
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1679
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1692
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1703
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Seguimiento corporal está habilitado"
#: client/scenes/lobby_gui.cpp:1704
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Seguimiento corporal está deshabilitado"
#: client/scenes/lobby_gui.cpp:1720
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1971
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1975
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1980
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:1986
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Salir"
#: client/scenes/lobby_gui.cpp:2003
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Pulsa el botón de agarre o pon tu palma apuntando hacia arriba\n"
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
"para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:2005
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pulsa el botón de agarre para mover la ventana principal"
@@ -489,11 +468,11 @@ msgstr "Copia"
msgid "Network"
msgstr "Red"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Descargar"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Subir"
@@ -534,66 +513,66 @@ msgstr "Mostrado"
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latencia estimada de movimiento a fotones: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
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
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
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
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latencia entre el movimiento y la imagen mostrada"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Reajustar el centro de la fóvea"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} °"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distancia {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Cambiar"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
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
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Pulsa A para guardar o B para cancelar"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Superposición de las estadísticas"
msgstr "Superponer estadísticas"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Vista compacta"
@@ -613,6 +592,44 @@ msgstr "No se puede verificar el PIN"
msgid "Pairing is disabled on server"
msgstr "El emparejamiento está deshabilitado en el servidor."
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Habilitar Snapdragon Game Super Resolution"
#~ 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 ""
#~ "En este visor, está opción ha sido reemplazada totalmente por la nativa "
#~ "Opción de enfoque arriba.\n"
#~ "Sólo habilita esto si sabes lo que estás haciendo."
#~ 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"
#~ msgid "Upscaling factor"
#~ msgstr "Factor de sobreescalado"
#~ msgid "Use edge direction"
#~ msgstr "Usar la dirección del borde"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Añade un coste de rendimiento adicional"
#~ msgid "Edge threshold"
#~ msgstr "Umbral del borde"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recomendado: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidez del borde"
#~ msgid "Video stream interrupted"
#~ msgstr "Transmisión de video interrumpida"
+8 -8
View File
@@ -141,29 +141,29 @@ msgstr "Casques"
#, kde-format
msgid "Last connection: %1 second ago"
msgid_plural "Last connection: %1 seconds ago"
msgstr[0] "Dernière connexion : il a y %1 seconde"
msgstr[1] "Dernière connexion : il a y %1 secondes"
msgstr[0] "Dernière connexion : il y a %1 seconde"
msgstr[1] "Dernière connexion : il y a %1 secondes"
#: dashboard/qml/HeadsetsPage.qml:31
#, kde-format
msgid "Last connection: %1 minute ago"
msgid_plural "Last connection: %1 minutes ago"
msgstr[0] "Dernière connexion : il a y %1 minute"
msgstr[1] "Dernière connexion : il a y %1 minutes"
msgstr[0] "Dernière connexion : il y a %1 minute"
msgstr[1] "Dernière connexion : il y a %1 minutes"
#: dashboard/qml/HeadsetsPage.qml:33
#, kde-format
msgid "Last connection: %1 hour ago"
msgid_plural "Last connection: %1 hours ago"
msgstr[0] "Dernière connexion : il a y %1 heure"
msgstr[1] "Dernière connexion : il a y %1 heures"
msgstr[0] "Dernière connexion : il y a %1 heure"
msgstr[1] "Dernière connexion : il y a %1 heures"
#: dashboard/qml/HeadsetsPage.qml:35
#, kde-format
msgid "Last connection: %1 day ago"
msgid_plural "Last connection: %1 days ago"
msgstr[0] "Dernière connexion : il a y %1 jour"
msgstr[1] "Dernière connexion : il a y %1 jours"
msgstr[0] "Dernière connexion : il y a %1 jour"
msgstr[1] "Dernière connexion : il y a %1 jours"
#: dashboard/qml/HeadsetsPage.qml:40
#, kde-format
+175 -160
View File
@@ -5,17 +5,17 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
"PO-Revision-Date: 2025-07-30 14:47+0200\n"
"POT-Creation-Date: 2025-09-18 00:05+0200\n"
"PO-Revision-Date: 2025-09-18 00:05+0200\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n"
"Language: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 47.1\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Aucun format de swapchain supporté"
@@ -43,99 +43,99 @@ msgstr "Impossible de se connecter à {} ({}): {}"
msgid "Waiting for connection"
msgstr "Attente de connexion"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualité"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Désactivé"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Fermer"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Connexion en cours"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Connexion à {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "Code PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Entrez le code PIN affiché sur le tableau de bord"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Connecté au serveur WiVRn"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connecté à {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr ""
"Démarrez une application sur le serveur pour commencer la transmission."
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Démarrez une application sur le serveur ou depuis la liste pour commencer la "
"transmission."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Démarrez une application sur {} ou depuis la liste pour commencer la "
"transmission."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nom"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -143,32 +143,45 @@ msgstr ""
"Démarrez un serveur WiVRn sur\n"
"le réseau local"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Version du serveur incompatible"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Français"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Langue"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -177,59 +190,59 @@ msgstr ""
"des performances mesurées.\n"
"Peut causer des clignotements lors du changement de fréquence."
#: client/scenes/lobby_gui.cpp:667
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Échelle"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} par œil"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Utiliser les données brutes du micro"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Désactive les traitements tels que la suppression du bruit"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Activer le suivi des mains"
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Cette fonctionnalité n'est pas supportée par le casque"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Activer le suivi des yeux"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Activer le suivi du visage"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Activer le suivi du corps"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -240,11 +253,11 @@ msgstr ""
"suivi des mouvements du casque.\n"
"Sinon les positions seront déduites de celles des manettes et casque."
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Activer le suivi du bas du corps"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -255,11 +268,11 @@ msgstr ""
"paramètres\n"
"de suivi de mouvements du casque."
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Activer le suivi des hanches"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -267,19 +280,33 @@ msgstr ""
"N'a d'effet que si le suivi du bas du corps est activé.\n"
"Peut être utile si les hanches sont suivies via un autre moyen."
#: client/scenes/lobby_gui.cpp:822
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Activer la vue réelle dans l'accueil"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Activer la fenêtre WiVRn lors de la transmission"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Permet à la fenêtre de configuration d'être affichée pendant la transmission "
"du jeu.\n"
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
"sticks."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -287,11 +314,11 @@ msgstr ""
"Réduit le scintillement des contours à haut contraste.\n"
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -299,171 +326,125 @@ msgstr ""
"Améliore la clarté des contours à haut contraste et réduit le flou.\n"
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Activer 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 ""
"Sur ce casque, ce paramètre a été supplanté par le réglage natif d’affinage "
"de netteté ci-dessus.\n"
"N’activer que si vous savez ce que vous faites."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Mise à l’échelle et affinage de netteté, ajoute un coût en performances pour "
"le casque"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Échelle"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Utiliser la direction de contours"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Ajoute un coût additionnel en performances"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Seuil de contour"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recommandé : {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Netteté de contour"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Temps 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
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Activer le suivi des yeux ?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Activer le suivi du visage ?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Activer le suivi du corps ?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Non"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Le micro est désactivé"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Le suivi des mains est activé"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Le suivi des mains est désactivé"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Le suivi des yeux est activé"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Le suivi des yeux est désactivé"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Le suivi du visage est activé"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Le suivi du visage est désactivé"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Le suivi du corps est activé"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Le suivi du corps est désactivé"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "À propos"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:1864
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -471,11 +452,9 @@ msgstr ""
"Serrez la gâchette latérale ou pointez la paume\n"
"vers le haut pour bouger la fenêtre principale"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr ""
"Serrez la gâchette latérale pour bouger la\n"
"fenêtre principale"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
@@ -489,11 +468,11 @@ msgstr "Copie"
msgid "Network"
msgstr "Réseau"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Téléversement"
@@ -534,68 +513,66 @@ msgstr "Affichage"
msgid "Predicted"
msgstr "Prédiction"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latence mouvement à photons estimée: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr ""
"Serrez la gâchette latérale pour bouger\n"
"la fenêtre"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Zone de fovéation manuelle"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Activer"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Hauteur: {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distance {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Utiliser le stick pour bouger le centre de fovéation"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "A pour sauvegarder, B pour annuler"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Vue compacte"
@@ -615,6 +592,44 @@ msgstr "Impossible de vérifier le code PIN"
msgid "Pairing is disabled on server"
msgstr "L'appairage est désactivé sur le serveur"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Activer Snapdragon Game Super Resolution"
#~ 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 ""
#~ "Sur ce casque, ce paramètre a été supplanté par le réglage natif "
#~ "d’affinage de netteté ci-dessus.\n"
#~ "N’activer que si vous savez ce que vous faites."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Mise à l’échelle et affinage de netteté, ajoute un coût en performances "
#~ "pour le casque"
#~ msgid "Upscaling factor"
#~ msgstr "Échelle"
#~ msgid "Use edge direction"
#~ msgstr "Utiliser la direction de contours"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Ajoute un coût additionnel en performances"
#~ msgid "Edge threshold"
#~ msgstr "Seuil de contour"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recommandé : {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Netteté de contour"
#~ msgid "Video stream interrupted"
#~ msgstr "Flux vidéo interrompu"
+169 -154
View File
@@ -5,17 +5,17 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-30 09:41+0200\n"
"PO-Revision-Date: 2025-07-30 09:59+0200\n"
"POT-Creation-Date: 2025-09-18 00:05+0200\n"
"PO-Revision-Date: 2025-09-18 00:05+0200\n"
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
"Language-Team: Italian <>\n"
"Language: Italian\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 47.1\n"
"X-Generator: Gtranslator 48.0\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Nessun formato swapchain supportato"
@@ -42,98 +42,98 @@ msgstr "Impossibile connettersi a {} ({}): {}"
msgid "Waiting for connection"
msgstr "In attesa di connessione"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normale"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Alta qualità"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:169 client/scenes/lobby_gui.cpp:320
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Chiudi"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Connessione"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Connessione a {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Digitare il PIN visibile sul server"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Connesso al server WiVRn"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Connesso a {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
"trasmettere."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Avvia un applicazione su {} o scegli dalla lista per incominciare a "
"trasmettere."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Salva"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -141,32 +141,45 @@ msgstr ""
"Avvia un server WiVRn sulla\n"
"rete locale"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versione del server incompatibile"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Italiano"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,60 +188,60 @@ msgstr ""
"misurate dell'applicazione.\n"
"Può causare un flash quando avviene il cambiamento."
#: client/scenes/lobby_gui.cpp:667
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Scala di risoluzione"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} per occhio"
#: client/scenes/lobby_gui.cpp:705 client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Usare dati grezzi del microfono"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Disattiva gli effetti come la cancellazione del rumore"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Abilita il tracciamento delle mani"
#: client/scenes/lobby_gui.cpp:739 client/scenes/lobby_gui.cpp:751
#: client/scenes/lobby_gui.cpp:763 client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Questa funzionalità non è supportata dal visore"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Abilita il tracciamento del corpo"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -241,11 +254,11 @@ msgstr ""
"controller e\n"
"del visore."
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Abilita il tracciamento del basso del corpo"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -256,11 +269,11 @@ msgstr ""
"impostazioni,\n"
"sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Abilitia il tracciamento delle anche"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -269,19 +282,31 @@ msgstr ""
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
"delle anche."
#: client/scenes/lobby_gui.cpp:822
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Abilita la visualizzazione reale in ingresso"
#: client/scenes/lobby_gui.cpp:843 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -289,11 +314,11 @@ msgstr ""
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -302,168 +327,125 @@ msgstr ""
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
"visore"
#: client/scenes/lobby_gui.cpp:901
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Attivare 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 "Su questo visore è consigliato usare il post-trattamento OpenXR."
#: client/scenes/lobby_gui.cpp:911
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Aumento della risoluzione e nitidezza sul visore, diminuisce le prestazioni "
"sul visore"
#: client/scenes/lobby_gui.cpp:929
msgid "Upscaling factor"
msgstr "Aumento di risoluzione"
#: client/scenes/lobby_gui.cpp:948
msgid "Use edge direction"
msgstr "Usare la direzione dei bordi"
#: client/scenes/lobby_gui.cpp:954
msgid "Adds an additional performance cost"
msgstr "Riduce le prestazioni"
#: client/scenes/lobby_gui.cpp:959
msgid "Edge threshold"
msgstr "Soglia dei bordi"
#: client/scenes/lobby_gui.cpp:966 client/scenes/lobby_gui.cpp:975
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Valore consigliato: {:.1f}"
#: client/scenes/lobby_gui.cpp:969
msgid "Edge sharpness"
msgstr "Nitidezza dei bordi"
#: client/scenes/lobby_gui.cpp:1071 client/scenes/lobby_gui.cpp:1079
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tempo 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
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Attivare il tracciamento del corpo?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Tracciamento delle mani attivo"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Tracciamento delle mani disattivato"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Tracciamento del corpo attivato"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Tracciamento del corpo disattivato"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Esci"
#: client/scenes/lobby_gui.cpp:1864
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -471,11 +453,9 @@ msgstr ""
"Premi il pulsante laterale o punta il palmo della\n"
"mano verso l'alto per spostare la finestra principale"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr ""
"Premi il pulsante laterale per\n"
"spostare la finestra principale"
msgstr "Premi il pulsante laterale per spostare la finestra principale"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
@@ -489,11 +469,11 @@ msgstr "Copia"
msgid "Network"
msgstr "Rete"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Download"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Upload"
@@ -534,66 +514,66 @@ msgstr "Visualizzato"
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latenza stimata da movimento a fotoni: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Premi il pulsante laterale per spostare la finestra"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latenza da movimento a fotoni"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Attiva"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altezza {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distanza {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Cambia"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa gli stick per spostare il centro di foveazione"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "A per salvare, B per annullare"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Modalità compatta"
@@ -613,6 +593,41 @@ msgstr "Impossibile verificare il PIN"
msgid "Pairing is disabled on server"
msgstr "L'associazione è disattivata sul server"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Attivare Snapdragon Game Super Resolution"
#~ msgid ""
#~ "On this headset, this setting has been fully superseded by the native "
#~ "Sharpening setting above.\n"
#~ "Only enable if you know what you're doing."
#~ msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Aumento della risoluzione e nitidezza sul visore, diminuisce le "
#~ "prestazioni sul visore"
#~ msgid "Upscaling factor"
#~ msgstr "Aumento di risoluzione"
#~ msgid "Use edge direction"
#~ msgstr "Usare la direzione dei bordi"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Riduce le prestazioni"
#~ msgid "Edge threshold"
#~ msgstr "Soglia dei bordi"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Valore consigliato: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidezza dei bordi"
#~ msgid "Video stream interrupted"
#~ msgstr "Flusso video interrotto"
+60 -59
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-06 04:49+0900\n"
"POT-Creation-Date: 2025-09-21 10:05+0900\n"
"PO-Revision-Date: 2025-04-10 07:14+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language-Team: Japanese <>\n"
@@ -79,7 +79,7 @@ msgid "No precompiled APK is available for this version."
msgstr "現バージョンに対応したAPKはダウンロード不可です。"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADBはインストールされていません。"
@@ -131,7 +131,7 @@ msgstr "WiVRnをインストールする"
msgid "Headset statistics"
msgstr "HMDの統計情報"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "HMD"
@@ -172,7 +172,7 @@ msgstr "名前変更"
#: 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
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "やめる"
@@ -265,7 +265,8 @@ msgstr ""
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr "OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
msgstr ""
"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
"xrizerかOpenCompositeをインストールしましょう。"
#: dashboard/qml/Main.qml:171
@@ -295,7 +296,7 @@ msgstr "ペアリング"
msgid "PIN: %1"
msgstr "暗証番号:%1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "USBで接続する"
@@ -321,22 +322,22 @@ msgstr "アプリ"
msgid "Steam information"
msgstr "ストリーム情報"
#: dashboard/qml/Main.qml:325
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "セットアップウィザード"
#: dashboard/qml/Main.qml:332
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "アプリをインストール"
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "設定"
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "問題解決"
@@ -441,19 +442,19 @@ msgctxt "encoder preset"
msgid "Default preset"
msgstr "デフォルト・プリセット"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "低遅延プリセット"
#: dashboard/qml/SettingsPage.qml:170
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "安定プリセット"
#: dashboard/qml/SettingsPage.qml:193
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
@@ -463,84 +464,84 @@ msgstr ""
"う。\n"
"角を引っ張って大きさの調整をできます。大きさゼロで削除となります。"
#: dashboard/qml/SettingsPage.qml:220
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "エンコーダー"
#: dashboard/qml/SettingsPage.qml:229
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "自動"
#: dashboard/qml/SettingsPage.qml:234
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPU)"
#: dashboard/qml/SettingsPage.qml:239
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMDやIntel GPU)"
#: dashboard/qml/SettingsPage.qml:244
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (ソフトエンコード)"
#: dashboard/qml/SettingsPage.qml:249
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:272
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "「自動」で当システムにとって最も安定した設定を使用します。"
#: dashboard/qml/SettingsPage.qml:278
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "コーデック"
#: dashboard/qml/SettingsPage.qml:285
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "自動"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "詳細設定"
#: dashboard/qml/SettingsPage.qml:325
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "デバッグ・ウィンドウを表示する"
#: dashboard/qml/SettingsPage.qml:332
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "SteamVR・ライトハウス・トラッキング"
#: dashboard/qml/SettingsPage.qml:335
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -553,44 +554,44 @@ msgstr ""
"すべてのデバイスの電源が入ってからHMDを接続しましょう。\n"
"キャリブレーションはmotocなどのソフトウェアで行います。"
#: dashboard/qml/SettingsPage.qml:343
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "特定なADBの場所"
#: dashboard/qml/SettingsPage.qml:354
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "ADBの場所:"
#: dashboard/qml/SettingsPage.qml:363
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "検索する"
#: dashboard/qml/SettingsPage.qml:373
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "デフォルト"
#: dashboard/qml/SettingsPage.qml:387
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "カスタム"
#: dashboard/qml/SettingsPage.qml:392
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "無し"
#: dashboard/qml/SettingsPage.qml:400
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "OpenVR実装ライブラリー"
#: dashboard/qml/SettingsPage.qml:426
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "ライブラリーの場所(bin/linux64/vrclient.so 無し)"
@@ -625,7 +626,7 @@ msgstr "Steam用の起動オプションをコピーしました"
msgid "I cannot find the WiVRn app on my headset"
msgstr "HMDでWiVRnアプリが見つからない"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -637,7 +638,7 @@ msgstr "Metaの場合、ライブラリの「提供元不明」タブをご覧
msgid "I cannot see my computer in the WiVRn app"
msgstr "WiVRnアプリでパソコンが表示されない"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
@@ -691,7 +692,7 @@ msgstr "ペアリングは無効です。"
msgid "I have no sound on my headset"
msgstr "HMDから音が出ない"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -715,9 +716,9 @@ msgid "Getting started"
msgstr "はじめに"
#: 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
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "戻る"
@@ -737,8 +738,8 @@ msgstr ""
"るようにご案内します。"
#: 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
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "次"
@@ -833,12 +834,12 @@ msgid ""
"your headset."
msgstr "接続すると、選択したアプリが自動的に起動します。"
#: dashboard/qml/WizardPage.qml:300
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "警告"
#: dashboard/qml/WizardPage.qml:307
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -847,12 +848,12 @@ msgstr ""
"WiVRnはSteamVRの変わりに使うものです。両方を同時に走らせないように気をつけま"
"しょう。"
#: dashboard/qml/WizardPage.qml:358
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "HMDでWiVRnアプリを起動しましょう。"
#: dashboard/qml/WizardPage.qml:363
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -861,54 +862,54 @@ msgstr ""
"WiFiで接続するには、HMDのWiVRnアプリを使い、「%1」に接続し、暗証番号に「%2」"
"を入れましょう。"
#: dashboard/qml/WizardPage.qml:370
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USBで接続するには、「USBで接続する」ボタンをクリックしましょう。"
#: dashboard/qml/WizardPage.qml:383
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "問題解決"
#: dashboard/qml/WizardPage.qml:405
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "スキップ"
#: dashboard/qml/WizardPage.qml:425
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "接続確立"
#: dashboard/qml/WizardPage.qml:430
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "HMDに接続しました。"
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr "他のHMDを接続するには、ペアリングが有効なのかどうか確認しましょう。"
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "完了"
#: dashboard/qml/WizardPage.qml:472
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "完了しました"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "OpenComposite"
+131 -150
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.16\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-06 04:49+0900\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2024-06-20 10:33+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language: Japanese\n"
@@ -10,7 +10,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "互換性のあるスワップチェーンは見つからなかった"
@@ -37,94 +37,94 @@ msgstr "{}に接続できませんでした:({}) {}"
msgid "Waiting for connection"
msgstr "接続を待っています"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "ノーマル"
#: client/scenes/lobby_gui.cpp:232
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "クオリティ"
#: client/scenes/lobby_gui.cpp:234
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "無効"
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "切断する"
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "やめる"
#: client/scenes/lobby_gui.cpp:268
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "接続"
#: client/scenes/lobby_gui.cpp:270
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "{}に接続中"
#: client/scenes/lobby_gui.cpp:300
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "暗証番号"
#: client/scenes/lobby_gui.cpp:322
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "パソコンで表示された暗証番号を入力してください"
#: client/scenes/lobby_gui.cpp:393
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "WiVRnサーバーに接続しました。"
#: client/scenes/lobby_gui.cpp:395
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "{}に接続しました。"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "VRアプリを起動してVRに入りましょう!"
#: client/scenes/lobby_gui.cpp:414
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。"
#: client/scenes/lobby_gui.cpp:416
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。"
#: client/scenes/lobby_gui.cpp:522
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "表示名"
#: client/scenes/lobby_gui.cpp:533
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "アドレス"
#: client/scenes/lobby_gui.cpp:542
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "ポート番号"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "TCPのみを使用"
#: client/scenes/lobby_gui.cpp:557
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "やめる"
#: client/scenes/lobby_gui.cpp:571
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "保存する"
#: client/scenes/lobby_gui.cpp:624
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -132,32 +132,45 @@ msgstr ""
"ローカルネットワークでWiVRnサーバーを\n"
"起動してみて下さい"
#: client/scenes/lobby_gui.cpp:656
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "自動接続"
#: client/scenes/lobby_gui.cpp:682
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "接続する"
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "互換性のないサーバーです"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "サーバーは利用不可です"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "日本語"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "言語"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "デバイス言語"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "リフレッシュレート"
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -165,60 +178,60 @@ msgstr ""
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
"変更時にチラツキが発生する可能性があります。"
#: client/scenes/lobby_gui.cpp:806
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "最低リフレッシュレート"
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "解像度"
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - 目あたり{}x{}"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
#: client/scenes/lobby_gui.cpp:850
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "マイクを有効する"
#: client/scenes/lobby_gui.cpp:859
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "未処理のマイク音声"
#: client/scenes/lobby_gui.cpp:865
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "ノイズ除去などのフィルターを無効化する"
#: client/scenes/lobby_gui.cpp:872
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "ハンドトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "デバイスはこの機能をサポートしていません"
#: client/scenes/lobby_gui.cpp:884
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "アイトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:896
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "顔トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:909
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "ボディラッキングを有効する"
#: client/scenes/lobby_gui.cpp:925
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -229,11 +242,11 @@ msgstr ""
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
"とになる。"
#: client/scenes/lobby_gui.cpp:938
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "下半身トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -243,11 +256,11 @@ msgstr ""
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
"有効する必要がある。"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "腰のトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:953
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -255,19 +268,31 @@ msgstr ""
"下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。"
#: client/scenes/lobby_gui.cpp:961
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "ロビーでパススルーを有効する"
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "ストリーミング中の設定パネル"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"ストリーミング中にも設定パネルを表示できるようにします。\n"
"両方のサムスティックを同時に押して切り替えることができます。"
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXRポストエフェクト"
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "スーパーサンプリング"
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -275,11 +300,11 @@ msgstr ""
"コントラストが高い部分のギザギザを低減する。\n"
"ストリームの解像度は、HMDの解像度より高い場合は有用です。"
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "シャープ"
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -287,169 +312,125 @@ msgstr ""
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
"ストリームの解像度は、HMDの解像度より低い場合に有用です。"
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Snapdragon Game Super Resolutionを有効する"
#: client/scenes/lobby_gui.cpp:1048
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 ""
"この設定は、使用中のHMDでは非推奨です。OpenXRの方法を使用してください。"
#: client/scenes/lobby_gui.cpp:1050
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"HMD側のアップスケーリングやシャープニングを使用する場合、要求性能が上がりま"
"す。"
#: client/scenes/lobby_gui.cpp:1068
msgid "Upscaling factor"
msgstr "アップスケーリング係数"
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "エッジ方向を使用する"
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "HMDに対する要求性能が上がります。"
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "エッジのしきい値"
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "推奨値:{:.1f}"
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "エッジのシャープ"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU使用時間"
#: client/scenes/lobby_gui.cpp:1214
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "CPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU使用時間"
#: client/scenes/lobby_gui.cpp:1228
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1271
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "マイクを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1276
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "アイトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1281
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "フェースラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1286
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "ボディトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1294
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "WiVRnへようこそ!"
#: client/scenes/lobby_gui.cpp:1318
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "はい"
#: client/scenes/lobby_gui.cpp:1325
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "いいえ"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "ライセンス"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "マイクは有効です"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "マイクは無効です"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "ハンドトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "ハンドラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1678
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "アイトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1679
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "アイトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1692
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "フェーストラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "フェーストラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1703
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "ボディトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1704
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "ボディトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1720
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "サーバーを追加する"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "サーバー"
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "設定"
#: client/scenes/lobby_gui.cpp:1971
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "ポストエフェクト"
#: client/scenes/lobby_gui.cpp:1975
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "デバッグ"
#: client/scenes/lobby_gui.cpp:1980
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "WiVRnについて"
#: client/scenes/lobby_gui.cpp:1986
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "完了"
#: client/scenes/lobby_gui.cpp:2003
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -457,7 +438,7 @@ msgstr ""
"メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。"
#: client/scenes/lobby_gui.cpp:2005
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "グリップを握ってパネルを動かしましょう。"
@@ -473,11 +454,11 @@ msgstr "レンダー"
msgid "Network"
msgstr "ネットワーク"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "ダウンロード"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "アップロード"
@@ -518,66 +499,66 @@ msgstr "表示"
msgid "Predicted"
msgstr "予測時間"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "グリップを握ってパネルを動かしましょう。"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "両方のサムスティックを同時に押すことで設定表示"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "「Motion-to-photon」遅延"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "光学中心の調整"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "有効"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "仰角 {:.1f}°"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距離 {:.2f}m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "デフォルト"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "編集"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "ジョイスティックを使って中心点を調整しましょう。"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "AかBを押してキャンセル。"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "統計情報"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "統計オーバーレイ"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "コンパクト・モード"
+92 -81
View File
@@ -4,20 +4,21 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
#
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-21 21:55-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-09-12 14:54+0200\n"
"PO-Revision-Date: 2025-08-08 11:56-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
"X-Generator: Lokalize 25.04.3\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
@@ -85,8 +86,8 @@ msgstr "Verificando a última versão..."
msgid "No precompiled APK is available for this version."
msgstr "Nenhum APK pré-compilado está disponível para esta versão."
#: 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:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADB não está instalado."
@@ -135,7 +136,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -180,7 +181,7 @@ msgstr "Renomear"
#: 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
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "Cancelar"
@@ -231,40 +232,40 @@ msgstr "Parear um novo headset"
msgid "Headset statistics"
msgstr "Estatísticas do headset"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "O servidor não tem capabilities CAP_SYS_NICE."
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Conserte"
#: 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 "A capability CAP_SYS_NICE será usada quando o servidor for reiniciado."
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar agora"
#: 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"
msgstr ""
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Mais informações"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -273,76 +274,86 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e 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 ""
"Nenhuma compatibilidade com OpenVR foi detectada. Os jogos do Steam não "
"conseguirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Servidor falhou em iniciar"
#: 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 "Abrir logs do servidor"
#: 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 "Rodando"
#: 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 "Pareando"
#: 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:374
#, kde-format
msgid "Connect by USB"
msgstr "Conectar pela 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 ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor."
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplicativo"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Resolver problemas"
@@ -353,13 +364,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Nenhum"
#: 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"
@@ -448,19 +459,19 @@ msgctxt "encoder preset"
msgid "Default preset"
msgstr "Predefinição padrão"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Predefinição de baixa latência"
#: dashboard/qml/SettingsPage.qml:170
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Predefinição segura"
#: dashboard/qml/SettingsPage.qml:193
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
@@ -470,84 +481,84 @@ msgstr ""
"perto de uma aresta.\n"
"Arraste a aresta para redimensionar ou remover codificadores."
#: dashboard/qml/SettingsPage.qml:220
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "Codificador:"
#: dashboard/qml/SettingsPage.qml:229
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:234
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (GPUs NVIDIA)"
#: dashboard/qml/SettingsPage.qml:239
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (GPUs AMD e Intel)"
#: dashboard/qml/SettingsPage.qml:244
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (codificação por software)"
#: dashboard/qml/SettingsPage.qml:249
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vídeo Vulkan)"
#: dashboard/qml/SettingsPage.qml:272
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Auto\" usará aceleração de hardware se disponível"
#: dashboard/qml/SettingsPage.qml:278
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "Codec:"
#: dashboard/qml/SettingsPage.qml:285
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Auto"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "Opções avançadas"
#: dashboard/qml/SettingsPage.qml:325
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "Ativar janela de depuração"
#: dashboard/qml/SettingsPage.qml:332
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "Ativar suporte a dispositivos rastreados pelo SteamVR"
#: dashboard/qml/SettingsPage.qml:335
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -560,44 +571,44 @@ msgstr ""
"Os dispositivos precisam estar ligados antes de se conectar ao WiVRn.\n"
"Uma ferramenta externa como o motoc é necessária para calibração."
#: dashboard/qml/SettingsPage.qml:343
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "Caminho personalizado do adb"
#: dashboard/qml/SettingsPage.qml:354
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "Caminho do adb:"
#: dashboard/qml/SettingsPage.qml:363
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Navegar"
#: dashboard/qml/SettingsPage.qml:373
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "Default"
#: dashboard/qml/SettingsPage.qml:387
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SettingsPage.qml:392
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "Desativado"
#: dashboard/qml/SettingsPage.qml:400
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "Biblioteca de compatibilidade OpenVR:"
#: dashboard/qml/SettingsPage.qml:426
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Caminho da biblioteca, excluindo bin/linux64/vrclient.so"
@@ -634,7 +645,7 @@ msgstr "Comando de lançamento da Steam copiado"
msgid "I cannot find the WiVRn app on my headset"
msgstr "Não consigo encontrar o aplicativo do WiVRn no meu headset"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -648,7 +659,7 @@ msgstr ""
msgid "I cannot see my computer in the WiVRn app"
msgstr "Não consigo ver meu computador no aplicativo do WiVRn"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
@@ -702,7 +713,7 @@ msgstr "Pareamento está atualmente desativado."
msgid "I have no sound on my headset"
msgstr "Eu não tenho som no meu headset"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -727,9 +738,9 @@ msgid "Getting started"
msgstr "Começando"
#: 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
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "Voltar"
@@ -749,8 +760,8 @@ msgstr ""
"ao seu computador."
#: 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
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "Próximo"
@@ -849,12 +860,12 @@ msgstr ""
"O aplicativo que você escolher será iniciado automaticamente quando você "
"conectar seu headset."
#: dashboard/qml/WizardPage.qml:300
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "Informação importante"
#: dashboard/qml/WizardPage.qml:307
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -863,12 +874,12 @@ msgstr ""
"O WiVRn substitui o SteamVR completamente, você não deve iniciar o SteamVR "
"enquanto o WiVRn estiver rodando."
#: dashboard/qml/WizardPage.qml:358
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Iniciar o aplicativo do WiVRn no seu headset"
#: dashboard/qml/WizardPage.qml:363
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -877,32 +888,32 @@ msgstr ""
"Para conectar pelo WiFi, inicie o aplicativo do WiVRn no seu headset, "
"conecte a \"%1\" e entre o PIN \"%2\"."
#: dashboard/qml/WizardPage.qml:370
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Para conectar pela USB, clique em \"Conectar pela USB\"."
#: dashboard/qml/WizardPage.qml:383
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "Resolver problemas"
#: dashboard/qml/WizardPage.qml:405
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "Pular"
#: dashboard/qml/WizardPage.qml:425
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "Conexão estabelecida"
#: dashboard/qml/WizardPage.qml:430
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "Seu headset está conectado agora."
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
@@ -911,22 +922,22 @@ msgstr ""
"Para conectar outro headset, se assegure que o pareamento esteja habilitado "
"no painel antes de conectar."
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "Terminar"
#: dashboard/qml/WizardPage.qml:472
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "Terminado"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+318 -181
View File
@@ -4,134 +4,141 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
# Claudio Sampaio <patola@gmail.com>, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-23 05:42-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-18 16:52+0200\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
"Language-Team: Portuguese <>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 48.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.08.1\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: client/scenes/lobby.cpp:148
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Sem formato de cadeia de troca suportado"
#: client/scenes/lobby.cpp:228
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT"
#: client/scenes/lobby.cpp:231
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})"
#: client/scenes/lobby.cpp:246
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Incapaz de resolver hostname: {}"
#: 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 "Incapaz de conectar a {} ({}): {}"
#: client/scenes/lobby.cpp:453
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Aguardando conexão"
#: client/scenes/lobby_gui.cpp:132
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:135
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualidade"
#: client/scenes/lobby_gui.cpp:137
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:198
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "Fluxo de vídeo interrompido"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR no seu computador"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR em {}"
#: client/scenes/lobby_gui.cpp:221
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Fechar"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Conexão"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Conexão a {}"
#: client/scenes/lobby_gui.cpp:259
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:281
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Entre o PIN mostrado no painel"
#: client/scenes/lobby_gui.cpp:356
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Conectado ao servidor WiVRn"
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Conectado a {}"
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Abra um aplicativo no servidor para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Abra um aplicativo no seu computador ou selecione um para iniciar o "
"streaming."
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:367
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:376
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:391
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:458
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -139,32 +146,45 @@ msgstr ""
"Inicie um servidor WiVRn em sua\n"
"rede local"
#: client/scenes/lobby_gui.cpp:490
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:516
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versão de servidor incompatível"
#: client/scenes/lobby_gui.cpp:528
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Servidor não disponível"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Português (Brasil)"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr "Linguagem"
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr "Linguagem do Sistema"
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automático"
#: client/scenes/lobby_gui.cpp:623
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -172,60 +192,60 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:640
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima"
#: client/scenes/lobby_gui.cpp:663
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Escala de resolução"
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por olho"
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Áudio Não-processado de Microfone"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Força a desativação de filtros de áudio tais como cancelamento de ruído"
#: client/scenes/lobby_gui.cpp:707
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "Ativar rastreamento de mãos"
#: 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:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Este recurso não é suportado pelo seu headset"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:747
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:764
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -237,11 +257,11 @@ msgstr ""
"estimados\n"
"com base nas posições do controle e do headset."
#: client/scenes/lobby_gui.cpp:777
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Ativar rastreamento corporal inferior"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -252,11 +272,11 @@ msgstr ""
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
"configurações de Rastreamento de Movimento do Quest"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -264,45 +284,32 @@ msgstr ""
"Só tem efeito com o rastreamento corporal inferior ativado\n"
"Pode ser desejado ao usar outra fonte de rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:800
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Habilitar repassagem de vídeo no lobby"
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "Mostrar métricas de desempenho"
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Habilitar janela na stream"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Habilita que a janela de configuração seja vista enquanto o jogo está sendo "
"streamado.\n"
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "Tempo 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 "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:881
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:885
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -310,11 +317,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:910
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:930
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -322,198 +329,256 @@ msgstr ""
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:939
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:947
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 ""
"Neste headset, este ajuste foi completamente supersedido pelo ajuste de "
"aumento de nitidez acima.\n"
"Somente habilite se souber o que está fazendo."
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:949
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
"desempenho no headset"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:967
msgid "Upscaling factor"
msgstr "Fator de upscaling"
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:986
msgid "Use edge direction"
msgstr "Usar direção da aresta"
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:992
msgid "Adds an additional performance cost"
msgstr "Acrescenta um custo de desempenho"
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:997
msgid "Edge threshold"
msgstr "Limite da aresta"
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomenadado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1007
msgid "Edge sharpness"
msgstr "Nitidez da aresta"
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Bem vindo(a) ao WiVRn"
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Não"
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1440
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1441
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1450
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "O rastreamento de mãos está ativado"
#: client/scenes/lobby_gui.cpp:1451
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "O rastreamento de mãos está desativado"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "O rastreamento ocular está ativado"
#: client/scenes/lobby_gui.cpp:1461
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "O rastreamento ocular está desativado"
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "O rastreamento facial está ativado"
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "O rastreamento facial está desativado"
#: client/scenes/lobby_gui.cpp:1493
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "O rastreamento corporal está ativado"
#: client/scenes/lobby_gui.cpp:1494
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "O rastreamento corporal está desativado"
#: client/scenes/lobby_gui.cpp:1510
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1739
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1742
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1745
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1749
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1754
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:1760
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Sair"
#: client/scenes/lobby_gui.cpp:1774
#: client/scenes/lobby_gui.cpp:1992
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 ""
"Pressione A ou X ou coloque a palma da mão pra cima\n"
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
"para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "Pressione A ou X para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pressione o botão de aderência para mover a janela principal"
#: client/scenes/stream_stats.cpp:161
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Reprojetar"
#: client/scenes/stream_stats.cpp:162
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Rede"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Baixar"
#: client/scenes/stream_stats.cpp:165
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Enviar"
#: 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 "Tempos [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 "Receber"
#: 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 "Blitado"
#: 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:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Movimento estimado para a latência de fótons: {}ms"
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pressione o botão de aderência para mover a janela"
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)"
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Padrão"
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Modificar"
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Use os thumbsticks para mover o centro da foveação"
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Pressione A para salvar ou B para cancelar"
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Visualização compacta"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Tempo esgotado"
@@ -529,3 +594,75 @@ msgstr "Incapaz de verificar PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Pareamento está desabilitado no servidor"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Habilitar Snapdragon Game Super Resolution"
#~ 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 ""
#~ "Neste headset, este ajuste foi completamente supersedido pelo ajuste de "
#~ "aumento de nitidez acima.\n"
#~ "Somente habilite se souber o que está fazendo."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
#~ "desempenho no headset"
#~ msgid "Upscaling factor"
#~ msgstr "Fator de upscaling"
#~ msgid "Use edge direction"
#~ msgstr "Usar direção da aresta"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Acrescenta um custo de desempenho"
#~ msgid "Edge threshold"
#~ msgstr "Limite da aresta"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Recomenadado: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Nitidez da aresta"
#~ msgid "Video stream interrupted"
#~ msgstr "Fluxo de vídeo interrompido"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR no seu computador"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR em {}"
#~ msgid "Show performance metrics"
#~ msgstr "Mostrar métricas de desempenho"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "Pressione A ou X ou coloque a palma da mão pra cima\n"
#~ "para mover a janela principal"
#~ msgid "Press A or X to move the main window"
#~ msgstr "Pressione A ou X para mover a janela principal"
+189 -169
View File
@@ -2,13 +2,14 @@
# This file is distributed under the same license as the WiVRn package.
#
# SPDX-FileCopyrightText: 2025 not <github.superglue094@slmail.me>
# SPDX-FileCopyrightText: 2025 eps <eps@bwsal.org>
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"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-08-08 22:08+0200\n"
"Last-Translator: eps <eps@bwsal.org>\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
@@ -17,7 +18,7 @@ msgstr ""
"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
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Žiadny podporovaný formát swapchainu"
@@ -45,129 +46,142 @@ msgstr "Nie je možné sa pripojiť k {} ({}): {}"
msgid "Waiting for connection"
msgstr "Čaká sa na pripojenie"
#: client/scenes/lobby_gui.cpp:156
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normálna"
#: client/scenes/lobby_gui.cpp:159
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Vyššia kvalita"
#: client/scenes/lobby_gui.cpp:161
#: client/scenes/lobby_gui.cpp:237
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
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Odpojiť"
#: client/scenes/lobby_gui.cpp:189 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Zatvoriť"
#: client/scenes/lobby_gui.cpp:195
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Pripojenie"
#: client/scenes/lobby_gui.cpp:197
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "Pripojenie k {}"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:249
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Zadajte PIN zobrazený v okne aplikácie"
#: client/scenes/lobby_gui.cpp:315
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "Pripojené k WiVRn serveru"
#: client/scenes/lobby_gui.cpp:317
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "Pripojené k {}"
#: client/scenes/lobby_gui.cpp:327
#: client/scenes/lobby_gui.cpp:409
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
#: client/scenes/lobby_gui.cpp:421
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."
"Na svojom počítači spustite aplikáciu alebo vyberte jednu na začatie "
"streamovania."
#: client/scenes/lobby_gui.cpp:335
#: client/scenes/lobby_gui.cpp:423
#, 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."
msgstr "Spustite aplikáciu na {} alebo jednu vyberte pre začatie streamovania."
#: client/scenes/lobby_gui.cpp:383
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Názov"
#: client/scenes/lobby_gui.cpp:394
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adresa"
#: client/scenes/lobby_gui.cpp:403
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:411
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Iba TCP"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "Zrušiť"
#: client/scenes/lobby_gui.cpp:432
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Uložiť"
#: client/scenes/lobby_gui.cpp:485
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Spustite WiVRn server vo svojej\n"
"Spustite WiVRn server na svojej\n"
"lokálnej sieti"
#: client/scenes/lobby_gui.cpp:517
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Automatické pripojenie"
#: client/scenes/lobby_gui.cpp:543
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Pripojiť"
#: client/scenes/lobby_gui.cpp:553 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Verzia servera nie je kompatibilná"
#: client/scenes/lobby_gui.cpp:555
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Server nie je dostupný"
#: client/scenes/lobby_gui.cpp:641
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Slovenčina"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr ""
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr ""
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:641 client/scenes/lobby_gui.cpp:643
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automaticky"
#: client/scenes/lobby_gui.cpp:650
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -175,60 +189,60 @@ 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
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Minimálna obnovovacia frekvencia"
#: client/scenes/lobby_gui.cpp:690
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Rozlíšenie"
#: client/scenes/lobby_gui.cpp:694 client/scenes/lobby_gui.cpp:933
#: client/scenes/lobby_gui.cpp:894
#, 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
#: client/scenes/lobby_gui.cpp:905
#, 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"
msgstr "Rozlíšenie vyžšie ako {}x{} nemusí byť podporované vašim headsetom"
#: client/scenes/lobby_gui.cpp:711
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Zapnúť mikrofón"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "Mikrofónu bez postrocesovaného zvuku"
msgstr "Mikrofónu bez procesovaného zvuku"
#: client/scenes/lobby_gui.cpp:726
#: client/scenes/lobby_gui.cpp:926
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
#: client/scenes/lobby_gui.cpp:933
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
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Táto fíčura nieje podporovaná vašim hedsetom"
msgstr "Táto funkcia nieje podporovaná vašim headsetom"
#: client/scenes/lobby_gui.cpp:745
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Zapnúť sledovanie očí"
#: client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Zapnúť sledovanie tváre"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Zapnúť sledovanie tela"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -236,27 +250,27 @@ msgid ""
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"
"inak dáta o pozícii tela budú odhadované podla pozície headsetu a ovládačov"
#: client/scenes/lobby_gui.cpp:799
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Zapnúť sledovanie spodnej části tela"
#: client/scenes/lobby_gui.cpp:805
#: client/scenes/lobby_gui.cpp:1001
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“"
"Vyžaduje, aby bolo v nastaveniach Quest movement tracking povolené „Hand and "
"body tracking“"
#: client/scenes/lobby_gui.cpp:808
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Povoliť sledovanie pása"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -264,207 +278,175 @@ 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
#: client/scenes/lobby_gui.cpp:1018
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
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr ""
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXRPostprocesing"
#: client/scenes/lobby_gui.cpp:847 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:867 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
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"
"Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom headsetu"
#: client/scenes/lobby_gui.cpp:872 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Ostrosť"
#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
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"
"Užitočné, keď je vstupné rozlíšenie nízke v porovnaní s displejom headsetu"
#: 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
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU odozva"
#: client/scenes/lobby_gui.cpp:1075
#: client/scenes/lobby_gui.cpp:1195
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
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU odozva"
#: client/scenes/lobby_gui.cpp:1089
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU odozva [ms]"
#: client/scenes/lobby_gui.cpp:1132
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Zapnúť mikrofón?"
#: client/scenes/lobby_gui.cpp:1137
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Povolenie sledovania očí?"
#: client/scenes/lobby_gui.cpp:1142
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Povolenie sledovania tváre?"
#: client/scenes/lobby_gui.cpp:1147
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Povoliť sledovanie tela?"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "Vitajte v WiVRn"
#: client/scenes/lobby_gui.cpp:1179
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Áno"
#: client/scenes/lobby_gui.cpp:1186
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Nie"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1844
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Licencie"
#: client/scenes/lobby_gui.cpp:1519
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Mikrofón je zapnutý"
#: client/scenes/lobby_gui.cpp:1520
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Mikrofón je vypnutý"
#: client/scenes/lobby_gui.cpp:1529
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "Sledovanie rúk je zapnuté"
#: client/scenes/lobby_gui.cpp:1530
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "Sledovanie rúk je vypnuté"
#: client/scenes/lobby_gui.cpp:1539
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Sledovanie očí je zapnuté"
#: client/scenes/lobby_gui.cpp:1540
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Sledovanie očí je vypnuté"
#: client/scenes/lobby_gui.cpp:1553
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Sledovanie tváre je zapnuté"
#: client/scenes/lobby_gui.cpp:1554
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Sledovanie tváre je vypnuté"
#: client/scenes/lobby_gui.cpp:1564
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Sledovanie tela je zapnuté"
#: client/scenes/lobby_gui.cpp:1565
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Sledovanie tela je vypnuté"
#: client/scenes/lobby_gui.cpp:1581
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Pridať server"
#: client/scenes/lobby_gui.cpp:1826
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Zoznam serverov"
#: client/scenes/lobby_gui.cpp:1829 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Nastavenia"
#: client/scenes/lobby_gui.cpp:1832
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "Postprocesing"
#: client/scenes/lobby_gui.cpp:1836
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Ladenie"
#: client/scenes/lobby_gui.cpp:1841
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "O aplikácii"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1975
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:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Stlačte tlačidlo grip alebo zdvihnite dlaň\n"
"pre presunutie hlavného okna"
#: client/scenes/lobby_gui.cpp:1866
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Pre presunutie hlavného okna stlačte grip"
@@ -480,11 +462,11 @@ msgstr "blitovanie"
msgid "Network"
msgstr "Sieť"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "Prijímanie"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Odosielanie"
@@ -525,66 +507,66 @@ msgstr "Zobrazený"
msgid "Predicted"
msgstr "Odhadovaný"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Odhadovaná odozva od pohybu po zobrazenie: {}ms"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
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
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pre zobrazenie WiVRn okna stlačte oba joysticky"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Odozva od pohybu po zobrazenie"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Prepísanie foveation centra"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Povoliť"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Výška: {:.1f} deg"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Vzdialenosť: {:.2f} m"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Predvolené"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Zmeniť"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Pomocou joysticku nastavte foveation centrum"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Stlač A pre uloženie alebo B pre zrušenie"
msgstr "Stlačte A pre uloženie alebo B pre zrušenie"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "Štatistiky"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "Štatistiky na obrazovke"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Kompaktný vzhľad"
@@ -603,3 +585,41 @@ 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é"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Zapnúť Snapdragon Game Super Resolution"
#~ 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."
#~ 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 headsetu"
#~ msgid "Upscaling factor"
#~ msgstr "Faktor upscalovania"
#~ msgid "Use edge direction"
#~ msgstr "Použitie smeru okrajov"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Pridáva dodatočné náklady na výkon"
#~ msgid "Edge threshold"
#~ msgstr "Hraničná hodnota okrajov"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Odporúčané: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Ostrosť okrajov"
+943
View File
@@ -0,0 +1,943 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn-dashboard package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-12 15:54+0300\n"
"PO-Revision-Date: 2025-08-08 17:09+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <fahri@uzun.pro>\n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.6\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "APK indiriliyor: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "APK indiriliyor: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
msgid "Download cancelled"
msgstr "İndirme iptal edildi"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK indirilemiyor: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "APK yükleniyor"
#: dashboard/apk_installer.cpp:221
#, kde-format
msgid "adb failed to start: %1"
msgstr "adb başlatılamadı: %1"
#: dashboard/apk_installer.cpp:231
#, kde-format
msgid "adb exited abnormally: %1"
msgstr "adb anormal şekilde çıktı: %1"
#: dashboard/apk_installer.cpp:239
#, kde-format
msgid "The 'adb install' command failed: exit code %1"
msgstr "'adb install' komutu başarısız oldu: çıkış kodu %1"
#: dashboard/apk_installer.cpp:244
#, kde-format
msgid "Installation successful"
msgstr "Yükleme başarılı"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRn kontrol paneli"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
msgid "Install the WiVRn app on your headset"
msgstr "WiVRn uygulamasını gözlüğe yükle"
#: dashboard/qml/ApkInstallPage.qml:41 dashboard/qml/WizardPage.qml:157
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "En son sürüm kontrol ediliyor..."
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
msgid "No precompiled APK is available for this version."
msgstr "Bu sürüm için önceden derlenmiş APK yok."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "ADB yüklü değil."
#: dashboard/qml/ApkInstallPage.qml:47
#, kde-format
msgid "Connect a headset and make sure developer mode is enabled."
msgstr ""
"Bir gözlük bağlayın ve geliştirici modunun etkinleştirildiğinden emin olun."
#: 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 ""
"Kendi istemcinizi oluşturmak için <a href=\"https://github.com/WiVRn/WiVRn/"
"blob/master/docs/building.md#client-headset\">belgelerdeki</a> talimatları "
"izleyin."
#: 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 "Geri"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
msgstr "Gözlüğünüzü seçin"
#: dashboard/qml/DeviceCard.qml:46
#, kde-format
msgid "WiVRn is already installed on this device"
msgstr "WiVRn bu aygıta zaten yüklü"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Reinstall WiVRn"
msgstr "WiVRn'i yeniden yükle"
#: dashboard/qml/DeviceCard.qml:54
#, kde-format
msgid "Install WiVRn"
msgstr "WiVRn'i yükle"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "Gözlükler"
#: dashboard/qml/HeadsetsPage.qml:29
#, kde-format
msgid "Last connection: %1 second ago"
msgid_plural "Last connection: %1 seconds ago"
msgstr[0] "Son bağlantı: %1 saniye önce"
msgstr[1] "Son bağlantı: %1 saniye önce"
#: dashboard/qml/HeadsetsPage.qml:31
#, kde-format
msgid "Last connection: %1 minute ago"
msgid_plural "Last connection: %1 minutes ago"
msgstr[0] "Son bağlantı: %1 dakika önce"
msgstr[1] "Son bağlantı: %1 dakika önce"
#: dashboard/qml/HeadsetsPage.qml:33
#, kde-format
msgid "Last connection: %1 hour ago"
msgid_plural "Last connection: %1 hours ago"
msgstr[0] "Son bağlantı: %1 saat önce"
msgstr[1] "Son bağlantı: %1 saat önce"
#: dashboard/qml/HeadsetsPage.qml:35
#, kde-format
msgid "Last connection: %1 day ago"
msgid_plural "Last connection: %1 days ago"
msgstr[0] "Son bağlantı: %1 gün önce"
msgstr[1] "Son bağlantı: %1 gün önce"
#: dashboard/qml/HeadsetsPage.qml:40
#, kde-format
msgid "Rename headset"
msgstr "Gözlüğü yeniden adlandır"
#: dashboard/qml/HeadsetsPage.qml:48 dashboard/qml/HeadsetsPage.qml:116
#, kde-format
msgid "Rename"
msgstr "Yeniden Adlandır"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "İptal"
#: dashboard/qml/HeadsetsPage.qml:64
#, kde-format
msgid "Headset name…"
msgstr "Gözlük adı…"
#: dashboard/qml/HeadsetsPage.qml:128
#, kde-format
msgid "Remove"
msgstr "Kaldır"
#: dashboard/qml/HeadsetsPage.qml:143
#, kde-format
msgid "Pairing enabled, PIN: %1"
msgstr "Eşleştirme etkin, PIN: %1"
#: dashboard/qml/HeadsetsPage.qml:148 dashboard/qml/TroubleshootPage.qml:42
#, kde-format
msgid "Disable pairing"
msgstr "Eşleştirmeyi devre dışı bırak"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Start the WiVRn app on your headset and use the PIN: %1"
msgstr "Gözlüğünüzde WiVRn uygulamasını başlatın ve PIN: %1'i kullanın"
#: dashboard/qml/HeadsetsPage.qml:166
#, kde-format
msgid "Enable pairing to allow your headset to connect to this computer"
msgstr ""
"Gözlüğünüzün bu bilgisayara bağlanmasına izin vermek için eşleştirmeyi "
"etkinleştirin"
#: dashboard/qml/HeadsetsPage.qml:171 dashboard/qml/TroubleshootPage.qml:37
#, kde-format
msgid "Enable pairing"
msgstr "Eşleştirmeyi etkinleştir"
#: dashboard/qml/HeadsetsPage.qml:191
#, kde-format
msgid "Pair a new headset"
msgstr "Yeni bir gözlük eşleştir"
#: dashboard/qml/HeadsetStatsPage.qml:12
#, kde-format
msgid "Headset statistics"
msgstr "Gözlük istatistikleri"
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "Sunucunun CAP_SYS_NICE yetenekleri yok."
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Onar"
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "Sunucu yeniden başlatıldığında CAP_SYS_NICE yeteneği kullanılacak."
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Şimdi yeniden başlat"
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"NVIDIA GPU'lar en az 565.77 sürücü sürümünü gerektirir, geçerli sürüm %1"
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Daha fazla bilgi"
#: dashboard/qml/Main.qml:154
#, 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 ""
"AMD GPU'lar için Mesa (radv) sürücüsünü kullanın\n"
"vaapi ile donanım kodlaması AMDVLK ve AMDGPU-PRO ile çalışmaz"
#: 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 ""
"OpenVR uyumluluğu algılanmadı, Steam oyunları VR'ı yükleyemeyecek.\n"
"xrizer veya OpenComposite kurun."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Sunucu başlatılamadı"
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Sunucu günlüklerini aç"
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Çalışıyor"
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Eşleştirme"
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "USB ile bağlan"
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "Gözlük bağlı değil veya gözlüğünüz geliştirici modunda değil."
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Bağlantıyı kes"
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Uygulama"
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Steam bilgisi"
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "Sihirbaz"
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "Uygulamayı yükle"
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ayarlar"
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Sorun giderme"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
msgid "None"
msgstr "Yok"
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:40
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "El ile foveasyon"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Foveasyon gücü:"
#: 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 ""
"Daha güçlü bir foveasyon, görüntüyü merkezde çevreye göre daha keskin hale "
"getirir ve kod çözmeyi hızlandırır. Bu, hızlı tempolu oyunlar için daha "
"iyidir.\n"
"\n"
"Daha zayıf bir foveasyon, tüm görüntüde tek tip bir keskinlik sağlar.\n"
"\n"
"Önerilen değerler, göz izleme olmayan başlıklar için 20% ile 50% arasında, "
"göz izleme olan başlıklar için ise 50% ile 70% arasındadır."
#: dashboard/qml/SettingsPage.qml:74
#, kde-format
msgctxt "weaker foveation"
msgid "Weaker"
msgstr "Daha zayıf"
#: dashboard/qml/SettingsPage.qml:85
#, kde-format
msgctxt "stronger foveation"
msgid "Stronger"
msgstr "Daha güçlü"
#: dashboard/qml/SettingsPage.qml:95
#, kde-format
msgid "Bitrate:"
msgstr "Bit hızı:"
#: dashboard/qml/SettingsPage.qml:99 dashboard/qml/SettingsPage.qml:101
#, kde-format
msgctxt "bitrate"
msgid "%1 Mbit/s"
msgstr "Mbit/s %1"
#: dashboard/qml/SettingsPage.qml:111
#, kde-format
msgid "Encoder layout:"
msgstr "Kodlayıcı düzeni:"
#: dashboard/qml/SettingsPage.qml:114
#, kde-format
msgctxt "encoder preset"
msgid "Automatic"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:118
#, kde-format
msgctxt "encoder preset"
msgid "Manual"
msgstr "El ile"
#: dashboard/qml/SettingsPage.qml:122
#, kde-format
msgctxt "encoder preset"
msgid "Default preset"
msgstr "Varsayılan ön ayar"
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "Düşük gecikmeli ön ayar"
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "Güvenli ön ayar"
#: dashboard/qml/SettingsPage.qml:181
#, 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 ""
"Yeni bir kodlayıcı eklemek için, mevcut bir kodlayıcıyı bir kenarın yakınına "
"tıklayarak bölün.\n"
"Kodlayıcıları yeniden boyutlandırmak veya kaldırmak için bir kenarı "
"sürükleyin."
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "Kodlayıcı:"
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPU'ları)"
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD ve Intel GPU'ları)"
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (yazılım kodlaması)"
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Otomatik\", mevcutsa donanım hızlandırmayı kullanacaktır"
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "Codec:"
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "Gelişmiş seçenekler"
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "Hata ayıklama penceresini etkinleştir"
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "SteamVR izlenen aygıt desteğini etkinleştir"
#: dashboard/qml/SettingsPage.qml:323
#, 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 ""
"Deniz lighthouse tabanlı denetleyicilerin ve izleyicilerin kullanılmasına "
"izin verir.\n"
"SteamVR'nin kurulu olmasını gerektirir.\n"
"Aygıtlar WiVRn'e bağlanmadan önce açık olmalıdır.\n"
"Kalibrasyon için motoc gibi harici bir araç gereklidir."
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "Özel adb konumu"
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "Adb konumu:"
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "Varsayılan"
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "Devre dışı"
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "OpenVR uyumluluk kitaplığı:"
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Yol: bin/linux64/vrclient.so hariç, kitaplık yolu"
#: 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 ""
"Steam oyunları için, Steam'de oyuna sağ tıklayın, Özellikler > Genel'e gidin "
"ve bunu \"Başlatma seçenekleri\" bölümüne yapıştırın:"
#: dashboard/qml/SteamLaunchOptions.qml:20
#, kde-format
msgid "Paste this in the Steam launch options for the app you want to start"
msgstr ""
"Başlatmak istediğiniz uygulama için bunu Steam başlatma seçeneklerine "
"yapıştırın"
#: dashboard/qml/SteamLaunchOptions.qml:26
#, kde-format
msgctxt "copy text to the clipboard"
msgid "Copy"
msgstr "Kopyala"
#: dashboard/qml/SteamLaunchOptions.qml:30
#, kde-format
msgid "Copied Steam launch command"
msgstr "Steam başlatma komutu kopyalandı"
#: dashboard/qml/TroubleshootPage.qml:20
#, kde-format
msgid "I cannot find the WiVRn app on my headset"
msgstr "Gözlüğümde WiVRn uygulamasını bulamıyorum"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
"\"unknown sources\" section."
msgstr ""
"Meta gözlüğüne USB üzerinden WiVRn'i kurduysanız, uygulama \"bilinmeyen "
"kaynaklar\" bölümündedir."
#: dashboard/qml/TroubleshootPage.qml:24
#, kde-format
msgid "I cannot see my computer in the WiVRn app"
msgstr "WiVRn uygulamasında bilgisayarımı göremiyorum"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, 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 ""
"Sunucu görünür değilse veya bağlantı başarısız oluyorsa, güvenlik "
"duvarınızda 5353 (UDP) ve 9757 (TCP ve UDP) bağlantı noktalarının açık "
"olduğundan emin olun."
#: dashboard/qml/TroubleshootPage.qml:28
#, kde-format
msgid "I have an \"Incompatible WiVRn server\" error on my headset"
msgstr "Gözlüğümde \"Uyumsuz WiVRn sunucusu\" hatası alıyorum"
#: 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>Gözlük uygulamasının ve bilgisayarınızdaki sunucunun sürümü eşleşmelidir."
"</p><ul><li>Gözlük uygulaması sürümü \"Hakkında\" sayfasındadır</"
"li><li>Sunucu sürümü <b>%1</b>'dir</li></ul>"
#: dashboard/qml/TroubleshootPage.qml:32
#, kde-format
msgid "I have a \"Pairing is disabled\" error"
msgstr "Eşleştirme devre dışı\" hatası alıyorum"
#: 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 ""
"Sunucuyu veya istemciyi yeniden yüklediyseniz veya başka bir gözlük bağlamak "
"istiyorsanız, bağlanmadan önce eşleştirmeyi etkinleştirmeniz gerekir."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently enabled with PIN %1."
msgstr "Eşleştirme şu anda PIN %1 ile etkin."
#: dashboard/qml/TroubleshootPage.qml:33
#, kde-format
msgid "Pairing is currently disabled."
msgstr "Eşleştirme şu anda devre dışı."
#: dashboard/qml/TroubleshootPage.qml:49
#, kde-format
msgid "I have no sound on my headset"
msgstr "Gözlüğümde ses yok"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
"device for applications to use it."
msgstr ""
"Gözlük bağlıyken, uygulamaların kullanması için varsayılan ses çıkış aygıtı "
"olarak \"WiVRn\" seçin."
#: dashboard/qml/TroubleshootPage.qml:67
#, kde-format
msgid "Report an issue"
msgstr "Bir sorun bildir"
#: dashboard/qml/TroubleshootPage.qml:72
#, kde-format
msgid "Ask on Discord"
msgstr "Discord'da sor"
#: dashboard/qml/WizardPage.qml:14
#, kde-format
msgid "Getting started"
msgstr "Başlangıç"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "Geri"
#: dashboard/qml/WizardPage.qml:64
#, kde-format
msgid "Welcome to WiVRn"
msgstr "WiVRn'e hoş geldiniz"
#: 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 ""
"Bu sihirbaz, WiVRn'i gözlüğünüze kurmanıza ve bilgisayarınıza bağlamanıza "
"yardımcı olacaktır."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "İleri"
#: dashboard/qml/WizardPage.qml:112
#, kde-format
msgid "How to enable developer mode"
msgstr "Geliştirici modu nasıl etkinleştirilir"
#: dashboard/qml/WizardPage.qml:119
#, kde-format
msgid "Follow the manufacturer's instructions below:"
msgstr "Aşağıdaki üreticinin talimatlarını izleyin:"
#: 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 ""
"WiVRn'i kullanmak için, istemci uygulamasını gözlüğünüze kurmanız gerekir.\n"
"Uygulamayı Meta mağazasından veya doğrudan USB üzerinden kurabilirsiniz."
#: dashboard/qml/WizardPage.qml:148
#, kde-format
msgid "Install from the Meta store"
msgstr "Meta mağazasından yükle"
#: 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 ""
"Quest 2, 3, 3S ve Pro için uygulamayı <a href=\"https://www.meta.com/"
"experiences/7959676140827574/\">Meta mağazasından</a> edinebilirsiniz."
#: 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 ""
"Daha yeni bir sürüm mevcut: %1 → %2, Meta mağazasındaki istemci uygulaması "
"uyumlu olmayabilir."
#: 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 ""
"Bu, gece derlemesidir, Meta mağazasındaki istemci uygulaması uyumlu "
"olmayabilir."
#: dashboard/qml/WizardPage.qml:181
#, kde-format
msgctxt "displayed between 'meta store' and 'install over USB' in the wizard"
msgid "Or"
msgstr "Veya"
#: dashboard/qml/WizardPage.qml:187
#, kde-format
msgid "Install over USB"
msgstr "USB üzerinden yükle"
#: dashboard/qml/WizardPage.qml:211
#, kde-format
msgid "ADB is not installed"
msgstr "ADB yüklü değil"
#: 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>Gözlük algılanmadı. Şunlardan emin olun:\n"
"<ul><li>ADB udev kuralları yüklü</li><li>Gözlük <a href=\"#\">geliştirici "
"modunda</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Başlatmak istediğiniz uygulamayı seçin"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
msgid ""
"The application you choose will be started automatically when you connect "
"your headset."
msgstr ""
"Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak "
"başlayacaktır."
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "Önemli bilgi"
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
"running."
msgstr ""
"WiVRn, SteamVR'nin yerini tamamen alır, WiVRn çalışırken SteamVR'yi "
"başlatmamalısınız."
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Gözlüğünüzde WiVRn uygulamasını başlatın"
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
"and enter PIN \"%2\"."
msgstr ""
"WiFi üzerinden bağlanmak için, gözlüğünüzde WiVRn uygulamasını başlatın, "
"\"%1\"e bağlanın ve \"%2\" PIN'ini girin."
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USB üzerinden bağlanmak için \"USB ile bağlan\"a tıklayın."
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "Sorun giderme"
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "Atla"
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "Bağlantı kuruldu"
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "Gözlüğünüz şimdi bağlı."
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr ""
"Başka bir gözlük bağlamak için, bağlanmadan önce kontrol panelinde "
"eşleştirmenin etkinleştirildiğinden emin olun."
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "Bitir"
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "Bitti"
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+629
View File
@@ -0,0 +1,629 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-09-18 13:35+0200\n"
"PO-Revision-Date: 2025-09-12 17:35+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <mail@fahriuzun.com>\n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.6\n"
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "Desteklenen swapchain formatı yok"
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Uyumsuz WiVRn sunucusu: TXT dosyasında protokol alanı yok"
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Uyumsuz WiVRn sunucu protokolü (uçbirim: {}, sunucu: {})"
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Ana bilgisayar adı çözümlenemiyor: {}"
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Bağlanılamıyor {} ({}): {}"
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Bağlantı için bekleniyor"
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Kalite"
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Devre dışı"
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "Bağlantıyı Kes"
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "Kapat"
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "Bağlantı"
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "{} Bağlan"
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "Gösterilen PIN'i gösterge paneline giriniz"
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "WiVRn sunucusuna bağlanıldı"
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "{} bağlanıldı"
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "Sunucuda bir uygulama başlatarak akışa başlayın."
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Bilgisayarınızda bir uygulama başlatın veya akış başlatmak için bir uygulama "
"seçin."
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"{} üzerinde bir uygulama başlatın veya akış başlatmak için bir tane seçin."
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "Ad"
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "Adres"
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "Sadece TCP"
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "İptal"
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "Kaydet"
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Yerel ağınızda\n"
"bir WiVRn sunucusu başlatın"
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "Oto Bağlan"
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "Bağlan"
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Uyumsuz sunucu versiyonu"
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "Sunucu mevcut değil"
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Türkçe"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr ""
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr ""
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "Tazeleme oranı"
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Otomatik"
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
msgstr ""
"Ölçülen uygulama performansına göre yenileme hızını seçin.\n"
"Değişiklik olduğunda titremeye neden olabilir."
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "Minimum tazeleme oranı"
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "Çözünürlük ölçeği"
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "göz başına %d%% - {}x{}"
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir"
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "Mikrofonu aktif et"
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "İşlenmemiş Mikrofon Sesi"
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Gürültü engelleme gibi ses filtrelerini zorla devre dışı bırak"
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "El izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir"
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "Göz takibi aktif et"
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "Yüz takibi aktif et"
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "Vücut takibi aktif et"
#: client/scenes/lobby_gui.cpp:985
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 ""
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
"etkinleştirilmesi gerekir,\n"
"aksi takdirde vücut verileri kontrol cihazı ve başlık konumlarından tahmin "
"edilecektir"
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "Alt vücut izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:1001
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 ""
"Generative Legs kullanarak alt vücut eklem pozisyonlarını tahmin edin\n"
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
"etkinleştirilmesi gerekir"
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "Kalça izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
msgstr ""
"Sadece alt vücut izleme etkinleştirildiğinde geçerlidir\n"
"Başka bir kalça izleme kaynağı kullanıldığında tercih edilebilir"
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "Lobide video geçişini etkinleştir"
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "Akış penceresinde aktif et"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Oyun akışı yapılırken ayar penceresini aktif eder.\n"
"Aktif iken, pencere her iki başparmak tuşlarına basılınca açılır."
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXR işlem sonrası"
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "Süper örnekleme"
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
msgstr ""
"Yüksek kontrastlı kenarlarda titremeyi azaltın.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla yüksek olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "Keskinleştirme"
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
msgstr ""
"Yüksek kontrastlı kenarların netliğini artırın ve bulanıklığı giderin.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla düşük olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU zamanı"
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "CPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU zamanı"
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "Mikrofonu aktif et?"
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "Göz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "Yüz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "Vücut takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "WiVRn'e hoş geldiniz"
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "Evet"
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "Hayır"
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "Lisanslar"
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "Mikrofon aktif"
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "Mikrofon devre dışı"
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "El takibi aktif"
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "El takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "Göz takibi aktif"
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "Göz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "Yüz takibi aktif"
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "Yüz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "Vücut takibi aktif"
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "Vücut takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "Sunucu ekle"
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "Sunucu listesi"
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "Ayarlar"
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "İşlem sonrası"
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "Hata ayıklama"
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "Hakkında"
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "Çıkış"
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Ana pencereyi hareket ettirmek için tutma düğmesine basın\n"
"veya avucunuzu yukarı kaldırın"
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "Ana pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Yeniden yansıt"
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Ağ"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "İndir"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "Gönder"
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Zaman [ms]"
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Encode"
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Gönder"
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Al"
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Decode"
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Blitted"
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Görüntülenen"
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Tahmin edilen"
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Fotonlara tahmini hareket gecikmesi: {}ms"
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "Pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr ""
"WiVRn penceresini görüntülemek için her iki başparmak çubuklarınıda basın"
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "Hareketin fotona ulaşma gecikmesi"
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "Foveasyon merkezi geçersiz kılma"
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "Aktif et"
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Boy {:.1f} deg"
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Uzaklık {:.2f} m"
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "Varsayılan"
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "Değiştir"
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "Başparmak çubuklarını kullanarak odak merkezini hareket ettirin"
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "Kaydetmek için A tuşuna, iptal etmek için B tuşuna basın"
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "İstatistikler"
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "İstatistik katmanı"
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "Kompakt görünüm"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Zaman aşımı"
#: client/wivrn_client.cpp:149
msgid "Incorrect PIN"
msgstr "Geçersiz PIN"
#: client/wivrn_client.cpp:153
msgid "Unable to check PIN"
msgstr "PIN kontrol edilemiyor"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Bu sunucuda eşleşme devre dışı"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "Snapdragon Oyun Süper Çözünürlüğü'nü etkinleştirin"
#~ 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 ""
#~ "Bu kulaklıkta, bu ayar yukarıdaki yerel Keskinleştirme ayarı ile tamamen "
#~ "değiştirilmiştir.\n"
#~ "Ne yaptığınızı biliyorsanız etkinleştirin."
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr ""
#~ "İstemci tarafında yükseltme ve keskinleştirme, kulaklıkta performans "
#~ "düşüşüne neden olur."
#~ msgid "Upscaling factor"
#~ msgstr "Yükseltme faktörü"
#~ msgid "Use edge direction"
#~ msgstr "Kenar yönünü kullan"
#~ msgid "Adds an additional performance cost"
#~ msgstr "Ek bir performans düşüşü ekler"
#~ msgid "Edge threshold"
#~ msgstr "Kenar eşiği"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "Önerilen: {:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "Kenar keskinliği"
+60 -59
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-07 23:22+0800\n"
"POT-Creation-Date: 2025-09-14 10:48+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"
@@ -84,7 +84,7 @@ msgid "No precompiled APK is available for this version."
msgstr "此版本沒有預編譯 APK 可用"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "ADB is not installed."
msgstr "未安裝 ADB"
@@ -131,7 +131,7 @@ msgstr "重新安裝 WiVRn"
msgid "Install WiVRn"
msgstr "安裝 WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355
#, kde-format
msgid "Headsets"
msgstr "頭戴式裝置"
@@ -176,7 +176,7 @@ msgstr "重新命名"
#: 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
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#, kde-format
msgid "Cancel"
msgstr "取消"
@@ -272,7 +272,8 @@ msgstr ""
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr "未偵測到 OpenVR 相容性,Steam 遊戲將無法載入 VR。\n"
msgstr ""
"未偵測到 OpenVR 相容性,Steam 遊戲將無法載入 VR。\n"
"請安裝 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:171
@@ -302,7 +303,7 @@ msgstr "配對中"
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374
#, kde-format
msgid "Connect by USB"
msgstr "透過 USB 連線"
@@ -328,22 +329,22 @@ msgstr "應用程式"
msgid "Steam information"
msgstr "Steam 資訊"
#: dashboard/qml/Main.qml:325
#: dashboard/qml/Main.qml:326
#, kde-format
msgid "Wizard"
msgstr "精靈"
#: dashboard/qml/Main.qml:332
#: dashboard/qml/Main.qml:333
#, kde-format
msgid "Install the app"
msgstr "安裝應用程式"
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "設定"
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "疑難排解"
@@ -448,19 +449,19 @@ msgctxt "encoder preset"
msgid "Default preset"
msgstr "預設"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:139
#, kde-format
msgctxt "encoder preset"
msgid "Low latency preset"
msgstr "低延遲預設"
#: dashboard/qml/SettingsPage.qml:170
#: dashboard/qml/SettingsPage.qml:158
#, kde-format
msgctxt "encoder preset"
msgid "Safe preset"
msgstr "安全預設"
#: dashboard/qml/SettingsPage.qml:193
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid ""
"To add a new encoder, split an existing encoder by clicking near an edge.\n"
@@ -469,84 +470,84 @@ msgstr ""
"要新增編碼器,請點擊邊緣附近以分割現有編碼器。\n"
"拖曳邊緣以調整大小或移除編碼器。"
#: dashboard/qml/SettingsPage.qml:220
#: dashboard/qml/SettingsPage.qml:208
#, kde-format
msgid "Encoder:"
msgstr "編碼器:"
#: dashboard/qml/SettingsPage.qml:229
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "自動"
#: dashboard/qml/SettingsPage.qml:234
#: dashboard/qml/SettingsPage.qml:222
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPUs)"
#: dashboard/qml/SettingsPage.qml:239
#: dashboard/qml/SettingsPage.qml:227
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD 和 Intel GPUs)"
#: dashboard/qml/SettingsPage.qml:244
#: dashboard/qml/SettingsPage.qml:232
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (軟體編碼)"
#: dashboard/qml/SettingsPage.qml:249
#: dashboard/qml/SettingsPage.qml:237
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
#: dashboard/qml/SettingsPage.qml:272
#: dashboard/qml/SettingsPage.qml:260
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"自動\" 將在可用時使用硬體加速"
#: dashboard/qml/SettingsPage.qml:278
#: dashboard/qml/SettingsPage.qml:266
#, kde-format
msgid "Codec:"
msgstr "編碼器:"
#: dashboard/qml/SettingsPage.qml:285
#: dashboard/qml/SettingsPage.qml:273
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "自動"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:277
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:293
#: dashboard/qml/SettingsPage.qml:281
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:285
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:319
#: dashboard/qml/SettingsPage.qml:307
#, kde-format
msgid "Advanced options"
msgstr "進階選項"
#: dashboard/qml/SettingsPage.qml:325
#: dashboard/qml/SettingsPage.qml:313
#, kde-format
msgid "Enable debug window"
msgstr "啟用偵錯視窗"
#: dashboard/qml/SettingsPage.qml:332
#: dashboard/qml/SettingsPage.qml:320
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "啟用 SteamVR 追蹤裝置支援"
#: dashboard/qml/SettingsPage.qml:335
#: dashboard/qml/SettingsPage.qml:323
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -559,44 +560,44 @@ msgstr ""
"裝置必須在連線到 WiVRn 之前開啟電源。\n"
"校準需要額外工具,例如 motoc。"
#: dashboard/qml/SettingsPage.qml:343
#: dashboard/qml/SettingsPage.qml:331
#, kde-format
msgid "Custom adb location"
msgstr "自訂 adb 位置"
#: dashboard/qml/SettingsPage.qml:354
#: dashboard/qml/SettingsPage.qml:342
#, kde-format
msgid "Adb location:"
msgstr "adb 位置:"
#: dashboard/qml/SettingsPage.qml:363
#: dashboard/qml/SettingsPage.qml:351
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "瀏覽"
#: dashboard/qml/SettingsPage.qml:373
#: dashboard/qml/SettingsPage.qml:361
#, kde-format
msgid "Default"
msgstr "預設"
#: dashboard/qml/SettingsPage.qml:387
#: dashboard/qml/SettingsPage.qml:375
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "自訂"
#: dashboard/qml/SettingsPage.qml:392
#: dashboard/qml/SettingsPage.qml:380
#, kde-format
msgid "Disabled"
msgstr "已停用"
#: dashboard/qml/SettingsPage.qml:400
#: dashboard/qml/SettingsPage.qml:388
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "OpenVR 相容性函式庫:"
#: dashboard/qml/SettingsPage.qml:426
#: dashboard/qml/SettingsPage.qml:414
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "函式庫路徑,不包含 bin/linux64/vrclient.so"
@@ -631,7 +632,7 @@ msgstr "已複製 Steam 啟動命令"
msgid "I cannot find the WiVRn app on my headset"
msgstr "我在我的頭顯上找不到 WiVRn 應用程式。"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -645,7 +646,7 @@ msgstr ""
msgid "I cannot see my computer in the WiVRn app"
msgstr "我在 WiVRn 應用程式中看不到我的電腦。"
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392
#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that port 5353 "
@@ -698,7 +699,7 @@ msgstr "目前已停用配對"
msgid "I have no sound on my headset"
msgstr "我的頭戴式裝置沒有聲音"
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440
#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -721,9 +722,9 @@ msgid "Getting started"
msgstr "入門指南"
#: 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
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#, kde-format
msgid "Back"
msgstr "返回"
@@ -741,8 +742,8 @@ msgid ""
msgstr "此精靈將幫助您在頭戴式裝置上設定 WiVRn,並將其連接到您的電腦。"
#: 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
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#, kde-format
msgid "Next"
msgstr "下一步"
@@ -834,24 +835,24 @@ msgid ""
"your headset."
msgstr "當您連接頭戴式裝置時,您選擇的應用程式將會自動啟動。"
#: dashboard/qml/WizardPage.qml:300
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid "Important information"
msgstr "重要訊息"
#: dashboard/qml/WizardPage.qml:307
#: dashboard/qml/WizardPage.qml:308
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
"running."
msgstr "WiVRn完全取代了SteamVR,在WiVRn運行時,請勿啟動SteamVR"
#: dashboard/qml/WizardPage.qml:358
#: dashboard/qml/WizardPage.qml:359
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "在您的頭戴式裝置上啟動 WiVRn 應用程式"
#: dashboard/qml/WizardPage.qml:363
#: dashboard/qml/WizardPage.qml:364
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -860,54 +861,54 @@ msgstr ""
"要通過 WiFi 連線,請在您的頭戴式裝置上啟動 WiVRn 應用程式,連線至 \"%1\" 並輸"
"入 PIN 碼 \"%2\"。"
#: dashboard/qml/WizardPage.qml:370
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "要透過 USB 連線,請點擊 \"透過 USB 連線\"。"
#: dashboard/qml/WizardPage.qml:383
#: dashboard/qml/WizardPage.qml:384
#, kde-format
msgid "Troubleshooting"
msgstr "疑難排解"
#: dashboard/qml/WizardPage.qml:405
#: dashboard/qml/WizardPage.qml:406
#, kde-format
msgid "Skip"
msgstr "跳過"
#: dashboard/qml/WizardPage.qml:425
#: dashboard/qml/WizardPage.qml:426
#, kde-format
msgid "Connection established"
msgstr "連線已建立"
#: dashboard/qml/WizardPage.qml:430
#: dashboard/qml/WizardPage.qml:431
#, kde-format
msgid "Your headset is now connected."
msgstr "您的頭戴式裝置現在已連線。"
#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
"before connecting."
msgstr "如要連接其他頭戴式裝置,請確保在連線之前在儀表板中啟用配對。"
#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#, kde-format
msgid "Finish"
msgstr "完成"
#: dashboard/qml/WizardPage.qml:472
#: dashboard/qml/WizardPage.qml:473
#, kde-format
msgid "Finished"
msgstr "已完成"
#: dashboard/wivrn_server.cpp:584
#: dashboard/wivrn_server.cpp:592
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:585
#: dashboard/wivrn_server.cpp:593
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+166 -149
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-07 23:22+0800\n"
"POT-Creation-Date: 2025-09-18 13:35+0200\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,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: client/scene.cpp:74
#: client/scene.cpp:72
msgid "No supported swapchain format"
msgstr "不支援的交換鏈格式"
@@ -44,94 +44,94 @@ msgstr "無法連線至 {} ({}): {}"
msgid "Waiting for connection"
msgstr "等待連線"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "正常"
#: client/scenes/lobby_gui.cpp:232
#: client/scenes/lobby_gui.cpp:235
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "畫質"
#: client/scenes/lobby_gui.cpp:234
#: client/scenes/lobby_gui.cpp:237
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "已停用"
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402
#: client/scenes/stream_gui.cpp:838
msgid "Disconnect"
msgstr "中斷連線"
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834
msgid "Close"
msgstr "關閉"
#: client/scenes/lobby_gui.cpp:268
#: client/scenes/lobby_gui.cpp:272
msgid "Connection"
msgstr "連線"
#: client/scenes/lobby_gui.cpp:270
#: client/scenes/lobby_gui.cpp:274
#, c++-format
msgid "Connection to {}"
msgstr "連線至 {}"
#: client/scenes/lobby_gui.cpp:300
#: client/scenes/lobby_gui.cpp:304
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:322
#: client/scenes/lobby_gui.cpp:326
msgid "Input the PIN displayed on the dashboard"
msgstr "請輸入控制面板上顯示的 PIN 碼"
#: client/scenes/lobby_gui.cpp:393
#: client/scenes/lobby_gui.cpp:397
msgid "Connected to WiVRn server"
msgstr "已連線到 WiVRn 伺服器"
#: client/scenes/lobby_gui.cpp:395
#: client/scenes/lobby_gui.cpp:399
#, c++-format
msgid "Connected to {}"
msgstr "已連線到 {}"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:409
msgid "Start an application on the server to start streaming."
msgstr "在伺服器那邊啟動程式來開始串流。"
#: client/scenes/lobby_gui.cpp:414
#: client/scenes/lobby_gui.cpp:421
msgid "Start an application on your computer or select one to start streaming."
msgstr "在您的電腦上啟動應用程式,或是選擇一個來開始串流。"
#: client/scenes/lobby_gui.cpp:416
#: client/scenes/lobby_gui.cpp:423
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "在 {} 上啟動應用程式,或是選擇一個來開始串流。"
#: client/scenes/lobby_gui.cpp:522
#: client/scenes/lobby_gui.cpp:546
msgid "Name"
msgstr "名"
#: client/scenes/lobby_gui.cpp:533
#: client/scenes/lobby_gui.cpp:557
msgid "Address"
msgstr "伺服器位址"
#: client/scenes/lobby_gui.cpp:542
#: client/scenes/lobby_gui.cpp:566
msgid "Port"
msgstr "連接埠"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:574
msgid "TCP only"
msgstr "僅限 TCP"
#: client/scenes/lobby_gui.cpp:557
#: client/scenes/lobby_gui.cpp:581
msgid "Cancel"
msgstr "取消"
#: client/scenes/lobby_gui.cpp:571
#: client/scenes/lobby_gui.cpp:595
msgid "Save"
msgstr "儲存"
#: client/scenes/lobby_gui.cpp:624
#: client/scenes/lobby_gui.cpp:648
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -139,32 +139,45 @@ msgstr ""
"在您的區域網路中啟動\n"
"WiVRn 伺服器"
#: client/scenes/lobby_gui.cpp:656
#: client/scenes/lobby_gui.cpp:680
msgid "Autoconnect"
msgstr "自動連線"
#: client/scenes/lobby_gui.cpp:682
#: client/scenes/lobby_gui.cpp:706
msgid "Connect"
msgstr "連線"
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "伺服器版本不相容"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:718
msgid "Server not available"
msgstr "無法使用伺服器"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:800
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "漢語"
#: client/scenes/lobby_gui.cpp:814
msgid "Language"
msgstr ""
#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816
msgid "System language"
msgstr ""
#: client/scenes/lobby_gui.cpp:841
msgid "Refresh rate"
msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:850
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -172,59 +185,59 @@ msgstr ""
"根據測量的應用程式效能選擇刷新率。\n"
"變更時可能會造成閃爍。"
#: client/scenes/lobby_gui.cpp:806
#: client/scenes/lobby_gui.cpp:867
msgid "Minimum refresh rate"
msgstr "最低刷新率"
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:890
msgid "Resolution scale"
msgstr "解析度縮放比例"
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#: client/scenes/lobby_gui.cpp:894
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - 單眼 {}x{}"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:905
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "解析度高於 {}x{} 可能不被頭戴式裝置支援"
#: client/scenes/lobby_gui.cpp:850
#: client/scenes/lobby_gui.cpp:911
msgid "Enable microphone"
msgstr "啟用麥克風"
#: client/scenes/lobby_gui.cpp:859
#: client/scenes/lobby_gui.cpp:920
msgid "Unprocessed Microphone Audio"
msgstr "未處理的麥克風音訊"
#: client/scenes/lobby_gui.cpp:865
#: client/scenes/lobby_gui.cpp:926
msgid "Force disable audio filters, such as noise cancellation"
msgstr "強制停用音訊濾波器,例如降噪"
#: client/scenes/lobby_gui.cpp:872
#: client/scenes/lobby_gui.cpp:933
msgid "Enable hand tracking"
msgstr "啟用手部追蹤"
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980
#: client/scenes/lobby_gui.cpp:1025
msgid "This feature is not supported by your headset"
msgstr "您的頭戴式裝置不支援此功能"
#: client/scenes/lobby_gui.cpp:884
#: client/scenes/lobby_gui.cpp:945
msgid "Enable eye tracking"
msgstr "啟用眼球追蹤"
#: client/scenes/lobby_gui.cpp:896
#: client/scenes/lobby_gui.cpp:957
msgid "Enable face tracking"
msgstr "啟用臉部追蹤"
#: client/scenes/lobby_gui.cpp:909
#: client/scenes/lobby_gui.cpp:971
msgid "Enable body tracking"
msgstr "啟用身體追蹤"
#: client/scenes/lobby_gui.cpp:925
#: client/scenes/lobby_gui.cpp:985
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -233,11 +246,11 @@ msgstr ""
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」,\n"
"否則身體資料將根據控制器和頭戴式裝置的位置進行猜測"
#: client/scenes/lobby_gui.cpp:938
#: client/scenes/lobby_gui.cpp:995
msgid "Enable lower body tracking"
msgstr "啟用下半身追蹤"
#: client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:1001
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -246,11 +259,11 @@ msgstr ""
"使用 Generative Legs 預估下半身關節位置\n"
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1004
msgid "Enable hip tracking"
msgstr "啟用臀部追蹤"
#: client/scenes/lobby_gui.cpp:953
#: client/scenes/lobby_gui.cpp:1010
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -258,19 +271,31 @@ msgstr ""
"僅在啟用下半身追蹤時生效\n"
"在使用其他臀部追蹤時可能需要此功能"
#: client/scenes/lobby_gui.cpp:961
#: client/scenes/lobby_gui.cpp:1018
msgid "Enable video passthrough in lobby"
msgstr "在待機區啟用影像穿透 (Passthrough)"
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:1029
msgid "Enable in-stream window"
msgstr "啟用串流中視窗"
#: client/scenes/lobby_gui.cpp:1032
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"啟用在遊戲串流期間顯示配置視窗\n"
"若啟用此功能,按下兩根搖桿後,將會顯示該視窗。"
#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445
msgid "OpenXR post-processing"
msgstr "OpenXR 後期處理"
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
msgid "Supersampling"
msgstr "超取樣"
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -278,11 +303,11 @@ msgstr ""
"減少高對比邊緣的閃爍。\n"
"當輸入解析度對於頭戴式顯示器來說很高時很有用"
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475
msgid "Sharpening"
msgstr "銳利化"
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -290,168 +315,125 @@ msgstr ""
"改善高對比邊緣的清晰度並抵消模糊。\n"
"當輸入解析度對於頭戴式顯示器來說較低時很有用"
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "啟用 Snapdragon 遊戲超級解析度"
#: client/scenes/lobby_gui.cpp:1048
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 ""
"在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n"
"僅在您了解自己在做什麼時啟用。"
#: client/scenes/lobby_gui.cpp:1050
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔"
#: client/scenes/lobby_gui.cpp:1068
msgid "Upscaling factor"
msgstr "向上取樣係數"
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "使用邊緣方向"
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "會增加額外的效能負擔"
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "邊緣閾值"
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "推薦:{:.1f}"
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "邊緣銳利度"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
msgid "CPU time"
msgstr "CPU 時間"
#: client/scenes/lobby_gui.cpp:1214
#: client/scenes/lobby_gui.cpp:1195
msgid "CPU time [ms]"
msgstr "CPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
msgid "GPU time"
msgstr "GPU 時間"
#: client/scenes/lobby_gui.cpp:1228
#: client/scenes/lobby_gui.cpp:1209
msgid "GPU time [ms]"
msgstr "GPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1271
#: client/scenes/lobby_gui.cpp:1252
msgid "Enable the microphone?"
msgstr "要啟用麥克風嗎?"
#: client/scenes/lobby_gui.cpp:1276
#: client/scenes/lobby_gui.cpp:1257
msgid "Enable eye tracking?"
msgstr "要啟用眼部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1281
#: client/scenes/lobby_gui.cpp:1262
msgid "Enable face tracking?"
msgstr "要啟用臉部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1286
#: client/scenes/lobby_gui.cpp:1267
msgid "Enable body tracking?"
msgstr "要啟用身體追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1294
#: client/scenes/lobby_gui.cpp:1275
msgid "Welcome to WiVRn"
msgstr "歡迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1318
#: client/scenes/lobby_gui.cpp:1299
msgid "Yes"
msgstr "是"
#: client/scenes/lobby_gui.cpp:1325
#: client/scenes/lobby_gui.cpp:1306
msgid "No"
msgstr "否"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
msgid "Licenses"
msgstr "授權資訊"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1650
msgid "Microphone is enabled"
msgstr "麥克風已啟用"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1651
msgid "Microphone is disabled"
msgstr "麥克風已停用"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1660
msgid "Hand tracking is enabled"
msgstr "手部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1661
msgid "Hand tracking is disabled"
msgstr "手部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1678
#: client/scenes/lobby_gui.cpp:1670
msgid "Eye tracking is enabled"
msgstr "眼球追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1679
#: client/scenes/lobby_gui.cpp:1671
msgid "Eye tracking is disabled"
msgstr "眼球追蹤已停用"
#: client/scenes/lobby_gui.cpp:1692
#: client/scenes/lobby_gui.cpp:1681
msgid "Face tracking is enabled"
msgstr "臉部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1682
msgid "Face tracking is disabled"
msgstr "臉部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1703
#: client/scenes/lobby_gui.cpp:1692
msgid "Body tracking is enabled"
msgstr "身體追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1704
#: client/scenes/lobby_gui.cpp:1693
msgid "Body tracking is disabled"
msgstr "身體追蹤已停用"
#: client/scenes/lobby_gui.cpp:1720
#: client/scenes/lobby_gui.cpp:1709
msgid "Add server"
msgstr "新增伺服器"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1954
msgid "Server list"
msgstr "伺服器列表"
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822
msgid "Settings"
msgstr "設定"
#: client/scenes/lobby_gui.cpp:1971
#: client/scenes/lobby_gui.cpp:1960
msgid "Post-processing"
msgstr "後期處理"
#: client/scenes/lobby_gui.cpp:1975
#: client/scenes/lobby_gui.cpp:1964
msgid "Debug"
msgstr "偵錯"
#: client/scenes/lobby_gui.cpp:1980
#: client/scenes/lobby_gui.cpp:1969
msgid "About"
msgstr "關於"
#: client/scenes/lobby_gui.cpp:1986
#: client/scenes/lobby_gui.cpp:1975
msgid "Exit"
msgstr "離開"
#: client/scenes/lobby_gui.cpp:2003
#: client/scenes/lobby_gui.cpp:1992
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -459,7 +441,7 @@ msgstr ""
"按下握把按鈕或手掌向上\n"
"以移動主視窗"
#: client/scenes/lobby_gui.cpp:2005
#: client/scenes/lobby_gui.cpp:1994
msgid "Press the grip button to move the main window"
msgstr "按下握把按鈕以移動主視窗"
@@ -475,11 +457,11 @@ msgstr "貼圖"
msgid "Network"
msgstr "網路"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422
msgid "Download"
msgstr "下載"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423
msgid "Upload"
msgstr "上傳"
@@ -520,66 +502,66 @@ msgstr "已顯示"
msgid "Predicted"
msgstr "已預測"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_gui.cpp:395
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "估計運動到光子的延遲: {}毫秒"
#: client/scenes/stream_gui.cpp:396
#: client/scenes/stream_gui.cpp:402
msgid "Press the grip button to move the window"
msgstr "按下握把按鈕來移動視窗"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "同時按下兩側搖桿以顯示 WiVRn 視窗"
#: client/scenes/stream_gui.cpp:420
#: client/scenes/stream_gui.cpp:426
msgid "Motion to photon latency"
msgstr "從動作到顯示的延遲"
#: client/scenes/stream_gui.cpp:492
#: client/scenes/stream_gui.cpp:503
msgid "Foveation center override"
msgstr "注視點渲染中心覆蓋"
#: client/scenes/stream_gui.cpp:495
#: client/scenes/stream_gui.cpp:506
msgid "Enable"
msgstr "啟用"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561
#, c++-format
msgid "Height {:.1f} deg"
msgstr "高度 {:.1f} 度"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距離 {:.2f} 公尺"
#: client/scenes/stream_gui.cpp:505
#: client/scenes/stream_gui.cpp:516
msgid "Default"
msgstr "預設"
#: client/scenes/stream_gui.cpp:516
#: client/scenes/stream_gui.cpp:527
msgid "Change"
msgstr "變更"
#: client/scenes/stream_gui.cpp:548
#: client/scenes/stream_gui.cpp:559
msgid "Use the thumbsticks to move the foveation center"
msgstr "使用搖桿移動注視點中心"
#: client/scenes/stream_gui.cpp:549
#: client/scenes/stream_gui.cpp:560
msgid "Press A to save or B to cancel"
msgstr "按下 A 儲存或 B 取消"
#: client/scenes/stream_gui.cpp:793
#: client/scenes/stream_gui.cpp:819
msgid "Stats"
msgstr "統計"
#: client/scenes/stream_gui.cpp:802
#: client/scenes/stream_gui.cpp:828
msgid "Statistics overlay"
msgstr "統計數據覆疊"
#: client/scenes/stream_gui.cpp:805
#: client/scenes/stream_gui.cpp:831
msgid "Compact view"
msgstr "精簡顯示"
@@ -599,6 +581,41 @@ msgstr "無法驗證 PIN 碼"
msgid "Pairing is disabled on server"
msgstr "伺服器上已停用配對"
#~ msgid "Enable Snapdragon Game Super Resolution"
#~ msgstr "啟用 Snapdragon 遊戲超級解析度"
#~ 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 ""
#~ "在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n"
#~ "僅在您了解自己在做什麼時啟用。"
#~ msgid ""
#~ "Client-side upscaling and sharpening, adds a performance cost on the "
#~ "headset"
#~ msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔"
#~ msgid "Upscaling factor"
#~ msgstr "向上取樣係數"
#~ msgid "Use edge direction"
#~ msgstr "使用邊緣方向"
#~ msgid "Adds an additional performance cost"
#~ msgstr "會增加額外的效能負擔"
#~ msgid "Edge threshold"
#~ msgstr "邊緣閾值"
#, c++-format
#~ msgid "Recommended: {:.1f}"
#~ msgstr "推薦:{:.1f}"
#~ msgid "Edge sharpness"
#~ msgstr "邊緣銳利度"
#~ msgid "Video stream interrupted"
#~ msgstr "影片串流中斷"
+1 -1
View File
@@ -1 +1 @@
5c137fe28b232fe460f9b03defa7749adc32ee48
62013b7403be3d9e6e8b983787331219f5925d0a
@@ -1,7 +1,7 @@
From 18e184e504d9f55dbba3f02c87f96410b2ce04ab Mon Sep 17 00:00:00 2001
From 84758f77a11a31e144d2120a465a954287eb0f67 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 01/10] c/multi: early wake of compositor
Subject: [PATCH 1/7] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -10,10 +10,10 @@ Subject: [PATCH 01/10] c/multi: early wake of compositor
3 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
index 553565db4..789a2d042 100644
index 94cea110e..88347a092 100644
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
@@ -232,7 +232,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
os_mutex_lock(&mc->slot_lock);
slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress);
os_mutex_unlock(&mc->slot_lock);
@@ -128,5 +128,5 @@ index be763d1c1..22c801f65 100644
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
// Make sure there is at least some sort of valid frame data here.
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From b31b5aa4e7e890ae079ae2953a1ce3fc2e47b954 Mon Sep 17 00:00:00 2001
From b73d7a32daa626ae401543e1c3ed8fd8d8290f8d Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 2 Apr 2024 17:14:42 +0200
Subject: [PATCH 02/10] ipc/server: Always listen to stdin
Subject: [PATCH 2/7] ipc/server: Always listen to stdin
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
@@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644
// default.
// This polls stdin.
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From 46cacda03c5552ffb70601dd89e0abe38e97c1d3 Mon Sep 17 00:00:00 2001
From a85beae795aba8f82abab849e9e5c2ce74511357 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 03/10] Use extern socket fd
Subject: [PATCH 3/7] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
@@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From 9e2288bc85a5be9bb0228a42dc5a9419c4357eb8 Mon Sep 17 00:00:00 2001
From f472a02f86bd98e0cb88847fd8c9104bbd5c74f5 Mon Sep 17 00:00:00 2001
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
Date: Sat, 23 Nov 2024 02:42:12 +0900
Subject: [PATCH 05/10] change environment blend mode selection logic
Subject: [PATCH 4/7] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
@@ -53,5 +53,5 @@ index 22c801f65..1155bc67e 100644
}
--
2.50.1
2.51.0
@@ -1,7 +1,7 @@
From 53d8509dff69caccecdc38b443864b1a755486dd Mon Sep 17 00:00:00 2001
From 7c01c47b2a1c4da040e0d25f4b9cb760ae88aa25 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 09/10] st/oxr: forward 0 refresh rate
Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate
---
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
@@ -29,5 +29,5 @@ index 9c5889f12..c4cdaf8c3 100644
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
found = true;
--
2.50.1
2.51.0
@@ -0,0 +1,46 @@
From db19f48adcc6e9395bf93a920623b48b86a9f378 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sun, 31 Aug 2025 17:05:49 +0200
Subject: [PATCH 7/7] Limit foveation samples per pixel
---
src/xrt/compositor/shaders/distortion.comp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
index cd1828ac9..41de849e6 100644
--- a/src/xrt/compositor/shaders/distortion.comp
+++ b/src/xrt/compositor/shaders/distortion.comp
@@ -12,6 +12,7 @@
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
#define MAX_DIM 4097
+#define MAX_SAMPLES 4
layout(set = 0, binding = 0) uniform sampler2D source[2];
layout(set = 0, binding = 1, std430) buffer restrict Foveation
@@ -67,13 +68,18 @@ void main()
if (xmin == xmax)
return;
+ uint xstep = (xmax - xmin + MAX_SAMPLES - 1) / MAX_SAMPLES;
+ uint ystep = (ymax - ymin + MAX_SAMPLES - 1) / MAX_SAMPLES;
+
vec4 colour = vec4(0);
- for (uint y = ymin ; y < ymax; y += 1) {
- for (uint x = xmin ; x < xmax; x += 1) {
+ uint count = 0;
+ for (uint y = ymin ; y < ymax; y += ystep) {
+ for (uint x = xmin ; x < xmax; x += xstep) {
colour += texelFetch(source[iz], ivec2(x, y), 0);
+ ++count;
}
}
- colour /= (xmax - xmin) * (ymax - ymin);
+ colour /= count;
colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
--
2.51.0
@@ -1,82 +0,0 @@
From 877709160be24c4bd504b8d8cd04197cc2bf2b69 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Thu, 27 Feb 2025 22:45:36 +0100
Subject: [PATCH 08/10] c/main: allow custom pacing app factory
---
src/xrt/compositor/main/comp_compositor.c | 10 ++++++----
src/xrt/compositor/main/comp_main_interface.h | 4 ++++
src/xrt/targets/common/target_instance.c | 2 +-
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index 819c2c8b3..a42d25869 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c)
xrt_result_t
comp_main_create_system_compositor(struct xrt_device *xdev,
const struct comp_target_factory *ctf,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc)
{
COMP_TRACE_MARKER();
@@ -1185,10 +1186,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
}
// Standard app pacer.
- struct u_pacing_app_factory *upaf = NULL;
- xrt_result_t xret = u_pa_factory_create(&upaf);
- assert(xret == XRT_SUCCESS && upaf != NULL);
- (void)xret;
+ if (upaf == NULL) {
+ xrt_result_t xret = u_pa_factory_create(&upaf);
+ assert(xret == XRT_SUCCESS && upaf != NULL);
+ (void)xret;
+ }
return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc);
}
diff --git a/src/xrt/compositor/main/comp_main_interface.h b/src/xrt/compositor/main/comp_main_interface.h
index 0f0678358..f60568b43 100644
--- a/src/xrt/compositor/main/comp_main_interface.h
+++ b/src/xrt/compositor/main/comp_main_interface.h
@@ -15,6 +15,7 @@
#include "xrt/xrt_compositor.h"
struct comp_target_factory;
+struct u_pacing_app_factory;
#ifdef __cplusplus
extern "C" {
@@ -31,11 +32,14 @@ extern "C" {
* @param xdev The head device
* @param ctf A compositor target factory to force the output device, must remain valid for the lifetime of the
* compositor. If NULL, factory is automatically selected
+ * @param upaf A pacing app factory to customize the application pacer, compositor takes ownership.
+ * If NULL, a default factory is used
* @param out_xsysc The output compositor
*/
xrt_result_t
comp_main_create_system_compositor(struct xrt_device *xdev,
const struct comp_target_factory *ctf,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc);
diff --git a/src/xrt/targets/common/target_instance.c b/src/xrt/targets/common/target_instance.c
index 617561c37..e10ba8358 100644
--- a/src/xrt/targets/common/target_instance.c
+++ b/src/xrt/targets/common/target_instance.c
@@ -109,7 +109,7 @@ t_instance_create_system(struct xrt_instance *xinst,
#ifdef XRT_MODULE_COMPOSITOR_MAIN
if (xret == XRT_SUCCESS && xsysc == NULL) {
- xret = comp_main_create_system_compositor(head, NULL, &xsysc);
+ xret = comp_main_create_system_compositor(head, NULL, NULL, &xsysc);
}
#else
if (!use_null) {
--
2.50.1
@@ -0,0 +1,24 @@
From a17589c9f77a5e5c3a56685017115fe07f9fd9cc Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Mon, 22 Sep 2025 23:33:31 +0200
Subject: [PATCH] vk: fix video encode queue index
---
src/xrt/auxiliary/vk/vk_bundle_init.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
index 01ce0c2f1..c4c63b608 100644
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
@@ -1513,6 +1513,7 @@ vk_create_device(struct vk_bundle *vk,
vk->vkGetDeviceQueue(vk->device, vk->main_queue.family_index, 0, &vk->main_queue.queue);
#if defined(VK_KHR_video_encode_queue)
if (vk->encode_queue.family_index != VK_QUEUE_FAMILY_IGNORED) {
+ vk->encode_queue.index = 0;
vk->vkGetDeviceQueue(vk->device, vk->encode_queue.family_index, 0, &vk->encode_queue.queue);
}
#endif
--
2.51.0
@@ -1,700 +0,0 @@
From 1bc74f74b613cce9d32c0f4bf16de70ddb7fb482 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Mon, 2 Jun 2025 14:51:11 +0200
Subject: [PATCH 10/10] Replace distortion with pixel-aligned foveation
---
src/xrt/compositor/CMakeLists.txt | 2 +-
src/xrt/compositor/render/render_compute.c | 181 ++-----------------
src/xrt/compositor/render/render_interface.h | 33 ++--
src/xrt/compositor/render/render_resources.c | 71 +-------
src/xrt/compositor/shaders/distortion.comp | 134 ++++----------
src/xrt/compositor/util/comp_render_cs.c | 33 +---
6 files changed, 76 insertions(+), 378 deletions(-)
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
index 1ba5ec438..f1defe77a 100644
--- a/src/xrt/compositor/CMakeLists.txt
+++ b/src/xrt/compositor/CMakeLists.txt
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
${SHADER_HEADERS}
render/render_buffer.c
render/render_compute.c
- render/render_distortion.c
+ # render/render_distortion.c implemented in wivrn
render/render_gfx.c
render/render_interface.h
render/render_resources.c
diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c
index fd04801d4..5cd5a1726 100644
--- a/src/xrt/compositor/render/render_compute.c
+++ b/src/xrt/compositor/render/render_compute.c
@@ -167,8 +167,8 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
VkSampler src_samplers[XRT_MAX_VIEWS],
VkImageView src_image_views[XRT_MAX_VIEWS],
uint32_t distortion_binding,
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS],
- VkImageView distortion_image_views[3 * XRT_MAX_VIEWS],
+ VkDeviceSize foveation_size,
+ VkBuffer foveation_buffer,
uint32_t target_binding_y,
uint32_t target_binding_cbcr,
VkImageView target_image_view_y,
@@ -186,12 +186,11 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
src_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
}
- VkDescriptorImageInfo distortion_image_info[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < 3 * view_count; ++i) {
- distortion_image_info[i].sampler = distortion_samplers[i];
- distortion_image_info[i].imageView = distortion_image_views[i];
- distortion_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
- }
+ VkDescriptorBufferInfo foveation_buffer_info = {
+ .buffer = foveation_buffer,
+ .offset = 0,
+ .range = foveation_size,
+ };
VkDescriptorImageInfo target_image_y_info = {
.imageView = target_image_view_y,
@@ -222,9 +221,9 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
.dstSet = descriptor_set,
.dstBinding = distortion_binding,
- .descriptorCount = 3 * view_count,
- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
- .pImageInfo = distortion_image_info,
+ .descriptorCount = 1,
+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
+ .pBufferInfo = &foveation_buffer_info,
},
{
.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
@@ -483,146 +482,6 @@ render_compute_layers(struct render_compute *render,
1); // groupCountZ
}
-void
-render_compute_projection_timewarp(struct render_compute *render,
- VkSampler src_samplers[XRT_MAX_VIEWS],
- VkImageView src_image_views[XRT_MAX_VIEWS],
- const struct xrt_normalized_rect src_norm_rects[XRT_MAX_VIEWS],
- const struct xrt_pose src_poses[XRT_MAX_VIEWS],
- const struct xrt_fov src_fovs[XRT_MAX_VIEWS],
- const struct xrt_pose new_poses[XRT_MAX_VIEWS],
- VkImage target_image,
- VkImageView target_image_view_y,
- VkImageView target_image_view_cbcr,
- const struct render_viewport_data views[XRT_MAX_VIEWS])
-{
- assert(render->r != NULL);
-
- struct vk_bundle *vk = vk_from_render(render);
- struct render_resources *r = render->r;
-
-
- /*
- * UBO
- */
-
- struct xrt_matrix_4x4 time_warp_matrix[XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- render_calc_time_warp_matrix( //
- &src_poses[i], //
- &src_fovs[i], //
- &new_poses[i], //
- &time_warp_matrix[i]); //
- }
-
- struct render_compute_distortion_ubo_data *data =
- (struct render_compute_distortion_ubo_data *)r->compute.distortion.ubo.mapped;
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- data->views[i] = views[i];
- data->pre_transforms[i] = r->distortion.uv_to_tanangle[i];
- data->transforms[i] = time_warp_matrix[i];
- data->post_transforms[i] = src_norm_rects[i];
- }
-
- /*
- * Source, target and distortion images.
- */
-
- VkImageSubresourceRange subresource_range = {
- .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
- .baseMipLevel = 0,
- .levelCount = VK_REMAINING_MIP_LEVELS,
- .baseArrayLayer = 0,
- .layerCount = VK_REMAINING_ARRAY_LAYERS,
- };
-
- vk_cmd_image_barrier_gpu_locked( //
- vk, //
- r->cmd, //
- target_image, //
- 0, //
- VK_ACCESS_SHADER_WRITE_BIT, //
- VK_IMAGE_LAYOUT_UNDEFINED, //
- VK_IMAGE_LAYOUT_GENERAL, //
- subresource_range); //
-
- VkSampler sampler = r->samplers.clamp_to_edge;
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
- }
-
- update_compute_shared_descriptor_set( //
- vk, //
- r->compute.src_binding, //
- src_samplers, //
- src_image_views, //
- r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
- r->compute.target_binding_y, //
- r->compute.target_binding_cbcr, //
- target_image_view_y, //
- target_image_view_cbcr, //
- r->compute.ubo_binding, //
- r->compute.distortion.ubo.buffer, //
- VK_WHOLE_SIZE, //
- render->shared_descriptor_set, //
- render->r->view_count); //
-
- vk->vkCmdBindPipeline( //
- r->cmd, //
- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint
- r->compute.distortion.timewarp_pipeline); // pipeline
-
- vk->vkCmdBindDescriptorSets( //
- r->cmd, //
- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint
- r->compute.distortion.pipeline_layout, // layout
- 0, // firstSet
- 1, // descriptorSetCount
- &render->shared_descriptor_set, // pDescriptorSets
- 0, // dynamicOffsetCount
- NULL); // pDynamicOffsets
-
-
- uint32_t w = 0, h = 0;
- calc_dispatch_dims_views(views, render->r->view_count, &w, &h);
- assert(w != 0 && h != 0);
-
- vk->vkCmdDispatch( //
- r->cmd, //
- w, // groupCountX
- h, // groupCountY
- 2); // groupCountZ
-
- VkImageMemoryBarrier memoryBarrier = {
- .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
- .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT,
- .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT,
- .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
- .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
- .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
- .image = target_image,
- .subresourceRange = subresource_range,
- };
-
- vk->vkCmdPipelineBarrier( //
- r->cmd, //
- VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, //
- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, //
- 0, //
- 0, //
- NULL, //
- 0, //
- NULL, //
- 1, //
- &memoryBarrier); //
-}
-
void
render_compute_projection(struct render_compute *render,
VkSampler src_samplers[XRT_MAX_VIEWS],
@@ -673,22 +532,14 @@ render_compute_projection(struct render_compute *render,
VK_IMAGE_LAYOUT_GENERAL, //
subresource_range); //
- VkSampler sampler = r->samplers.clamp_to_edge;
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
- for (uint32_t i = 0; i < render->r->view_count; ++i) {
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
- }
-
update_compute_shared_descriptor_set( //
vk, //
r->compute.src_binding, //
src_samplers, //
src_image_views, //
r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
+ VK_WHOLE_SIZE, //
+ r->distortion.buffer, //
r->compute.target_binding_y, //
r->compute.target_binding_cbcr, //
target_image_view_y, //
@@ -804,13 +655,9 @@ render_compute_clear(struct render_compute *render,
VkSampler sampler = r->samplers.mock;
VkSampler src_samplers[XRT_MAX_VIEWS];
VkImageView src_image_views[XRT_MAX_VIEWS];
- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS];
for (uint32_t i = 0; i < render->r->view_count; ++i) {
src_samplers[i] = sampler;
src_image_views[i] = r->mock.color.image_view;
- distortion_samplers[3 * i + 0] = sampler;
- distortion_samplers[3 * i + 1] = sampler;
- distortion_samplers[3 * i + 2] = sampler;
}
update_compute_shared_descriptor_set( //
@@ -819,8 +666,8 @@ render_compute_clear(struct render_compute *render,
src_samplers, //
src_image_views, //
r->compute.distortion_binding, //
- distortion_samplers, //
- r->distortion.image_views, //
+ VK_WHOLE_SIZE, //
+ r->distortion.buffer, //
r->compute.target_binding_y, //
r->compute.target_binding_cbcr, //
target_image_view_y, //
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
index 2f8ce5287..d74ec78dd 100644
--- a/src/xrt/compositor/render/render_interface.h
+++ b/src/xrt/compositor/render/render_interface.h
@@ -74,12 +74,8 @@ extern "C" {
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
-//! Distortion image dimension in pixels
-#define RENDER_DISTORTION_IMAGE_DIMENSIONS (128)
-
-//! How many distortion images we have, one for each channel (3 rgb) and per view.
-#define RENDER_DISTORTION_IMAGES_SIZE (3 * XRT_MAX_VIEWS)
-#define RENDER_DISTORTION_IMAGES_COUNT(RENDER_RESOURCES) (3 * RENDER_RESOURCES->view_count)
+//! Foveation buffer dimension in pixels (including past-the end pixel)
+#define RENDER_FOVEATION_BUFFER_DIMENSIONS (4096 + 1)
//! The binding that the layer projection and quad shader have their UBO on.
#define RENDER_BINDING_LAYER_SHARED_UBO 0
@@ -519,9 +515,6 @@ struct render_resources
//! Doesn't depend on target so is static.
VkPipeline pipeline;
- //! Doesn't depend on target so is static.
- VkPipeline timewarp_pipeline;
-
//! Target info.
struct render_buffer ubo;
} distortion;
@@ -543,17 +536,11 @@ struct render_resources
//! Transform to go from UV to tangle angles.
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
- //! Backing memory to distortion images.
- VkDeviceMemory device_memories[RENDER_DISTORTION_IMAGES_SIZE];
-
- //! Distortion images.
- VkImage images[RENDER_DISTORTION_IMAGES_SIZE];
+ //! Backing memory to foveation buffers.
+ VkDeviceMemory device_memory;
- //! The views into the distortion images.
- VkImageView image_views[RENDER_DISTORTION_IMAGES_SIZE];
-
- //! Whether distortion images have been pre-rotated 90 degrees.
- bool pre_rotated;
+ //! Foveation buffer.
+ VkBuffer buffer;
} distortion;
};
@@ -1298,6 +1285,14 @@ struct render_compute_distortion_ubo_data
struct xrt_matrix_4x4 transforms[XRT_MAX_VIEWS];
};
+struct render_compute_distortion_foveation_data
+{
+ // For each output pixel: index of the first pixel to read.
+ // contains 1 additional value at the end for past-the end pixel
+ uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
+ uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
+};
+
/*!
* Init struct and create resources needed for compute rendering.
*
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
index 5b9addd59..7d4d9cddb 100644
--- a/src/xrt/compositor/render/render_resources.c
+++ b/src/xrt/compositor/render/render_resources.c
@@ -258,8 +258,8 @@ create_compute_distortion_descriptor_set_layout(struct vk_bundle *vk,
},
{
.binding = distortion_binding,
- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
- .descriptorCount = 6,
+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
+ .descriptorCount = 1,
.stageFlags = VK_SHADER_STAGE_COMPUTE_BIT,
},
{
@@ -309,12 +309,6 @@ struct compute_layer_params
uint32_t image_array_size;
};
-struct compute_distortion_params
-{
- uint32_t distortion_texel_count;
- VkBool32 do_timewarp;
-};
-
XRT_CHECK_RESULT static VkResult
create_compute_layer_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
@@ -359,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
VkShaderModule shader,
VkPipelineLayout pipeline_layout,
- const struct compute_distortion_params *params,
VkPipeline *out_compute_pipeline)
{
-#define ENTRY(ID, FIELD) \
- { \
- .constantID = ID, \
- .offset = offsetof(struct compute_distortion_params, FIELD), \
- sizeof(params->FIELD), \
- }
-
- VkSpecializationMapEntry entries[2] = {
- ENTRY(0, distortion_texel_count),
- ENTRY(1, do_timewarp),
- };
-#undef ENTRY
-
- VkSpecializationInfo specialization_info = {
- .mapEntryCount = ARRAY_SIZE(entries),
- .pMapEntries = entries,
- .dataSize = sizeof(*params),
- .pData = params,
- };
return vk_create_compute_pipeline( //
vk, // vk_bundle
pipeline_cache, // pipeline_cache
shader, // shader
pipeline_layout, // pipeline_layout
- &specialization_info, // specialization_info
+ NULL, // specialization_info
out_compute_pipeline); // out_compute_pipeline
}
@@ -849,9 +823,9 @@ render_resources_init(struct render_resources *r,
struct vk_descriptor_pool_info compute_pool_info = {
.uniform_per_descriptor_count = 1,
// layer images
- .sampler_per_descriptor_count = r->compute.layer.image_array_size + RENDER_DISTORTION_IMAGES_COUNT(r),
+ .sampler_per_descriptor_count = r->compute.layer.image_array_size,
.storage_image_per_descriptor_count = 1,
- .storage_buffer_per_descriptor_count = 0,
+ .storage_buffer_per_descriptor_count = 1,
.descriptor_count = compute_descriptor_count,
.freeable = false,
};
@@ -971,39 +945,16 @@ render_resources_init(struct render_resources *r,
VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout,
"render_resources compute distortion pipeline layout");
- struct compute_distortion_params distortion_params = {
- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS,
- .do_timewarp = false,
- };
-
ret = create_compute_distortion_pipeline( //
vk, // vk_bundle
r->pipeline_cache, // pipeline_cache
r->shaders->distortion_comp, // shader
r->compute.distortion.pipeline_layout, // pipeline_layout
- &distortion_params, // params
&r->compute.distortion.pipeline); // out_compute_pipeline
VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false);
VK_NAME_PIPELINE(vk, r->compute.distortion.pipeline, "render_resources compute distortion pipeline");
- struct compute_distortion_params distortion_timewarp_params = {
- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS,
- .do_timewarp = true,
- };
-
- ret = create_compute_distortion_pipeline( //
- vk, // vk_bundle
- r->pipeline_cache, // pipeline_cache
- r->shaders->distortion_comp, // shader
- r->compute.distortion.pipeline_layout, // pipeline_layout
- &distortion_timewarp_params, // params
- &r->compute.distortion.timewarp_pipeline); // out_compute_pipeline
- VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false);
-
- VK_NAME_PIPELINE(vk, r->compute.distortion.timewarp_pipeline,
- "render_resources compute distortion timewarp pipeline");
-
size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data);
ret = render_buffer_init( //
@@ -1056,15 +1007,8 @@ render_resources_init(struct render_resources *r,
* Compute distortion textures, not created until later.
*/
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.image_views[i] = VK_NULL_HANDLE;
- }
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.images[i] = VK_NULL_HANDLE;
- }
- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) {
- r->distortion.device_memories[i] = VK_NULL_HANDLE;
- }
+ r->distortion.buffer = VK_NULL_HANDLE;
+ r->distortion.device_memory = VK_NULL_HANDLE;
/*
@@ -1141,7 +1085,6 @@ render_resources_fini(struct render_resources *r)
D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout);
D(Pipeline, r->compute.distortion.pipeline);
- D(Pipeline, r->compute.distortion.timewarp_pipeline);
D(PipelineLayout, r->compute.distortion.pipeline_layout);
D(Pipeline, r->compute.clear.pipeline);
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
index 9ce46fe6f..f3be617bd 100644
--- a/src/xrt/compositor/shaders/distortion.comp
+++ b/src/xrt/compositor/shaders/distortion.comp
@@ -7,17 +7,17 @@
#include "srgb.inc.glsl"
-
-// The size of the distortion texture dimensions in texels.
-layout(constant_id = 0) const int distortion_texel_count = 2;
-
-// Should we do timewarp.
-layout(constant_id = 1) const bool do_timewarp = false;
-
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
+#define MAX_DIM 4097
+
layout(set = 0, binding = 0) uniform sampler2D source[2];
-layout(set = 0, binding = 1) uniform sampler2D distortion[6];
+layout(set = 0, binding = 1, std430) buffer restrict Foveation
+{
+ uint x[2*MAX_DIM];
+ uint y[2*MAX_DIM];
+} foveation;
+
layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
layout(set = 0, binding = 3, std140) uniform restrict Config
{
@@ -41,109 +41,40 @@ vec3 rgb_to_ycbcr(vec3 color)
return transpose(color_space) * color + vec3(0, 0.5, 0.5);
}
-vec2 position_to_uv(ivec2 extent, uint ix, uint iy)
-{
- // Turn the index into floating point.
- vec2 xy = vec2(float(ix), float(iy));
-
- // The inverse of the extent of the target image is the pixel size in [0 .. 1] space.
- vec2 extent_pixel_size = vec2(1.0 / float(extent.x), 1.0 / float(extent.y));
-
- // Per-target pixel we move the size of the pixels.
- vec2 dist_uv = xy * extent_pixel_size;
-
- // Emulate a triangle sample position by offset half target pixel size.
- dist_uv = dist_uv + extent_pixel_size / 2.0;
-
-
- // To correctly sample we need to put position (0, 0) in the
- // middle of the (0, 0) texel in the distortion textures. That's why we
- // offset with half the texel size, pushing all samples into the middle
- // of each texels, a kin to a vertex buffer. We need to put uv coord
- // (1, 1) in the middle of the last texel, that pixel is (size - 1)
- // texels away from the first texel. So we need to scale [0 .. 1] to
- // [0 .. size - 1].
-
-#define DIM (float(distortion_texel_count))
-#define STRETCH ((DIM - 1.0) / DIM)
-#define OFFSET (1.0 / (DIM * 2.0))
-
- dist_uv = (dist_uv * STRETCH) + OFFSET;
-
- return dist_uv;
-}
-
-vec2 transform_uv_subimage(vec2 uv, uint iz)
-{
- vec2 values = uv;
-
- // To deal with OpenGL flip and sub image view.
- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy;
-
- // Ready to be used.
- return values.xy;
-}
-
-vec2 transform_uv_timewarp(vec2 uv, uint iz)
-{
- vec4 values = vec4(uv, -1, 1);
-
- // From uv to tan angle (tangent space).
- values.xy = values.xy * ubo.pre_transform[iz].zw + ubo.pre_transform[iz].xy;
- values.y = -values.y; // Flip to OpenXR coordinate system.
-
- // Timewarp.
- values = ubo.transform[iz] * values;
- values.xy = values.xy * (1.0 / max(values.w, 0.00001));
-
- // From [-1, 1] to [0, 1]
- values.xy = values.xy * 0.5 + 0.5;
-
- // To deal with OpenGL flip and sub image view.
- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy;
-
- // Done.
- return values.xy;
-}
-
-vec2 transform_uv(vec2 uv, uint iz)
-{
- if (do_timewarp) {
- return transform_uv_timewarp(uv, iz);
- } else {
- return transform_uv_subimage(uv, iz);
- }
-}
-
void main()
{
uint iz = gl_GlobalInvocationID.z;
ivec2 offset = ivec2(ubo.views[iz].xy);
ivec2 extent = ivec2(ubo.views[iz].zw);
- vec2 cbcrs[4];
- vec4 alpha;
+ vec3 cbcra = vec3(0);
for (int k = 0; k < 2; k += 1) {
uint iy = gl_GlobalInvocationID.y * 2 + k;
+ uint ymin = foveation.y[MAX_DIM * iz + iy];
+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1];
+ if (ymin > ymax)
+ {
+ uint tmp = ymin;
+ ymin = ymax;
+ ymax = tmp;
+ }
for (int j = 0; j < 2; j += 1) {
uint ix = gl_GlobalInvocationID.x * 2 + j;
- vec2 dist_uv = position_to_uv(extent, ix, iy);
+ uint xmin = foveation.x[MAX_DIM * iz + ix];
+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1];
- vec2 uv = texture(distortion[iz + 0], dist_uv).xy;
- vec2 lod = texture(distortion[iz + 2], dist_uv).xy;
-
- // Do any transformation needed.
- uv = transform_uv(uv, iz);
-
- // Sample the source
- vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5));
-
- colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
+ vec4 colour = vec4(0);
+ for (uint y = ymin ; y < ymax; y += 1) {
+ for (uint x = xmin ; x < xmax; x += 1) {
+ colour += texelFetch(source[iz], ivec2(x, y), 0);
+ }
+ }
+ colour /= (xmax - xmin) * (ymax - ymin);
+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
- int i = k * 2 + j;
- cbcrs[i] = colour.yz;
- alpha[i] = colour.a;
+ cbcra.xy += colour.yz;
+ cbcra.z += colour.a;
if (ix < extent.x && iy < extent.y) {
imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
@@ -153,10 +84,7 @@ void main()
if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) {
return;
}
- vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0));
-
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcra.x, cbcra.y, 0, 0) / 4);
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(cbcra.z, 0, 0, 0) / 4);
imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
- alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5));
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
}
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
index b2d3ce10d..69429dc97 100644
--- a/src/xrt/compositor/util/comp_render_cs.c
+++ b/src/xrt/compositor/util/comp_render_cs.c
@@ -466,30 +466,15 @@ crc_distortion_fast_path(struct render_compute *render,
world_poses[i] = world_pose;
}
- if (!d->do_timewarp) {
- render_compute_projection( //
- render, //
- src_samplers, //
- src_image_views, //
- src_norm_rects, //
- d->target.cs.image, //
- d->target.cs.storage_view_y, //
- d->target.cs.storage_view_cbcr, //
- target_viewport_datas); //
- } else {
- render_compute_projection_timewarp( //
- render, //
- src_samplers, //
- src_image_views, //
- src_norm_rects, //
- src_poses, //
- src_fovs, //
- world_poses, //
- d->target.cs.image, //
- d->target.cs.storage_view_y, //
- d->target.cs.storage_view_cbcr, //
- target_viewport_datas); //
- }
+ render_compute_projection( //
+ render, //
+ src_samplers, //
+ src_image_views, //
+ src_norm_rects, //
+ d->target.cs.image, //
+ d->target.cs.storage_view_y, //
+ d->target.cs.storage_view_cbcr, //
+ target_viewport_datas); //
}
--
2.50.1
+5 -4
View File
@@ -40,10 +40,11 @@ set(XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC ON)
set(XRT_FEATURE_OPENXR_HAND_TRACKING_EXT ON)
set(XRT_FEATURE_OPENXR_INTERACTION_EXT_HAND ON)
set(XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE ON)
set(XRT_FEATURE_OPENXR_INTERACTION_BYTEDANCE ON)
set(XRT_FEATURE_OPENXR_INTERACTION_VIVE_FOCUS3 ON)
set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PRO ON)
set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PLUS ON)
set(XRT_FEATURE_OPENXR_INTERACTION_BYTEDANCE ON)
set(XRT_FEATURE_OPENXR_INTERACTION_VIVE_FOCUS3 ON)
set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PRO ON)
set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PLUS ON)
set(XRT_FEATURE_OPENXR_LAYER_COLOR_SCALE_BIAS ON)
set(XRT_HAVE_BLUETOOTH OFF)
set(XRT_HAVE_GST OFF)
-3
View File
@@ -293,9 +293,6 @@ std::optional<std::chrono::system_clock::time_point> from_iso8601(const std::str
if (strptime(timestamp.c_str(), "%FT%H:%M:%S%z", &t) == nullptr)
return std::nullopt;
// Convert from local time to UTC
t.tm_sec += t.tm_gmtoff;
return std::chrono::system_clock::from_time_t(mktime(&t));
}
+3 -3
View File
@@ -305,7 +305,7 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer
cn->wivrn_bundle->device,
{
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
.queueFamilyIndex = vk->queue_family_index,
.queueFamilyIndex = vk->main_queue.family_index,
});
cn->wivrn_bundle->name(cn->command_pool, "comp target command pool");
}
@@ -584,8 +584,8 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
.dstAccessMask = vk::AccessFlagBits::eMemoryWrite,
.oldLayout = vk::ImageLayout::eTransferSrcOptimal,
.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR,
.srcQueueFamilyIndex = vk->queue_family_index,
.dstQueueFamilyIndex = vk->encode_queue_family_index,
.srcQueueFamilyIndex = vk->main_queue.family_index,
.dstQueueFamilyIndex = vk->encode_queue.family_index,
.image = psc_image.image,
.subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
+5
View File
@@ -64,6 +64,11 @@ public:
wivrn_connection(const wivrn_connection &) = delete;
wivrn_connection & operator=(const wivrn_connection &) = delete;
bool has_stream() const
{
return stream;
}
bool is_active()
{
return active;
+1
View File
@@ -29,6 +29,7 @@
#include "xrt/xrt_defines.h"
#include <array>
#include <charconv>
#include <cmath>
#include <map>
#include <ranges>
+6 -2
View File
@@ -24,6 +24,8 @@
#include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
#include "utils/singleton.h"
#include <mutex>
#include <vulkan/vulkan_raii.hpp>
struct render_resources;
@@ -34,7 +36,7 @@ namespace wivrn
struct clock_offset;
struct wivrn_vk_bundle;
class wivrn_foveation
class wivrn_foveation : public singleton<wivrn_foveation>
{
std::mutex mutex;
@@ -53,8 +55,8 @@ class wivrn_foveation
vk::raii::CommandPool command_pool;
vk::raii::CommandBuffer cmd;
buffer_allocation gpu_buffer;
buffer_allocation host_buffer;
vk::Buffer gpu_buffer = nullptr;
// parameters used for last computation
struct P
@@ -81,6 +83,8 @@ public:
void update_foveation_center_override(const from_headset::override_foveation_center &);
std::array<to_headset::foveation_parameter, 2> get_parameters();
vk::Buffer get_gpu_buffer();
vk::CommandBuffer update_foveation_buffer(
vk::Buffer target,
bool flip_y,
+2 -3
View File
@@ -41,14 +41,13 @@ xrt_result_t wivrn_hmd::get_visibility_mask(xrt_visibility_mask_type type, uint3
{
static_assert(sizeof(uint32_t) == sizeof(decltype(from_headset::visibility_mask_changed::mask::indices)::value_type));
static_assert(sizeof(xrt_vec2) == sizeof(decltype(from_headset::visibility_mask_changed::mask::vertices)::value_type));
type = xrt_visibility_mask_type((unsigned int)type - 1); // enum values start at 1
const auto visibility_mask = this->visibility_mask.lock();
if (type >= from_headset::visibility_mask_changed::num_types or view_index >= 2 or not(*visibility_mask)[view_index])
if (type > from_headset::visibility_mask_changed::num_types or view_index >= 2 or not(*visibility_mask)[view_index])
{
*mask = (xrt_visibility_mask *)calloc(1, sizeof(xrt_visibility_mask));
return XRT_SUCCESS;
}
const auto & in_mask = (*(*visibility_mask)[view_index])[int(type)];
const auto & in_mask = (*(*visibility_mask)[view_index])[int(type - 1)];
size_t index_size = in_mask.indices.size() * sizeof(uint32_t);
size_t vertex_size = in_mask.vertices.size() * sizeof(xrt_vec2);
*mask = (xrt_visibility_mask *)calloc(1, sizeof(xrt_visibility_mask) + index_size + vertex_size);
+1 -1
View File
@@ -338,7 +338,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptr<wivrn_connecti
self->feedback_csv.open(dump_file);
}
self->thread = std::jthread(&wivrn_session::run, self.get());
self->thread = std::jthread([s = self.get()](auto stop_token) { return s->run(stop_token); });
*out_xsysd = self.release();
return XRT_SUCCESS;
}
+4
View File
@@ -197,6 +197,10 @@ public:
void operator()(to_monado::disconnect &&);
void operator()(to_monado::set_bitrate &&);
bool has_stream()
{
return connection->has_stream();
}
template <typename T>
void send_stream(T && packet)
{
+6 -17
View File
@@ -24,6 +24,7 @@
#include "video_encoder.h"
#include "wivrn_packets.h"
#include <charconv>
#include <cmath>
#include <magic_enum.hpp>
#include <string>
@@ -307,34 +308,22 @@ static std::vector<configuration::encoder> get_encoder_default_settings(wivrn_vk
#ifdef WIVRN_SPLIT_ENCODERS
if (base.name != encoder_x264)
{
/* Split in 3 parts:
/* Split in 2 parts:
* +--------+--------+
* | | |
* | | |
* +--------+ |
* | | |
* | | |
* | | |
* | | |
* | left | right |
* | eye | eye |
* | | |
* +--------+--------+
* All 3 are encoded sequentially, so that the smallest is ready earlier.
* Encoded sequentially, so the first eye is ready and transmitted earlier.
* Decoder can start work as fast as possible, reducing idle time.
* Splitting on eye boundaries allows for fast-path on headset.
*
*/
return {
{
.name = base.name,
.width = 0.5,
.height = 0.25,
.group = 0,
.codec = base.codec,
},
{
.name = base.name,
.width = 0.5,
.height = 0.75,
.offset_y = 0.25,
.group = 0,
.codec = base.codec,
},
+4 -2
View File
@@ -331,13 +331,15 @@ void video_encoder::SendData(std::span<uint8_t> data, bool end_of_frame, bool co
timing_info.send_begin = clock.to_headset(os_monotonic_get_ns());
}
ssize_t max_payload_size = cnx->has_stream() ? to_headset::video_stream_data_shard::max_payload_size : std::numeric_limits<uint32_t>::max();
shard.flags = to_headset::video_stream_data_shard::start_of_slice;
auto begin = data.begin();
auto end = data.end();
while (begin != end)
{
const size_t max_payload_size = std::max(0z, ssize_t(to_headset::video_stream_data_shard::max_payload_size) - ssize_t(serialized_size(shard.view_info)));
auto next = std::min(end, begin + max_payload_size);
const size_t payload_size = std::max(0z, max_payload_size - ssize_t(serialized_size(shard.view_info)));
auto next = std::min(end, begin + payload_size);
if (next == end)
{
shard.flags |= to_headset::video_stream_data_shard::end_of_slice;
+49 -33
View File
@@ -18,7 +18,6 @@
#include "hostname.h"
#include "protocol_version.h"
#include "start_application.h"
#include "utils/flatpak.h"
#include "utils/overloaded.h"
#include "version.h"
#include "wivrn_config.h"
@@ -128,46 +127,51 @@ int create_listen_socket()
return fd;
}
static std::filesystem::path flatpak_app_path()
static bool pressure_vessel_openxr_support()
{
if (auto value = flatpak_key(flatpak::section::instance, "app-path"))
auto pv_var = std::getenv("PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES");
return pv_var and pv_var == std::string_view("1");
}
static void append_delim(std::string & to, std::string_view what, char delim)
{
if (not to.empty())
to += delim;
to += what;
}
// search for the directory in path named needle
// with d = /a/b/c/d/e and needle = c
// return /a/b/c
// if it can't be found, return the full path
static std::filesystem::path find_dir(const std::filesystem::path & d, const std::filesystem::path & needle)
{
for (auto copy = d; not copy.empty(); copy = copy.parent_path())
{
std::filesystem::path path = *value;
while (path != "" and path != path.parent_path() and path.filename() != "io.github.wivrn.wivrn")
path = path.parent_path();
return path;
if (copy.filename() == needle)
return copy;
}
return "/";
return d;
}
static std::string steam_command()
{
std::string pressure_vessel_filesystems_rw = "$XDG_RUNTIME_DIR/" XRT_IPC_MSG_SOCK_FILENAME;
std::string vr_override;
std::string command;
// Check if in a flatpak
if (is_flatpak())
{
std::string app_path = flatpak_app_path().string();
// /usr and /var are remapped by steam
if (app_path.starts_with("/var"))
pressure_vessel_filesystems_rw += ":" + app_path;
}
else if (auto p = active_runtime::openvr_compat_path().string(); not p.empty())
if (not pressure_vessel_openxr_support())
command = "PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1";
if (auto p = active_runtime::openvr_compat_path().string(); not p.empty())
{
// /usr cannot be shared in pressure vessel container
if (p.starts_with("/usr"))
vr_override = " VR_OVERRIDE=/run/host" + p;
append_delim(command, " VR_OVERRIDE=/run/host" + p, ' ');
else if (p.starts_with("/var"))
pressure_vessel_filesystems_rw += ":" + p;
append_delim(command, "PRESSURE_VESSEL_FILESYSTEMS_RW=" + find_dir(p, "io.github.wivrn.wivrn").string(), ' ');
}
std::string command = "PRESSURE_VESSEL_FILESYSTEMS_RW=" + pressure_vessel_filesystems_rw + vr_override + " %command%";
if (auto p = active_runtime::manifest_path().string(); p.starts_with("/usr"))
command = "XR_RUNTIME_JSON=/run/host" + p + " " + command;
if (not command.empty())
command += " %command%";
return command;
}
@@ -350,7 +354,7 @@ void start_publishing()
sprintf(protocol_string, "%016" PRIx64, wivrn::protocol_version);
std::map<std::string, std::string> TXT = {
{"protocol", protocol_string},
{"version", wivrn::git_version},
{"version", wivrn::display_version()},
{"cookie", server_cookie()},
};
publisher.emplace(poll_api, hostname(), "_wivrn._tcp", wivrn::default_port, TXT);
@@ -435,7 +439,7 @@ gboolean headset_connected_success(void *)
}
catch (std::exception & e)
{
std::cerr << "Failed to start application: " << e.what();
std::cerr << "Failed to start application: " << e.what() << std::endl;
}
delay_next_try = default_delay_next_try;
@@ -688,14 +692,18 @@ void on_json_configuration(WivrnServer * server, const GParamSpec * pspec, gpoin
std::filesystem::path config_new = config;
config_new += ".new";
std::ofstream file(config_new);
file.write(json, strlen(json));
{
std::ofstream file(config_new);
file.write(json, strlen(json));
}
std::error_code ec;
std::filesystem::rename(config_new, config, ec);
if (ec)
std::cerr << "Failed to save configuration: " << ec.message() << std::endl;
wivrn_server_set_steam_command(dbus_server, steam_command().c_str());
}
void expose_known_keys_on_dbus()
@@ -881,10 +889,11 @@ auto create_dbus_connection()
int inner_main(int argc, char * argv[], bool show_instructions)
{
std::cerr << "WiVRn " << wivrn::git_version << " starting" << std::endl;
std::cerr << "WiVRn " << wivrn::display_version() << " starting" << std::endl;
if (show_instructions)
{
std::cerr << "For Steam games, set command to " << steam_command() << std::endl;
if (auto command = steam_command(); not command.empty())
std::cerr << "For Steam games, set command to " << command << std::endl;
}
std::filesystem::create_directories(socket_path().parent_path());
@@ -974,6 +983,7 @@ int main(int argc, char * argv[])
std::string config_file;
app.add_option("-f", config_file, "configuration file")->option_text("FILE")->check(CLI::ExistingFile);
auto version_flag = app.add_flag("--version")->description("print version and exit");
auto no_active_runtime = app.add_flag("--no-manage-active-runtime")->description("don't set the active runtime on connection");
auto early_active_runtime = app.add_flag("--early-active-runtime")->description("forcibly manages the active runtime even if no headset present");
auto no_instructions = app.add_flag("--no-instructions")->group("");
@@ -986,6 +996,12 @@ int main(int argc, char * argv[])
CLI11_PARSE(app, argc, argv);
if (*version_flag)
{
std::cout << "WiVRn version " << wivrn::display_version() << std::endl;
return 0;
}
if (not config_file.empty())
configuration::set_config_file(config_file);
+10 -9
View File
@@ -83,16 +83,17 @@ wivrn::wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span<const char *>
physical_device(instance, vk.physical_device),
device(physical_device, vk.device),
allocator({
.physicalDevice = vk.physical_device,
.device = vk.device,
.instance = vk.instance,
.vulkanApiVersion = VK_MAKE_VERSION(1, 3, 0), // FIXME: sync with wivrn_session.cpp
}),
queue(device, vk.queue_family_index, vk.queue_index),
queue_family_index(vk.queue_family_index),
.physicalDevice = vk.physical_device,
.device = vk.device,
.instance = vk.instance,
.vulkanApiVersion = VK_MAKE_VERSION(1, 3, 0), // FIXME: sync with wivrn_session.cpp
},
vk.has_EXT_debug_utils),
queue(device, vk.main_queue.family_index, vk.main_queue.index),
queue_family_index(vk.main_queue.family_index),
#ifdef VK_KHR_video_encode_queue
encode_queue(make_queue(device, vk.encode_queue, vk.encode_queue_family_index, vk.encode_queue_index)),
encode_queue_family_index(vk.encode_queue_family_index),
encode_queue(make_queue(device, vk.encode_queue.queue, vk.encode_queue.family_index, vk.encode_queue.index)),
encode_queue_family_index(vk.encode_queue.family_index),
#else
encode_queue(nullptr),
encode_queue_family_index(vk::QueueFamilyIgnored),