Compare commits
70
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c35775cec | ||
|
|
b0573c4265 | ||
|
|
1d9fb638a5 | ||
|
|
46a36fcd55 | ||
|
|
c679d94fbd | ||
|
|
a5bb9c2678 | ||
|
|
5b6e20bdbe | ||
|
|
1667065084 | ||
|
|
67918b7fe7 | ||
|
|
f03c460aa6 | ||
|
|
e7c69e9464 | ||
|
|
6e64dd03b3 | ||
|
|
7fb8f4c1a8 | ||
|
|
fcbdda9908 | ||
|
|
bb05aef061 | ||
|
|
4e5eca204f | ||
|
|
6932f9461d | ||
|
|
6cccd4fbd8 | ||
|
|
7861d508c7 | ||
|
|
1290a15b7f | ||
|
|
5873de80b8 | ||
|
|
66ca73981d | ||
|
|
a193b4084c | ||
|
|
f159e58c12 | ||
|
|
8bc6a3f388 | ||
|
|
e3356acc16 | ||
|
|
6e9afab96b | ||
|
|
13c7f8fbc2 | ||
|
|
668a94bae0 | ||
|
|
d8707e0b4c | ||
|
|
6f696a92fb | ||
|
|
3e6c407406 | ||
|
|
98347fc832 | ||
|
|
6ddde98714 | ||
|
|
1477120888 | ||
|
|
5edc7f2f56 | ||
|
|
b411afb946 | ||
|
|
f33dc57ec9 | ||
|
|
509311604c | ||
|
|
88ae120c52 | ||
|
|
ea54031627 | ||
|
|
8b9beb272d | ||
|
|
0e5a09cc45 | ||
|
|
b0144b96fc | ||
|
|
3269fecef2 | ||
|
|
7e2b0cb973 | ||
|
|
608cf0c7b2 | ||
|
|
bd820a4f4a | ||
|
|
891a087ccc | ||
|
|
adc07e8f50 | ||
|
|
200586a0af | ||
|
|
80933a3392 | ||
|
|
3c08a3de2f | ||
|
|
ccf430d26a | ||
|
|
5405176890 | ||
|
|
b1c7160bba | ||
|
|
9a5af1a0ca | ||
|
|
6b99cf4cc3 | ||
|
|
cc5990a513 | ||
|
|
c80ba550eb | ||
|
|
9186bafd28 | ||
|
|
633f7feeb1 | ||
|
|
435c2be127 | ||
|
|
692d4dec04 | ||
|
|
5ff85ef7a7 | ||
|
|
74ff55d5cb | ||
|
|
f97c241f9f | ||
|
|
9f2aa0157c | ||
|
|
2f91217e02 | ||
|
|
d4665eb713 |
@@ -80,6 +80,7 @@ body:
|
||||
attributes:
|
||||
label: Vulkan Info
|
||||
description: Provide the output of `vulkaninfo --summary` command.
|
||||
render: text
|
||||
placeholder: Attach the output as a file here.
|
||||
|
||||
- type: dropdown
|
||||
@@ -106,4 +107,5 @@ body:
|
||||
attributes:
|
||||
label: ADB Logs
|
||||
description: Provide the output of `adb logcat` command.
|
||||
render: plain
|
||||
placeholder: Attach the output of adb logcat as a file.
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
version: "1"
|
||||
rules:
|
||||
- base: master
|
||||
upstream: WiVRn:master
|
||||
mergeMethod: hardreset
|
||||
|
||||
@@ -2,7 +2,7 @@ name: Release APK Only
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches: [ "apk-build" ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: RelWithDebInfo
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
|
||||
repository: 'WiVRn/WiVRn'
|
||||
repository: 'Vindicus999/WiVRn'
|
||||
ref: ${{ github.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -109,13 +109,13 @@ jobs:
|
||||
pattern: 'apk-*'
|
||||
merge-multiple: true
|
||||
|
||||
- name: Rename APK artifacts
|
||||
run: |
|
||||
cd apk
|
||||
for f in *.apk; do
|
||||
BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'`
|
||||
mv "${f}" "org.meumeu.wivrn-${BASENAME}"
|
||||
done
|
||||
# - name: Rename APK artifacts
|
||||
# run: |
|
||||
# cd apk
|
||||
# for f in *.apk; do
|
||||
# BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'`
|
||||
# mv "${f}" "org.meumeu.wivrn-${BASENAME}"
|
||||
# done
|
||||
|
||||
- name: Download APK debug artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
@@ -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
|
||||
@@ -462,7 +462,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
distro: ['oracular', 'plucky']
|
||||
distro: ['plucky']
|
||||
runs-on: ubuntu-24.04
|
||||
container: ubuntu:${{ matrix.distro }}
|
||||
steps:
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Sync Upstream
|
||||
|
||||
env:
|
||||
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
|
||||
WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
|
||||
UPSTREAM_BRANCH: "master"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 5/6 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: GitHub Sync to Upstream Repository
|
||||
uses: dabreadman/sync-upstream-repo@v1.3.0
|
||||
with:
|
||||
upstream_repo: ${{ env.UPSTREAM_URL }}
|
||||
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
||||
token: ${{ env.WORKFLOW_TOKEN }}
|
||||
|
||||
- name: Checkout stuff
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Merge master -> apk-build
|
||||
uses: devmasx/merge-branch@master
|
||||
with:
|
||||
type: now
|
||||
from_branch: master
|
||||
target_branch: apk-build
|
||||
github_token: ${{ env.WORKFLOW_TOKEN }}
|
||||
|
||||
- name: Merge sneed -> apk-build
|
||||
uses: devmasx/merge-branch@master
|
||||
with:
|
||||
type: now
|
||||
from_branch: sneed
|
||||
target_branch: apk-build
|
||||
github_token: ${{ env.WORKFLOW_TOKEN }}
|
||||
|
||||
+4
-3
@@ -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)
|
||||
|
||||
@@ -32,6 +33,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)
|
||||
option(WIVRN_USE_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" ON)
|
||||
@@ -220,9 +222,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/*)
|
||||
|
||||
@@ -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
@@ -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"
|
||||
@@ -106,7 +147,7 @@ android {
|
||||
keyAlias "default_key"
|
||||
storePassword signingKeyPassword // Set in gradle.properties
|
||||
keyPassword signingKeyPassword
|
||||
enableV2Signing true
|
||||
enableV2Signing = true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -114,7 +155,7 @@ android {
|
||||
buildTypes {
|
||||
if (project.hasProperty("signingKeyPassword")) {
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
signingConfig = signingConfigs.release
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +224,7 @@ android {
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
version '3.30.3'
|
||||
version = '3.30.3'
|
||||
path 'CMakeLists.txt'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Boost::locale
|
||||
@@ -184,6 +184,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()
|
||||
|
||||
|
||||
|
||||
+40
-52
@@ -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 "wivrn_packets.h"
|
||||
@@ -71,7 +72,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;
|
||||
};
|
||||
@@ -139,7 +139,6 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
interaction_profile{
|
||||
.profile_name = "/interaction_profiles/facebook/touch_controller_pro",
|
||||
.required_extensions = {XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME},
|
||||
.max_version = XR_MAKE_VERSION(1, 1, 0),
|
||||
.input_sources = {
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/left/output/haptic_trigger_fb",
|
||||
@@ -252,7 +251,6 @@ static std::vector<interaction_profile> interaction_profiles{
|
||||
interaction_profile{
|
||||
.profile_name = "/interaction_profiles/meta/touch_controller_plus",
|
||||
.required_extensions = {XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME},
|
||||
.max_version = XR_MAKE_VERSION(1, 1, 0),
|
||||
.input_sources = {
|
||||
"/user/hand/left/output/haptic",
|
||||
"/user/hand/right/output/haptic",
|
||||
@@ -761,13 +759,12 @@ void application::initialize_vulkan()
|
||||
spdlog::info(" {} (version {})", extension_name, spec_version);
|
||||
|
||||
vk_device_extensions.push_back(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_IMG_FILTER_CUBIC_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_KHR_FRAGMENT_SHADING_RATE_EXTENSION_NAME);
|
||||
optional_device_extensions.emplace(VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
vk_device_extensions.push_back(VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_EXT_QUEUE_FAMILY_FOREIGN_EXTENSION_NAME);
|
||||
vk_device_extensions.push_back(VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME);
|
||||
@@ -882,28 +879,23 @@ void application::initialize_vulkan()
|
||||
.ppEnabledExtensionNames = vk_device_extensions.data(),
|
||||
.pEnabledFeatures = &device_features,
|
||||
},
|
||||
vk::PhysicalDeviceFragmentShadingRateFeaturesKHR{},
|
||||
#ifdef __ANDROID__
|
||||
vk::PhysicalDeviceSamplerYcbcrConversionFeaturesKHR{
|
||||
.samplerYcbcrConversion = VK_TRUE,
|
||||
.samplerYcbcrConversion = true,
|
||||
},
|
||||
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR{
|
||||
.timelineSemaphore = true,
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
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))
|
||||
if (utils::contains(vk_device_extensions, VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME))
|
||||
{
|
||||
auto [feat, fragment_feat] = vk_physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
|
||||
auto & create_feat = device_create_info.get<vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
|
||||
create_feat.primitiveFragmentShadingRate = fragment_feat.primitiveFragmentShadingRate;
|
||||
create_feat.attachmentFragmentShadingRate = fragment_feat.attachmentFragmentShadingRate;
|
||||
spdlog::info("Fragment shading rate features: primitive={} attachment={}",
|
||||
create_feat.primitiveFragmentShadingRate,
|
||||
create_feat.attachmentFragmentShadingRate);
|
||||
auto [_, feat] = vk_physical_device.getFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
auto & create_feat = device_create_info.get<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
create_feat.timelineSemaphore = feat.timelineSemaphore;
|
||||
}
|
||||
else
|
||||
{
|
||||
device_create_info.unlink<vk::PhysicalDeviceFragmentShadingRateFeaturesKHR>();
|
||||
device_create_info.unlink<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
||||
}
|
||||
|
||||
vk_device = xr_system_id.create_device(vk_physical_device, device_create_info.get());
|
||||
@@ -997,8 +989,7 @@ void application::initialize_actions()
|
||||
for (auto & profile: interaction_profiles)
|
||||
{
|
||||
profile.available = std::ranges::all_of(profile.required_extensions, [&](auto & ext) { return xr_instance.has_extension(ext); }) and
|
||||
profile.min_version <= api_version and
|
||||
profile.max_version > api_version;
|
||||
profile.min_version <= api_version;
|
||||
|
||||
if (profile.profile_name.ends_with("khr/simple_controller"))
|
||||
{
|
||||
@@ -1333,50 +1324,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);
|
||||
|
||||
@@ -417,4 +417,6 @@ public:
|
||||
{
|
||||
return instance().messages_info;
|
||||
}
|
||||
|
||||
void load_locale();
|
||||
};
|
||||
|
||||
@@ -181,9 +181,6 @@ configuration::configuration(xr::system & system)
|
||||
if (auto val = root["enable_stream_gui"]; val.is_bool())
|
||||
enable_stream_gui = val.get_bool();
|
||||
|
||||
if (auto val = root["sgsr"]; val.is_object())
|
||||
parse_sgsr_options(val.get_object());
|
||||
|
||||
if (auto val = root["openxr_post_processing"]; val.is_object())
|
||||
parse_openxr_post_processing_options(val.get_object());
|
||||
|
||||
@@ -221,6 +218,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)
|
||||
{
|
||||
@@ -231,31 +231,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::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 = {};
|
||||
@@ -271,17 +251,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;
|
||||
@@ -324,8 +293,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;
|
||||
@@ -340,5 +307,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 << "}";
|
||||
}
|
||||
|
||||
+2
-12
@@ -58,17 +58,6 @@ public:
|
||||
|
||||
bool enable_stream_gui = 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{};
|
||||
|
||||
// XR_FB_composition_layer_settings extension flags
|
||||
struct openxr_post_processing_settings
|
||||
{
|
||||
@@ -85,6 +74,8 @@ public:
|
||||
|
||||
bool first_run = true;
|
||||
|
||||
std::string locale;
|
||||
|
||||
bool check_feature(feature f) const;
|
||||
void set_feature(feature f, bool state);
|
||||
|
||||
@@ -92,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:
|
||||
|
||||
@@ -59,8 +59,11 @@ const char * mime(wivrn::video_codec codec)
|
||||
return "video/hevc";
|
||||
case c::av1:
|
||||
return "video/av01";
|
||||
case c::raw:
|
||||
break;
|
||||
}
|
||||
assert(false);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void check(media_status_t status, const char * msg)
|
||||
@@ -72,6 +75,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 +108,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 +245,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 +278,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 +303,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 +411,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 +538,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,11 +561,10 @@ 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);
|
||||
static_assert(magic_enum::enum_count<wivrn::video_codec>() == 4);
|
||||
|
||||
// In order or preference, from preferred to least preferred
|
||||
for (auto codec: {
|
||||
@@ -563,8 +581,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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
|
||||
#include "decoder/raw_decoder.h"
|
||||
|
||||
wivrn::decoder::~decoder() = default;
|
||||
|
||||
std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
|
||||
vk::raii::Device & device,
|
||||
vk::raii::PhysicalDevice & phys_dev,
|
||||
uint32_t vk_queue_family_index,
|
||||
const wivrn::to_headset::video_stream_description::item & description,
|
||||
float fps,
|
||||
uint8_t stream_index,
|
||||
std::weak_ptr<scenes::stream> scene,
|
||||
shard_accumulator * acc)
|
||||
{
|
||||
switch (description.codec)
|
||||
{
|
||||
case h264:
|
||||
case h265:
|
||||
case av1:
|
||||
#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
|
||||
case raw:
|
||||
return std::make_shared<wivrn::raw_decoder>(
|
||||
device,
|
||||
phys_dev,
|
||||
vk_queue_family_index,
|
||||
description,
|
||||
stream_index,
|
||||
scene,
|
||||
acc);
|
||||
}
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
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
|
||||
res.push_back(video_codec::raw);
|
||||
return res;
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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;
|
||||
vk::Semaphore semaphore = nullptr;
|
||||
uint64_t * semaphore_val = nullptr;
|
||||
};
|
||||
|
||||
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 &,
|
||||
uint32_t vk_queue_family_index,
|
||||
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
|
||||
@@ -56,29 +56,60 @@ static AVCodecID codec_id(wivrn::video_codec codec)
|
||||
return AV_CODEC_ID_HEVC;
|
||||
case c::av1:
|
||||
return AV_CODEC_ID_AV1;
|
||||
case c::raw:
|
||||
break;
|
||||
}
|
||||
assert(false);
|
||||
__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 +139,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 +252,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 +265,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,353 @@
|
||||
/*
|
||||
* 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 "raw_decoder.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "scenes/stream.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
struct raw_blit_handle : public wivrn::decoder::blit_handle
|
||||
{
|
||||
std::atomic_bool & free;
|
||||
|
||||
raw_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,
|
||||
vk::Semaphore semaphore,
|
||||
uint64_t & semaphore_val,
|
||||
std::atomic_bool & free) :
|
||||
wivrn::decoder::blit_handle{feedback, view_info, image_view, image, current_layout, semaphore, &semaphore_val},
|
||||
free(free) {}
|
||||
~raw_blit_handle()
|
||||
{
|
||||
free = true;
|
||||
};
|
||||
};
|
||||
|
||||
vk::raii::Sampler make_sampler(
|
||||
vk::raii::Device & device,
|
||||
vk::raii::SamplerYcbcrConversion & ycbcr_conversion,
|
||||
to_headset::video_stream_description::channels_t channels)
|
||||
{
|
||||
vk::StructureChain info{
|
||||
vk::SamplerCreateInfo{
|
||||
.magFilter = vk::Filter::eNearest,
|
||||
.minFilter = vk::Filter::eNearest,
|
||||
.mipmapMode = vk::SamplerMipmapMode::eNearest,
|
||||
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
|
||||
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
|
||||
.maxAnisotropy = 1,
|
||||
},
|
||||
vk::SamplerYcbcrConversionInfo{
|
||||
.conversion = *ycbcr_conversion,
|
||||
},
|
||||
};
|
||||
switch (channels)
|
||||
{
|
||||
case wivrn::to_headset::video_stream_description::channels_t::colour:
|
||||
break;
|
||||
case wivrn::to_headset::video_stream_description::channels_t::alpha:
|
||||
info.unlink<vk::SamplerYcbcrConversionInfo>();
|
||||
break;
|
||||
}
|
||||
return vk::raii::Sampler(device, info.get());
|
||||
}
|
||||
} // namespace
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
raw_decoder::raw_decoder(
|
||||
vk::raii::Device & device,
|
||||
vk::raii::PhysicalDevice & physical_device,
|
||||
uint32_t vk_queue_family_index,
|
||||
const wivrn::to_headset::video_stream_description::item & description,
|
||||
uint8_t stream_index,
|
||||
std::weak_ptr<scenes::stream> scene,
|
||||
shard_accumulator * accumulator) :
|
||||
decoder(description),
|
||||
device(device),
|
||||
ycbcr_conversion(device,
|
||||
{
|
||||
.format = vk::Format::eG8B8R82Plane420Unorm,
|
||||
.ycbcrModel = vk::SamplerYcbcrModelConversion(description.color_model.value_or(VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709)),
|
||||
.ycbcrRange = vk::SamplerYcbcrRange(description.range.value_or(VK_SAMPLER_YCBCR_RANGE_ITU_FULL)),
|
||||
.chromaFilter = vk::Filter::eNearest,
|
||||
}),
|
||||
sampler_(make_sampler(device, ycbcr_conversion, description.channels)),
|
||||
command_pool(device, vk::CommandPoolCreateInfo{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.queueFamilyIndex = vk_queue_family_index,
|
||||
}),
|
||||
cmd(device.allocateCommandBuffers(vk::CommandBufferAllocateInfo{
|
||||
.commandPool = *command_pool,
|
||||
.commandBufferCount = 1,
|
||||
})[0]
|
||||
.release()),
|
||||
fence(device, vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}),
|
||||
weak_scene(scene),
|
||||
accumulator(accumulator)
|
||||
{
|
||||
extent_ = vk::Extent2D{
|
||||
.width = description.width,
|
||||
.height = description.height,
|
||||
};
|
||||
vk::DeviceSize buffer_size = description.width * description.height;
|
||||
vk::Format format{};
|
||||
switch (description.channels)
|
||||
{
|
||||
case to_headset::video_stream_description::channels_t::colour:
|
||||
buffer_size += (description.width * description.height) / 2;
|
||||
format = vk::Format::eG8B8R82Plane420Unorm;
|
||||
break;
|
||||
case to_headset::video_stream_description::channels_t::alpha:
|
||||
format = vk::Format::eR8Unorm;
|
||||
break;
|
||||
}
|
||||
for (auto & i: input)
|
||||
{
|
||||
i = buffer_allocation(
|
||||
device,
|
||||
{
|
||||
.size = buffer_size,
|
||||
.usage = vk::BufferUsageFlagBits::eTransferSrc,
|
||||
},
|
||||
{
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
|
||||
.usage = VMA_MEMORY_USAGE_AUTO,
|
||||
},
|
||||
"raw stream buffer");
|
||||
}
|
||||
input_pos = (uint8_t *)input[0].map();
|
||||
|
||||
for (auto & item: image_pool)
|
||||
{
|
||||
item.image = image_allocation(
|
||||
device,
|
||||
vk::ImageCreateInfo{
|
||||
.imageType = vk::ImageType::e2D,
|
||||
.format = format,
|
||||
.extent = {
|
||||
.width = description.width,
|
||||
.height = description.height,
|
||||
.depth = 1,
|
||||
},
|
||||
.mipLevels = 1,
|
||||
.arrayLayers = 1,
|
||||
.tiling = vk::ImageTiling::eOptimal,
|
||||
.usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eTransferDst,
|
||||
},
|
||||
{
|
||||
.usage = VMA_MEMORY_USAGE_AUTO,
|
||||
},
|
||||
"raw image");
|
||||
|
||||
vk::SamplerYcbcrConversionInfo conv{
|
||||
.conversion = *ycbcr_conversion,
|
||||
};
|
||||
vk::ImageViewCreateInfo view_info{
|
||||
.pNext = format == vk::Format::eG8B8R82Plane420Unorm ? &conv : nullptr,
|
||||
.image = item.image,
|
||||
.viewType = vk::ImageViewType::e2D,
|
||||
.format = format,
|
||||
.subresourceRange = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.levelCount = 1,
|
||||
.layerCount = 1,
|
||||
},
|
||||
};
|
||||
item.view_full = vk::raii::ImageView(device, view_info);
|
||||
|
||||
item.semaphore = vk::raii::Semaphore(
|
||||
device,
|
||||
vk::StructureChain{
|
||||
vk::SemaphoreCreateInfo{},
|
||||
vk::SemaphoreTypeCreateInfo{
|
||||
.semaphoreType = vk::SemaphoreType::eTimeline,
|
||||
},
|
||||
}
|
||||
.get());
|
||||
}
|
||||
}
|
||||
|
||||
void raw_decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial)
|
||||
{
|
||||
if (frame_index != current_frame)
|
||||
{
|
||||
input_pos = (uint8_t *)input[0].map();
|
||||
current_frame = frame_index;
|
||||
}
|
||||
for (const auto & item: data)
|
||||
{
|
||||
memcpy(input_pos, item.data(), item.size_bytes());
|
||||
input_pos += item.size();
|
||||
}
|
||||
}
|
||||
|
||||
void raw_decoder::frame_completed(
|
||||
const from_headset::feedback & feedback,
|
||||
const to_headset::video_stream_data_shard::view_info_t & view_info)
|
||||
{
|
||||
auto item = get_free();
|
||||
if (not item)
|
||||
{
|
||||
spdlog::warn("No image available in pool, discard frame");
|
||||
return;
|
||||
}
|
||||
|
||||
auto handle = std::make_shared<raw_blit_handle>(
|
||||
feedback,
|
||||
view_info,
|
||||
*item->view_full,
|
||||
item->image,
|
||||
item->current_layout,
|
||||
*item->semaphore,
|
||||
item->semaphore_val,
|
||||
item->free);
|
||||
|
||||
auto res = device.waitForFences(*fence, true, UINT64_MAX);
|
||||
if (res != vk::Result::eSuccess)
|
||||
spdlog::warn("waitForFences failed");
|
||||
|
||||
cmd.reset();
|
||||
cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit});
|
||||
|
||||
if (item->current_layout != vk::ImageLayout::eTransferDstOptimal)
|
||||
{
|
||||
item->current_layout = vk::ImageLayout::eTransferDstOptimal;
|
||||
vk::ImageMemoryBarrier barrier{
|
||||
.srcAccessMask = vk::AccessFlagBits::eNone,
|
||||
.dstAccessMask = vk::AccessFlagBits::eMemoryWrite,
|
||||
.oldLayout = vk::ImageLayout::eUndefined,
|
||||
.newLayout = item->current_layout,
|
||||
.image = item->image,
|
||||
.subresourceRange = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.levelCount = 1,
|
||||
.layerCount = 1,
|
||||
},
|
||||
};
|
||||
cmd.pipelineBarrier(
|
||||
vk::PipelineStageFlagBits::eAllCommands,
|
||||
vk::PipelineStageFlagBits::eTransfer,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
barrier);
|
||||
}
|
||||
|
||||
std::array regions{
|
||||
vk::BufferImageCopy{
|
||||
.imageSubresource = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::ePlane0,
|
||||
.layerCount = 1,
|
||||
},
|
||||
.imageExtent = {
|
||||
.width = description.width,
|
||||
.height = description.height,
|
||||
.depth = 1,
|
||||
},
|
||||
},
|
||||
vk::BufferImageCopy{
|
||||
.bufferOffset = vk::DeviceSize(description.width * description.height),
|
||||
.imageSubresource = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::ePlane1,
|
||||
.layerCount = 1,
|
||||
},
|
||||
.imageExtent = {
|
||||
.width = description.width / 2u,
|
||||
.height = description.height / 2u,
|
||||
.depth = 1,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
cmd.copyBufferToImage(
|
||||
input[0],
|
||||
item->image,
|
||||
item->current_layout,
|
||||
description.channels == to_headset::video_stream_description::channels_t::colour ? 2 : 1,
|
||||
regions.data());
|
||||
|
||||
vk::ImageMemoryBarrier barrier{
|
||||
.srcAccessMask = vk::AccessFlagBits::eMemoryWrite,
|
||||
.dstAccessMask = vk::AccessFlagBits::eMemoryRead,
|
||||
.oldLayout = item->current_layout,
|
||||
.newLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
|
||||
.image = item->image,
|
||||
.subresourceRange = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.levelCount = 1,
|
||||
.layerCount = 1,
|
||||
},
|
||||
};
|
||||
item->current_layout = barrier.newLayout;
|
||||
cmd.pipelineBarrier(
|
||||
vk::PipelineStageFlagBits::eTransfer,
|
||||
vk::PipelineStageFlagBits::eFragmentShader,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
barrier);
|
||||
|
||||
cmd.end();
|
||||
|
||||
device.resetFences(*fence);
|
||||
application::get_queue().lock()->submit(
|
||||
vk::StructureChain{
|
||||
vk::SubmitInfo{
|
||||
.commandBufferCount = 1,
|
||||
.pCommandBuffers = &cmd,
|
||||
.signalSemaphoreCount = 1,
|
||||
.pSignalSemaphores = &*item->semaphore,
|
||||
},
|
||||
vk::TimelineSemaphoreSubmitInfo{
|
||||
.signalSemaphoreValueCount = 1,
|
||||
.pSignalSemaphoreValues = &++item->semaphore_val,
|
||||
},
|
||||
}
|
||||
.get(),
|
||||
*fence);
|
||||
|
||||
if (auto scene = weak_scene.lock())
|
||||
scene->push_blit_handle(accumulator, std::move(handle));
|
||||
|
||||
std::swap(input[0], input[1]);
|
||||
input_pos = (uint8_t *)input[0].map();
|
||||
}
|
||||
|
||||
raw_decoder::image * raw_decoder::get_free()
|
||||
{
|
||||
for (auto & item: image_pool)
|
||||
{
|
||||
if (item.free.exchange(false))
|
||||
return &item;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::vector<wivrn::video_codec> raw_decoder::supported_codecs()
|
||||
{
|
||||
return {video_codec::raw};
|
||||
}
|
||||
} // namespace wivrn
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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 "decoder.h"
|
||||
|
||||
#include "vk/allocation.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class raw_decoder : public decoder
|
||||
{
|
||||
private:
|
||||
static const int image_count = 5;
|
||||
struct image
|
||||
{
|
||||
image_allocation image;
|
||||
vk::raii::ImageView view_full = nullptr;
|
||||
vk::ImageLayout current_layout = vk::ImageLayout::eUndefined;
|
||||
std::atomic_bool free = true;
|
||||
vk::raii::Semaphore semaphore = nullptr;
|
||||
uint64_t semaphore_val = 0;
|
||||
};
|
||||
|
||||
vk::raii::Device & device;
|
||||
vk::raii::SamplerYcbcrConversion ycbcr_conversion;
|
||||
vk::raii::Sampler sampler_;
|
||||
|
||||
vk::raii::CommandPool command_pool;
|
||||
vk::CommandBuffer cmd;
|
||||
vk::raii::Fence fence;
|
||||
|
||||
std::array<image, image_count> image_pool;
|
||||
|
||||
std::weak_ptr<scenes::stream> weak_scene;
|
||||
shard_accumulator * accumulator;
|
||||
|
||||
uint64_t current_frame = 0;
|
||||
std::array<buffer_allocation, 2> input;
|
||||
uint8_t * input_pos;
|
||||
from_headset::feedback feedback;
|
||||
to_headset::video_stream_data_shard::view_info_t view_info;
|
||||
|
||||
public:
|
||||
raw_decoder(vk::raii::Device & device,
|
||||
vk::raii::PhysicalDevice & physical_device,
|
||||
uint32_t vk_queue_family_index,
|
||||
const wivrn::to_headset::video_stream_description::item & description,
|
||||
uint8_t stream_index,
|
||||
std::weak_ptr<scenes::stream> scene,
|
||||
shard_accumulator * accumulator);
|
||||
|
||||
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) override;
|
||||
|
||||
vk::Sampler sampler() override
|
||||
{
|
||||
return *sampler_;
|
||||
}
|
||||
|
||||
vk::Extent2D image_size()
|
||||
{
|
||||
return {
|
||||
description.width,
|
||||
description.height,
|
||||
};
|
||||
}
|
||||
|
||||
static std::vector<wivrn::video_codec> supported_codecs();
|
||||
|
||||
private:
|
||||
image * get_free();
|
||||
};
|
||||
|
||||
} // namespace wivrn
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -19,32 +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;
|
||||
@@ -82,11 +80,12 @@ public:
|
||||
vk::raii::Device & device,
|
||||
vk::raii::PhysicalDevice & physical_device,
|
||||
xr::instance & instance,
|
||||
uint32_t vk_queue_family_index,
|
||||
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, vk_queue_family_index, description, fps, stream_index, scene, this)),
|
||||
current(stream_index),
|
||||
next(stream_index),
|
||||
weak_scene(scene),
|
||||
@@ -99,20 +98,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);
|
||||
|
||||
+127
-47
@@ -16,6 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "imgui_impl.h"
|
||||
#include "implot.h"
|
||||
|
||||
@@ -25,6 +26,7 @@
|
||||
#include "image_loader.h"
|
||||
#include "openxr/openxr.h"
|
||||
#include "utils/ranges.h"
|
||||
#include "utils/strings.h"
|
||||
#include "vulkan/vulkan_enums.hpp"
|
||||
#include "vulkan/vulkan_handles.hpp"
|
||||
#include "vulkan/vulkan_to_string.hpp"
|
||||
@@ -43,8 +45,6 @@
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <string_view>
|
||||
|
||||
#include "IconsFontAwesome6.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include <android/font.h>
|
||||
#include <android/font_matcher.h>
|
||||
@@ -178,6 +178,31 @@ static float distance_to_window(ImGuiWindow * window, ImVec2 position)
|
||||
return std::hypot(dx, dy);
|
||||
}
|
||||
|
||||
static const std::array layout_bindings = {
|
||||
vk::DescriptorSetLayoutBinding{
|
||||
.binding = 0,
|
||||
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
|
||||
.descriptorCount = 1,
|
||||
.stageFlags = vk::ShaderStageFlagBits::eFragment,
|
||||
}};
|
||||
|
||||
imgui_textures::imgui_textures(
|
||||
vk::raii::PhysicalDevice physical_device,
|
||||
vk::raii::Device & device,
|
||||
uint32_t queue_family_index,
|
||||
thread_safe<vk::raii::Queue> & queue) :
|
||||
physical_device(physical_device),
|
||||
device(device),
|
||||
queue(queue),
|
||||
ds_layout(device, vk::DescriptorSetLayoutCreateInfo{.bindingCount = layout_bindings.size(), .pBindings = layout_bindings.data()}),
|
||||
command_pool(device,
|
||||
vk::CommandPoolCreateInfo{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient,
|
||||
.queueFamilyIndex = queue_family_index,
|
||||
}),
|
||||
descriptor_pool(device, ds_layout, layout_bindings)
|
||||
{}
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
|
||||
{
|
||||
if (!in.active)
|
||||
@@ -289,14 +314,6 @@ imgui_context::imgui_frame & imgui_context::get_frame(vk::Image destination)
|
||||
return frame;
|
||||
}
|
||||
|
||||
static const std::array layout_bindings = {
|
||||
vk::DescriptorSetLayoutBinding{
|
||||
.binding = 0,
|
||||
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
|
||||
.descriptorCount = 1,
|
||||
.stageFlags = vk::ShaderStageFlagBits::eFragment,
|
||||
}};
|
||||
|
||||
imgui_context::imgui_context(
|
||||
vk::raii::PhysicalDevice physical_device,
|
||||
vk::raii::Device & device,
|
||||
@@ -305,18 +322,13 @@ imgui_context::imgui_context(
|
||||
std::span<controller> controllers_,
|
||||
xr::swapchain & swapchain,
|
||||
std::vector<viewport> layers) :
|
||||
physical_device(physical_device),
|
||||
device(device),
|
||||
imgui_textures(
|
||||
physical_device,
|
||||
device,
|
||||
queue_family_index,
|
||||
queue),
|
||||
queue_family_index(queue_family_index),
|
||||
queue(queue),
|
||||
ds_layout(device, vk::DescriptorSetLayoutCreateInfo{.bindingCount = layout_bindings.size(), .pBindings = layout_bindings.data()}),
|
||||
descriptor_pool(device, ds_layout, layout_bindings),
|
||||
renderpass(create_renderpass(device, swapchain.format(), true)),
|
||||
command_pool(device,
|
||||
vk::CommandPoolCreateInfo{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient,
|
||||
.queueFamilyIndex = queue_family_index,
|
||||
}),
|
||||
command_buffers(swapchain.images().size()),
|
||||
size(swapchain.extent().width, swapchain.extent().height),
|
||||
format(swapchain.format()),
|
||||
@@ -490,22 +502,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");
|
||||
@@ -1020,12 +1032,12 @@ imgui_context::~imgui_context()
|
||||
ImGui::DestroyContext(context);
|
||||
}
|
||||
|
||||
ImTextureID imgui_context::load_texture(const std::string & filename, vk::raii::Sampler && sampler)
|
||||
ImTextureID imgui_textures::load_texture(const std::string & filename, vk::raii::Sampler && sampler)
|
||||
{
|
||||
return load_texture(std::span<const std::byte>{asset{filename}}, std::move(sampler));
|
||||
}
|
||||
|
||||
ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler)
|
||||
ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler)
|
||||
{
|
||||
bool srgb = true;
|
||||
image_loader loader(physical_device, device, queue, command_pool);
|
||||
@@ -1061,7 +1073,7 @@ ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes
|
||||
return id;
|
||||
}
|
||||
|
||||
ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes)
|
||||
ImTextureID imgui_textures::load_texture(const std::span<const std::byte> & bytes)
|
||||
{
|
||||
return load_texture(
|
||||
bytes,
|
||||
@@ -1079,7 +1091,7 @@ ImTextureID imgui_context::load_texture(const std::span<const std::byte> & bytes
|
||||
});
|
||||
}
|
||||
|
||||
ImTextureID imgui_context::load_texture(const std::string & filename)
|
||||
ImTextureID imgui_textures::load_texture(const std::string & filename)
|
||||
{
|
||||
return load_texture(
|
||||
filename,
|
||||
@@ -1097,15 +1109,8 @@ ImTextureID imgui_context::load_texture(const std::string & filename)
|
||||
});
|
||||
}
|
||||
|
||||
void imgui_context::free_texture(ImTextureID texture)
|
||||
void imgui_textures::free_texture(ImTextureID texture)
|
||||
{
|
||||
// Make sure we are done using the texture
|
||||
std::vector<vk::Fence> fences;
|
||||
for (auto & f: command_buffers)
|
||||
fences.push_back(*f.fence);
|
||||
if (auto result = device.waitForFences(fences, true, 1'000'000'000); result != vk::Result::eSuccess)
|
||||
spdlog::error("vkWaitForfences: {}", vk::to_string(result));
|
||||
|
||||
textures.erase(texture);
|
||||
}
|
||||
|
||||
@@ -1182,3 +1187,78 @@ void imgui_context::tooltip(std::string_view text)
|
||||
viewport->Pos = pos_backup;
|
||||
viewport->Size = size_backup;
|
||||
}
|
||||
|
||||
// https://github.com/ocornut/imgui/issues/3379#issuecomment-2943903877
|
||||
void ScrollWhenDragging()
|
||||
{
|
||||
ImVec2 delta{0.0f, -ImGui::GetIO().MouseDelta.y};
|
||||
const ImGuiMouseButton mouse_button = ImGuiMouseButton_Left;
|
||||
|
||||
ImGuiContext & g = *ImGui::GetCurrentContext();
|
||||
ImGuiWindow * window = g.CurrentWindow;
|
||||
ImGuiID id = window->GetID("##scrolldraggingoverlay");
|
||||
ImGui::KeepAliveID(id);
|
||||
|
||||
static int active_id;
|
||||
static ImVec2 cumulated_delta;
|
||||
|
||||
bool HoveredIdAllowOverlap_backup = std::exchange(g.HoveredIdAllowOverlap, true);
|
||||
bool ActiveIdAllowOverlap_backup = std::exchange(g.ActiveIdAllowOverlap, true);
|
||||
if (active_id == 0 and ImGui::ItemHoverable(window->Rect(), 0, g.CurrentItemFlags) and ImGui::IsMouseClicked(mouse_button, ImGuiInputFlags_None, /*id*/ ImGuiKeyOwner_Any))
|
||||
{
|
||||
active_id = id;
|
||||
|
||||
// Don't scroll on the first step, in case the active controller just changed
|
||||
delta = {};
|
||||
cumulated_delta = {};
|
||||
}
|
||||
|
||||
if (not g.IO.MouseDown[mouse_button])
|
||||
active_id = 0;
|
||||
|
||||
if (active_id == id)
|
||||
{
|
||||
if (delta.x != 0.0f)
|
||||
ImGui::SetScrollX(window, window->Scroll.x + delta.x);
|
||||
if (delta.y != 0.0f)
|
||||
ImGui::SetScrollY(window, window->Scroll.y + delta.y);
|
||||
|
||||
cumulated_delta += delta;
|
||||
if (std::max(std::abs(cumulated_delta.x), std::abs(cumulated_delta.y)) > 50)
|
||||
ImGui::ClearActiveID();
|
||||
}
|
||||
|
||||
g.HoveredIdAllowOverlap = HoveredIdAllowOverlap_backup;
|
||||
g.ActiveIdAllowOverlap = ActiveIdAllowOverlap_backup;
|
||||
}
|
||||
|
||||
void CenterTextH(const std::string & text)
|
||||
{
|
||||
float win_width = ImGui::GetWindowSize().x;
|
||||
float text_width = ImGui::CalcTextSize(text.c_str()).x;
|
||||
ImGui::SetCursorPosX((win_width - text_width) / 2);
|
||||
|
||||
ImGui::Text("%s", text.c_str());
|
||||
}
|
||||
|
||||
void CenterTextHV(const std::string & text)
|
||||
{
|
||||
ImVec2 size = ImGui::GetWindowSize();
|
||||
|
||||
std::vector<std::string> lines = utils::split(text);
|
||||
|
||||
float text_height = 0;
|
||||
for (const auto & i: lines)
|
||||
text_height += ImGui::CalcTextSize(i.c_str()).y;
|
||||
|
||||
ImGui::SetCursorPosY((size.y - text_height) / 2);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {0, 0});
|
||||
for (const auto & i: lines)
|
||||
{
|
||||
float text_width = ImGui::CalcTextSize(i.c_str()).x;
|
||||
ImGui::SetCursorPosX((size.x - text_width) / 2);
|
||||
ImGui::Text("%s", i.c_str());
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
+37
-20
@@ -36,14 +36,8 @@
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
class imgui_context
|
||||
class imgui_textures
|
||||
{
|
||||
struct command_buffer
|
||||
{
|
||||
vk::raii::CommandBuffer command_buffer = nullptr;
|
||||
vk::raii::Fence fence = nullptr;
|
||||
};
|
||||
|
||||
struct texture_data
|
||||
{
|
||||
vk::raii::Sampler sampler;
|
||||
@@ -51,6 +45,38 @@ class imgui_context
|
||||
std::shared_ptr<vk::raii::DescriptorSet> descriptor_set;
|
||||
};
|
||||
|
||||
protected:
|
||||
vk::raii::PhysicalDevice physical_device;
|
||||
vk::raii::Device & device;
|
||||
thread_safe<vk::raii::Queue> & queue;
|
||||
vk::raii::DescriptorSetLayout ds_layout;
|
||||
vk::raii::CommandPool command_pool;
|
||||
|
||||
private:
|
||||
growable_descriptor_pool descriptor_pool;
|
||||
std::unordered_map<ImTextureID, texture_data> textures;
|
||||
|
||||
public:
|
||||
imgui_textures(
|
||||
vk::raii::PhysicalDevice physical_device,
|
||||
vk::raii::Device & device,
|
||||
uint32_t queue_family_index,
|
||||
thread_safe<vk::raii::Queue> & queue);
|
||||
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::string & filename);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes);
|
||||
void free_texture(ImTextureID);
|
||||
};
|
||||
|
||||
class imgui_context : public imgui_textures
|
||||
{
|
||||
struct command_buffer
|
||||
{
|
||||
vk::raii::CommandBuffer command_buffer = nullptr;
|
||||
vk::raii::Fence fence = nullptr;
|
||||
};
|
||||
|
||||
public:
|
||||
struct imgui_frame
|
||||
{
|
||||
@@ -117,18 +143,10 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
vk::raii::PhysicalDevice physical_device;
|
||||
vk::raii::Device & device;
|
||||
uint32_t queue_family_index;
|
||||
thread_safe<vk::raii::Queue> & queue;
|
||||
|
||||
vk::raii::Pipeline pipeline = nullptr;
|
||||
vk::raii::DescriptorSetLayout ds_layout;
|
||||
growable_descriptor_pool descriptor_pool;
|
||||
vk::raii::RenderPass renderpass;
|
||||
vk::raii::CommandPool command_pool;
|
||||
|
||||
std::unordered_map<ImTextureID, texture_data> textures;
|
||||
|
||||
std::vector<imgui_frame> frames;
|
||||
imgui_frame & get_frame(vk::Image destination);
|
||||
@@ -207,11 +225,6 @@ public:
|
||||
// Convert position from viewport coordinates to real-world
|
||||
glm::vec3 rw_from_vp(const ImVec2 & position);
|
||||
|
||||
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::string & filename);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler);
|
||||
ImTextureID load_texture(const std::span<const std::byte> & bytes);
|
||||
void free_texture(ImTextureID);
|
||||
void set_current();
|
||||
|
||||
bool is_modal_popup_shown() const;
|
||||
@@ -221,3 +234,7 @@ public:
|
||||
void set_controllers_enabled(bool value);
|
||||
void tooltip(std::string_view text);
|
||||
};
|
||||
|
||||
void ScrollWhenDragging();
|
||||
void CenterTextH(const std::string & text);
|
||||
void CenterTextHV(const std::string & text);
|
||||
|
||||
@@ -35,7 +35,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>
|
||||
@@ -43,8 +42,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,
|
||||
|
||||
+1
-1
@@ -47,8 +47,8 @@ scene::scene(key, const meta & current_meta, std::span<const vk::Format> support
|
||||
device(application::instance().vk_device),
|
||||
physical_device(application::instance().vk_physical_device),
|
||||
queue(application::instance().vk_queue),
|
||||
commandpool(application::instance().vk_cmdpool),
|
||||
queue_family_index(application::instance().vk_queue_family_index),
|
||||
commandpool(application::instance().vk_cmdpool),
|
||||
current_meta(current_meta)
|
||||
{
|
||||
swapchain_format = vk::Format::eUndefined;
|
||||
|
||||
+4
-1
@@ -86,13 +86,16 @@ protected:
|
||||
XrViewConfigurationType viewconfig;
|
||||
bool focused = false;
|
||||
|
||||
public:
|
||||
vk::raii::Instance & vk_instance;
|
||||
vk::raii::Device & device;
|
||||
vk::raii::PhysicalDevice & physical_device;
|
||||
thread_safe<vk::raii::Queue> & queue;
|
||||
vk::raii::CommandPool & commandpool;
|
||||
uint32_t queue_family_index;
|
||||
|
||||
protected:
|
||||
vk::raii::CommandPool & commandpool;
|
||||
|
||||
const meta & current_meta;
|
||||
|
||||
std::optional<scene_renderer> renderer;
|
||||
|
||||
@@ -0,0 +1,284 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
#include "app_launcher.h"
|
||||
|
||||
#include "constants.h"
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "scenes/stream.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/ranges.h"
|
||||
|
||||
#include <imspinner.h>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include <uni_algo/case.h>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
// Display a button with an image and a text centred horizontally
|
||||
static bool icon(
|
||||
const std::string & text,
|
||||
ImTextureRef tex_ref,
|
||||
const ImVec2 & image_size,
|
||||
ImGuiButtonFlags flags = 0,
|
||||
const ImVec2 & size_arg = ImVec2(0, 0),
|
||||
const ImVec2 & uv0 = ImVec2(0, 0),
|
||||
const ImVec2 & uv1 = ImVec2(1, 1),
|
||||
const ImVec4 & tint_col = ImVec4(1, 1, 1, 1))
|
||||
{
|
||||
// Based on ImGui::ButtonEx and ImGui::ImageButtonEx
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
|
||||
if (window->SkipItems)
|
||||
return false;
|
||||
|
||||
const ImVec2 label_size = ImGui::CalcTextSize(text.c_str(), nullptr, true);
|
||||
|
||||
ImVec2 size = ImGui::CalcItemSize(
|
||||
size_arg,
|
||||
std::max(image_size.x, label_size.x) + style.FramePadding.x * 2.0f,
|
||||
image_size.y + style.ItemInnerSpacing.y + label_size.y + style.FramePadding.y * 2.0f);
|
||||
|
||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
|
||||
|
||||
ImRect image_pos(
|
||||
{(bb.Min.x + bb.Max.x - image_size.x) / 2, bb.Min.y + style.FramePadding.y},
|
||||
{(bb.Min.x + bb.Max.x + image_size.x) / 2, bb.Min.y + style.FramePadding.y + image_size.y});
|
||||
|
||||
ImRect label_pos(
|
||||
{bb.Min.x + style.FramePadding.x, image_pos.Max.y + style.ItemInnerSpacing.y},
|
||||
{bb.Max.x - style.FramePadding.x, bb.Max.y - style.FramePadding.y});
|
||||
|
||||
ImGui::ItemSize(bb);
|
||||
|
||||
ImGuiID id = window->GetID(text.c_str());
|
||||
if (!ImGui::ItemAdd(bb, id))
|
||||
return false;
|
||||
|
||||
bool hovered, held;
|
||||
bool pressed = ImGui::ButtonBehavior(bb, id, &hovered, &held, flags);
|
||||
|
||||
// Render
|
||||
const ImU32 col = ImGui::GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered
|
||||
: ImGuiCol_Button);
|
||||
ImGui::RenderNavCursor(bb, id);
|
||||
ImGui::RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
|
||||
|
||||
window->DrawList->AddImage(tex_ref, image_pos.Min, image_pos.Max, uv0, uv1, ImGui::GetColorU32(tint_col));
|
||||
ImGui::RenderTextClipped(label_pos.Min, label_pos.Max, text.c_str(), NULL, &label_size, style.ButtonTextAlign, &bb);
|
||||
|
||||
return pressed;
|
||||
}
|
||||
|
||||
app_launcher::app_launcher(
|
||||
scenes::stream & stream,
|
||||
std::string server_name) :
|
||||
server_name(std::move(server_name)),
|
||||
stream(stream),
|
||||
textures(
|
||||
stream.physical_device,
|
||||
stream.device,
|
||||
stream.queue_family_index,
|
||||
stream.queue)
|
||||
{
|
||||
try
|
||||
{
|
||||
default_icon = textures.load_texture("default_icon.ktx2");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
default_icon = textures.load_texture("default_icon.png");
|
||||
}
|
||||
}
|
||||
|
||||
app_launcher::~app_launcher()
|
||||
{
|
||||
stream.device.waitIdle();
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
textures.free_texture(app_icon);
|
||||
textures.free_texture(default_icon);
|
||||
}
|
||||
|
||||
app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const std::string & cancel)
|
||||
{
|
||||
auto res = clicked::None;
|
||||
auto t0 = std::chrono::steady_clock::now();
|
||||
bool app_starting = start_time != std::chrono::steady_clock::time_point{} and
|
||||
t0 - start_time < 10s and
|
||||
stream.current_state() != scenes::stream::state::streaming;
|
||||
|
||||
auto cancel_size = ImGui::CalcTextSize(cancel.c_str());
|
||||
|
||||
auto apps = applications.lock();
|
||||
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
if (server_name.empty())
|
||||
CenterTextH(_("Connected to WiVRn server"));
|
||||
else
|
||||
CenterTextH(fmt::format(_F("Connected to {}"), server_name));
|
||||
ImGui::PopFont();
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {20, 20});
|
||||
if (apps->empty())
|
||||
{
|
||||
CenterTextHV(_("Start an application on the server to start streaming."));
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
|
||||
ImGui::BeginDisabled(app_starting);
|
||||
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, cancel_size.y + 80), 0, app_starting ? ImGuiWindowFlags_NoScrollWithMouse : 0);
|
||||
|
||||
ImGui::Indent(20);
|
||||
if (server_name.empty())
|
||||
ImGui::Text("%s", _S("Start an application on your computer or select one to start streaming."));
|
||||
else
|
||||
ImGui::Text("%s", fmt::format(_F("Start an application on {} or select one to start streaming."), server_name).c_str());
|
||||
ImGui::Unindent();
|
||||
|
||||
float icon_width = 400;
|
||||
float icon_spacing = ImGui::GetStyle().ItemSpacing.x;
|
||||
float usable_window_width = ImGui::GetWindowSize().x - ImGui::GetCurrentWindow()->ScrollbarSizes.x;
|
||||
|
||||
int icons_per_line = (usable_window_width + icon_spacing) / (icon_width + icon_spacing);
|
||||
float icon_line_width = icons_per_line * icon_width + (icons_per_line - 1) * icon_spacing;
|
||||
|
||||
ImGui::Indent((usable_window_width - icon_line_width) / 2);
|
||||
|
||||
for (const auto [index, app]: utils::enumerate(*apps))
|
||||
{
|
||||
ImTextureID texture = [&]() -> ImTextureID {
|
||||
if (app.image.empty())
|
||||
return default_icon;
|
||||
else
|
||||
{
|
||||
auto it = app_icons.find(app.id);
|
||||
if (it == app_icons.end())
|
||||
{
|
||||
// Don't load too many textures at the same time to keep the GUI responsive
|
||||
if (std::chrono::steady_clock::now() - t0 > 10ms)
|
||||
return default_icon;
|
||||
|
||||
try
|
||||
{
|
||||
it = app_icons.emplace(app.id, textures.load_texture(app.image)).first;
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Unable to load icon for \"{}\": {}", app.id, e.what());
|
||||
|
||||
app.image.clear();
|
||||
return default_icon;
|
||||
}
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
}();
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, 0);
|
||||
if (icon(app.name + "##" + app.id, texture, {256, 256}, ImGuiButtonFlags_PressedOnClickRelease, {icon_width, 0}))
|
||||
{
|
||||
res = clicked::Start;
|
||||
start_time = t0;
|
||||
stream.start_application(app.id);
|
||||
}
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
ImGui::PopStyleColor(); // ImGuiCol_Button
|
||||
|
||||
if ((index + 1) % icons_per_line)
|
||||
ImGui::SameLine();
|
||||
}
|
||||
ImGui::Unindent();
|
||||
|
||||
std::vector<std::pair<std::string, ImTextureID>> to_be_removed;
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
{
|
||||
if (not std::ranges::contains(*apps, app_id, &app::id))
|
||||
to_be_removed.emplace_back(app_id, app_icon);
|
||||
}
|
||||
for (const auto & [app_id, app_icon]: to_be_removed)
|
||||
{
|
||||
imgui_ctx.free_texture(app_icon);
|
||||
app_icons.erase(app_id);
|
||||
}
|
||||
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
ImGui::EndDisabled();
|
||||
|
||||
if (app_starting)
|
||||
{
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() / 2 - ImVec2{200, 200} - ImGui::GetStyle().FramePadding);
|
||||
ImSpinner::SpinnerAng("App starting spinner",
|
||||
200, // Radius
|
||||
40, // Thickness
|
||||
ImColor{1.f, 1.f, 1.f, 1.f}, // Colour
|
||||
ImColor{1.f, 1.f, 1.f, 0.f}, // Background
|
||||
6, // Velocity
|
||||
0.75f * 2 * M_PI // Angle
|
||||
);
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_WindowPadding
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - cancel_size - ImVec2{50, 50});
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(cancel.c_str()))
|
||||
res = clicked::Cancel;
|
||||
imgui_ctx.vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
|
||||
ImGui::PopStyleVar(2);
|
||||
return res;
|
||||
}
|
||||
|
||||
void app_launcher::operator()(to_headset::application_list && apps)
|
||||
{
|
||||
std::ranges::sort(apps.applications, [](auto & l, auto & r) {
|
||||
return una::casesens::collate_utf8(l.name, r.name) < 0;
|
||||
});
|
||||
|
||||
auto locked = applications.lock();
|
||||
|
||||
locked->clear();
|
||||
locked->reserve(apps.applications.size());
|
||||
for (const auto & i: apps.applications)
|
||||
{
|
||||
locked->push_back(app{
|
||||
.id = std::move(i.id),
|
||||
.name = std::move(i.name),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void app_launcher::operator()(to_headset::application_icon && icon)
|
||||
{
|
||||
auto locked = applications.lock();
|
||||
if (auto it = std::ranges::find(*locked, icon.id, &app::id); it != locked->end())
|
||||
it->image = std::move(icon.image);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* 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 "imgui.h"
|
||||
#include "render/imgui_impl.h"
|
||||
#include "wivrn_packets.h"
|
||||
#include <chrono>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace scenes
|
||||
{
|
||||
class stream;
|
||||
}
|
||||
|
||||
class app_launcher
|
||||
{
|
||||
struct app
|
||||
{
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::vector<std::byte> image;
|
||||
};
|
||||
|
||||
std::chrono::steady_clock::time_point start_time{};
|
||||
std::string server_name;
|
||||
scenes::stream & stream;
|
||||
imgui_textures textures;
|
||||
ImTextureID default_icon;
|
||||
std::unordered_map<std::string, ImTextureID> app_icons;
|
||||
// Last application list received from server
|
||||
thread_safe<std::vector<app>> applications;
|
||||
|
||||
public:
|
||||
app_launcher(scenes::stream &, std::string server_name);
|
||||
~app_launcher();
|
||||
enum clicked
|
||||
{
|
||||
None,
|
||||
Cancel,
|
||||
Start,
|
||||
};
|
||||
// cancel: text to display on the quit/disconnect/cancel button
|
||||
clicked draw_gui(imgui_context &, const std::string & cancel);
|
||||
|
||||
void operator()(wivrn::to_headset::application_list && apps);
|
||||
void operator()(wivrn::to_headset::application_icon && icon);
|
||||
};
|
||||
@@ -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
|
||||
@@ -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
|
||||
+1
-12
@@ -572,7 +572,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
{
|
||||
auto session = async_session.get();
|
||||
if (session)
|
||||
next_scene = stream::create(std::move(session), 1'000'000'000.f / frame_state.predictedDisplayPeriod);
|
||||
next_scene = stream::create(std::move(session), 1'000'000'000.f / frame_state.predictedDisplayPeriod, server_name);
|
||||
|
||||
async_session.reset();
|
||||
}
|
||||
@@ -923,15 +923,6 @@ void scenes::lobby::on_focused()
|
||||
about_picture = imgui_ctx->load_texture(image + ".png");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
default_icon = imgui_ctx->load_texture("default_icon.ktx2");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
default_icon = imgui_ctx->load_texture("default_icon.png");
|
||||
}
|
||||
|
||||
setup_passthrough();
|
||||
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
|
||||
multicast = application::get_wifi_lock().get_multicast_lock();
|
||||
@@ -952,8 +943,6 @@ void scenes::lobby::on_unfocused()
|
||||
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets
|
||||
|
||||
about_picture = 0;
|
||||
default_icon = 0;
|
||||
app_icons.clear();
|
||||
imgui_ctx.reset();
|
||||
world.clear(); // Must be cleared before the renderer so that the descriptor sets are freed before their pools
|
||||
|
||||
|
||||
@@ -127,9 +127,6 @@ class lobby : public scene_impl<lobby>
|
||||
tab last_current_tab = tab::server_list;
|
||||
int optional_feature_index = 0; // Which step of the first run screen are we in
|
||||
ImTextureID about_picture;
|
||||
ImTextureID default_icon;
|
||||
std::unordered_map<std::string, ImTextureID> app_icons;
|
||||
std::optional<XrTime> timestamp_start_application;
|
||||
|
||||
virtual_keyboard keyboard;
|
||||
|
||||
|
||||
+42
-343
@@ -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__
|
||||
@@ -29,15 +30,13 @@
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "lobby.h"
|
||||
#include "stream.h"
|
||||
#include "scenes/stream.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/overloaded.h"
|
||||
#include "utils/ranges.h"
|
||||
#include "version.h"
|
||||
#include "xr/body_tracker.h"
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <chrono>
|
||||
#include <filesystem>
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
#include <imspinner.h>
|
||||
@@ -51,81 +50,6 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
// https://github.com/ocornut/imgui/issues/3379#issuecomment-2943903877
|
||||
static void ScrollWhenDragging()
|
||||
{
|
||||
ImVec2 delta{0.0f, -ImGui::GetIO().MouseDelta.y};
|
||||
const ImGuiMouseButton mouse_button = ImGuiMouseButton_Left;
|
||||
|
||||
ImGuiContext & g = *ImGui::GetCurrentContext();
|
||||
ImGuiWindow * window = g.CurrentWindow;
|
||||
ImGuiID id = window->GetID("##scrolldraggingoverlay");
|
||||
ImGui::KeepAliveID(id);
|
||||
|
||||
static int active_id;
|
||||
static ImVec2 cumulated_delta;
|
||||
|
||||
bool HoveredIdAllowOverlap_backup = std::exchange(g.HoveredIdAllowOverlap, true);
|
||||
bool ActiveIdAllowOverlap_backup = std::exchange(g.ActiveIdAllowOverlap, true);
|
||||
if (active_id == 0 and ImGui::ItemHoverable(window->Rect(), 0, g.CurrentItemFlags) and ImGui::IsMouseClicked(mouse_button, ImGuiInputFlags_None, /*id*/ ImGuiKeyOwner_Any))
|
||||
{
|
||||
active_id = id;
|
||||
|
||||
// Don't scroll on the first step, in case the active controller just changed
|
||||
delta = {};
|
||||
cumulated_delta = {};
|
||||
}
|
||||
|
||||
if (not g.IO.MouseDown[mouse_button])
|
||||
active_id = 0;
|
||||
|
||||
if (active_id == id)
|
||||
{
|
||||
if (delta.x != 0.0f)
|
||||
ImGui::SetScrollX(window, window->Scroll.x + delta.x);
|
||||
if (delta.y != 0.0f)
|
||||
ImGui::SetScrollY(window, window->Scroll.y + delta.y);
|
||||
|
||||
cumulated_delta += delta;
|
||||
if (std::max(std::abs(cumulated_delta.x), std::abs(cumulated_delta.y)) > 50)
|
||||
ImGui::ClearActiveID();
|
||||
}
|
||||
|
||||
g.HoveredIdAllowOverlap = HoveredIdAllowOverlap_backup;
|
||||
g.ActiveIdAllowOverlap = ActiveIdAllowOverlap_backup;
|
||||
}
|
||||
|
||||
static void CenterTextH(const std::string & text)
|
||||
{
|
||||
float win_width = ImGui::GetWindowSize().x;
|
||||
float text_width = ImGui::CalcTextSize(text.c_str()).x;
|
||||
ImGui::SetCursorPosX((win_width - text_width) / 2);
|
||||
|
||||
ImGui::Text("%s", text.c_str());
|
||||
}
|
||||
|
||||
static void CenterTextHV(const std::string & text)
|
||||
{
|
||||
ImVec2 size = ImGui::GetWindowSize();
|
||||
|
||||
std::vector<std::string> lines = utils::split(text);
|
||||
|
||||
float text_height = 0;
|
||||
for (const auto & i: lines)
|
||||
text_height += ImGui::CalcTextSize(i.c_str()).y;
|
||||
|
||||
ImGui::SetCursorPosY((size.y - text_height) / 2);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {0, 0});
|
||||
for (const auto & i: lines)
|
||||
{
|
||||
float text_width = ImGui::CalcTextSize(i.c_str()).x;
|
||||
ImGui::SetCursorPosX((size.x - text_width) / 2);
|
||||
ImGui::Text("%s", i.c_str());
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
||||
static void InputText(const char * label, std::string & text, const ImVec2 & size, ImGuiInputTextFlags flags)
|
||||
{
|
||||
auto callback = [](ImGuiInputTextCallbackData * data) -> int {
|
||||
@@ -141,7 +65,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)
|
||||
@@ -174,54 +98,6 @@ static void display_recentering_tip(imgui_context & ctx, const std::string & tip
|
||||
ImGui::PopFont();
|
||||
}
|
||||
|
||||
// Display a button with an image and a text centred horizontally
|
||||
static bool icon(const std::string & text, ImTextureRef tex_ref, const ImVec2 & image_size, ImGuiButtonFlags flags = 0, const ImVec2 & size_arg = ImVec2(0, 0), const ImVec2 & uv0 = ImVec2(0, 0), const ImVec2 & uv1 = ImVec2(1, 1), const ImVec4 & tint_col = ImVec4(1, 1, 1, 1))
|
||||
{
|
||||
// Based on ImGui::ButtonEx and ImGui::ImageButtonEx
|
||||
ImGuiWindow * window = ImGui::GetCurrentWindow();
|
||||
const ImGuiStyle & style = ImGui::GetStyle();
|
||||
|
||||
if (window->SkipItems)
|
||||
return false;
|
||||
|
||||
const ImVec2 label_size = ImGui::CalcTextSize(text.c_str(), nullptr, true);
|
||||
|
||||
ImVec2 size = ImGui::CalcItemSize(
|
||||
size_arg,
|
||||
std::max(image_size.x, label_size.x) + style.FramePadding.x * 2.0f,
|
||||
image_size.y + style.ItemInnerSpacing.y + label_size.y + style.FramePadding.y * 2.0f);
|
||||
|
||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size);
|
||||
|
||||
ImRect image_pos(
|
||||
{(bb.Min.x + bb.Max.x - image_size.x) / 2, bb.Min.y + style.FramePadding.y},
|
||||
{(bb.Min.x + bb.Max.x + image_size.x) / 2, bb.Min.y + style.FramePadding.y + image_size.y});
|
||||
|
||||
ImRect label_pos(
|
||||
{bb.Min.x + style.FramePadding.x, image_pos.Max.y + style.ItemInnerSpacing.y},
|
||||
{bb.Max.x - style.FramePadding.x, bb.Max.y - style.FramePadding.y});
|
||||
|
||||
ImGui::ItemSize(bb);
|
||||
|
||||
ImGuiID id = window->GetID(text.c_str());
|
||||
if (!ImGui::ItemAdd(bb, id))
|
||||
return false;
|
||||
|
||||
bool hovered, held;
|
||||
bool pressed = ImGui::ButtonBehavior(bb, id, &hovered, &held, flags);
|
||||
|
||||
// Render
|
||||
const ImU32 col = ImGui::GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered
|
||||
: ImGuiCol_Button);
|
||||
ImGui::RenderNavCursor(bb, id);
|
||||
ImGui::RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
|
||||
|
||||
window->DrawList->AddImage(tex_ref, image_pos.Min, image_pos.Max, uv0, uv1, ImGui::GetColorU32(tint_col));
|
||||
ImGui::RenderTextClipped(label_pos.Min, label_pos.Max, text.c_str(), NULL, &label_size, style.ButtonTextAlign, &bb);
|
||||
|
||||
return pressed;
|
||||
}
|
||||
|
||||
std::string openxr_post_processing_flag_name(XrCompositionLayerSettingsFlagsFB flag)
|
||||
{
|
||||
switch (flag)
|
||||
@@ -247,7 +123,6 @@ void scenes::lobby::gui_connecting(locked_notifiable<pin_request_data> & pin_req
|
||||
if (next_scene)
|
||||
{
|
||||
current_tab = tab::connected;
|
||||
timestamp_start_application.reset();
|
||||
ImGui::CloseCurrentPopup();
|
||||
return;
|
||||
}
|
||||
@@ -383,144 +258,14 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
|
||||
if (not next_scene)
|
||||
{
|
||||
current_tab = tab::server_list;
|
||||
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
imgui_ctx->free_texture(app_icon);
|
||||
app_icons.clear();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
if (server_name.empty())
|
||||
CenterTextH(_("Connected to WiVRn server"));
|
||||
else
|
||||
CenterTextH(fmt::format(_F("Connected to {}"), server_name));
|
||||
ImGui::PopFont();
|
||||
|
||||
auto disconnect = _("Disconnect");
|
||||
auto disconnect_size = ImGui::CalcTextSize(disconnect.c_str());
|
||||
|
||||
auto apps = next_scene->get_applications();
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, {20, 20});
|
||||
if (apps->empty())
|
||||
{
|
||||
CenterTextHV(_("Start an application on the server to start streaming."));
|
||||
}
|
||||
else
|
||||
{
|
||||
bool app_starting = timestamp_start_application and (predicted_display_time - *timestamp_start_application < 10'000'000'000);
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {20, 0});
|
||||
ImGui::BeginDisabled(app_starting);
|
||||
ImGui::BeginChild("Main", ImGui::GetWindowSize() - ImGui::GetCursorPos() - ImVec2(0, disconnect_size.y + 80), 0, app_starting ? ImGuiWindowFlags_NoScrollWithMouse : 0);
|
||||
|
||||
ImGui::Indent(20);
|
||||
if (server_name.empty())
|
||||
ImGui::Text("%s", _S("Start an application on your computer or select one to start streaming."));
|
||||
else
|
||||
ImGui::Text("%s", fmt::format(_F("Start an application on {} or select one to start streaming."), server_name).c_str());
|
||||
ImGui::Unindent();
|
||||
|
||||
float icon_width = 400;
|
||||
float icon_spacing = ImGui::GetStyle().ItemSpacing.x;
|
||||
float usable_window_width = ImGui::GetWindowSize().x - ImGui::GetCurrentWindow()->ScrollbarSizes.x;
|
||||
|
||||
int icons_per_line = (usable_window_width + icon_spacing) / (icon_width + icon_spacing);
|
||||
float icon_line_width = icons_per_line * icon_width + (icons_per_line - 1) * icon_spacing;
|
||||
|
||||
ImGui::Indent((usable_window_width - icon_line_width) / 2);
|
||||
|
||||
auto t0 = std::chrono::steady_clock::now();
|
||||
for (const auto [index, app]: utils::enumerate(*apps))
|
||||
{
|
||||
ImTextureID texture = [&]() -> ImTextureID {
|
||||
if (app.image.empty())
|
||||
return default_icon;
|
||||
else
|
||||
{
|
||||
auto it = app_icons.find(app.id);
|
||||
if (it == app_icons.end())
|
||||
{
|
||||
// Don't load too many textures at the same time to keep the GUI responsive
|
||||
if (std::chrono::steady_clock::now() - t0 > 10ms)
|
||||
return default_icon;
|
||||
|
||||
try
|
||||
{
|
||||
it = app_icons.emplace(app.id, imgui_ctx->load_texture(app.image)).first;
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Unable to load icon for \"{}\": {}", app.id, e.what());
|
||||
|
||||
app.image.clear();
|
||||
return default_icon;
|
||||
}
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
}();
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, 0);
|
||||
if (icon(app.name + "##" + app.id, texture, {256, 256}, ImGuiButtonFlags_PressedOnClickRelease, {icon_width, 0}))
|
||||
{
|
||||
timestamp_start_application = predicted_display_time;
|
||||
next_scene->start_application(app.id);
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(); // ImGuiCol_Button
|
||||
|
||||
if (index % 3 != 2)
|
||||
ImGui::SameLine();
|
||||
}
|
||||
ImGui::Unindent();
|
||||
|
||||
std::vector<std::pair<std::string, ImTextureID>> to_be_removed;
|
||||
for (const auto & [app_id, app_icon]: app_icons)
|
||||
{
|
||||
if (not std::ranges::contains(*apps, app_id, &scenes::stream::app::id))
|
||||
to_be_removed.emplace_back(app_id, app_icon);
|
||||
}
|
||||
for (const auto & [app_id, app_icon]: to_be_removed)
|
||||
{
|
||||
imgui_ctx->free_texture(app_icon);
|
||||
app_icons.erase(app_id);
|
||||
}
|
||||
|
||||
ScrollWhenDragging();
|
||||
ImGui::EndChild();
|
||||
ImGui::EndDisabled();
|
||||
|
||||
if (app_starting)
|
||||
{
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() / 2 - ImVec2{200, 200} - ImGui::GetStyle().FramePadding);
|
||||
ImSpinner::SpinnerAng("App starting spinner",
|
||||
200, // Radius
|
||||
40, // Thickness
|
||||
ImColor{1.f, 1.f, 1.f, 1.f}, // Colour
|
||||
ImColor{1.f, 1.f, 1.f, 0.f}, // Background
|
||||
6, // Velocity
|
||||
0.75f * 2 * M_PI // Angle
|
||||
);
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_WindowPadding
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - disconnect_size - ImVec2{50, 50});
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(disconnect.c_str()))
|
||||
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
|
||||
{
|
||||
next_scene.reset();
|
||||
current_tab = tab::server_list;
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3); // ImGuiCol_Button, ImGuiCol_ButtonHovered, ImGuiCol_ButtonActive
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_new_server()
|
||||
@@ -794,6 +539,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();
|
||||
@@ -1060,89 +842,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();
|
||||
}
|
||||
|
||||
@@ -1370,7 +1069,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();
|
||||
|
||||
+70
-310
@@ -38,9 +38,6 @@
|
||||
#include "utils/contains.h"
|
||||
#include "utils/named_thread.h"
|
||||
#include "utils/ranges.h"
|
||||
#include "vk/pipeline.h"
|
||||
#include "vk/shader.h"
|
||||
#include "vk/specialization_constants.h"
|
||||
#include "wivrn_packets.h"
|
||||
#include <algorithm>
|
||||
#include <mutex>
|
||||
@@ -48,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
|
||||
@@ -149,8 +151,10 @@ static const std::array supported_depth_formats{
|
||||
vk::Format::eX8D24UnormPack32,
|
||||
};
|
||||
|
||||
scenes::stream::stream() :
|
||||
scene_impl<stream>(supported_color_formats, supported_depth_formats)
|
||||
scenes::stream::stream(std::string server_name) :
|
||||
scene_impl<stream>(supported_color_formats, supported_depth_formats),
|
||||
apps{*this, std::move(server_name)},
|
||||
blitters{blitter(device, 0), blitter(device, 1)}
|
||||
{
|
||||
}
|
||||
|
||||
@@ -182,9 +186,9 @@ static from_headset::visibility_mask_changed::masks get_visibility_mask(xr::inst
|
||||
return res;
|
||||
}
|
||||
|
||||
std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_session> network_session, float guessed_fps)
|
||||
std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_session> network_session, float guessed_fps, std::string server_name)
|
||||
{
|
||||
std::shared_ptr<stream> self{new stream};
|
||||
std::shared_ptr<stream> self{new stream{std::move(server_name)}};
|
||||
self->network_session = std::move(network_session);
|
||||
|
||||
self->network_session->send_control([&]() {
|
||||
@@ -296,7 +300,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
if (not(config.check_feature(feature::microphone)))
|
||||
info.microphone = {};
|
||||
|
||||
info.supported_codecs = decoder_impl::supported_codecs();
|
||||
info.supported_codecs = decoder::supported_codecs();
|
||||
return info;
|
||||
}());
|
||||
|
||||
@@ -727,6 +731,8 @@ bool scenes::stream::is_gui_interactable() const
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
return true;
|
||||
|
||||
case gui_status::hidden:
|
||||
@@ -774,107 +780,11 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
.variant = application::get_messages_info().variant,
|
||||
});
|
||||
|
||||
gui_status = stream::gui_status::hidden;
|
||||
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,
|
||||
};
|
||||
|
||||
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();
|
||||
spdlog::info("useful size: {}x{} with buffer {}x{}",
|
||||
description.width,
|
||||
description.height,
|
||||
image_size.width,
|
||||
image_size.height);
|
||||
|
||||
auto vert_constants = make_specialization_constants(
|
||||
float(description.width) / image_size.width,
|
||||
float(description.height) / image_size.height);
|
||||
|
||||
auto frag_constants = make_specialization_constants(
|
||||
VkBool32(need_srgb_conversion(guess_model())),
|
||||
VkBool32(i.alpha()));
|
||||
|
||||
// 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_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 = 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);
|
||||
}
|
||||
}
|
||||
|
||||
if (device.waitForFences(*fence, VK_TRUE, UINT64_MAX) == vk::Result::eTimeout)
|
||||
throw std::runtime_error("Vulkan fence timeout");
|
||||
|
||||
@@ -905,11 +815,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
|
||||
|
||||
@@ -924,10 +836,9 @@ 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 = instance.now();
|
||||
@@ -941,27 +852,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 = {
|
||||
@@ -972,76 +868,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))
|
||||
{
|
||||
vk::Extent2D decoder_out_size{
|
||||
.width = decoder_out_image.info().extent.width,
|
||||
.height = decoder_out_image.info().extent.height,
|
||||
};
|
||||
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);
|
||||
@@ -1052,7 +894,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);
|
||||
}
|
||||
@@ -1082,14 +924,39 @@ 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);
|
||||
|
||||
command_buffer.end();
|
||||
vk::SubmitInfo submit_info;
|
||||
submit_info.setCommandBuffers(*command_buffer);
|
||||
|
||||
std::vector<vk::Semaphore> semaphores;
|
||||
std::vector<uint64_t> semaphore_vals;
|
||||
std::vector<vk::PipelineStageFlags> wait_stages;
|
||||
for (auto b: current_blit_handles)
|
||||
{
|
||||
if (b and b->semaphore)
|
||||
{
|
||||
assert(b->semaphore_val);
|
||||
semaphores.push_back(b->semaphore);
|
||||
semaphore_vals.push_back(*b->semaphore_val);
|
||||
wait_stages.push_back(vk::PipelineStageFlagBits::eFragmentShader);
|
||||
}
|
||||
}
|
||||
submit_info.setWaitDstStageMask(wait_stages);
|
||||
submit_info.setWaitSemaphores(semaphores);
|
||||
vk::TimelineSemaphoreSubmitInfo sem_info{
|
||||
.waitSemaphoreValueCount = uint32_t(semaphore_vals.size()),
|
||||
.pWaitSemaphoreValues = semaphore_vals.data(),
|
||||
};
|
||||
submit_info.pNext = &sem_info;
|
||||
|
||||
queue.lock()->submit(submit_info, *fence);
|
||||
#if WIVRN_FEATURE_RENDERDOC
|
||||
renderdoc_end(*vk_instance);
|
||||
#endif
|
||||
swapchain.release();
|
||||
|
||||
std::vector<XrCompositionLayerProjectionView> layer_view(view_count);
|
||||
@@ -1137,6 +1004,8 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
break;
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
|
||||
break;
|
||||
}
|
||||
@@ -1222,12 +1091,14 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
case gui_status::hidden:
|
||||
case gui_status::compact:
|
||||
case gui_status::overlay_only:
|
||||
gui_status = gui_status::stats;
|
||||
gui_status = next_gui_status;
|
||||
break;
|
||||
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
gui_status = gui_status::hidden;
|
||||
break;
|
||||
}
|
||||
@@ -1256,116 +1127,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
|
||||
{
|
||||
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 = image_info.format,
|
||||
.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 = image_info.extent.width,
|
||||
.height = image_info.extent.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, instance, item, description.fps, shared_from_this(), stream_index),
|
||||
.decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, queue_family_index, item, description.fps, shared_from_this(), stream_index),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1378,15 +1148,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());
|
||||
@@ -1403,10 +1164,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,
|
||||
swapchain_images,
|
||||
extent,
|
||||
swapchain.format());
|
||||
|
||||
+19
-32
@@ -19,12 +19,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "app_launcher.h"
|
||||
#include "audio/audio.h"
|
||||
#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,12 +50,7 @@ public:
|
||||
};
|
||||
static const size_t image_buffer_size = 3;
|
||||
|
||||
struct app
|
||||
{
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::vector<std::byte> image;
|
||||
};
|
||||
app_launcher apps;
|
||||
|
||||
private:
|
||||
static const size_t view_count = 2;
|
||||
@@ -63,10 +60,6 @@ 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, rolling buffer
|
||||
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, image_buffer_size> latest_frames;
|
||||
|
||||
@@ -97,19 +90,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;
|
||||
|
||||
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;
|
||||
@@ -148,13 +132,16 @@ private:
|
||||
compact,
|
||||
stats,
|
||||
settings,
|
||||
foveation_settings
|
||||
foveation_settings,
|
||||
applications,
|
||||
application_launcher,
|
||||
};
|
||||
|
||||
bool is_gui_interactable() const;
|
||||
|
||||
std::atomic<gui_status> gui_status = gui_status::hidden;
|
||||
enum gui_status last_gui_status = gui_status::hidden;
|
||||
enum gui_status next_gui_status = gui_status::stats;
|
||||
XrTime gui_status_last_change;
|
||||
float dimming = 0;
|
||||
|
||||
@@ -182,15 +169,18 @@ private:
|
||||
// Keep a reference to the resources needed to blit the images until vkWaitForFences
|
||||
std::vector<std::shared_ptr<wivrn::shard_accumulator::blit_handle>> current_blit_handles;
|
||||
|
||||
// Last application list received from server
|
||||
thread_safe<std::vector<app>> applications;
|
||||
XrTime running_application_req = 0;
|
||||
thread_safe<to_headset::running_applications> running_applications;
|
||||
|
||||
stream();
|
||||
stream(std::string server_name);
|
||||
|
||||
public:
|
||||
~stream();
|
||||
|
||||
static std::shared_ptr<stream> create(std::unique_ptr<wivrn_session> session, float guessed_fps);
|
||||
static std::shared_ptr<stream> create(
|
||||
std::unique_ptr<wivrn_session> session,
|
||||
float guessed_fps,
|
||||
std::string server_name);
|
||||
|
||||
void render(const XrFrameState &) override;
|
||||
void on_focused() override;
|
||||
@@ -210,6 +200,7 @@ public:
|
||||
void operator()(to_headset::refresh_rate_change &&);
|
||||
void operator()(to_headset::application_list &&);
|
||||
void operator()(to_headset::application_icon &&);
|
||||
void operator()(to_headset::running_applications &&);
|
||||
void operator()(audio_data &&);
|
||||
|
||||
void push_blit_handle(wivrn::shard_accumulator * decoder, std::shared_ptr<wivrn::shard_accumulator::blit_handle> handle);
|
||||
@@ -226,11 +217,6 @@ public:
|
||||
return !exiting;
|
||||
}
|
||||
|
||||
auto get_applications()
|
||||
{
|
||||
return applications.lock();
|
||||
}
|
||||
|
||||
void start_application(std::string appid);
|
||||
|
||||
static meta & get_meta_scene();
|
||||
@@ -317,6 +303,7 @@ private:
|
||||
void gui_compact_view();
|
||||
void gui_settings();
|
||||
void gui_foveation_settings(float predicted_display_period);
|
||||
void gui_applications();
|
||||
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
|
||||
};
|
||||
} // namespace scenes
|
||||
|
||||
@@ -0,0 +1,452 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 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 "stream_defoveator.h"
|
||||
#include "application.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>
|
||||
#include <vk_mem_alloc.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
struct stream_defoveator::vertex
|
||||
{
|
||||
// output image position
|
||||
alignas(8) glm::vec2 position;
|
||||
// input texture coordinates
|
||||
alignas(8) glm::uvec2 uv;
|
||||
};
|
||||
|
||||
struct vert_pc
|
||||
{
|
||||
glm::ivec4 rgb_rect;
|
||||
glm::ivec4 a_rect;
|
||||
};
|
||||
|
||||
void stream_defoveator::ensure_vertices(size_t num_vertices)
|
||||
{
|
||||
vk::BufferCreateInfo create_info{
|
||||
.size = num_vertices * sizeof(vertex) * view_count,
|
||||
.usage = vk::BufferUsageFlagBits::eVertexBuffer,
|
||||
.sharingMode = vk::SharingMode::eExclusive,
|
||||
};
|
||||
|
||||
if (create_info.size <= buffer.info().size)
|
||||
return;
|
||||
|
||||
VmaAllocationCreateInfo alloc_info{
|
||||
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
|
||||
};
|
||||
|
||||
buffer = buffer_allocation(device, create_info, alloc_info);
|
||||
vertices_size = num_vertices * sizeof(vertex);
|
||||
}
|
||||
|
||||
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_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a)
|
||||
{
|
||||
auto & target = a ? pipeline_a[view] : pipeline_rgb[view];
|
||||
if (*target.pipeline)
|
||||
return target;
|
||||
|
||||
std::array samplers{rgb, a};
|
||||
int32_t alpha = a ? 1 : 0;
|
||||
|
||||
// Create VkDescriptorSetLayout
|
||||
std::array layout_binding{
|
||||
vk::DescriptorSetLayoutBinding{
|
||||
.binding = 0,
|
||||
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
|
||||
.descriptorCount = uint32_t(alpha + 1),
|
||||
.stageFlags = vk::ShaderStageFlagBits::eFragment,
|
||||
.pImmutableSamplers = samplers.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),
|
||||
};
|
||||
|
||||
vk::PipelineLayoutCreateInfo pipeline_layout_info{
|
||||
.setLayoutCount = 1,
|
||||
.pSetLayouts = &*target.descriptor_set_layout,
|
||||
.pushConstantRangeCount = 1,
|
||||
.pPushConstantRanges = &pc_range,
|
||||
};
|
||||
|
||||
target.layout = vk::raii::PipelineLayout(device, pipeline_layout_info);
|
||||
|
||||
const auto & vk_device_extensions = application::get_vk_device_extensions();
|
||||
|
||||
// Vertex shader
|
||||
vk::raii::ShaderModule vertex_shader = load_shader(device, "reprojection.vert");
|
||||
|
||||
// Fragment shader
|
||||
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::pipeline_builder pipeline_info{
|
||||
.flags = {},
|
||||
.Stages = {
|
||||
{
|
||||
.stage = vk::ShaderStageFlagBits::eVertex,
|
||||
.module = *vertex_shader,
|
||||
.pName = "main",
|
||||
},
|
||||
{
|
||||
.stage = vk::ShaderStageFlagBits::eFragment,
|
||||
.module = *fragment_shader,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = specialization,
|
||||
},
|
||||
},
|
||||
.VertexBindingDescriptions = {
|
||||
{
|
||||
.binding = 0,
|
||||
.stride = sizeof(vertex),
|
||||
.inputRate = vk::VertexInputRate::eVertex,
|
||||
},
|
||||
},
|
||||
.VertexAttributeDescriptions = {
|
||||
{
|
||||
.location = 0,
|
||||
.binding = 0,
|
||||
.format = vk::Format::eR32G32Sfloat,
|
||||
.offset = offsetof(vertex, position),
|
||||
},
|
||||
{
|
||||
.location = 1,
|
||||
.binding = 0,
|
||||
.format = vk::Format::eR32G32Uint,
|
||||
.offset = offsetof(vertex, uv),
|
||||
},
|
||||
},
|
||||
.InputAssemblyState = {{
|
||||
.topology = vk::PrimitiveTopology::eTriangleStrip,
|
||||
}},
|
||||
.Viewports = {{}},
|
||||
.Scissors = {{}},
|
||||
.RasterizationState = {{
|
||||
.polygonMode = vk::PolygonMode::eFill,
|
||||
.lineWidth = 1,
|
||||
}},
|
||||
.MultisampleState = {{
|
||||
.rasterizationSamples = vk::SampleCountFlagBits::e1,
|
||||
}},
|
||||
.ColorBlendState = {.flags = {}},
|
||||
.ColorBlendAttachments = {{
|
||||
.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA,
|
||||
}},
|
||||
.DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor},
|
||||
.layout = *target.layout,
|
||||
.renderPass = *renderpass,
|
||||
.subpass = 0,
|
||||
};
|
||||
|
||||
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);
|
||||
framebuffers.reserve(output_images.size() * view_count);
|
||||
for (vk::Image image: output_images)
|
||||
{
|
||||
for (uint32_t view = 0; view < view_count; ++view)
|
||||
{
|
||||
vk::ImageViewCreateInfo iv_info{
|
||||
.image = image,
|
||||
.viewType = vk::ImageViewType::e2DArray,
|
||||
.format = format,
|
||||
.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,
|
||||
},
|
||||
};
|
||||
|
||||
output_image_views.emplace_back(device, iv_info);
|
||||
|
||||
vk::FramebufferCreateInfo fb_create_info{
|
||||
.renderPass = *renderpass,
|
||||
.width = output_extent.width,
|
||||
.height = output_extent.height,
|
||||
.layers = 1,
|
||||
};
|
||||
fb_create_info.setAttachments(*output_image_views.back());
|
||||
|
||||
framebuffers.emplace_back(device, fb_create_info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p)
|
||||
{
|
||||
// strips are constructed like this:
|
||||
// 0 2 4
|
||||
// 1 3 5 5*
|
||||
// there is one such line per value in y
|
||||
// the last element is repeated to break the line
|
||||
return (2 * (p.x.size() + 1) + 1) * p.y.size();
|
||||
}
|
||||
|
||||
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");
|
||||
|
||||
ensure_vertices(std::max(required_vertices(foveation[0]), required_vertices(foveation[1])));
|
||||
|
||||
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);
|
||||
assert(py.size() % 2 == 1);
|
||||
const int n_ratio_y = (py.size() - 1) / 2;
|
||||
const int n_ratio_x = (px.size() - 1) / 2;
|
||||
|
||||
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.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;
|
||||
*vertices++ = {
|
||||
.position = out * out_pixel_size,
|
||||
.uv = in,
|
||||
};
|
||||
*vertices++ = {
|
||||
.position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size,
|
||||
.uv = (in + glm::uvec2(0, n_out_y)),
|
||||
};
|
||||
in.x += n_out_x;
|
||||
out.x += n_out_x * ratio_x;
|
||||
}
|
||||
*vertices++ = {
|
||||
.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,
|
||||
.uv = in,
|
||||
};
|
||||
*vertices++ = {
|
||||
.position = out * out_pixel_size,
|
||||
.uv = in,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
for (size_t view = 0; view < view_count; ++view)
|
||||
{
|
||||
vk::RenderPassBeginInfo begin_info{
|
||||
.renderPass = *renderpass,
|
||||
.framebuffer = *framebuffers[destination * view_count + view],
|
||||
.renderArea = {
|
||||
.offset = {0, 0},
|
||||
.extent = output_extent,
|
||||
},
|
||||
};
|
||||
|
||||
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.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();
|
||||
}
|
||||
}
|
||||
|
||||
static uint16_t count_pixels(const std::vector<uint16_t> & param)
|
||||
{
|
||||
uint16_t res = 0;
|
||||
const int n_ratio = (param.size() - 1) / 2;
|
||||
for (auto [i, n_out]: utils::enumerate_range(param))
|
||||
{
|
||||
// number of output pixels per source pixels
|
||||
const int ratio = std::abs(n_ratio - int(i)) + 1;
|
||||
res += ratio * n_out;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
|
||||
{
|
||||
return {
|
||||
count_pixels(view.x),
|
||||
count_pixels(view.y),
|
||||
};
|
||||
}
|
||||
@@ -19,40 +19,35 @@
|
||||
|
||||
#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;
|
||||
|
||||
// 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
|
||||
int32_t fragment_sizes[3][3] = {};
|
||||
|
||||
// Source image
|
||||
vk::raii::Sampler sampler = nullptr;
|
||||
std::vector<vk::raii::ImageView> input_image_views;
|
||||
std::vector<vk::DescriptorSet> descriptor_sets;
|
||||
vk::Extent2D input_extent;
|
||||
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];
|
||||
|
||||
// Destination images
|
||||
std::vector<vk::Image> output_images;
|
||||
@@ -63,22 +58,22 @@ class stream_reprojection
|
||||
void ensure_vertices(size_t num_vertices);
|
||||
vertex * get_vertices(size_t view);
|
||||
|
||||
int32_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,
|
||||
image_allocation & input_image,
|
||||
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;
|
||||
@@ -603,6 +603,85 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
|
||||
});
|
||||
}
|
||||
|
||||
void scenes::stream::gui_applications()
|
||||
{
|
||||
auto now = instance.now();
|
||||
if (now - running_application_req > 1'000'000'000)
|
||||
{
|
||||
running_application_req = now;
|
||||
network_session->send_control(from_headset::get_running_applications{});
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, {10, 10});
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
CenterTextH(_("Running XR applications:"));
|
||||
ImGui::PopFont();
|
||||
auto apps = running_applications.lock();
|
||||
ImVec2 button_size(ImGui::GetWindowSize().x - ImGui::GetCursorPosX() - 20, 0);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(ImGui::GetStyle().ItemSpacing.x, 20));
|
||||
ImGui::Spacing();
|
||||
std::ranges::sort(apps->applications, [](auto & l, auto & r) {
|
||||
if (l.overlay == r.overlay)
|
||||
return false;
|
||||
return r.overlay;
|
||||
});
|
||||
bool overlay = false;
|
||||
for (const auto & app: apps->applications)
|
||||
{
|
||||
if (app.overlay and not overlay)
|
||||
{
|
||||
ImGui::Separator();
|
||||
CenterTextH(_S("Overlays"));
|
||||
overlay = true;
|
||||
}
|
||||
int colors = 1;
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, IM_COL32_BLACK_TRANS);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 20));
|
||||
if (app.active or app.overlay)
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, IM_COL32_BLACK_TRANS);
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, IM_COL32_BLACK_TRANS);
|
||||
colors += 2;
|
||||
}
|
||||
ImGui::SetNextItemAllowOverlap();
|
||||
const bool clicked = RadioButtonWithoutCheckBox(
|
||||
std::format("{}{}##{}", app.active ? ICON_FA_CHEVRON_RIGHT " " : " ", app.name, app.id).c_str(),
|
||||
app.active,
|
||||
button_size);
|
||||
if (clicked and not(app.active or app.overlay))
|
||||
{
|
||||
network_session->send_control(from_headset::set_active_application{.id = app.id});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
ImGui::PopStyleColor(colors);
|
||||
ImGui::PopStyleVar(2);
|
||||
|
||||
ImGui::SameLine();
|
||||
auto right = ImGui::GetWindowSize().x;
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 10);
|
||||
ImGui::SetCursorPosX(right - ImGui::CalcTextSize(ICON_FA_XMARK).x - ImGui::GetStyle().FramePadding.x - 40);
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0.8f, 0.2f, 0.2f, 0.40f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0.8f, 0.2f, 0.2f, 1.00f));
|
||||
ImGui::PushStyleColor(ImGuiCol_ButtonActive, ImVec4(1.0f, 0.1f, 0.1f, 1.00f));
|
||||
if (ImGui::Button(std::format(ICON_FA_XMARK "##{}", app.id).c_str()))
|
||||
network_session->send_control(from_headset::stop_application{.id = app.id});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleColor(3);
|
||||
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_S("Request to quit, may be ignored by the application"));
|
||||
}
|
||||
|
||||
auto btn = _("Start");
|
||||
ImGui::SetCursorPos(ImGui::GetWindowSize() - ImGui::CalcTextSize(btn.c_str()) - ImVec2(50, 50));
|
||||
if (ImGui::Button(btn.c_str()))
|
||||
gui_status = gui_status::application_launcher;
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
ImGui::PopStyleVar(3);
|
||||
}
|
||||
|
||||
// Return the vector v such that dot(v, x) > 0 iff x is on the side where the composition layer is visible
|
||||
static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
|
||||
{
|
||||
@@ -642,6 +721,8 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
break;
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
break;
|
||||
}
|
||||
imgui_ctx->set_controllers_enabled(interactable);
|
||||
@@ -662,6 +743,8 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
if (gui_status != last_gui_status)
|
||||
{
|
||||
last_gui_status = gui_status;
|
||||
if (is_gui_interactable())
|
||||
next_gui_status = gui_status;
|
||||
gui_status_last_change = predicted_display_time;
|
||||
|
||||
// Override session state if the GUI is interactable
|
||||
@@ -708,6 +791,8 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
case gui_status::compact:
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
imgui_ctx->layers()[0].orientation = head_position->second * head_gui_orientation;
|
||||
imgui_ctx->layers()[0].position = head_position->first + M * head_gui_position;
|
||||
break;
|
||||
@@ -748,11 +833,18 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
ImGui::SetNextWindowPos(margin_around_window);
|
||||
ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
|
||||
always_auto_resize = false;
|
||||
display_tabs = true;
|
||||
break;
|
||||
case gui_status::application_launcher:
|
||||
ImGui::SetNextWindowPos(margin_around_window);
|
||||
ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
|
||||
always_auto_resize = false;
|
||||
display_tabs = false;
|
||||
break;
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
|
||||
@@ -804,6 +896,17 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
case gui_status::foveation_settings:
|
||||
gui_foveation_settings(predicted_display_period * 1.e-9f);
|
||||
break;
|
||||
|
||||
case gui_status::applications:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
gui_applications();
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
case gui_status::application_launcher:
|
||||
if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None)
|
||||
gui_status = gui_status::applications;
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding
|
||||
@@ -822,6 +925,9 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), gui_status, gui_status::settings, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
int n_items_at_end = 4;
|
||||
ImGui::SetCursorPosY(ImGui::GetContentRegionMax().y - n_items_at_end * ImGui::GetCurrentContext()->FontSize - (n_items_at_end * 2) * style.FramePadding.y - (n_items_at_end - 1) * style.ItemSpacing.y - style.WindowPadding.y);
|
||||
|
||||
|
||||
@@ -106,31 +106,19 @@ void scenes::stream::send_feedback(const wivrn::from_headset::feedback & feedbac
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::application_list && apps)
|
||||
void scenes::stream::operator()(to_headset::application_list && l)
|
||||
{
|
||||
std::ranges::sort(apps.applications, [](auto & l, auto & r) {
|
||||
return una::casesens::collate_utf8(l.name, r.name) < 0;
|
||||
});
|
||||
|
||||
auto locked = applications.lock();
|
||||
|
||||
locked->clear();
|
||||
locked->reserve(apps.applications.size());
|
||||
for (const auto & i: apps.applications)
|
||||
{
|
||||
locked->push_back(app{
|
||||
.id = std::move(i.id),
|
||||
.name = std::move(i.name),
|
||||
});
|
||||
}
|
||||
apps(std::move(l));
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::application_icon && icon)
|
||||
{
|
||||
auto locked = applications.lock();
|
||||
apps(std::move(icon));
|
||||
}
|
||||
|
||||
if (auto it = std::ranges::find(*locked, icon.id, &app::id); it != locked->end())
|
||||
it->image = std::move(icon.image);
|
||||
void scenes::stream::operator()(to_headset::running_applications && apps)
|
||||
{
|
||||
*running_applications.lock() = std::move(apps);
|
||||
}
|
||||
|
||||
void scenes::stream::start_application(std::string appid)
|
||||
|
||||
@@ -1,551 +0,0 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 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 "stream_reprojection.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>
|
||||
#include <vk_mem_alloc.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
struct stream_reprojection::vertex
|
||||
{
|
||||
// output image position
|
||||
alignas(8) glm::vec2 position;
|
||||
// input texture coordinates
|
||||
alignas(8) glm::vec2 uv;
|
||||
int32_t shading_rate;
|
||||
};
|
||||
|
||||
void stream_reprojection::ensure_vertices(size_t num_vertices)
|
||||
{
|
||||
vk::BufferCreateInfo create_info{
|
||||
.size = num_vertices * sizeof(vertex) * view_count,
|
||||
.usage = vk::BufferUsageFlagBits::eVertexBuffer,
|
||||
.sharingMode = vk::SharingMode::eExclusive,
|
||||
};
|
||||
|
||||
if (create_info.size <= buffer.info().size)
|
||||
return;
|
||||
|
||||
VmaAllocationCreateInfo alloc_info{
|
||||
.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
|
||||
};
|
||||
|
||||
buffer = buffer_allocation(device, create_info, alloc_info);
|
||||
vertices_size = num_vertices * sizeof(vertex);
|
||||
}
|
||||
|
||||
stream_reprojection::vertex * stream_reprojection::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,
|
||||
image_allocation & input_image,
|
||||
std::vector<vk::Image> output_images_,
|
||||
vk::Extent2D output_extent,
|
||||
vk::Format format) :
|
||||
view_count(input_image.info().arrayLayers),
|
||||
device(device),
|
||||
input_extent{
|
||||
.width = input_image.info().extent.width,
|
||||
.height = input_image.info().extent.height,
|
||||
},
|
||||
output_images(std::move(output_images_)),
|
||||
output_extent(output_extent)
|
||||
{
|
||||
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,
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
// 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,
|
||||
},
|
||||
};
|
||||
|
||||
vk::DescriptorPoolCreateInfo pool_info{
|
||||
.maxSets = view_count,
|
||||
.poolSizeCount = pool_size.size(),
|
||||
.pPoolSizes = pool_size.data(),
|
||||
};
|
||||
|
||||
descriptor_pool = vk::raii::DescriptorPool(device, pool_info);
|
||||
|
||||
// Create image views and descriptor sets
|
||||
for (uint32_t view = 0; view < view_count; ++view)
|
||||
{
|
||||
vk::ImageViewCreateInfo iv_info{
|
||||
.image = input_image,
|
||||
.viewType = vk::ImageViewType::e2D,
|
||||
.format = input_image.info().format,
|
||||
.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,
|
||||
},
|
||||
{});
|
||||
}
|
||||
|
||||
// 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());
|
||||
|
||||
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))
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
// Vertex shader
|
||||
vk::raii::ShaderModule vertex_shader = load_shader(device, fragment_shading_rate ? "reprojection_vsr.vert" : "reprojection.vert");
|
||||
|
||||
// Fragment shader
|
||||
|
||||
const configuration::sgsr_settings & sgsr = application::get_config().sgsr;
|
||||
auto sgsr_specialization = make_specialization_constants(
|
||||
VkBool32(sgsr.use_edge_direction),
|
||||
float(sgsr.edge_threshold / 255.f),
|
||||
float(sgsr.edge_sharpness));
|
||||
|
||||
vk::raii::ShaderModule fragment_shader = load_shader(device, sgsr.enabled ? "reprojection_sgsr.frag" : "reprojection.frag");
|
||||
|
||||
// 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_builder{
|
||||
.flags = {},
|
||||
.Stages = {
|
||||
{
|
||||
.stage = vk::ShaderStageFlagBits::eVertex,
|
||||
.module = *vertex_shader,
|
||||
.pName = "main",
|
||||
},
|
||||
{
|
||||
.stage = vk::ShaderStageFlagBits::eFragment,
|
||||
.module = *fragment_shader,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = sgsr.enabled ? sgsr_specialization.info() : nullptr,
|
||||
},
|
||||
},
|
||||
.VertexBindingDescriptions = {
|
||||
{
|
||||
.binding = 0,
|
||||
.stride = sizeof(vertex),
|
||||
.inputRate = vk::VertexInputRate::eVertex,
|
||||
},
|
||||
},
|
||||
.VertexAttributeDescriptions = {
|
||||
{
|
||||
.location = 0,
|
||||
.binding = 0,
|
||||
.format = vk::Format::eR32G32Sfloat,
|
||||
.offset = offsetof(vertex, position),
|
||||
},
|
||||
{
|
||||
.location = 1,
|
||||
.binding = 0,
|
||||
.format = vk::Format::eR32G32Sfloat,
|
||||
.offset = offsetof(vertex, uv),
|
||||
},
|
||||
{
|
||||
.location = 2,
|
||||
.binding = 0,
|
||||
.format = vk::Format::eR32Sint,
|
||||
.offset = offsetof(vertex, shading_rate),
|
||||
},
|
||||
},
|
||||
.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,
|
||||
}},
|
||||
.RasterizationState = {{
|
||||
.polygonMode = vk::PolygonMode::eFill,
|
||||
.lineWidth = 1,
|
||||
}},
|
||||
.MultisampleState = {{
|
||||
.rasterizationSamples = vk::SampleCountFlagBits::e1,
|
||||
}},
|
||||
.ColorBlendState = {.flags = {}},
|
||||
.ColorBlendAttachments = {{
|
||||
.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA,
|
||||
}},
|
||||
.layout = *layout,
|
||||
.renderPass = *renderpass,
|
||||
.subpass = 0,
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info);
|
||||
|
||||
// Create image views and framebuffers
|
||||
output_image_views.reserve(output_images.size() * view_count);
|
||||
framebuffers.reserve(output_images.size() * view_count);
|
||||
for (vk::Image image: output_images)
|
||||
{
|
||||
for (uint32_t view = 0; view < view_count; ++view)
|
||||
{
|
||||
vk::ImageViewCreateInfo iv_info{
|
||||
.image = image,
|
||||
.viewType = vk::ImageViewType::e2DArray,
|
||||
.format = format,
|
||||
.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,
|
||||
},
|
||||
};
|
||||
|
||||
output_image_views.emplace_back(device, iv_info);
|
||||
|
||||
vk::FramebufferCreateInfo fb_create_info{
|
||||
.renderPass = *renderpass,
|
||||
.width = output_extent.width,
|
||||
.height = output_extent.height,
|
||||
.layers = 1,
|
||||
};
|
||||
fb_create_info.setAttachments(*output_image_views.back());
|
||||
|
||||
framebuffers.emplace_back(device, fb_create_info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p)
|
||||
{
|
||||
// strips are constructed like this:
|
||||
// 0 2 4
|
||||
// 1 3 5 5*
|
||||
// there is one such line per value in y
|
||||
// the last element is repeated to break the line
|
||||
return (2 * (p.x.size() + 1) + 1) * p.y.size();
|
||||
}
|
||||
|
||||
int32_t stream_reprojection::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_reprojection::reproject(vk::raii::CommandBuffer & command_buffer,
|
||||
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
|
||||
int destination)
|
||||
{
|
||||
if (destination < 0 || destination >= (int)output_images.size())
|
||||
throw std::runtime_error("Invalid destination image index");
|
||||
|
||||
ensure_vertices(std::max(required_vertices(foveation[0]), required_vertices(foveation[1])));
|
||||
|
||||
for (size_t view = 0; view < view_count; ++view)
|
||||
{
|
||||
auto vertices = get_vertices(view);
|
||||
const auto & [px, py] = foveation[view];
|
||||
assert(px.size() % 2 == 1);
|
||||
assert(py.size() % 2 == 1);
|
||||
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);
|
||||
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;
|
||||
for (auto [ix, n_out_x]: utils::enumerate_range(px))
|
||||
{
|
||||
const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1;
|
||||
*vertices++ = {
|
||||
.position = out * out_pixel_size - glm::vec2(1),
|
||||
.uv = in * in_pixel_size,
|
||||
.shading_rate = shading_rate(ratio_x, ratio_y),
|
||||
};
|
||||
*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,
|
||||
.shading_rate = shading_rate(ratio_x, ratio_y),
|
||||
};
|
||||
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,
|
||||
};
|
||||
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,
|
||||
};
|
||||
*vertices++ = {
|
||||
.position = out * out_pixel_size - glm::vec2(1),
|
||||
.uv = in * in_pixel_size,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
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{
|
||||
.renderPass = *renderpass,
|
||||
.framebuffer = *framebuffers[destination * view_count + view],
|
||||
.renderArea = {
|
||||
.offset = {0, 0},
|
||||
.extent = output_extent,
|
||||
},
|
||||
};
|
||||
|
||||
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.bindVertexBuffers(0, vk::Buffer(buffer), vertices_size * view);
|
||||
command_buffer.draw(required_vertices(foveation[view]), 1, 0, 0);
|
||||
command_buffer.endRenderPass();
|
||||
}
|
||||
}
|
||||
|
||||
static uint16_t count_pixels(const std::vector<uint16_t> & param)
|
||||
{
|
||||
uint16_t res = 0;
|
||||
const int n_ratio = (param.size() - 1) / 2;
|
||||
for (auto [i, n_out]: utils::enumerate_range(param))
|
||||
{
|
||||
// number of output pixels per source pixels
|
||||
const int ratio = std::abs(n_ratio - int(i)) + 1;
|
||||
res += ratio * n_out;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
XrExtent2Di stream_reprojection::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
|
||||
{
|
||||
return {
|
||||
count_pixels(view.x),
|
||||
count_pixels(view.y),
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,83 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 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/>.
|
||||
*/
|
||||
#version 450
|
||||
#extension GL_ARB_shading_language_include : require
|
||||
#define VSR 0
|
||||
#include "reprojection.glsl.inc"
|
||||
|
||||
#ifdef VERT_SHADER
|
||||
|
||||
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);
|
||||
vec2 uv = vUV;
|
||||
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
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 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/>.
|
||||
*/
|
||||
|
||||
#ifdef VERT_SHADER
|
||||
|
||||
#if VSR
|
||||
#extension GL_EXT_fragment_shading_rate: enable
|
||||
#endif
|
||||
|
||||
|
||||
layout (location = 0) in vec2 vPosition;
|
||||
layout (location = 1) in vec2 vUV;
|
||||
layout (location = 2) in int vShadingRate;
|
||||
|
||||
layout(location = 0) out vec2 outUV;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(vPosition, 0.0, 1.0);
|
||||
outUV = vUV;
|
||||
#if VSR
|
||||
gl_PrimitiveShadingRateEXT = vShadingRate;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FRAG_SHADER
|
||||
|
||||
layout(set = 0, binding = 0) uniform sampler2D texSampler;
|
||||
|
||||
layout(location = 0) in vec2 inUV;
|
||||
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
outColor = texture(texSampler, inUV).rgba;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -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);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#version 450
|
||||
#extension GL_ARB_shading_language_include : require
|
||||
#define VSR 1
|
||||
#include "reprojection.glsl.inc"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <vulkan/vulkan.h>
|
||||
namespace wivrn
|
||||
{
|
||||
void renderdoc_begin(VkInstance);
|
||||
void renderdoc_end(VkInstance);
|
||||
} // namespace wivrn
|
||||
@@ -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};
|
||||
|
||||
@@ -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
@@ -25,6 +25,8 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <openxr/openxr.h>
|
||||
@@ -42,7 +44,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: {
|
||||
@@ -50,11 +99,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));
|
||||
@@ -129,20 +201,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(),
|
||||
@@ -161,7 +219,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)
|
||||
{
|
||||
|
||||
+54
-9
@@ -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()
|
||||
|
||||
@@ -13,7 +13,6 @@ execute_process(
|
||||
|
||||
if (GIT_DESC)
|
||||
string(STRIP ${GIT_DESC} GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
message(STATUS "Setting version to ${GIT_DESC} from git")
|
||||
else()
|
||||
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
||||
|
||||
@@ -7,7 +7,6 @@ else()
|
||||
endif()
|
||||
|
||||
if (GIT_DESC)
|
||||
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||
configure_file(version.cpp.in version.cpp)
|
||||
else ()
|
||||
add_custom_target(wivrn-version ALL
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <archive.h>
|
||||
#include <archive_entry.h>
|
||||
#include <bit>
|
||||
#include <cairo.h>
|
||||
#include <fstream>
|
||||
#include <librsvg/rsvg.h>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,6 @@ namespace wivrn
|
||||
{
|
||||
extern const char git_version[];
|
||||
extern const char git_commit[];
|
||||
|
||||
const char * display_version();
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+34
-3
@@ -41,7 +41,7 @@ namespace wivrn
|
||||
// Default port for server to listen, both TCP and UDP
|
||||
static const int default_port = 9757;
|
||||
|
||||
static constexpr int protocol_revision = 1;
|
||||
static constexpr int protocol_revision = 2;
|
||||
|
||||
enum class device_id : uint8_t
|
||||
{
|
||||
@@ -168,6 +168,7 @@ enum video_codec
|
||||
h265,
|
||||
hevc = h265,
|
||||
av1,
|
||||
raw,
|
||||
};
|
||||
|
||||
struct audio_data
|
||||
@@ -234,6 +235,7 @@ struct headset_info_packet
|
||||
bool hand_tracking;
|
||||
bool eye_gaze;
|
||||
bool palm_pose;
|
||||
bool user_presence;
|
||||
bool passthrough;
|
||||
face_type face_tracking;
|
||||
uint32_t num_generic_trackers;
|
||||
@@ -460,6 +462,19 @@ struct start_app
|
||||
std::string app_id;
|
||||
};
|
||||
|
||||
struct get_running_applications
|
||||
{};
|
||||
|
||||
struct set_active_application
|
||||
{
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
struct stop_application
|
||||
{
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
using packets = std::variant<
|
||||
crypto_handshake,
|
||||
pin_check_1,
|
||||
@@ -482,7 +497,10 @@ using packets = std::variant<
|
||||
user_presence_changed,
|
||||
override_foveation_center,
|
||||
get_application_list,
|
||||
start_app>;
|
||||
start_app,
|
||||
get_running_applications,
|
||||
set_active_application,
|
||||
stop_application>;
|
||||
} // namespace from_headset
|
||||
|
||||
namespace to_headset
|
||||
@@ -690,6 +708,18 @@ struct application_icon
|
||||
std::vector<std::byte> image; // In PNG
|
||||
};
|
||||
|
||||
struct running_applications
|
||||
{
|
||||
struct application
|
||||
{
|
||||
std::string name;
|
||||
uint32_t id;
|
||||
bool overlay;
|
||||
bool active;
|
||||
};
|
||||
std::vector<application> applications;
|
||||
};
|
||||
|
||||
using packets = std::variant<
|
||||
crypto_handshake,
|
||||
pin_check_2,
|
||||
@@ -704,6 +734,7 @@ using packets = std::variant<
|
||||
tracking_control,
|
||||
refresh_rate_change,
|
||||
application_list,
|
||||
application_icon>;
|
||||
application_icon,
|
||||
running_applications>;
|
||||
} // namespace to_headset
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -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,16 @@
|
||||
<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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <unistd.h>
|
||||
|
||||
#if WIVRN_CHECK_CAPSYSNICE
|
||||
#include <sys/capability.h>
|
||||
|
||||
@@ -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.
|
||||
@@ -61,8 +61,8 @@ Identifier of the encoder, one of
|
||||
### `codec`
|
||||
Default value: first supported by both headset and encoder of `av1`, `h264`, `h265`.
|
||||
|
||||
One of `h264`, `h265` or `av1`.
|
||||
Not all encoders support every codec, `x264` and `vulkan` only support `h264`.
|
||||
One of `h264`, `h265`, `av1`, `raw`.
|
||||
Not all encoders support every codec, `x264` and `vulkan` only support `h264`. For `raw` codec, only `raw` encoder can be used.
|
||||
|
||||
### `width`, `height`, `offset_x`, `offset_y` (advanced)
|
||||
Default values: full image (`width` = 1, `height` = 1, `offset_x` = 0, `offset_y` = 0)
|
||||
|
||||
Vendored
+741
@@ -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
|
||||
@@ -21,6 +21,9 @@
|
||||
pkgs.libpng
|
||||
pkgs.libarchive
|
||||
];
|
||||
extraNativeBuildInputs = [
|
||||
pkgs.util-linux
|
||||
];
|
||||
|
||||
package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
|
||||
src = ./.;
|
||||
@@ -41,11 +44,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;
|
||||
|
||||
|
||||
@@ -26,8 +26,9 @@ finish-args:
|
||||
# List applications from $XDG_DATA_DIRS
|
||||
- --filesystem=host-os:ro
|
||||
- --filesystem=xdg-data/applications:ro
|
||||
# List Steam games
|
||||
- --filesystem=xdg-data/Steam:ro
|
||||
# List flatpak Steam games
|
||||
- --filesystem=~/.steam:ro
|
||||
- --filesystem=~/.var/app/com.valvesoftware.Steam:ro
|
||||
# Pipewire
|
||||
- --filesystem=xdg-run/pipewire-0
|
||||
@@ -280,7 +281,7 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://gitlab.com/znixian/OpenOVR.git
|
||||
tag: 538639b86c5c71223f11040b09479e5c0a83078c
|
||||
tag: cff07db75c4823afe93ed7027b03d5f7bc86f164
|
||||
|
||||
- name: xrizer
|
||||
buildsystem: simple
|
||||
|
||||
@@ -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-24 07:53+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"
|
||||
@@ -19,47 +19,47 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 48.0\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#: dashboard/apk_installer.cpp:165
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB / %2 MB"
|
||||
msgstr "Descargando APK: %1 MB / %2 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:169
|
||||
#: dashboard/apk_installer.cpp:167
|
||||
#, kde-format
|
||||
msgid "Downloading APK: %1 MB"
|
||||
msgstr "Descargando APK: %1 MB"
|
||||
|
||||
#: dashboard/apk_installer.cpp:178
|
||||
#: dashboard/apk_installer.cpp:176
|
||||
#, kde-format
|
||||
msgid "Download cancelled"
|
||||
msgstr "Descarga cancelada"
|
||||
|
||||
#: dashboard/apk_installer.cpp:194
|
||||
#: dashboard/apk_installer.cpp:192
|
||||
#, kde-format
|
||||
msgid "Cannot download APK: %1"
|
||||
msgstr "No se puede descargar el APK: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:217
|
||||
#: dashboard/apk_installer.cpp:215
|
||||
#, kde-format
|
||||
msgid "Installing APK"
|
||||
msgstr "Instalando APK"
|
||||
|
||||
#: dashboard/apk_installer.cpp:221
|
||||
#: dashboard/apk_installer.cpp:219
|
||||
#, kde-format
|
||||
msgid "adb failed to start: %1"
|
||||
msgstr "Error al iniciar adb: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:231
|
||||
#: dashboard/apk_installer.cpp:229
|
||||
#, kde-format
|
||||
msgid "adb exited abnormally: %1"
|
||||
msgstr "adb salió anormalmente: %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:239
|
||||
#: dashboard/apk_installer.cpp:237
|
||||
#, kde-format
|
||||
msgid "The 'adb install' command failed: exit code %1"
|
||||
msgstr "El comando 'adb install' falló: código de salida %1"
|
||||
|
||||
#: dashboard/apk_installer.cpp:244
|
||||
#: dashboard/apk_installer.cpp:242
|
||||
#, kde-format
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalación completada con éxito"
|
||||
@@ -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:593
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:585
|
||||
#: dashboard/wivrn_server.cpp:594
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
+211
-174
@@ -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-10 17:11+0200\n"
|
||||
"POT-Creation-Date: 2025-09-27 17:11+0200\n"
|
||||
"PO-Revision-Date: 2025-09-28 22:27+0200\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
"Language: es\n"
|
||||
@@ -14,12 +14,37 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Gtranslator 48.0\n"
|
||||
"X-Generator: Gtranslator 49.0\n"
|
||||
|
||||
#: client/scene.cpp:74
|
||||
#: client/scene.cpp:72
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Formato de swapchain no compatible"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Conectado al servidor WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connectado a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
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/app_launcher.cpp:153
|
||||
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/app_launcher.cpp:155
|
||||
#, 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.cpp:185
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Servidor WiVRn incompatible: no hay campo de protocolo en TXT"
|
||||
@@ -43,97 +68,72 @@ 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:107
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:232
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Calidad"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:234
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
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:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:268
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
msgid "Connection"
|
||||
msgstr "Conexión"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Conexión a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:300
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:322
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
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
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Conectado al servidor WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connectado a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:405
|
||||
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
|
||||
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
|
||||
#, 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:290
|
||||
msgid "Name"
|
||||
msgstr "Nombre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:533
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
msgid "Address"
|
||||
msgstr "Dirección"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:542
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "Port"
|
||||
msgstr "Puerto"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:550
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:557
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:571
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
msgid "Save"
|
||||
msgstr "Guardar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:624
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
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:424
|
||||
msgid "Autoconnect"
|
||||
msgstr "Conexión automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:682
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Connect"
|
||||
msgstr "Conectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:460 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:462
|
||||
msgid "Server not available"
|
||||
msgstr "Servidor no disponible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Español"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
msgid "Language"
|
||||
msgstr "Idioma"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
msgid "System language"
|
||||
msgstr "Idioma del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
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:585 client/scenes/lobby_gui.cpp:587
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
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:611
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Tasa mínima de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:829
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
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:638
|
||||
#, 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:649
|
||||
#, 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:655
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activar micrófono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:859
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Entrada de audio sin procesar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:865
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
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:677
|
||||
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:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
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:689
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activar seguimiento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:896
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activar seguimiento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:909
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Habilitar seguimiento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:925
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
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:739
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Habilitar seguimiento de cintura para abajo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
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:748
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Habilitar seguimiento de cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
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:762
|
||||
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:773
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar ventana mientras se juega"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
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:790 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:794 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:814 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:819 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:839 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,171 +326,125 @@ 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:935 client/scenes/lobby_gui.cpp:943
|
||||
#: 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:939
|
||||
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:949 client/scenes/lobby_gui.cpp:957
|
||||
#: 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:953
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tiempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1271
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "¿Habilitar micrófono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1276
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "¿Habilitar seguimiento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1281
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "¿Habilitar seguimiento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1286
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "¿Habilitar seguimiento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1294
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenido a WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1318
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
msgid "Yes"
|
||||
msgstr "Sí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1325
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
msgid "Licenses"
|
||||
msgstr "Licencias"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1658
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Micrófono activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1659
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Micrófono desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1668
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Seguimiento de manos activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1669
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Seguimiento de manos desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Seguimiento ocular activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1679
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Seguimiento ocular desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1692
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Seguimiento facial activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1693
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Seguimiento facial desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1703
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Seguimiento corporal está habilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Seguimiento corporal está deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1720
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
msgid "Add server"
|
||||
msgstr "Agregar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1965
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
msgid "Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1971
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-procesamiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1975
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Debug"
|
||||
msgstr "Depuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2003
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -473,7 +452,7 @@ msgstr ""
|
||||
"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:1738
|
||||
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,86 @@ 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:868
|
||||
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:618
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Aplicaciones XR ejecutandose:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
msgid "Overlays"
|
||||
msgstr "Superposiciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Pedir salir, puede ser ignorado por la aplicación"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
msgid "Stats"
|
||||
msgstr "Estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:802
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
msgid "Applications"
|
||||
msgstr "Aplicaciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Superponer estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:805
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
msgid "Compact view"
|
||||
msgstr "Vista compacta"
|
||||
|
||||
@@ -613,6 +612,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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+202
-177
@@ -5,8 +5,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-12 13:35+0200\n"
|
||||
"PO-Revision-Date: 2025-08-12 13:37+0200\n"
|
||||
"POT-Creation-Date: 2025-09-27 16:57+0200\n"
|
||||
"PO-Revision-Date: 2025-09-27 16:57+0200\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -15,10 +15,37 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\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é"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connecté au serveur WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connecté à {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur le serveur pour commencer la transmission."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:153
|
||||
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/app_launcher.cpp:155
|
||||
#, 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.cpp:185
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Serveur WiVRn incompatible : pas de champ protocol dans le TXT"
|
||||
@@ -43,99 +70,72 @@ msgstr "Impossible de se connecter à {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Attente de connexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
#: client/scenes/lobby_gui.cpp:107
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Qualité"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: client/scenes/stream_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
msgid "Connection"
|
||||
msgstr "Connexion en cours"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Connexion à {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
msgid "PIN"
|
||||
msgstr "Code PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Entrez le code PIN affiché sur le tableau de bord"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connecté au serveur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connecté à {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur le serveur pour commencer la transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:419
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur le serveur ou depuis la liste pour commencer la "
|
||||
"transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:421
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Démarrez une application sur {} ou depuis la liste pour commencer la "
|
||||
"transmission."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
#: client/scenes/lobby_gui.cpp:290
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
msgid "TCP only"
|
||||
msgstr "TCP seulement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
msgid "Save"
|
||||
msgstr "Enregistrer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
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:678
|
||||
#: client/scenes/lobby_gui.cpp:424
|
||||
msgid "Autoconnect"
|
||||
msgstr "Autoconnexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Connect"
|
||||
msgstr "Connexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:460 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Version du serveur incompatible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:716
|
||||
#: client/scenes/lobby_gui.cpp:462
|
||||
msgid "Server not available"
|
||||
msgstr "Serveur non disponible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Français"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
msgid "Language"
|
||||
msgstr "Langue"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
msgid "System language"
|
||||
msgstr "Langue système"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taux de rafraichissement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804
|
||||
#: client/scenes/lobby_gui.cpp:585 client/scenes/lobby_gui.cpp:587
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
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:828
|
||||
#: client/scenes/lobby_gui.cpp:611
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taux minimal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
msgid "Resolution scale"
|
||||
msgstr "Échelle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101
|
||||
#: client/scenes/lobby_gui.cpp:638
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} par œil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112
|
||||
#: client/scenes/lobby_gui.cpp:649
|
||||
#, 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:872
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activer le micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Utiliser les données brutes du micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
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:894
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activer le suivi des mains"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
#: client/scenes/lobby_gui.cpp:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
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:906
|
||||
#: client/scenes/lobby_gui.cpp:689
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activer le suivi des yeux"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activer le suivi du visage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Activer le suivi du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
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:960
|
||||
#: client/scenes/lobby_gui.cpp:739
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Activer le suivi du bas du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
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:969
|
||||
#: client/scenes/lobby_gui.cpp:748
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Activer le suivi des hanches"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -267,15 +280,15 @@ 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:983
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Activer la vue réelle dans l'accueil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:994
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Activer la fenêtre WiVRn lors de la transmission"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:997
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -285,15 +298,15 @@ msgstr ""
|
||||
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
|
||||
"sticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434
|
||||
#: client/scenes/lobby_gui.cpp:790 client/scenes/stream_gui.cpp:445
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-traitement OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438
|
||||
#: client/scenes/lobby_gui.cpp:794 client/scenes/stream_gui.cpp:449
|
||||
msgid "Supersampling"
|
||||
msgstr "Suréchantillonnage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459
|
||||
#: client/scenes/lobby_gui.cpp:814 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"
|
||||
@@ -301,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:1040 client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/lobby_gui.cpp:819 client/scenes/stream_gui.cpp:475
|
||||
msgid "Sharpening"
|
||||
msgstr "Affinage de netteté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:839 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"
|
||||
@@ -313,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:1069
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Activer Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1077
|
||||
msgid ""
|
||||
"On this headset, this setting has been fully superseded by the native "
|
||||
"Sharpening setting above.\n"
|
||||
"Only enable if you know what you're doing."
|
||||
msgstr ""
|
||||
"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:1079
|
||||
msgid ""
|
||||
"Client-side upscaling and sharpening, adds a performance cost on the headset"
|
||||
msgstr ""
|
||||
"Mise à l’échelle et affinage de netteté, ajoute un coût en performances pour "
|
||||
"le casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1097
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Échelle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
msgid "Use edge direction"
|
||||
msgstr "Utiliser la direction de contours"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1122
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Ajoute un coût additionnel en performances"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1127
|
||||
msgid "Edge threshold"
|
||||
msgstr "Seuil de contour"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Recommandé : {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Netteté de contour"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:935 client/scenes/lobby_gui.cpp:943
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
|
||||
msgid "CPU time"
|
||||
msgstr "Temps CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1243
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Temps CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/lobby_gui.cpp:957
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
|
||||
msgid "GPU time"
|
||||
msgstr "Temps GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Temps GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1300
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Activer le micro ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1305
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Activer le suivi des yeux ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1310
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Activer le suivi du visage ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1315
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Activer le suivi du corps ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1323
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenue sur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1354
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
msgid "Licenses"
|
||||
msgstr "Licences"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1687
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Le micro est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1688
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Le micro est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1697
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Le suivi des mains est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Le suivi des mains est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1707
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Le suivi des yeux est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Le suivi des yeux est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1721
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Le suivi du visage est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1722
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Le suivi du visage est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1732
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Le suivi du corps est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1733
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Le suivi du corps est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1749
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
msgid "Add server"
|
||||
msgstr "Ajouter un serveur"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1994
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Server list"
|
||||
msgstr "Serveurs"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2000
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2009
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2015
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
msgid "Exit"
|
||||
msgstr "Quitter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2032
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -485,7 +452,7 @@ 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:2034
|
||||
#: client/scenes/lobby_gui.cpp:1738
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
|
||||
@@ -501,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"
|
||||
|
||||
@@ -546,66 +513,86 @@ 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 la fenêtre"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:752
|
||||
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:868
|
||||
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:795
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applications XR lancées :"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
msgid "Overlays"
|
||||
msgstr "Surcouches"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Demande de quitter, peut être ignoré par l'application"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
msgid "Start"
|
||||
msgstr "Démarrer"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
msgid "Stats"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:804
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
msgid "Applications"
|
||||
msgstr "Applications"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Statistiques seules"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:807
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
msgid "Compact view"
|
||||
msgstr "Vue compacte"
|
||||
|
||||
@@ -625,6 +612,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"
|
||||
|
||||
|
||||
+198
-173
@@ -5,8 +5,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-12 13:35+0200\n"
|
||||
"PO-Revision-Date: 2025-08-12 13:41+0200\n"
|
||||
"POT-Creation-Date: 2025-09-27 16:57+0200\n"
|
||||
"PO-Revision-Date: 2025-09-27 16:57+0200\n"
|
||||
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: Italian\n"
|
||||
@@ -15,10 +15,36 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\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"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connesso al server WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connesso a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:153
|
||||
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/app_launcher.cpp:155
|
||||
#, 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.cpp:185
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Server WiVRn incompatibile: nessun campo protocollo in TXT"
|
||||
@@ -42,98 +68,72 @@ msgstr "Impossibile connettersi a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "In attesa di connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
#: client/scenes/lobby_gui.cpp:107
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Alta qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: client/scenes/stream_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
msgid "Disconnect"
|
||||
msgstr "Sconnetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
msgid "Connection"
|
||||
msgstr "Connessione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Connessione a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Digitare il PIN visibile sul server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connesso al server WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connesso a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:419
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:421
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
"Avvia un applicazione su {} o scegli dalla lista per incominciare a "
|
||||
"trasmettere."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
#: client/scenes/lobby_gui.cpp:290
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
msgid "Address"
|
||||
msgstr "Indirizzo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
msgid "Save"
|
||||
msgstr "Salva"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
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:678
|
||||
#: client/scenes/lobby_gui.cpp:424
|
||||
msgid "Autoconnect"
|
||||
msgstr "Connessione automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Connect"
|
||||
msgstr "Connetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:460 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versione del server incompatibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:716
|
||||
#: client/scenes/lobby_gui.cpp:462
|
||||
msgid "Server not available"
|
||||
msgstr "Server non disponibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Italiano"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
msgid "Language"
|
||||
msgstr "Lingua"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
msgid "System language"
|
||||
msgstr "Lingua del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frequenza di aggiornamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804
|
||||
#: client/scenes/lobby_gui.cpp:585 client/scenes/lobby_gui.cpp:587
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
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:828
|
||||
#: client/scenes/lobby_gui.cpp:611
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Frequenza minima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
msgid "Resolution scale"
|
||||
msgstr "Scala di risoluzione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101
|
||||
#: client/scenes/lobby_gui.cpp:638
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} per occhio"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112
|
||||
#: client/scenes/lobby_gui.cpp:649
|
||||
#, 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:872
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Enable microphone"
|
||||
msgstr "Attiva il microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Usare dati grezzi del microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Disattiva gli effetti come la cancellazione del rumore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:894
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Abilita il tracciamento delle mani"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
#: client/scenes/lobby_gui.cpp:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Questa funzionalità non è supportata dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:689
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Abilita il tracciamento oculare"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Abilita il tracciamento facciale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Abilita il tracciamento del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
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:960
|
||||
#: client/scenes/lobby_gui.cpp:739
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Abilita il tracciamento del basso del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
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:969
|
||||
#: client/scenes/lobby_gui.cpp:748
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Abilitia il tracciamento delle anche"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -269,15 +282,15 @@ msgstr ""
|
||||
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
|
||||
"delle anche."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:983
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Abilita la visualizzazione reale in ingresso"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:994
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:997
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -285,15 +298,15 @@ msgstr ""
|
||||
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
|
||||
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434
|
||||
#: client/scenes/lobby_gui.cpp:790 client/scenes/stream_gui.cpp:445
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-trattamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438
|
||||
#: client/scenes/lobby_gui.cpp:794 client/scenes/stream_gui.cpp:449
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersamping"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459
|
||||
#: client/scenes/lobby_gui.cpp:814 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"
|
||||
@@ -301,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:1040 client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/lobby_gui.cpp:819 client/scenes/stream_gui.cpp:475
|
||||
msgid "Sharpening"
|
||||
msgstr "Miglioramento della nitidezza"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485
|
||||
#: client/scenes/lobby_gui.cpp:839 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"
|
||||
@@ -314,168 +327,125 @@ msgstr ""
|
||||
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
|
||||
"visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1069
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Attivare Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1077
|
||||
msgid ""
|
||||
"On this headset, this setting has been fully superseded by the native "
|
||||
"Sharpening setting above.\n"
|
||||
"Only enable if you know what you're doing."
|
||||
msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1079
|
||||
msgid ""
|
||||
"Client-side upscaling and sharpening, adds a performance cost on the headset"
|
||||
msgstr ""
|
||||
"Aumento della risoluzione e nitidezza sul visore, diminuisce le prestazioni "
|
||||
"sul visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1097
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Aumento di risoluzione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
msgid "Use edge direction"
|
||||
msgstr "Usare la direzione dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1122
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Riduce le prestazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1127
|
||||
msgid "Edge threshold"
|
||||
msgstr "Soglia dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Valore consigliato: {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Nitidezza dei bordi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:935 client/scenes/lobby_gui.cpp:943
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1243
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/lobby_gui.cpp:957
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1300
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Attivare il microfono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1305
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Attivare il tracciamento oculare?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1310
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Attivare il tracciamento facciale?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1315
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Attivare il tracciamento del corpo?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1323
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
msgid "Yes"
|
||||
msgstr "Sì"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1354
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
msgid "Licenses"
|
||||
msgstr "Licenze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1687
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Microfono attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1688
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Microfono disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1697
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Tracciamento delle mani attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Tracciamento delle mani disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1707
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Tracciamento oculare attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Tracciamento oculare disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1721
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Tracciamento facciale attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1722
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Tracciamento facciale disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1732
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Tracciamento del corpo attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1733
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Tracciamento del corpo disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1749
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
msgid "Add server"
|
||||
msgstr "Aggiungi server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1994
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Server list"
|
||||
msgstr "Elenco dei server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2000
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-trattamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2009
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2015
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
msgid "Exit"
|
||||
msgstr "Esci"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2032
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -483,7 +453,7 @@ 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:2034
|
||||
#: client/scenes/lobby_gui.cpp:1738
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra principale"
|
||||
|
||||
@@ -499,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"
|
||||
|
||||
@@ -544,66 +514,86 @@ 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:752
|
||||
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:868
|
||||
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:795
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applicazioni XR avviate:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
msgid "Overlays"
|
||||
msgstr "Overlays"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
msgid "Start"
|
||||
msgstr "Avvio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
msgid "Stats"
|
||||
msgstr "Statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:804
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
msgid "Applications"
|
||||
msgstr "Applicazioni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Solo statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:807
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
msgid "Compact view"
|
||||
msgstr "Modalità compatta"
|
||||
|
||||
@@ -623,6 +613,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"
|
||||
|
||||
|
||||
@@ -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
@@ -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 "コンパクト・モード"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-09 22:47+0200\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"
|
||||
@@ -459,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"
|
||||
@@ -481,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"
|
||||
@@ -571,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"
|
||||
|
||||
+187
-162
@@ -11,21 +11,45 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-16 14:15+0200\n"
|
||||
"PO-Revision-Date: 2025-08-17 20:58+0200\n"
|
||||
"Last-Translator: Claudio Sampaio <patola@gmail.com>\n"
|
||||
"POT-Creation-Date: 2025-09-27 17:11+0200\n"
|
||||
"PO-Revision-Date: 2025-09-27 22:14+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"
|
||||
"X-Generator: Lokalize 25.08.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"Language-Team: Brazilian Portuguese\n"
|
||||
|
||||
#: client/scene.cpp:74
|
||||
#: client/scene.cpp:72
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Sem formato de cadeia de troca suportado"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Conectado ao servidor WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Conectado a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:143
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "Abra um aplicativo no servidor para iniciar o streaming."
|
||||
|
||||
#: client/scenes/app_launcher.cpp:153
|
||||
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/app_launcher.cpp:155
|
||||
#, 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.cpp:185
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT"
|
||||
@@ -49,96 +73,72 @@ msgstr "Incapaz de conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Aguardando conexão"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
#: client/scenes/lobby_gui.cpp:107
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
#: client/scenes/lobby_gui.cpp:110
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Qualidade"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
#: client/scenes/lobby_gui.cpp:112
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Desabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: client/scenes/stream_gui.cpp:825
|
||||
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:821
|
||||
#: client/scenes/lobby_gui.cpp:140 client/scenes/stream_gui.cpp:940
|
||||
msgid "Close"
|
||||
msgstr "Fechar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
#: client/scenes/lobby_gui.cpp:146
|
||||
msgid "Connection"
|
||||
msgstr "Conexão"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#: client/scenes/lobby_gui.cpp:148
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Conexão a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
#: client/scenes/lobby_gui.cpp:178
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
#: client/scenes/lobby_gui.cpp:200
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Entre o PIN mostrado no painel"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Conectado ao servidor WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Conectado a {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
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:419
|
||||
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:421
|
||||
#, 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:544
|
||||
#: client/scenes/lobby_gui.cpp:290
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:301
|
||||
msgid "Address"
|
||||
msgstr "Endereço"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
#: client/scenes/lobby_gui.cpp:310
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
#: client/scenes/lobby_gui.cpp:318
|
||||
msgid "TCP only"
|
||||
msgstr "TCP somente"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/lobby_gui.cpp:325 client/scenes/stream_gui.cpp:908
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
#: client/scenes/lobby_gui.cpp:339
|
||||
msgid "Save"
|
||||
msgstr "Salvar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
#: client/scenes/lobby_gui.cpp:392
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -146,32 +146,45 @@ msgstr ""
|
||||
"Inicie um servidor WiVRn em sua\n"
|
||||
"rede local"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:678
|
||||
#: client/scenes/lobby_gui.cpp:424
|
||||
msgid "Autoconnect"
|
||||
msgstr "Autoconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Connect"
|
||||
msgstr "Conectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:460 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versão de servidor incompatível"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:716
|
||||
#: client/scenes/lobby_gui.cpp:462
|
||||
msgid "Server not available"
|
||||
msgstr "Servidor não disponível"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Português (Brasil)"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558
|
||||
msgid "Language"
|
||||
msgstr "Linguagem"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:558 client/scenes/lobby_gui.cpp:560
|
||||
msgid "System language"
|
||||
msgstr "Linguagem do Sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:585
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taxa de atualização"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804
|
||||
#: client/scenes/lobby_gui.cpp:585 client/scenes/lobby_gui.cpp:587
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
#: client/scenes/lobby_gui.cpp:594
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -179,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:828
|
||||
#: client/scenes/lobby_gui.cpp:611
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taxa de atualização mínima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
#: client/scenes/lobby_gui.cpp:634
|
||||
msgid "Resolution scale"
|
||||
msgstr "Escala de resolução"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101
|
||||
#: client/scenes/lobby_gui.cpp:638
|
||||
#, c-format, c++-format
|
||||
msgid "%d%% - {}x{} per eye"
|
||||
msgstr "%d%% - {}x{} por olho"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112
|
||||
#: client/scenes/lobby_gui.cpp:649
|
||||
#, 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:872
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Enable microphone"
|
||||
msgstr "Ativar microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:664
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Áudio Não-processado de Microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
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:894
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Ativar rastreamento de mãos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
#: client/scenes/lobby_gui.cpp:683 client/scenes/lobby_gui.cpp:695
|
||||
#: client/scenes/lobby_gui.cpp:707 client/scenes/lobby_gui.cpp:724
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Este recurso não é suportado pelo seu headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:689
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Ativar rastreamento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Ativar rastreamento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Ativar rastreamento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
#: client/scenes/lobby_gui.cpp:729
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -244,11 +257,11 @@ msgstr ""
|
||||
"estimados\n"
|
||||
"com base nas posições do controle e do headset."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:960
|
||||
#: client/scenes/lobby_gui.cpp:739
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Ativar rastreamento corporal inferior"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
#: client/scenes/lobby_gui.cpp:745
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -259,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:969
|
||||
#: client/scenes/lobby_gui.cpp:748
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Ativar rastreamento de quadril"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
#: client/scenes/lobby_gui.cpp:754
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -271,15 +284,15 @@ 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:983
|
||||
#: client/scenes/lobby_gui.cpp:762
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Habilitar repassagem de vídeo no lobby"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:994
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar janela na stream"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:997
|
||||
#: client/scenes/lobby_gui.cpp:776
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -288,15 +301,15 @@ msgstr ""
|
||||
"streamado.\n"
|
||||
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:790 client/scenes/stream_gui.cpp:445
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Pós-processamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:449
|
||||
#: client/scenes/lobby_gui.cpp:794 client/scenes/stream_gui.cpp:449
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersampling"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:470
|
||||
#: client/scenes/lobby_gui.cpp:814 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"
|
||||
@@ -304,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:1040 client/scenes/stream_gui.cpp:475
|
||||
#: client/scenes/lobby_gui.cpp:819 client/scenes/stream_gui.cpp:475
|
||||
msgid "Sharpening"
|
||||
msgstr "Aumento de nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:496
|
||||
#: client/scenes/lobby_gui.cpp:839 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"
|
||||
@@ -316,171 +329,125 @@ 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:1069
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Habilitar Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1077
|
||||
msgid ""
|
||||
"On this headset, this setting has been fully superseded by the native "
|
||||
"Sharpening setting above.\n"
|
||||
"Only enable if you know what you're doing."
|
||||
msgstr ""
|
||||
"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:1079
|
||||
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:1097
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Fator de upscaling"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1116
|
||||
msgid "Use edge direction"
|
||||
msgstr "Usar direção da aresta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1122
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Acrescenta um custo de desempenho"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1127
|
||||
msgid "Edge threshold"
|
||||
msgstr "Limite da aresta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Recomenadado: {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Nitidez da aresta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247
|
||||
#: client/scenes/lobby_gui.cpp:935 client/scenes/lobby_gui.cpp:943
|
||||
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1243
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/lobby_gui.cpp:957
|
||||
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:953
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1300
|
||||
#: client/scenes/lobby_gui.cpp:996
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Habilitar o microfone?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1305
|
||||
#: client/scenes/lobby_gui.cpp:1001
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Habilitar o rastreamento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1310
|
||||
#: client/scenes/lobby_gui.cpp:1006
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Habilitar o rastreamento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1315
|
||||
#: client/scenes/lobby_gui.cpp:1011
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Habilitar o rastreamento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1323
|
||||
#: client/scenes/lobby_gui.cpp:1019
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bem vindo(a) ao WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
#: client/scenes/lobby_gui.cpp:1043
|
||||
msgid "Yes"
|
||||
msgstr "Sim"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1354
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
msgid "No"
|
||||
msgstr "Não"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012
|
||||
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1716
|
||||
msgid "Licenses"
|
||||
msgstr "Licenças"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1687
|
||||
#: client/scenes/lobby_gui.cpp:1394
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "O microfone está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1688
|
||||
#: client/scenes/lobby_gui.cpp:1395
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "O microfone está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1697
|
||||
#: client/scenes/lobby_gui.cpp:1404
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "O rastreamento de mãos está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
#: client/scenes/lobby_gui.cpp:1405
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "O rastreamento de mãos está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1707
|
||||
#: client/scenes/lobby_gui.cpp:1414
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "O rastreamento ocular está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
#: client/scenes/lobby_gui.cpp:1415
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "O rastreamento ocular está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1721
|
||||
#: client/scenes/lobby_gui.cpp:1425
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "O rastreamento facial está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1722
|
||||
#: client/scenes/lobby_gui.cpp:1426
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "O rastreamento facial está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1732
|
||||
#: client/scenes/lobby_gui.cpp:1436
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "O rastreamento corporal está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1733
|
||||
#: client/scenes/lobby_gui.cpp:1437
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "O rastreamento corporal está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1749
|
||||
#: client/scenes/lobby_gui.cpp:1453
|
||||
msgid "Add server"
|
||||
msgstr "Adicionar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1994
|
||||
#: client/scenes/lobby_gui.cpp:1698
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:809
|
||||
#: client/scenes/lobby_gui.cpp:1701 client/scenes/stream_gui.cpp:925
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2000
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
msgid "Post-processing"
|
||||
msgstr "Pós-processamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
#: client/scenes/lobby_gui.cpp:1708
|
||||
msgid "Debug"
|
||||
msgstr "Depurar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2009
|
||||
#: client/scenes/lobby_gui.cpp:1713
|
||||
msgid "About"
|
||||
msgstr "Sobre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2015
|
||||
#: client/scenes/lobby_gui.cpp:1719
|
||||
msgid "Exit"
|
||||
msgstr "Sair"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2032
|
||||
#: client/scenes/lobby_gui.cpp:1736
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -488,7 +455,7 @@ msgstr ""
|
||||
"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:2034
|
||||
#: client/scenes/lobby_gui.cpp:1738
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pressione o botão de aderência para mover a janela principal"
|
||||
|
||||
@@ -558,7 +525,7 @@ msgstr "Movimento estimado para a latência de fótons: {}ms"
|
||||
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:763
|
||||
#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:868
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
|
||||
|
||||
@@ -600,15 +567,35 @@ msgstr "Use os thumbsticks para mover o centro da foveação"
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "Pressione A para salvar ou B para cancelar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:806
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Aplicativos XR rodando:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:635
|
||||
msgid "Overlays"
|
||||
msgstr "Overlays"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:674
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Requisição para sair, pode ser ignorada pelo aplicativo"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:922
|
||||
msgid "Stats"
|
||||
msgstr "Estatísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:815
|
||||
#: client/scenes/stream_gui.cpp:928
|
||||
msgid "Applications"
|
||||
msgstr "Aplicativos"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:934
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Overlay de estatísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:818
|
||||
#: client/scenes/stream_gui.cpp:937
|
||||
msgid "Compact view"
|
||||
msgstr "Visualização compacta"
|
||||
|
||||
@@ -628,6 +615,44 @@ msgstr "Incapaz de verificar PIN"
|
||||
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"
|
||||
|
||||
|
||||
+167
-152
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-08 20:41+0200\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"
|
||||
@@ -18,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"
|
||||
|
||||
@@ -46,96 +46,96 @@ msgstr "Nie je možné sa pripojiť k {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Čaká sa na pripojenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:230
|
||||
#: client/scenes/lobby_gui.cpp:232
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Normal"
|
||||
msgstr "Normálna"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:233
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Quality"
|
||||
msgstr "Vyššia kvalita"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:235
|
||||
#: client/scenes/lobby_gui.cpp:237
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Vypnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400
|
||||
#: 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:264 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:270
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
msgid "Connection"
|
||||
msgstr "Pripojenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
#: client/scenes/lobby_gui.cpp:274
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "Pripojenie k {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:302
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
msgid "PIN"
|
||||
msgstr "PIN"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:324
|
||||
#: 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:395
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Pripojené k WiVRn serveru"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
#: client/scenes/lobby_gui.cpp:399
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Pripojené k {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:407
|
||||
#: 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:419
|
||||
#: 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 "
|
||||
"streamovania."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:421
|
||||
#: 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 jednu vyberte pre začatie streamovania."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:544
|
||||
#: client/scenes/lobby_gui.cpp:546
|
||||
msgid "Name"
|
||||
msgstr "Názov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:555
|
||||
#: client/scenes/lobby_gui.cpp:557
|
||||
msgid "Address"
|
||||
msgstr "Adresa"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:564
|
||||
#: client/scenes/lobby_gui.cpp:566
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:572
|
||||
#: client/scenes/lobby_gui.cpp:574
|
||||
msgid "TCP only"
|
||||
msgstr "Iba TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgid "Cancel"
|
||||
msgstr "Zrušiť"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:593
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Save"
|
||||
msgstr "Uložiť"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:646
|
||||
#: client/scenes/lobby_gui.cpp:648
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -143,32 +143,45 @@ msgstr ""
|
||||
"Spustite WiVRn server na svojej\n"
|
||||
"lokálnej sieti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:678
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Autoconnect"
|
||||
msgstr "Automatické pripojenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:704
|
||||
#: client/scenes/lobby_gui.cpp:706
|
||||
msgid "Connect"
|
||||
msgstr "Pripojiť"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:714 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:716
|
||||
#: client/scenes/lobby_gui.cpp:718
|
||||
msgid "Server not available"
|
||||
msgstr "Server nie je dostupný"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: 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:802 client/scenes/lobby_gui.cpp:804
|
||||
#: 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:811
|
||||
#: client/scenes/lobby_gui.cpp:850
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -176,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:828
|
||||
#: client/scenes/lobby_gui.cpp:867
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Minimálna obnovovacia frekvencia"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
msgid "Resolution scale"
|
||||
msgstr "Rozlíšenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1094
|
||||
#: 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:866 client/scenes/lobby_gui.cpp:1105
|
||||
#: 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 headsetom"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
#: client/scenes/lobby_gui.cpp:911
|
||||
msgid "Enable microphone"
|
||||
msgstr "Zapnúť mikrofón"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:920
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Mikrofónu bez procesovaného zvuku"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: 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:894
|
||||
#: client/scenes/lobby_gui.cpp:933
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Zapnúť sledovanie rúk"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940
|
||||
#: client/scenes/lobby_gui.cpp:990
|
||||
#: 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 funkcia nieje podporovaná vašim headsetom"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:945
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Zapnúť sledovanie očí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:918
|
||||
#: client/scenes/lobby_gui.cpp:957
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Zapnúť sledovanie tváre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:931
|
||||
#: client/scenes/lobby_gui.cpp:971
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Zapnúť sledovanie tela"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
#: client/scenes/lobby_gui.cpp:985
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -239,11 +252,11 @@ msgstr ""
|
||||
"tracking settings,\n"
|
||||
"inak dáta o pozícii tela budú odhadované podla pozície headsetu a ovládačov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:960
|
||||
#: client/scenes/lobby_gui.cpp:995
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Zapnúť sledovanie spodnej části tela"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:966
|
||||
#: 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 "
|
||||
@@ -253,11 +266,11 @@ msgstr ""
|
||||
"Vyžaduje, aby bolo v nastaveniach Quest movement tracking povolené „Hand and "
|
||||
"body tracking“"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969
|
||||
#: client/scenes/lobby_gui.cpp:1004
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Povoliť sledovanie pása"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:975
|
||||
#: 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"
|
||||
@@ -265,19 +278,29 @@ 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:983
|
||||
#: client/scenes/lobby_gui.cpp:1018
|
||||
msgid "Enable video passthrough in lobby"
|
||||
msgstr "Povoliť passthrough video v hlavnom menu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1004 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:1008 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:1028 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"
|
||||
@@ -285,11 +308,11 @@ msgstr ""
|
||||
"Zníženie blikania pri okrajoch z vysokým kontrastom.\n"
|
||||
"Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom headsetu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1033 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:1053 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"
|
||||
@@ -297,171 +320,125 @@ 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 headsetu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1062
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Zapnúť Snapdragon Game Super Resolution"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1070
|
||||
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:1072
|
||||
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"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1090
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Faktor upscalovania"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1109
|
||||
msgid "Use edge direction"
|
||||
msgstr "Použitie smeru okrajov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1115
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Pridáva dodatočné náklady na výkon"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1120
|
||||
msgid "Edge threshold"
|
||||
msgstr "Hraničná hodnota okrajov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1127 client/scenes/lobby_gui.cpp:1136
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Odporúčané: {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1130
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Ostrosť okrajov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1232 client/scenes/lobby_gui.cpp:1240
|
||||
#: 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:1236
|
||||
#: client/scenes/lobby_gui.cpp:1195
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU odozva [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1246 client/scenes/lobby_gui.cpp:1254
|
||||
#: 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:1250
|
||||
#: client/scenes/lobby_gui.cpp:1209
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU odozva [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
#: client/scenes/lobby_gui.cpp:1252
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Zapnúť mikrofón?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1298
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Povolenie sledovania očí?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1303
|
||||
#: client/scenes/lobby_gui.cpp:1262
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Povolenie sledovania tváre?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1308
|
||||
#: client/scenes/lobby_gui.cpp:1267
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Povoliť sledovanie tela?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1316
|
||||
#: client/scenes/lobby_gui.cpp:1275
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Vitajte v WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1340
|
||||
#: client/scenes/lobby_gui.cpp:1299
|
||||
msgid "Yes"
|
||||
msgstr "Áno"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1347
|
||||
#: client/scenes/lobby_gui.cpp:1306
|
||||
msgid "No"
|
||||
msgstr "Nie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1366 client/scenes/lobby_gui.cpp:2005
|
||||
#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972
|
||||
msgid "Licenses"
|
||||
msgstr "Licencie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1680
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Mikrofón je zapnutý"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1681
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Mikrofón je vypnutý"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1690
|
||||
#: client/scenes/lobby_gui.cpp:1660
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Sledovanie rúk je zapnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1691
|
||||
#: client/scenes/lobby_gui.cpp:1661
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Sledovanie rúk je vypnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1700
|
||||
#: client/scenes/lobby_gui.cpp:1670
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Sledovanie očí je zapnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1701
|
||||
#: client/scenes/lobby_gui.cpp:1671
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Sledovanie očí je vypnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1714
|
||||
#: client/scenes/lobby_gui.cpp:1681
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Sledovanie tváre je zapnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1715
|
||||
#: client/scenes/lobby_gui.cpp:1682
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Sledovanie tváre je vypnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1725
|
||||
#: client/scenes/lobby_gui.cpp:1692
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Sledovanie tela je zapnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1726
|
||||
#: client/scenes/lobby_gui.cpp:1693
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Sledovanie tela je vypnuté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1742
|
||||
#: client/scenes/lobby_gui.cpp:1709
|
||||
msgid "Add server"
|
||||
msgstr "Pridať server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1987
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "Server list"
|
||||
msgstr "Zoznam serverov"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1990 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:1993
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Post-processing"
|
||||
msgstr "Postprocesing"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1997
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
msgid "Debug"
|
||||
msgstr "Ladenie"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2002
|
||||
#: client/scenes/lobby_gui.cpp:1969
|
||||
msgid "About"
|
||||
msgstr "O aplikácii"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2008
|
||||
#: client/scenes/lobby_gui.cpp:1975
|
||||
msgid "Exit"
|
||||
msgstr "Ukončiť"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2025
|
||||
#: client/scenes/lobby_gui.cpp:1992
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -469,7 +446,7 @@ msgstr ""
|
||||
"Stlačte tlačidlo grip alebo zdvihnite dlaň\n"
|
||||
"pre presunutie hlavného okna"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2027
|
||||
#: 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"
|
||||
|
||||
@@ -485,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"
|
||||
|
||||
@@ -530,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č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"
|
||||
|
||||
@@ -608,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"
|
||||
|
||||
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-04 10:40+0300\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"
|
||||
@@ -86,7 +86,7 @@ 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:341
|
||||
#: dashboard/qml/Main.qml:342
|
||||
#, kde-format
|
||||
msgid "ADB is not installed."
|
||||
msgstr "ADB yüklü değil."
|
||||
@@ -135,7 +135,7 @@ msgstr "WiVRn'i yeniden yükle"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "WiVRn'i yükle"
|
||||
|
||||
#: 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 "Gözlükler"
|
||||
@@ -180,7 +180,7 @@ 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:326 dashboard/qml/WizardPage.qml:410
|
||||
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
|
||||
#, kde-format
|
||||
msgid "Cancel"
|
||||
msgstr "İptal"
|
||||
@@ -310,7 +310,7 @@ msgstr "Eşleştirme"
|
||||
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 ile bağlan"
|
||||
@@ -336,22 +336,22 @@ msgstr "Uygulama"
|
||||
msgid "Steam information"
|
||||
msgstr "Steam bilgisi"
|
||||
|
||||
#: dashboard/qml/Main.qml:325
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Sihirbaz"
|
||||
|
||||
#: dashboard/qml/Main.qml:332
|
||||
#: dashboard/qml/Main.qml:333
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Uygulamayı yükle"
|
||||
|
||||
#: 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 "Ayarlar"
|
||||
|
||||
#: 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 "Sorun giderme"
|
||||
@@ -457,19 +457,19 @@ msgctxt "encoder preset"
|
||||
msgid "Default preset"
|
||||
msgstr "Varsayılan ön ayar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:145
|
||||
#: dashboard/qml/SettingsPage.qml:139
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Low latency preset"
|
||||
msgstr "Düşük gecikmeli ön ayar"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:170
|
||||
#: dashboard/qml/SettingsPage.qml:158
|
||||
#, kde-format
|
||||
msgctxt "encoder preset"
|
||||
msgid "Safe preset"
|
||||
msgstr "Güvenli ön ayar"
|
||||
|
||||
#: 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"
|
||||
@@ -480,84 +480,84 @@ msgstr ""
|
||||
"Kodlayıcıları yeniden boyutlandırmak veya kaldırmak için bir kenarı "
|
||||
"sürükleyin."
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:220
|
||||
#: dashboard/qml/SettingsPage.qml:208
|
||||
#, kde-format
|
||||
msgid "Encoder:"
|
||||
msgstr "Kodlayıcı:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:229
|
||||
#: dashboard/qml/SettingsPage.qml:217
|
||||
#, kde-format
|
||||
msgctxt "automatic encoder setup"
|
||||
msgid "Auto"
|
||||
msgstr "Otomatik"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:234
|
||||
#: dashboard/qml/SettingsPage.qml:222
|
||||
#, kde-format
|
||||
msgid "nvenc (NVIDIA GPUs)"
|
||||
msgstr "nvenc (NVIDIA GPU'ları)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:239
|
||||
#: dashboard/qml/SettingsPage.qml:227
|
||||
#, kde-format
|
||||
msgid "vaapi (AMD and Intel GPUs)"
|
||||
msgstr "vaapi (AMD ve Intel GPU'ları)"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:244
|
||||
#: dashboard/qml/SettingsPage.qml:232
|
||||
#, kde-format
|
||||
msgid "x264 (software encoding)"
|
||||
msgstr "x264 (yazılım kodlaması)"
|
||||
|
||||
#: 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 "\"Otomatik\", mevcutsa donanım hızlandırmayı kullanacaktır"
|
||||
|
||||
#: 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 "Otomatik"
|
||||
|
||||
#: 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 "Gelişmiş seçenekler"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:325
|
||||
#: dashboard/qml/SettingsPage.qml:313
|
||||
#, kde-format
|
||||
msgid "Enable debug window"
|
||||
msgstr "Hata ayıklama penceresini etkinleştir"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:332
|
||||
#: 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:335
|
||||
#: dashboard/qml/SettingsPage.qml:323
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Allows the use of lighthouse-based controllers and trackers.\n"
|
||||
@@ -571,44 +571,44 @@ msgstr ""
|
||||
"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:343
|
||||
#: dashboard/qml/SettingsPage.qml:331
|
||||
#, kde-format
|
||||
msgid "Custom adb location"
|
||||
msgstr "Özel adb konumu"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:354
|
||||
#: dashboard/qml/SettingsPage.qml:342
|
||||
#, kde-format
|
||||
msgid "Adb location:"
|
||||
msgstr "Adb konumu:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:363
|
||||
#: 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:373
|
||||
#: dashboard/qml/SettingsPage.qml:361
|
||||
#, kde-format
|
||||
msgid "Default"
|
||||
msgstr "Varsayılan"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:387
|
||||
#: dashboard/qml/SettingsPage.qml:375
|
||||
#, kde-format
|
||||
msgctxt "set a custom OpenVR compatibility library"
|
||||
msgid "Custom"
|
||||
msgstr "Özel"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:392
|
||||
#: dashboard/qml/SettingsPage.qml:380
|
||||
#, kde-format
|
||||
msgid "Disabled"
|
||||
msgstr "Devre dışı"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:400
|
||||
#: dashboard/qml/SettingsPage.qml:388
|
||||
#, kde-format
|
||||
msgid "OpenVR compatibility library:"
|
||||
msgstr "OpenVR uyumluluk kitaplığı:"
|
||||
|
||||
#: dashboard/qml/SettingsPage.qml:426
|
||||
#: 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"
|
||||
@@ -645,7 +645,7 @@ msgstr "Steam başlatma komutu kopyalandı"
|
||||
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: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 "
|
||||
@@ -659,7 +659,7 @@ msgstr ""
|
||||
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: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 "
|
||||
@@ -714,7 +714,7 @@ msgstr "Eşleştirme şu anda devre dışı."
|
||||
msgid "I have no sound on my headset"
|
||||
msgstr "Gözlüğümde ses yok"
|
||||
|
||||
#: 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 "
|
||||
@@ -739,9 +739,9 @@ 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: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 "Geri"
|
||||
@@ -761,8 +761,8 @@ msgstr ""
|
||||
"yardımcı olacaktır."
|
||||
|
||||
#: 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 "İleri"
|
||||
@@ -860,12 +860,12 @@ msgstr ""
|
||||
"Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak "
|
||||
"başlayacaktır."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:300
|
||||
#: dashboard/qml/WizardPage.qml:301
|
||||
#, kde-format
|
||||
msgid "Important information"
|
||||
msgstr "Önemli bilgi"
|
||||
|
||||
#: 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 "
|
||||
@@ -874,12 +874,12 @@ msgstr ""
|
||||
"WiVRn, SteamVR'nin yerini tamamen alır, WiVRn çalışırken SteamVR'yi "
|
||||
"başlatmamalısınız."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:358
|
||||
#: 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:363
|
||||
#: dashboard/qml/WizardPage.qml:364
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
|
||||
@@ -888,32 +888,32 @@ 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:370
|
||||
#: 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:383
|
||||
#: dashboard/qml/WizardPage.qml:384
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
msgstr "Sorun giderme"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:405
|
||||
#: dashboard/qml/WizardPage.qml:406
|
||||
#, kde-format
|
||||
msgid "Skip"
|
||||
msgstr "Atla"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:425
|
||||
#: dashboard/qml/WizardPage.qml:426
|
||||
#, kde-format
|
||||
msgid "Connection established"
|
||||
msgstr "Bağlantı kuruldu"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:430
|
||||
#: 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: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 "
|
||||
@@ -922,22 +922,22 @@ 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:457 dashboard/qml/WizardPage.qml:494
|
||||
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
|
||||
#, kde-format
|
||||
msgid "Finish"
|
||||
msgstr "Bitir"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:472
|
||||
#: dashboard/qml/WizardPage.qml:473
|
||||
#, kde-format
|
||||
msgid "Finished"
|
||||
msgstr "Bitti"
|
||||
|
||||
#: 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"
|
||||
|
||||
+177
-160
@@ -8,9 +8,9 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-08-04 16:49+0300\n"
|
||||
"PO-Revision-Date: 2025-08-08 16:56+0300\n"
|
||||
"Last-Translator: Hüseyin Fahri Uzun <fahri@uzun.pro>\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"
|
||||
@@ -18,7 +18,7 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 3.6\n"
|
||||
|
||||
#: client/scene.cpp:74
|
||||
#: client/scene.cpp:72
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Desteklenen swapchain formatı yok"
|
||||
|
||||
@@ -45,130 +45,143 @@ msgstr "Bağlanılamıyor {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Bağlantı için bekleniyor"
|
||||
|
||||
#: 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 "Kalite"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:234
|
||||
#: client/scenes/lobby_gui.cpp:237
|
||||
msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Devre dışı"
|
||||
|
||||
#: 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 "Bağlantıyı Kes"
|
||||
|
||||
#: 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 "Kapat"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:268
|
||||
#: client/scenes/lobby_gui.cpp:272
|
||||
msgid "Connection"
|
||||
msgstr "Bağlantı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:270
|
||||
#: client/scenes/lobby_gui.cpp:274
|
||||
#, c++-format
|
||||
msgid "Connection to {}"
|
||||
msgstr "{} Bağlan"
|
||||
|
||||
#: 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 "Gösterilen PIN'i gösterge paneline giriniz"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:393
|
||||
#: client/scenes/lobby_gui.cpp:397
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "WiVRn sunucusuna bağlanıldı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:395
|
||||
#: client/scenes/lobby_gui.cpp:399
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "{} bağlanıldı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:405
|
||||
#: 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:414
|
||||
#: 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:416
|
||||
#: 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:522
|
||||
#: client/scenes/lobby_gui.cpp:546
|
||||
msgid "Name"
|
||||
msgstr "Ad"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:533
|
||||
#: client/scenes/lobby_gui.cpp:557
|
||||
msgid "Address"
|
||||
msgstr "Adres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:542
|
||||
#: client/scenes/lobby_gui.cpp:566
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:550
|
||||
#: client/scenes/lobby_gui.cpp:574
|
||||
msgid "TCP only"
|
||||
msgstr "Sadece TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:557
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgid "Cancel"
|
||||
msgstr "İptal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:571
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Save"
|
||||
msgstr "Kaydet"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:624
|
||||
#: 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."
|
||||
"bir WiVRn sunucusu başlatın"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:656
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Autoconnect"
|
||||
msgstr "Oto Bağlan"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:682
|
||||
#: client/scenes/lobby_gui.cpp:706
|
||||
msgid "Connect"
|
||||
msgstr "Bağlan"
|
||||
|
||||
#: 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 "Uyumsuz sunucu versiyonu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:694
|
||||
#: client/scenes/lobby_gui.cpp:718
|
||||
msgid "Server not available"
|
||||
msgstr "Sunucu mevcut değil"
|
||||
|
||||
#: 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 "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: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 "Otomatik"
|
||||
|
||||
#: 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."
|
||||
@@ -176,60 +189,60 @@ 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:806
|
||||
#: client/scenes/lobby_gui.cpp:867
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Minimum tazeleme oranı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:829
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
msgid "Resolution scale"
|
||||
msgstr "Çözünürlük ölçeği"
|
||||
|
||||
#: 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 "göz başına %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{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir."
|
||||
"{}x{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:850
|
||||
#: client/scenes/lobby_gui.cpp:911
|
||||
msgid "Enable microphone"
|
||||
msgstr "Mikrofonu aktif et"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:859
|
||||
#: client/scenes/lobby_gui.cpp:920
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "İşlenmemiş Mikrofon Sesi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:865
|
||||
#: 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:872
|
||||
#: client/scenes/lobby_gui.cpp:933
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "El izlemeyi etkinleştir"
|
||||
|
||||
#: 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 "Bu özellik gözlüğünüz tarafından desteklenmemektedir."
|
||||
msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:884
|
||||
#: client/scenes/lobby_gui.cpp:945
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Göz takibi aktif et"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:896
|
||||
#: client/scenes/lobby_gui.cpp:957
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Yüz takibi aktif et"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:909
|
||||
#: client/scenes/lobby_gui.cpp:971
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Vücut takibi aktif et"
|
||||
|
||||
#: 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"
|
||||
@@ -238,13 +251,13 @@ 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."
|
||||
"edilecektir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:938
|
||||
#: client/scenes/lobby_gui.cpp:995
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Alt vücut izlemeyi etkinleştir"
|
||||
|
||||
#: 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 "
|
||||
@@ -254,11 +267,11 @@ msgstr ""
|
||||
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
|
||||
"etkinleştirilmesi gerekir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:947
|
||||
#: client/scenes/lobby_gui.cpp:1004
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Kalça izlemeyi etkinleştir"
|
||||
|
||||
#: 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"
|
||||
@@ -266,203 +279,169 @@ 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:961
|
||||
#: 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:982 client/scenes/stream_gui.cpp:434
|
||||
#: 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:986 client/scenes/stream_gui.cpp:438
|
||||
#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449
|
||||
msgid "Supersampling"
|
||||
msgstr "Süper örnekleme"
|
||||
|
||||
#: 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"
|
||||
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."
|
||||
"Giriş çözünürlüğü kulaklık ekranına kıyasla yüksek olduğunda kullanışlıdır"
|
||||
|
||||
#: 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 "Keskinleştirme"
|
||||
|
||||
#: 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"
|
||||
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."
|
||||
"Giriş çözünürlüğü kulaklık ekranına kıyasla düşük olduğunda kullanışlıdır"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1040
|
||||
msgid "Enable Snapdragon Game Super Resolution"
|
||||
msgstr "Snapdragon Oyun Süper Çözünürlüğü'nü etkinleştirin"
|
||||
|
||||
#: 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 ""
|
||||
"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."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1050
|
||||
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."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1068
|
||||
msgid "Upscaling factor"
|
||||
msgstr "Yükseltme faktörü"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1087
|
||||
msgid "Use edge direction"
|
||||
msgstr "Kenar yönünü kullan"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1093
|
||||
msgid "Adds an additional performance cost"
|
||||
msgstr "Ek bir performans düşüşü ekler"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1098
|
||||
msgid "Edge threshold"
|
||||
msgstr "Kenar eşiği"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
|
||||
#, c++-format
|
||||
msgid "Recommended: {:.1f}"
|
||||
msgstr "Önerilen: {:.1f}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1108
|
||||
msgid "Edge sharpness"
|
||||
msgstr "Kenar keskinliği"
|
||||
|
||||
#: 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 zamanı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
#: client/scenes/lobby_gui.cpp:1195
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU zamanı [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 zamanı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1228
|
||||
#: client/scenes/lobby_gui.cpp:1209
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU zamanı [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1271
|
||||
#: client/scenes/lobby_gui.cpp:1252
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Mikrofonu aktif et?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1276
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Göz takibi aktif et?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1281
|
||||
#: client/scenes/lobby_gui.cpp:1262
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Yüz takibi aktif et?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1286
|
||||
#: client/scenes/lobby_gui.cpp:1267
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Vücut takibi aktif et?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1294
|
||||
#: client/scenes/lobby_gui.cpp:1275
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "WiVRn'e hoş geldiniz"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1318
|
||||
#: client/scenes/lobby_gui.cpp:1299
|
||||
msgid "Yes"
|
||||
msgstr "Evet"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1325
|
||||
#: client/scenes/lobby_gui.cpp:1306
|
||||
msgid "No"
|
||||
msgstr "Hayır"
|
||||
|
||||
#: 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 "Lisanslar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1658
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Mikrofon aktif"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1659
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Mikrofon devre dışı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1668
|
||||
#: client/scenes/lobby_gui.cpp:1660
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "El takibi aktif"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1669
|
||||
#: client/scenes/lobby_gui.cpp:1661
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "El takibi devre dışı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
#: client/scenes/lobby_gui.cpp:1670
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Göz takibi aktif"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1679
|
||||
#: client/scenes/lobby_gui.cpp:1671
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Göz takibi devre dışı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1692
|
||||
#: client/scenes/lobby_gui.cpp:1681
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Yüz takibi aktif"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1693
|
||||
#: client/scenes/lobby_gui.cpp:1682
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Yüz takibi devre dışı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1703
|
||||
#: client/scenes/lobby_gui.cpp:1692
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Vücut takibi aktif"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1704
|
||||
#: client/scenes/lobby_gui.cpp:1693
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Vücut takibi devre dışı"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1720
|
||||
#: client/scenes/lobby_gui.cpp:1709
|
||||
msgid "Add server"
|
||||
msgstr "Sunucu ekle"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1965
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "Server list"
|
||||
msgstr "Sunucu listesi"
|
||||
|
||||
#: 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 "Ayarlar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1971
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Post-processing"
|
||||
msgstr "İşlem sonrası"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1975
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
msgid "Debug"
|
||||
msgstr "Hata ayıklama"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
#: client/scenes/lobby_gui.cpp:1969
|
||||
msgid "About"
|
||||
msgstr "Hakkında"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
#: client/scenes/lobby_gui.cpp:1975
|
||||
msgid "Exit"
|
||||
msgstr "Çıkış"
|
||||
|
||||
#: 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"
|
||||
@@ -470,7 +449,7 @@ msgstr ""
|
||||
"Ana pencereyi hareket ettirmek için tutma düğmesine basın\n"
|
||||
"veya avucunuzu yukarı kaldırın"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:2005
|
||||
#: 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"
|
||||
|
||||
@@ -486,11 +465,11 @@ msgstr "Blit"
|
||||
msgid "Network"
|
||||
msgstr "Ağ"
|
||||
|
||||
#: 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 "İndir"
|
||||
|
||||
#: 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 "Gönder"
|
||||
|
||||
@@ -531,67 +510,67 @@ msgstr "Görüntülenen"
|
||||
msgid "Predicted"
|
||||
msgstr "Tahmin edilen"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:393
|
||||
#: 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:396
|
||||
#: 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: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 penceresini görüntülemek için her iki başparmak çubuklarınıda basın"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:420
|
||||
#: client/scenes/stream_gui.cpp:426
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Hareketin fotona ulaşma gecikmesi"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:492
|
||||
#: client/scenes/stream_gui.cpp:503
|
||||
msgid "Foveation center override"
|
||||
msgstr "Foveasyon merkezi geçersiz kılma"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:495
|
||||
#: client/scenes/stream_gui.cpp:506
|
||||
msgid "Enable"
|
||||
msgstr "Aktif et"
|
||||
|
||||
#: 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 "Boy {:.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 "Uzaklık {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:505
|
||||
#: client/scenes/stream_gui.cpp:516
|
||||
msgid "Default"
|
||||
msgstr "Varsayılan"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:516
|
||||
#: client/scenes/stream_gui.cpp:527
|
||||
msgid "Change"
|
||||
msgstr "Değiştir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:548
|
||||
#: 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:549
|
||||
#: 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:793
|
||||
#: client/scenes/stream_gui.cpp:819
|
||||
msgid "Stats"
|
||||
msgstr "İstatistikler"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:802
|
||||
#: client/scenes/stream_gui.cpp:828
|
||||
msgid "Statistics overlay"
|
||||
msgstr "İstatistik katmanı"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:805
|
||||
#: client/scenes/stream_gui.cpp:831
|
||||
msgid "Compact view"
|
||||
msgstr "Kompakt görünüm"
|
||||
|
||||
@@ -610,3 +589,41 @@ 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"
|
||||
|
||||
@@ -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
@@ -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
@@ -1 +1 @@
|
||||
5c137fe28b232fe460f9b03defa7749adc32ee48
|
||||
62013b7403be3d9e6e8b983787331219f5925d0a
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 483ce192460569020fa57522ee2bea99198dac2e 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/13] c/multi: early wake of compositor
|
||||
Subject: [PATCH 1/7] c/multi: early wake of compositor
|
||||
|
||||
---
|
||||
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
||||
@@ -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 642f328ff08872289082f591b393aa72cdfffe0a 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/13] 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 a06da2ceeddf3f7760501114efa35bd168ba74bc 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/13] 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,25 +0,0 @@
|
||||
From 4efe5b0e12a92284e46fdeb225102dc63a7eda51 Mon Sep 17 00:00:00 2001
|
||||
From: galister <3123227-galister@users.noreply.gitlab.com>
|
||||
Date: Mon, 19 Aug 2024 18:51:45 +0900
|
||||
Subject: [PATCH 04/13] c/render: Add storage usage to distortion mesh
|
||||
|
||||
---
|
||||
src/xrt/compositor/render/render_distortion.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/render/render_distortion.c b/src/xrt/compositor/render/render_distortion.c
|
||||
index 8ac24db8e..5a7e400c3 100644
|
||||
--- a/src/xrt/compositor/render/render_distortion.c
|
||||
+++ b/src/xrt/compositor/render/render_distortion.c
|
||||
@@ -42,7 +42,7 @@ create_distortion_image_and_view(struct vk_bundle *vk,
|
||||
vk, // vk_bundle
|
||||
extent, // extent
|
||||
format, // format
|
||||
- VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage
|
||||
+ VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage
|
||||
&device_memory, // out_device_memory
|
||||
&image); // out_image
|
||||
VK_CHK_AND_RET(ret, "vk_create_image_simple");
|
||||
--
|
||||
2.50.1
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
From a28d3e6a3e85b7c04392137b30958e8b1d13c591 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/13] 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
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
From 1a9b288475830fc1caf9bbf340ea370677b239a5 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/13] 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
|
||||
|
||||
+676
-145
File diff suppressed because it is too large
Load Diff
@@ -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,94 +0,0 @@
|
||||
From 022835847793c2b97df20a1dc823512a36533d53 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Sun, 3 Nov 2024 13:40:00 +0100
|
||||
Subject: [PATCH 07/13] store alpha channel in layer 1
|
||||
|
||||
---
|
||||
src/xrt/compositor/shaders/clear.comp | 4 ++--
|
||||
src/xrt/compositor/shaders/distortion.comp | 18 ++++++++++++------
|
||||
2 files changed, 14 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp
|
||||
index 036da401a..db8e5178e 100644
|
||||
--- a/src/xrt/compositor/shaders/clear.comp
|
||||
+++ b/src/xrt/compositor/shaders/clear.comp
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
|
||||
|
||||
-layout(set = 0, binding = 2) uniform writeonly restrict image2D target;
|
||||
+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray target;
|
||||
layout(set = 0, binding = 3) uniform restrict Config
|
||||
{
|
||||
ivec4 views[2];
|
||||
@@ -35,5 +35,5 @@ void main()
|
||||
|
||||
vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0);
|
||||
|
||||
- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour);
|
||||
+ imageStore(target, ivec3(offset.x + ix, offset.y + iy, 0), colour);
|
||||
}
|
||||
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
|
||||
index e1dd1cb58..9ce46fe6f 100644
|
||||
--- a/src/xrt/compositor/shaders/distortion.comp
|
||||
+++ b/src/xrt/compositor/shaders/distortion.comp
|
||||
@@ -18,7 +18,7 @@ layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
|
||||
|
||||
layout(set = 0, binding = 0) uniform sampler2D source[2];
|
||||
layout(set = 0, binding = 1) uniform sampler2D distortion[6];
|
||||
-layout(set = 0, binding = 2) uniform writeonly restrict image2D luma;
|
||||
+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
|
||||
layout(set = 0, binding = 3, std140) uniform restrict Config
|
||||
{
|
||||
ivec4 views[2];
|
||||
@@ -26,7 +26,7 @@ layout(set = 0, binding = 3, std140) uniform restrict Config
|
||||
vec4 post_transform[2];
|
||||
mat4 transform[2];
|
||||
} ubo;
|
||||
-layout(set = 0, binding = 4) uniform writeonly restrict image2D chroma;
|
||||
+layout(set = 0, binding = 4) uniform writeonly restrict image2DArray chroma;
|
||||
|
||||
const mat3 color_space = mat3(
|
||||
// clang-format off
|
||||
@@ -122,6 +122,7 @@ void main()
|
||||
ivec2 offset = ivec2(ubo.views[iz].xy);
|
||||
ivec2 extent = ivec2(ubo.views[iz].zw);
|
||||
vec2 cbcrs[4];
|
||||
+ vec4 alpha;
|
||||
for (int k = 0; k < 2; k += 1) {
|
||||
uint iy = gl_GlobalInvocationID.y * 2 + k;
|
||||
for (int j = 0; j < 2; j += 1) {
|
||||
@@ -136,15 +137,16 @@ void main()
|
||||
uv = transform_uv(uv, iz);
|
||||
|
||||
// Sample the source
|
||||
- vec3 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)).rgb;
|
||||
+ vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5));
|
||||
|
||||
- colour = rgb_to_ycbcr(from_linear_to_srgb(colour));
|
||||
+ colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
|
||||
|
||||
int i = k * 2 + j;
|
||||
cbcrs[i] = colour.yz;
|
||||
+ alpha[i] = colour.a;
|
||||
|
||||
if (ix < extent.x && iy < extent.y) {
|
||||
- imageStore(luma, ivec2(offset.x + ix, offset.y + iy), vec4(colour.x));
|
||||
+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -152,5 +154,9 @@ void main()
|
||||
return;
|
||||
}
|
||||
vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
|
||||
- imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0));
|
||||
+ 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, 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);
|
||||
}
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
From 0d2ae2efb84f1479151c096e26f3295eded3b170 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Thu, 27 Feb 2025 22:45:36 +0100
|
||||
Subject: [PATCH 08/13] 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,747 +0,0 @@
|
||||
From 624849b80a893d073f2315eca909afa823c0a345 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Mon, 2 Jun 2025 14:51:11 +0200
|
||||
Subject: [PATCH 10/13] Replace distortion with pixel-aligned foveation
|
||||
|
||||
---
|
||||
src/xrt/compositor/CMakeLists.txt | 4 +-
|
||||
src/xrt/compositor/render/render_compute.c | 185 ++-----------------
|
||||
src/xrt/compositor/render/render_interface.h | 33 ++--
|
||||
src/xrt/compositor/render/render_resources.c | 71 +------
|
||||
src/xrt/compositor/shaders/distortion.comp | 167 ++++++-----------
|
||||
src/xrt/compositor/util/comp_render_cs.c | 33 +---
|
||||
6 files changed, 101 insertions(+), 392 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
||||
index 1ba5ec438..eb068f5fc 100644
|
||||
--- a/src/xrt/compositor/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/CMakeLists.txt
|
||||
@@ -105,7 +105,7 @@ if(XRT_HAVE_VULKAN)
|
||||
spirv_shaders(
|
||||
SHADER_HEADERS
|
||||
SPIRV_VERSION
|
||||
- 1.0 # Currently targeting Vulkan 1.0
|
||||
+ 1.3 # Currently targeting Vulkan 1.3
|
||||
SOURCES
|
||||
${SHADERS}
|
||||
)
|
||||
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
||||
${SHADER_HEADERS}
|
||||
render/render_buffer.c
|
||||
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..44c3f0aee 100644
|
||||
--- a/src/xrt/compositor/render/render_compute.c
|
||||
+++ b/src/xrt/compositor/render/render_compute.c
|
||||
@@ -66,8 +66,8 @@ calc_dispatch_dims_views(const struct render_viewport_data views[XRT_MAX_VIEWS],
|
||||
#undef IMAX
|
||||
|
||||
// Power of two divide and round up.
|
||||
- w = uint_divide_and_round_up(w, 16);
|
||||
- h = uint_divide_and_round_up(h, 16);
|
||||
+ w = uint_divide_and_round_up(w, 8);
|
||||
+ h = uint_divide_and_round_up(h, 8);
|
||||
|
||||
*out_w = w;
|
||||
*out_h = h;
|
||||
@@ -167,8 +167,8 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk,
|
||||
VkSampler src_samplers[XRT_MAX_VIEWS],
|
||||
VkImageView src_image_views[XRT_MAX_VIEWS],
|
||||
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..cd1828ac9 100644
|
||||
--- a/src/xrt/compositor/shaders/distortion.comp
|
||||
+++ b/src/xrt/compositor/shaders/distortion.comp
|
||||
@@ -4,20 +4,22 @@
|
||||
|
||||
#version 460
|
||||
#extension GL_GOOGLE_include_directive : require
|
||||
+#extension GL_KHR_shader_subgroup_basic: require
|
||||
+#extension GL_KHR_shader_subgroup_shuffle: require
|
||||
|
||||
#include "srgb.inc.glsl"
|
||||
|
||||
-
|
||||
-// 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,122 +43,59 @@ 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;
|
||||
- for (int k = 0; k < 2; k += 1) {
|
||||
- uint iy = gl_GlobalInvocationID.y * 2 + k;
|
||||
- for (int j = 0; j < 2; j += 1) {
|
||||
- uint ix = gl_GlobalInvocationID.x * 2 + j;
|
||||
-
|
||||
- vec2 dist_uv = position_to_uv(extent, ix, iy);
|
||||
-
|
||||
- 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));
|
||||
+ uint iy = gl_GlobalInvocationID.y;
|
||||
+ uint ymin = foveation.y[MAX_DIM * iz + iy];
|
||||
+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1];
|
||||
+ if (ymin == ymax)
|
||||
+ return;
|
||||
+ if (ymin > ymax)
|
||||
+ {
|
||||
+ uint tmp = ymin;
|
||||
+ ymin = ymax;
|
||||
+ ymax = tmp;
|
||||
+ }
|
||||
+ uint ix = gl_GlobalInvocationID.x;
|
||||
|
||||
- int i = k * 2 + j;
|
||||
- cbcrs[i] = colour.yz;
|
||||
- alpha[i] = colour.a;
|
||||
+ uint xmin = foveation.x[MAX_DIM * iz + ix];
|
||||
+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1];
|
||||
+ if (xmin == xmax)
|
||||
+ return;
|
||||
|
||||
- if (ix < extent.x && iy < extent.y) {
|
||||
- imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
- }
|
||||
+ vec4 colour = vec4(0);
|
||||
+ for (uint y = ymin ; y < ymax; y += 1) {
|
||||
+ for (uint x = xmin ; x < xmax; x += 1) {
|
||||
+ colour += texelFetch(source[iz], ivec2(x, y), 0);
|
||||
}
|
||||
}
|
||||
- if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) {
|
||||
- return;
|
||||
+ colour /= (xmax - xmin) * (ymax - ymin);
|
||||
+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
|
||||
+
|
||||
+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
|
||||
+
|
||||
+ vec4 sum = colour;
|
||||
+ for (uint i = 0 ; i < gl_SubgroupSize; ++i)
|
||||
+ {
|
||||
+ uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i);
|
||||
+ vec4 c = subgroupShuffle(colour, i);
|
||||
+ if (
|
||||
+ other == gl_GlobalInvocationID + uvec3(1, 0, 0)
|
||||
+ || other == gl_GlobalInvocationID + uvec3(0, 1, 0)
|
||||
+ || other == gl_GlobalInvocationID + uvec3(1, 1, 0))
|
||||
+ {
|
||||
+ sum += c;
|
||||
+ }
|
||||
}
|
||||
- vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
|
||||
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0));
|
||||
|
||||
- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0));
|
||||
- alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5));
|
||||
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
||||
+ if (ix %2 == 0 && iy %2 == 0)
|
||||
+ {
|
||||
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 0), vec4(sum.y, sum.z, 0, 0) / 4);
|
||||
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(sum.w, 0, 0, 0) / 4);
|
||||
+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(0.5, 0.5, 0, 0));
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
||||
index b2d3ce10d..69429dc97 100644
|
||||
--- 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
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
From 34699c38c4ebb5c968b4e1053ddbf48b31dbe72d Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 15:51:48 +0200
|
||||
Subject: [PATCH 11/13] a/vk: Track VK_KHR_video_maintenance1
|
||||
|
||||
---
|
||||
scripts/generate_vk_helpers.py | 1 +
|
||||
src/xrt/auxiliary/vk/vk_bundle_init.c | 8 ++++++++
|
||||
src/xrt/auxiliary/vk/vk_helpers.h | 1 +
|
||||
3 files changed, 10 insertions(+)
|
||||
|
||||
diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py
|
||||
index 330b1b05e..80902193a 100755
|
||||
--- a/scripts/generate_vk_helpers.py
|
||||
+++ b/scripts/generate_vk_helpers.py
|
||||
@@ -307,6 +307,7 @@ DEVICE_EXTENSIONS_TO_CHECK = [
|
||||
"VK_KHR_present_wait",
|
||||
"VK_KHR_synchronization2",
|
||||
"VK_KHR_timeline_semaphore",
|
||||
+ "VK_KHR_video_maintenance1",
|
||||
"VK_EXT_calibrated_timestamps",
|
||||
"VK_EXT_display_control",
|
||||
"VK_EXT_external_memory_dma_buf",
|
||||
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
index f28f7591f..b435d73dd 100644
|
||||
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
@@ -754,6 +754,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||
vk->has_KHR_present_wait = false;
|
||||
vk->has_KHR_synchronization2 = false;
|
||||
vk->has_KHR_timeline_semaphore = false;
|
||||
+ vk->has_KHR_video_maintenance1 = false;
|
||||
vk->has_EXT_calibrated_timestamps = false;
|
||||
vk->has_EXT_display_control = false;
|
||||
vk->has_EXT_external_memory_dma_buf = false;
|
||||
@@ -868,6 +869,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||
}
|
||||
#endif // defined(VK_KHR_timeline_semaphore)
|
||||
|
||||
+#if defined(VK_KHR_video_maintenance1)
|
||||
+ if (strcmp(ext, VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME) == 0) {
|
||||
+ vk->has_KHR_video_maintenance1 = true;
|
||||
+ continue;
|
||||
+ }
|
||||
+#endif // defined(VK_KHR_video_maintenance1)
|
||||
+
|
||||
#if defined(VK_EXT_calibrated_timestamps)
|
||||
if (strcmp(ext, VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME) == 0) {
|
||||
vk->has_EXT_calibrated_timestamps = true;
|
||||
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
index 896b597d4..3b5cbb9c8 100644
|
||||
--- a/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
@@ -142,6 +142,7 @@ struct vk_bundle
|
||||
bool has_KHR_present_wait;
|
||||
bool has_KHR_synchronization2;
|
||||
bool has_KHR_timeline_semaphore;
|
||||
+ bool has_KHR_video_maintenance1;
|
||||
bool has_EXT_calibrated_timestamps;
|
||||
bool has_EXT_display_control;
|
||||
bool has_EXT_external_memory_dma_buf;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
From 2300c7509699db2a59e4bd0eee33890a2d906156 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 16:00:59 +0200
|
||||
Subject: [PATCH 12/13] a/vk: Expose video_maintenance_1 device feature
|
||||
|
||||
---
|
||||
src/xrt/auxiliary/vk/vk_bundle_init.c | 40 +++++++++++++++++++++++++--
|
||||
src/xrt/auxiliary/vk/vk_helpers.h | 4 +++
|
||||
2 files changed, 42 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
index b435d73dd..501cd6f3c 100644
|
||||
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
||||
@@ -1098,6 +1098,13 @@ filter_device_features(struct vk_bundle *vk,
|
||||
};
|
||||
#endif
|
||||
|
||||
+#ifdef VK_KHR_video_maintenance1
|
||||
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
|
||||
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
|
||||
+ .pNext = NULL,
|
||||
+ };
|
||||
+#endif
|
||||
+
|
||||
#ifdef VK_ANDROID_external_format_resolve
|
||||
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
|
||||
@@ -1148,6 +1155,13 @@ filter_device_features(struct vk_bundle *vk,
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifdef VK_KHR_video_maintenance1
|
||||
+ if (vk->has_KHR_video_maintenance1) {
|
||||
+ vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
|
||||
+ (VkBaseInStructure *)&video_maintenance_1_info);
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
#ifdef VK_ANDROID_external_format_resolve
|
||||
if (vk->has_ANDROID_external_format_resolve) {
|
||||
vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
|
||||
@@ -1187,6 +1201,10 @@ filter_device_features(struct vk_bundle *vk,
|
||||
CHECK(synchronization_2, synchronization_2_info.synchronization2);
|
||||
#endif
|
||||
|
||||
+#ifdef VK_KHR_video_maintenance1
|
||||
+ CHECK(video_maintenance_1, video_maintenance_1_info.videoMaintenance1);
|
||||
+#endif
|
||||
+
|
||||
#ifdef VK_ANDROID_external_format_resolve
|
||||
CHECK(ext_fmt_resolve, ext_fmt_resolve_info.externalFormatResolve);
|
||||
#endif
|
||||
@@ -1207,14 +1225,16 @@ filter_device_features(struct vk_bundle *vk,
|
||||
"\n\tshader_storage_image_write_without_format: %i"
|
||||
"\n\tstorage_buffer_8bit_access: %i"
|
||||
"\n\tsynchronization_2: %i"
|
||||
- "\n\ttimeline_semaphore: %i", //
|
||||
+ "\n\ttimeline_semaphore: %i"
|
||||
+ "\n\tvideo_maintenance_1: %i", //
|
||||
device_features->ext_fmt_resolve, //
|
||||
device_features->null_descriptor, //
|
||||
device_features->shader_image_gather_extended, //
|
||||
device_features->shader_storage_image_write_without_format, //
|
||||
device_features->storage_buffer_8bit_access, //
|
||||
device_features->synchronization_2, //
|
||||
- device_features->timeline_semaphore); //
|
||||
+ device_features->timeline_semaphore, //
|
||||
+ device_features->video_maintenance_1); //
|
||||
}
|
||||
|
||||
|
||||
@@ -1262,6 +1282,7 @@ vk_create_device(struct vk_bundle *vk,
|
||||
vk->features.timeline_semaphore = device_features.timeline_semaphore;
|
||||
vk->features.synchronization_2 = device_features.synchronization_2;
|
||||
vk->features.present_wait = device_features.present_wait;
|
||||
+ vk->features.video_maintenance_1 = device_features.video_maintenance_1;
|
||||
|
||||
|
||||
/*
|
||||
@@ -1384,6 +1405,14 @@ vk_create_device(struct vk_bundle *vk,
|
||||
};
|
||||
#endif
|
||||
|
||||
+#ifdef VK_KHR_video_maintenance1
|
||||
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
|
||||
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
|
||||
+ .pNext = NULL,
|
||||
+ .videoMaintenance1 = device_features.video_maintenance_1,
|
||||
+ };
|
||||
+#endif
|
||||
+
|
||||
#ifdef VK_ANDROID_external_format_resolve
|
||||
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
|
||||
@@ -1444,6 +1473,13 @@ vk_create_device(struct vk_bundle *vk,
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifdef VK_KHR_video_maintenance1
|
||||
+ if (vk->has_KHR_video_maintenance1) {
|
||||
+ vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
|
||||
+ (VkBaseInStructure *)&video_maintenance_1_info);
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
#ifdef VK_ANDROID_external_format_resolve
|
||||
if (vk->has_ANDROID_external_format_resolve) {
|
||||
vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
|
||||
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
index 3b5cbb9c8..748c06dac 100644
|
||||
--- a/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
|
||||
@@ -179,6 +179,9 @@ struct vk_bundle
|
||||
|
||||
//! Was KHR_present_wait requested, available, and enabled?
|
||||
bool present_wait;
|
||||
+
|
||||
+ //! Was KHR_video_maintenance1 requested, available, and enabled?
|
||||
+ bool video_maintenance_1;
|
||||
} features;
|
||||
|
||||
//! Is the GPU a tegra device.
|
||||
@@ -1030,6 +1033,7 @@ struct vk_device_features
|
||||
bool ext_fmt_resolve;
|
||||
bool storage_buffer_8bit_access;
|
||||
bool present_wait;
|
||||
+ bool video_maintenance_1;
|
||||
};
|
||||
|
||||
/*!
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
From 8c874368dfaa363e088e91c05adf2a96f921671d Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 5 Aug 2025 16:01:59 +0200
|
||||
Subject: [PATCH 13/13] c/util: Request video_maintenance_1 feature
|
||||
|
||||
This will only be enabled if the VK_KHR_maintenance1 extension was
|
||||
requested.
|
||||
---
|
||||
src/xrt/compositor/util/comp_vulkan.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/xrt/compositor/util/comp_vulkan.c b/src/xrt/compositor/util/comp_vulkan.c
|
||||
index 5618f4f78..9c719275c 100644
|
||||
--- a/src/xrt/compositor/util/comp_vulkan.c
|
||||
+++ b/src/xrt/compositor/util/comp_vulkan.c
|
||||
@@ -282,6 +282,7 @@ create_device(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_args)
|
||||
.timeline_semaphore = vk_args->timeline_semaphore,
|
||||
.synchronization_2 = true,
|
||||
.present_wait = true,
|
||||
+ .video_maintenance_1 = true,
|
||||
};
|
||||
|
||||
ret = vk_init_mutex(vk);
|
||||
--
|
||||
2.50.1
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user