Compare commits
77
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae000d5163 | ||
|
|
a491561271 | ||
|
|
78d7fc40f2 | ||
|
|
7164a7dbeb | ||
|
|
45907329c7 | ||
|
|
64093238d3 | ||
|
|
515010aeab | ||
|
|
accac9b150 | ||
|
|
caa191ff06 | ||
|
|
4dbb506df0 | ||
|
|
78addc1f22 | ||
|
|
26f21348f3 | ||
|
|
7d9031e843 | ||
|
|
79df7370f3 | ||
|
|
13e4105bcd | ||
|
|
2b7409b363 | ||
|
|
2cf80c9a88 | ||
|
|
b3b2c49da4 | ||
|
|
13a94f3dec | ||
|
|
d7174dcefa | ||
|
|
94ef8945cc | ||
|
|
324aec8c6b | ||
|
|
02d06562a6 | ||
|
|
9690633030 | ||
|
|
f3bff6331c | ||
|
|
bc115b9969 | ||
|
|
15de99076a | ||
|
|
be75748d5c | ||
|
|
0ad6cf0507 | ||
|
|
8a4edf46af | ||
|
|
33fac50895 | ||
|
|
6859db7c34 | ||
|
|
f32d6f4710 | ||
|
|
dfa0fff46d | ||
|
|
65cc572fde | ||
|
|
ce3e54b2d0 | ||
|
|
00d40b51b5 | ||
|
|
822f28ab23 | ||
|
|
3ac94dc320 | ||
|
|
7f5d254d8e | ||
|
|
47643977ef | ||
|
|
51855e195c | ||
|
|
34ce871f2d | ||
|
|
4a1c58a137 | ||
|
|
1903d5c910 | ||
|
|
b96833cc9b | ||
|
|
93ee0cc577 | ||
|
|
9a2f31e011 | ||
|
|
b5e93607df | ||
|
|
9a81bc8213 | ||
|
|
a823df96d3 | ||
|
|
c44940d004 | ||
|
|
7d11674b2a | ||
|
|
adf4b1fc84 | ||
|
|
5b6e172b41 | ||
|
|
a8504545e9 | ||
|
|
e81393fe87 | ||
|
|
906e6e5744 | ||
|
|
bfe44c6b8d | ||
|
|
9df870a7fa | ||
|
|
8a7cc105cb | ||
|
|
1e6937d4a4 | ||
|
|
0f21191e9b | ||
|
|
6254386370 | ||
|
|
e32d3bbf36 | ||
|
|
c1c703b445 | ||
|
|
63cb9ff179 | ||
|
|
a16a0df1c0 | ||
|
|
b4d610f52a | ||
|
|
f476f9a1db | ||
|
|
5f6dd17149 | ||
|
|
ea84391ba3 | ||
|
|
ed5986e83b | ||
|
|
71ee653312 | ||
|
|
19ac929be9 | ||
|
|
4ff91f1e13 | ||
|
|
e837396944 |
@@ -141,6 +141,8 @@ jobs:
|
||||
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
|
||||
--preset dashboard
|
||||
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
||||
-DGIT_DESC=${{github.sha}}
|
||||
-DGIT_COMMIT=${{github.sha}}
|
||||
|
||||
- name: Build
|
||||
# Build your program with the given configuration
|
||||
|
||||
@@ -282,6 +282,20 @@ FetchContent_Declare(monado
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
|
||||
add_custom_target(wivrn-version ALL
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D GIT_EXECUTABLE=${GIT_EXECUTABLE}
|
||||
-D INPUT_FILE=${CMAKE_CURRENT_SOURCE_DIR}/common/version.cpp.in
|
||||
-D OUTPUT_FILE=${CMAKE_BINARY_DIR}/version.cpp
|
||||
-D INPUT_FILE_1=${CMAKE_CURRENT_SOURCE_DIR}/server/u_git_tag.cpp.in
|
||||
-D OUTPUT_FILE_1=${CMAKE_BINARY_DIR}/u_git_tag.cpp
|
||||
-D GIT_DESC="${GIT_DESC}"
|
||||
-D GIT_COMMIT="${GIT_COMMIT}"
|
||||
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
|
||||
BYPRODUCTS ${CMAKE_BINARY_DIR}/version.cpp ${CMAKE_BINARY_DIR}/u_git_tag.cpp
|
||||
SOURCES common/version.cpp.in server/u_git_tag.cpp.in
|
||||
)
|
||||
|
||||
add_subdirectory(external)
|
||||
if (NEED_COMMON)
|
||||
add_subdirectory(common)
|
||||
|
||||
@@ -39,7 +39,7 @@ WiVRn support a wide range of VR devices:
|
||||
## PC Server/Dashboard
|
||||
|
||||
We recommend using native packages if available for your distribution:
|
||||
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
|
||||
- [Arch User Repository](https://aur.archlinux.org/packages/wivrn-dashboard)
|
||||
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
|
||||
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
|
||||
- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn)
|
||||
@@ -180,6 +180,15 @@ If the server list is empty in the headset app:
|
||||
|
||||
Note: WiVRn isn't properly optimized for NVIDIA GPUs due to the lack of developers with NVIDIA hardware. Motion latency may be significantly worse at rendering resolutions higher than default.</details>
|
||||
|
||||
# Community Support
|
||||
|
||||
We are available on either **Discord** or **Matrix space**:
|
||||
|
||||
[](https://discord.gg/EHAYe3tTYa) [](https://matrix.to/#/#linux-vr-adventures:matrix.org)
|
||||
|
||||
Please use the `wivrn` chat room for questions or issues specific to WiVRn.
|
||||
|
||||
|
||||
# Contributing
|
||||
|
||||
## Translations
|
||||
|
||||
@@ -1243,10 +1243,6 @@ void application::initialize()
|
||||
XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME,
|
||||
XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME,
|
||||
XR_FB_FACE_TRACKING2_EXTENSION_NAME,
|
||||
// Disable foveation, doesn't seem useful
|
||||
// XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME,
|
||||
// XR_FB_FOVEATION_EXTENSION_NAME,
|
||||
// XR_FB_FOVEATION_VULKAN_EXTENSION_NAME,
|
||||
XR_FB_PASSTHROUGH_EXTENSION_NAME,
|
||||
XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME,
|
||||
|
||||
@@ -1340,7 +1336,7 @@ void application::initialize()
|
||||
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW);
|
||||
spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
|
||||
|
||||
config.emplace(xr_system_id);
|
||||
config.emplace(xr_system_id, xr_session);
|
||||
|
||||
// HTC face tracker fails if created later
|
||||
// we can destroy it right away, it actually stores static handles
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "configuration.h"
|
||||
#include "application.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/json_string.h"
|
||||
#include "wivrn_packets.h"
|
||||
|
||||
@@ -29,6 +30,9 @@
|
||||
#include "android/permissions.h"
|
||||
#endif
|
||||
|
||||
// If no refresh rate is configured, don't select a too high one
|
||||
static const float max_default_rate = 100;
|
||||
|
||||
bool configuration::check_feature(feature f) const
|
||||
{
|
||||
{
|
||||
@@ -95,7 +99,7 @@ void configuration::set_feature(feature f, bool state)
|
||||
save();
|
||||
}
|
||||
|
||||
configuration::configuration(xr::system & system)
|
||||
configuration::configuration(xr::system & system, xr::session & session)
|
||||
{
|
||||
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
|
||||
features[feature::hand_tracking] = system.hand_tracking_supported();
|
||||
@@ -122,6 +126,15 @@ configuration::configuration(xr::system & system)
|
||||
high_power_mode = true;
|
||||
break;
|
||||
}
|
||||
|
||||
const auto & rates = session.get_refresh_rates();
|
||||
for (auto rate: rates)
|
||||
{
|
||||
if (rate >= max_default_rate)
|
||||
break;
|
||||
preferred_refresh_rate = rate;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
simdjson::dom::parser parser;
|
||||
@@ -145,7 +158,11 @@ configuration::configuration(xr::system & system)
|
||||
}
|
||||
|
||||
if (auto val = root["preferred_refresh_rate"]; val.is_double())
|
||||
preferred_refresh_rate = val.get_double();
|
||||
{
|
||||
float f = val.get_double();
|
||||
if (f == 0 or utils::contains(rates, f))
|
||||
preferred_refresh_rate = f;
|
||||
}
|
||||
|
||||
if (auto val = root["minimum_refresh_rate"]; val.is_double())
|
||||
minimum_refresh_rate = val.get_double();
|
||||
@@ -285,8 +302,7 @@ void configuration::save()
|
||||
std::ofstream json(application::get_config_path() / "client.json");
|
||||
|
||||
json << "{\"servers\":[" << servers_str << "]";
|
||||
if (preferred_refresh_rate)
|
||||
json << ",\"preferred_refresh_rate\":" << *preferred_refresh_rate;
|
||||
json << ",\"preferred_refresh_rate\":" << preferred_refresh_rate;
|
||||
if (minimum_refresh_rate)
|
||||
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
|
||||
json << ",\"resolution_scale\":" << resolution_scale;
|
||||
|
||||
@@ -31,8 +31,9 @@
|
||||
|
||||
namespace xr
|
||||
{
|
||||
class session;
|
||||
class system;
|
||||
}
|
||||
} // namespace xr
|
||||
|
||||
class configuration
|
||||
{
|
||||
@@ -48,7 +49,7 @@ public:
|
||||
};
|
||||
|
||||
std::map<std::string, server_data> servers;
|
||||
std::optional<float> preferred_refresh_rate;
|
||||
float preferred_refresh_rate = 0;
|
||||
std::optional<float> minimum_refresh_rate;
|
||||
float resolution_scale = 1.0;
|
||||
std::optional<wivrn::video_codec> codec;
|
||||
@@ -99,7 +100,7 @@ private:
|
||||
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
|
||||
|
||||
public:
|
||||
configuration(xr::system &);
|
||||
configuration(xr::system &, xr::session &);
|
||||
configuration() = default;
|
||||
|
||||
void save();
|
||||
|
||||
+4
-1
@@ -40,7 +40,7 @@ constexpr int font_size_large = 75;
|
||||
constexpr float scroll_ratio = 10;
|
||||
|
||||
// Threshold on the trigger value to register a click
|
||||
constexpr float trigger_click_thd = 0.8;
|
||||
constexpr float trigger_click_thd = 0.7;
|
||||
|
||||
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
|
||||
constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction
|
||||
@@ -117,6 +117,9 @@ namespace constants::stream
|
||||
constexpr float fade_delay = 3;
|
||||
constexpr float fade_duration = 0.25;
|
||||
|
||||
constexpr float urgent_fade_delay = 5;
|
||||
constexpr ImVec4 urgent_border_color = {8.f, .6f, 0.f, .8f};
|
||||
|
||||
// Dimming for the streamed video when the GUI is interactable
|
||||
constexpr float dimming_scale = 0.4;
|
||||
constexpr float dimming_bias = 0.01;
|
||||
|
||||
@@ -71,14 +71,20 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
std::vector<wivrn::video_codec> wivrn::decoder::supported_codecs()
|
||||
static std::vector<wivrn::video_codec> supported_codecs_()
|
||||
{
|
||||
std::vector<wivrn::video_codec> res;
|
||||
#ifdef __ANDROID__
|
||||
android::decoder::supported_codecs(res);
|
||||
wivrn::android::decoder::supported_codecs(res);
|
||||
#else
|
||||
ffmpeg::decoder::supported_codecs(res);
|
||||
wivrn::ffmpeg::decoder::supported_codecs(res);
|
||||
#endif
|
||||
res.push_back(video_codec::raw);
|
||||
res.push_back(wivrn::video_codec::raw);
|
||||
return res;
|
||||
}
|
||||
|
||||
const std::vector<wivrn::video_codec> & wivrn::decoder::supported_codecs()
|
||||
{
|
||||
static std::vector<wivrn::video_codec> res = supported_codecs_();
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -66,6 +66,6 @@ public:
|
||||
|
||||
virtual vk::Sampler sampler() = 0;
|
||||
|
||||
static std::vector<wivrn::video_codec> supported_codecs();
|
||||
static const std::vector<wivrn::video_codec> & supported_codecs();
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -209,6 +209,11 @@ imgui_textures::imgui_textures(
|
||||
this->image_cache = std::make_shared<image_cache_type>(device, physical_device, queue, queue_family_index);
|
||||
}
|
||||
|
||||
imgui_textures::~imgui_textures()
|
||||
{
|
||||
device.waitIdle();
|
||||
}
|
||||
|
||||
std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
|
||||
{
|
||||
std::vector<std::pair<ImVec2, float>> intersections;
|
||||
@@ -840,7 +845,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
|
||||
application::haptic_start(haptic_output, XR_NULL_PATH, 10'000'000, 1000, 1);
|
||||
}
|
||||
|
||||
vk::Image destination = swapchain.images()[image_index].image;
|
||||
vk::Image destination = swapchain.image(image_index);
|
||||
|
||||
ImGui::SetCurrentContext(context);
|
||||
ImPlot::SetCurrentContext(plot_context);
|
||||
|
||||
@@ -68,6 +68,7 @@ public:
|
||||
uint32_t queue_family_index,
|
||||
thread_safe<vk::raii::Queue> & queue,
|
||||
std::shared_ptr<image_cache_type> image_cache = {});
|
||||
~imgui_textures();
|
||||
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, const std::string & name = "");
|
||||
|
||||
@@ -340,7 +340,7 @@ scene_renderer::renderpass & scene_renderer::get_renderpass(const renderpass_inf
|
||||
|
||||
scene_renderer::renderpass scene_renderer::create_renderpass(const renderpass_info & info_)
|
||||
{
|
||||
vk::StructureChain<vk::RenderPassCreateInfo, vk::RenderPassFragmentDensityMapCreateInfoEXT, vk::RenderPassMultiviewCreateInfo> info;
|
||||
vk::StructureChain<vk::RenderPassCreateInfo, vk::RenderPassMultiviewCreateInfo> info;
|
||||
scene_renderer::renderpass rp;
|
||||
|
||||
std::vector<vk::AttachmentDescription> attachments;
|
||||
@@ -392,29 +392,6 @@ scene_renderer::renderpass scene_renderer::create_renderpass(const renderpass_in
|
||||
});
|
||||
}
|
||||
|
||||
if (info_.fragment_density_map)
|
||||
{
|
||||
vk::RenderPassFragmentDensityMapCreateInfoEXT & fragment_density_info = info.get<vk::RenderPassFragmentDensityMapCreateInfoEXT>();
|
||||
rp.fragment_density_attachment = {
|
||||
.attachment = (uint32_t)attachments.size(),
|
||||
.layout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
|
||||
};
|
||||
fragment_density_info.fragmentDensityMapAttachment = {
|
||||
.attachment = (uint32_t)attachments.size(),
|
||||
.layout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
|
||||
};
|
||||
attachments.push_back(vk::AttachmentDescription{
|
||||
.format = vk::Format::eR8G8Unorm,
|
||||
.samples = vk::SampleCountFlagBits::e1,
|
||||
.loadOp = vk::AttachmentLoadOp::eLoad,
|
||||
.storeOp = vk::AttachmentStoreOp::eDontCare,
|
||||
.initialLayout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
|
||||
.finalLayout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
|
||||
});
|
||||
}
|
||||
else
|
||||
info.unlink<vk::RenderPassFragmentDensityMapCreateInfoEXT>();
|
||||
|
||||
info.get().setAttachments(attachments);
|
||||
|
||||
vk::SubpassDescription subpasses{
|
||||
@@ -573,27 +550,6 @@ scene_renderer::output_image scene_renderer::create_output_image_data(const outp
|
||||
});
|
||||
}
|
||||
|
||||
if (info.renderpass.fragment_density_map)
|
||||
{
|
||||
assert(info.foveation != VK_NULL_HANDLE);
|
||||
|
||||
out.foveation_view = vk::raii::ImageView(
|
||||
device,
|
||||
vk::ImageViewCreateInfo{
|
||||
.image = info.foveation,
|
||||
.viewType = vk::ImageViewType::e2DArray,
|
||||
.format = vk::Format::eR8G8Unorm,
|
||||
.components{},
|
||||
.subresourceRange = {
|
||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||
.baseMipLevel = 0,
|
||||
.levelCount = 1,
|
||||
.baseArrayLayer = 0,
|
||||
.layerCount = info.renderpass.multiview_count,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
vk::FramebufferCreateInfo fb_info{
|
||||
.renderPass = *get_renderpass(info.renderpass).renderpass,
|
||||
.width = info.output_size.width,
|
||||
@@ -618,9 +574,6 @@ scene_renderer::output_image scene_renderer::create_output_image_data(const outp
|
||||
|
||||
attachments[rp.depth_attachment.attachment] = vk::ImageView{*out.depth_view};
|
||||
|
||||
if (rp.fragment_density_attachment)
|
||||
attachments[rp.fragment_density_attachment->attachment] = vk::ImageView{*out.foveation_view};
|
||||
|
||||
fb_info.setAttachments(attachments);
|
||||
out.framebuffer = vk::raii::Framebuffer(device, fb_info);
|
||||
return out;
|
||||
@@ -911,7 +864,6 @@ void scene_renderer::render(
|
||||
vk::Format depth_format,
|
||||
vk::Image color_buffer,
|
||||
vk::Image depth_buffer,
|
||||
vk::Image foveation_image,
|
||||
std::span<frame_info> frames,
|
||||
bool render_debug_draws)
|
||||
{
|
||||
@@ -964,7 +916,6 @@ void scene_renderer::render(
|
||||
.keep_depth_buffer = depth_buffer != vk::Image{},
|
||||
.msaa_samples = vk::SampleCountFlagBits::e1,
|
||||
// .msaa_samples = vk::SampleCountFlagBits::e4, // FIXME: MSAA does not work
|
||||
.fragment_density_map = foveation_image != vk::Image{},
|
||||
.multiview_count = (uint32_t)frames.size(),
|
||||
};
|
||||
vk::raii::RenderPass & renderpass = get_renderpass(rp_info).renderpass;
|
||||
@@ -1060,7 +1011,6 @@ void scene_renderer::render(
|
||||
.output_size = output_size,
|
||||
.color = color_buffer,
|
||||
.depth = depth_buffer,
|
||||
.foveation = foveation_image,
|
||||
});
|
||||
|
||||
vk::DeviceSize frame_ubo_offset = resources.uniform_buffer_offset;
|
||||
|
||||
@@ -44,7 +44,6 @@ struct renderpass_info
|
||||
vk::Format depth_format;
|
||||
bool keep_depth_buffer;
|
||||
vk::SampleCountFlagBits msaa_samples = vk::SampleCountFlagBits::e1;
|
||||
bool fragment_density_map;
|
||||
uint32_t multiview_count;
|
||||
|
||||
bool operator==(const renderpass_info & other) const noexcept = default;
|
||||
@@ -81,7 +80,6 @@ struct output_image_info
|
||||
vk::Extent2D output_size;
|
||||
VkImage color;
|
||||
VkImage depth;
|
||||
VkImage foveation;
|
||||
|
||||
bool operator==(const output_image_info & other) const noexcept = default;
|
||||
};
|
||||
@@ -127,8 +125,6 @@ class scene_renderer
|
||||
|
||||
image_allocation multisample_image;
|
||||
vk::raii::ImageView multisample_view = nullptr;
|
||||
|
||||
vk::raii::ImageView foveation_view = nullptr;
|
||||
};
|
||||
|
||||
struct renderpass
|
||||
@@ -279,7 +275,6 @@ public:
|
||||
vk::Format depth_format,
|
||||
vk::Image color_buffer,
|
||||
vk::Image depth_buffer,
|
||||
vk::Image foveation_image,
|
||||
std::span<frame_info> info,
|
||||
bool render_debug_draws = false);
|
||||
void end_frame();
|
||||
|
||||
+7
-51
@@ -155,7 +155,6 @@ void scene::render_world(
|
||||
bool keep_depth_buffer,
|
||||
uint32_t layer_mask,
|
||||
XrColor4f clear_color,
|
||||
const std::optional<xr::foveation_profile> & foveation,
|
||||
bool render_debug_draws)
|
||||
{
|
||||
assert(views.size() <= layer::max_views);
|
||||
@@ -163,14 +162,13 @@ void scene::render_world(
|
||||
beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, layer::max_views> composition_layer_color;
|
||||
beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, layer::max_views> composition_layer_depth;
|
||||
|
||||
auto [color_swapchain, color_image, foveation_image] = [&]() -> std::tuple<XrSwapchain, vk::Image, vk::Image> {
|
||||
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size(), foveation);
|
||||
auto [color_swapchain, color_image] = [&]() -> std::tuple<XrSwapchain, vk::Image> {
|
||||
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size());
|
||||
|
||||
int color_image_index = color_swapchain.acquire();
|
||||
vk::Image color_image = color_swapchain.images()[color_image_index].image;
|
||||
vk::Image foveation_image = color_swapchain.images()[color_image_index].foveation;
|
||||
vk::Image color_image = color_swapchain.image(color_image_index);
|
||||
color_swapchain.wait();
|
||||
return {color_swapchain, color_image, foveation_image};
|
||||
return {color_swapchain, color_image};
|
||||
}();
|
||||
|
||||
auto [depth_swapchain, depth_image] = [&]() -> std::pair<XrSwapchain, vk::Image> {
|
||||
@@ -179,7 +177,7 @@ void scene::render_world(
|
||||
xr::swapchain & depth_swapchain = get_swapchain(depth_format, width, height, 1, views.size());
|
||||
|
||||
int depth_image_index = depth_swapchain.acquire();
|
||||
vk::Image depth_image = depth_swapchain.images()[depth_image_index].image;
|
||||
vk::Image depth_image = depth_swapchain.image(depth_image_index);
|
||||
depth_swapchain.wait();
|
||||
return {depth_swapchain, depth_image};
|
||||
}
|
||||
@@ -240,7 +238,6 @@ void scene::render_world(
|
||||
depth_format,
|
||||
color_image,
|
||||
depth_image,
|
||||
foveation_image,
|
||||
frames,
|
||||
render_debug_draws);
|
||||
|
||||
@@ -251,41 +248,10 @@ void scene::render_world(
|
||||
composition_layer_depth);
|
||||
}
|
||||
|
||||
xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size, const std::optional<xr::foveation_profile> & foveation)
|
||||
xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size)
|
||||
{
|
||||
XrFoveationProfileFB foveation_profile = XR_NULL_HANDLE;
|
||||
XrFoveationLevelFB foveation_level = XR_FOVEATION_LEVEL_NONE_FB;
|
||||
float foveation_vertical_offset_degrees = 0;
|
||||
bool foveation_dynamic = false;
|
||||
|
||||
if (foveation)
|
||||
{
|
||||
foveation_profile = *foveation;
|
||||
foveation_level = foveation->level();
|
||||
foveation_vertical_offset_degrees = foveation->vertical_offset_degrees();
|
||||
foveation_dynamic = foveation->dynamic();
|
||||
}
|
||||
|
||||
// Look for an exact match
|
||||
for (swapchain_entry & entry: swapchains)
|
||||
{
|
||||
if (not entry.used and
|
||||
entry.format == format and
|
||||
entry.width == width and
|
||||
entry.height == height and
|
||||
entry.sample_count == sample_count and
|
||||
entry.array_size == array_size and
|
||||
entry.foveation_level == foveation_level and
|
||||
entry.foveation_vertical_offset_degrees == foveation_vertical_offset_degrees and
|
||||
entry.foveation_dynamic == foveation_dynamic)
|
||||
{
|
||||
entry.used = true;
|
||||
return entry.swapchain;
|
||||
}
|
||||
}
|
||||
|
||||
// Look for a swapchain with a different foveation profile
|
||||
for (swapchain_entry & entry: swapchains)
|
||||
{
|
||||
if (not entry.used and
|
||||
entry.format == format and
|
||||
@@ -294,13 +260,7 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
|
||||
entry.sample_count == sample_count and
|
||||
entry.array_size == array_size)
|
||||
{
|
||||
spdlog::info("Updating swapchain foveation profile to {}, {:.1f} deg", magic_enum::enum_name(foveation_level), foveation_vertical_offset_degrees);
|
||||
entry.foveation_level = foveation_level;
|
||||
entry.foveation_vertical_offset_degrees = foveation_vertical_offset_degrees;
|
||||
entry.foveation_dynamic = foveation_dynamic;
|
||||
|
||||
entry.used = true;
|
||||
entry.swapchain.update_foveation(*foveation);
|
||||
return entry.swapchain;
|
||||
}
|
||||
}
|
||||
@@ -312,9 +272,6 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
|
||||
.height = height,
|
||||
.sample_count = sample_count,
|
||||
.array_size = array_size,
|
||||
.foveation_level = foveation_level,
|
||||
.foveation_vertical_offset_degrees = foveation_vertical_offset_degrees,
|
||||
.foveation_dynamic = foveation_dynamic,
|
||||
.used = true,
|
||||
.swapchain = xr::swapchain(
|
||||
instance,
|
||||
@@ -324,8 +281,7 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
|
||||
width,
|
||||
height,
|
||||
sample_count,
|
||||
array_size,
|
||||
foveation_profile)};
|
||||
array_size)};
|
||||
spdlog::info("Created swapchain");
|
||||
|
||||
return swapchains.emplace_back(std::move(new_swapchain)).swapchain;
|
||||
|
||||
+1
-7
@@ -24,7 +24,6 @@
|
||||
#include "render/scene_renderer.h"
|
||||
#include "utils/cache.h"
|
||||
#include "xr/actionset.h"
|
||||
#include "xr/foveation_profile.h"
|
||||
#include "xr/instance.h"
|
||||
#include "xr/session.h"
|
||||
#include "xr/swapchain.h"
|
||||
@@ -156,17 +155,13 @@ protected:
|
||||
int sample_count;
|
||||
uint32_t array_size;
|
||||
|
||||
XrFoveationLevelFB foveation_level;
|
||||
float foveation_vertical_offset_degrees;
|
||||
bool foveation_dynamic;
|
||||
|
||||
bool used;
|
||||
xr::swapchain swapchain;
|
||||
};
|
||||
std::vector<swapchain_entry> swapchains;
|
||||
|
||||
// The returned reference is valid until the next call to get_swapchain
|
||||
xr::swapchain & get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size, const std::optional<xr::foveation_profile> & foveation = std::nullopt);
|
||||
xr::swapchain & get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size);
|
||||
void clear_swapchains();
|
||||
|
||||
void render_start(bool passthrough, XrTime predicted_display_time);
|
||||
@@ -194,7 +189,6 @@ protected:
|
||||
bool keep_depth_buffer,
|
||||
uint32_t layer_mask,
|
||||
XrColor4f clear_color,
|
||||
const std::optional<xr::foveation_profile> & foveation = std::nullopt,
|
||||
bool render_debug_draws = false);
|
||||
|
||||
void set_color_scale_bias(XrColor4f scale, XrColor4f bias);
|
||||
|
||||
@@ -103,14 +103,6 @@ app_launcher::app_launcher(
|
||||
default_icon = textures.load_texture("assets://default_icon.ktx2");
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@@ -50,7 +50,6 @@ class app_launcher
|
||||
|
||||
public:
|
||||
app_launcher(scenes::stream &, std::string server_name);
|
||||
~app_launcher();
|
||||
enum clicked
|
||||
{
|
||||
None,
|
||||
|
||||
+17
-29
@@ -157,15 +157,6 @@ scenes::lobby::lobby() :
|
||||
else
|
||||
spdlog::info("Composition layer color scale/bias NOT supported");
|
||||
|
||||
if (instance.has_extension(XR_FB_FOVEATION_VULKAN_EXTENSION_NAME) and
|
||||
instance.has_extension(XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME))
|
||||
{
|
||||
spdlog::info("Foveation image supported");
|
||||
foveation = xr::foveation_profile(instance, session, XR_FOVEATION_LEVEL_NONE_FB, -10, false);
|
||||
}
|
||||
else
|
||||
spdlog::info("Foveation image NOT supported");
|
||||
|
||||
if (std::getenv("WIVRN_AUTOCONNECT"))
|
||||
force_autoconnect = true;
|
||||
|
||||
@@ -350,12 +341,7 @@ std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover:
|
||||
|
||||
void scenes::lobby::update_server_list()
|
||||
{
|
||||
if (application::is_focused() && !discover)
|
||||
discover.emplace();
|
||||
else if (!application::is_focused() && discover)
|
||||
discover.reset();
|
||||
|
||||
if (!discover)
|
||||
if (not discover)
|
||||
return;
|
||||
|
||||
std::vector<wivrn_discover::service> discovered_services = discover->get_services();
|
||||
@@ -882,10 +868,19 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
|
||||
if (next_scene)
|
||||
{
|
||||
if (!next_scene->alive())
|
||||
next_scene.reset();
|
||||
else if (next_scene->current_state() == scenes::stream::state::streaming)
|
||||
application::push_scene(next_scene);
|
||||
switch (next_scene->current_state())
|
||||
{
|
||||
case scenes::stream::state::streaming:
|
||||
application::push_scene(next_scene);
|
||||
break;
|
||||
|
||||
case scenes::stream::state::shutdown:
|
||||
current_tab = tab::server_list;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
update_server_list();
|
||||
@@ -1065,7 +1060,6 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
composition_layer_depth_test_supported,
|
||||
composition_layer_depth_test_supported ? layer_lobby | layer_controllers : layer_lobby,
|
||||
clear_color,
|
||||
foveation,
|
||||
true);
|
||||
|
||||
if (composition_layer_depth_test_supported)
|
||||
@@ -1096,8 +1090,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
|
||||
height,
|
||||
composition_layer_depth_test_supported,
|
||||
composition_layer_depth_test_supported ? layer_rays : layer_rays | layer_controllers,
|
||||
{0, 0, 0, 0},
|
||||
foveation);
|
||||
{0, 0, 0, 0});
|
||||
|
||||
if (composition_layer_depth_test_supported)
|
||||
set_depth_test(true, XR_COMPARE_OP_LESS_OR_EQUAL_FB);
|
||||
@@ -1269,8 +1262,6 @@ void scenes::lobby::on_focused()
|
||||
vps,
|
||||
image_cache);
|
||||
|
||||
supported_codecs = wivrn::decoder::supported_codecs();
|
||||
|
||||
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||
auto tm = std::localtime(&t);
|
||||
switch (tm->tm_mon)
|
||||
@@ -1329,8 +1320,8 @@ void scenes::lobby::on_focused()
|
||||
std::ranges::sort(local_environments, std::less{});
|
||||
|
||||
setup_passthrough();
|
||||
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
|
||||
multicast = application::get_wifi_lock().get_multicast_lock();
|
||||
discover.emplace();
|
||||
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
@@ -1362,7 +1353,6 @@ void scenes::lobby::on_unfocused()
|
||||
right_hand.reset();
|
||||
face_tracker.emplace<std::monostate>();
|
||||
|
||||
clear_swapchains();
|
||||
multicast.reset();
|
||||
}
|
||||
|
||||
@@ -1371,9 +1361,7 @@ void scenes::lobby::on_xr_event(const xr::event & event)
|
||||
switch (event.header.type)
|
||||
{
|
||||
case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED:
|
||||
if (event.state_changed.state == XR_SESSION_STATE_STOPPING)
|
||||
discover.reset();
|
||||
else if (event.state_changed.state == XR_SESSION_STATE_FOCUSED)
|
||||
if (event.state_changed.state == XR_SESSION_STATE_FOCUSED)
|
||||
autoconnect_enabled = true;
|
||||
recenter_gui = true;
|
||||
break;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_discover.h"
|
||||
#include "xr/face_tracker.h"
|
||||
#include "xr/foveation_profile.h"
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
@@ -79,8 +78,6 @@ class lobby : public scene_impl<lobby>
|
||||
|
||||
xr::face_tracker face_tracker;
|
||||
|
||||
std::optional<xr::foveation_profile> foveation;
|
||||
|
||||
std::string selected_item;
|
||||
std::unique_ptr<utils::mapped_file> license;
|
||||
|
||||
@@ -135,8 +132,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
|
||||
|
||||
std::vector<wivrn::video_codec> supported_codecs;
|
||||
|
||||
ImTextureID about_picture;
|
||||
|
||||
virtual_keyboard keyboard;
|
||||
@@ -224,6 +219,7 @@ class lobby : public scene_impl<lobby>
|
||||
void gui_connecting(locked_notifiable<pin_request_data> & request);
|
||||
void gui_enter_pin(locked_notifiable<pin_request_data> & request);
|
||||
void gui_connected(XrTime predicted_display_time);
|
||||
void gui_disconnected();
|
||||
void gui_server_list();
|
||||
void gui_new_server();
|
||||
void gui_settings();
|
||||
|
||||
+54
-36
@@ -249,11 +249,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & pin_requ
|
||||
|
||||
void scenes::lobby::gui_connected(XrTime predicted_display_time)
|
||||
{
|
||||
if (not next_scene)
|
||||
{
|
||||
current_tab = tab::server_list;
|
||||
return;
|
||||
}
|
||||
assert(next_scene);
|
||||
|
||||
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
|
||||
{
|
||||
@@ -262,6 +258,42 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_disconnected()
|
||||
{
|
||||
using constants::style::button_size;
|
||||
std::string close_button_label = _("Close");
|
||||
|
||||
if (!async_error)
|
||||
{
|
||||
async_error = next_scene->pop_stream_error();
|
||||
|
||||
if (!async_error)
|
||||
{
|
||||
next_scene.reset();
|
||||
ImGui::CloseCurrentPopup();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::Dummy({1000, 1});
|
||||
|
||||
ImGui::PushFont(nullptr, constants::gui::font_size_large);
|
||||
if (server_name == "")
|
||||
CenterTextH(fmt::format(_F("Disconnected")));
|
||||
else
|
||||
CenterTextH(fmt::format(_F("Disconnected from {}"), server_name));
|
||||
ImGui::PopFont();
|
||||
|
||||
ImGui::Text("%s", async_error->c_str());
|
||||
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - button_size.x - ImGui::GetStyle().WindowPadding.x);
|
||||
|
||||
if (ImGui::Button(close_button_label.c_str(), button_size))
|
||||
{
|
||||
async_error.reset();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
|
||||
void scenes::lobby::gui_new_server()
|
||||
{
|
||||
using constants::style::button_size;
|
||||
@@ -496,8 +528,12 @@ void scenes::lobby::gui_server_list()
|
||||
config.save();
|
||||
}
|
||||
|
||||
// Check if we need to report errors after a disconnect
|
||||
if (next_scene and next_scene->current_state() == scenes::stream::state::shutdown and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
|
||||
ImGui::OpenPopup("disconnected");
|
||||
|
||||
// Check if an automatic connection has started
|
||||
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("connecting"))
|
||||
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
|
||||
ImGui::OpenPopup("connecting");
|
||||
|
||||
const auto & popup_layer = imgui_ctx->layers()[1];
|
||||
@@ -516,6 +552,13 @@ void scenes::lobby::gui_server_list()
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
if (ImGui::BeginPopupModal("disconnected", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
{
|
||||
gui_disconnected();
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
ImGui::SetNextWindowSize({800, 0});
|
||||
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
|
||||
if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
|
||||
@@ -576,10 +619,10 @@ void scenes::lobby::gui_settings()
|
||||
const auto & refresh_rates = session.get_refresh_rates();
|
||||
if (not refresh_rates.empty())
|
||||
{
|
||||
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
|
||||
float active_rate = config.preferred_refresh_rate;
|
||||
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
|
||||
{
|
||||
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
|
||||
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(0);
|
||||
config.preferred_refresh_rate = 0;
|
||||
@@ -589,7 +632,7 @@ void scenes::lobby::gui_settings()
|
||||
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
|
||||
for (float rate: refresh_rates)
|
||||
{
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(rate);
|
||||
config.preferred_refresh_rate = rate;
|
||||
@@ -600,7 +643,7 @@ void scenes::lobby::gui_settings()
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
|
||||
if (active_rate == 0 and refresh_rates.size() > 2)
|
||||
{
|
||||
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
|
||||
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
|
||||
@@ -620,31 +663,6 @@ void scenes::lobby::gui_settings()
|
||||
}
|
||||
}
|
||||
|
||||
if (foveation)
|
||||
{
|
||||
std::array<const char *, 4> foveation_levels = {
|
||||
gettext_noop_context("Foveation level", "None"),
|
||||
gettext_noop_context("Foveation level", "Low"),
|
||||
gettext_noop_context("Foveation level", "Medium"),
|
||||
gettext_noop_context("Foveation level", "High"),
|
||||
};
|
||||
|
||||
if (ImGui::BeginCombo(_S("Foveation level"), _cS("Foveation level", foveation_levels[(int)foveation->level()])))
|
||||
{
|
||||
for (int level = 0; level < foveation_levels.size(); level++)
|
||||
{
|
||||
if (ImGui::Selectable(_cS("Foveation level", foveation_levels[level]), (int)foveation->level() == level))
|
||||
{
|
||||
foveation = xr::foveation_profile{instance, session, (XrFoveationLevelFB)level, -10, false};
|
||||
// TODO save in configuration
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
|
||||
// Render resolution
|
||||
{
|
||||
const auto current = config.resolution_scale;
|
||||
@@ -729,7 +747,7 @@ void scenes::lobby::gui_settings()
|
||||
config.codec = std::nullopt;
|
||||
config.save();
|
||||
}
|
||||
for (auto codec: supported_codecs)
|
||||
for (auto codec: decoder::supported_codecs())
|
||||
{
|
||||
// don't show raw in GUI
|
||||
if (codec == wivrn::raw)
|
||||
|
||||
@@ -283,7 +283,6 @@ void scenes::lobby::update_file_picker()
|
||||
vk::Format::eD32Sfloat, // Depth format
|
||||
output, // Output image
|
||||
vk::Image{}, // Depth image
|
||||
vk::Image{}, // Foveation image
|
||||
{&frame, 1}, // View info
|
||||
false);
|
||||
local_renderer.end_frame();
|
||||
|
||||
+110
-87
@@ -36,7 +36,6 @@
|
||||
#include "hardware.h"
|
||||
#include "inplace_vector.hpp"
|
||||
#include "spdlog/spdlog.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/named_thread.h"
|
||||
#include "utils/ranges.h"
|
||||
#include "wivrn_packets.h"
|
||||
@@ -233,20 +232,8 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
if (self->instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
|
||||
{
|
||||
info.available_refresh_rates = self->session.get_refresh_rates();
|
||||
// I can't find anything in specification the ensures it won't be empty
|
||||
if (not info.available_refresh_rates.empty())
|
||||
{
|
||||
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(info.available_refresh_rates, *config.preferred_refresh_rate)))
|
||||
{
|
||||
info.settings.preferred_refresh_rate = *config.preferred_refresh_rate;
|
||||
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Default to highest refresh rate
|
||||
info.settings.preferred_refresh_rate = info.available_refresh_rates.back();
|
||||
}
|
||||
}
|
||||
info.settings.preferred_refresh_rate = config.preferred_refresh_rate;
|
||||
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
|
||||
}
|
||||
|
||||
if (info.available_refresh_rates.empty())
|
||||
@@ -261,6 +248,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
info.hand_tracking = config.check_feature(feature::hand_tracking);
|
||||
info.eye_gaze = config.check_feature(feature::eye_gaze);
|
||||
|
||||
if (self->instance.has_extension(XR_EXT_USER_PRESENCE_EXTENSION_NAME))
|
||||
{
|
||||
info.user_presence = self->system.user_presence_properties().supportsUserPresence;
|
||||
}
|
||||
|
||||
if (config.check_feature(feature::face_tracking))
|
||||
{
|
||||
switch (self->system.face_tracker_supported())
|
||||
@@ -330,6 +322,9 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
||||
self->network_session->send_control(from_headset::session_state_changed{
|
||||
.state = application::get_session_state(),
|
||||
});
|
||||
self->network_session->send_control(from_headset::stream_tab_changed{
|
||||
.tab = self->gui_status,
|
||||
});
|
||||
|
||||
if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME))
|
||||
{
|
||||
@@ -516,9 +511,6 @@ void scenes::stream::on_focused()
|
||||
foveation_ok = get_action("foveation_ok").first;
|
||||
foveation_cancel = get_action("foveation_cancel").first;
|
||||
|
||||
assert(video_stream_description);
|
||||
std::unique_lock lock(decoder_mutex);
|
||||
|
||||
if (application::get_config().high_power_mode)
|
||||
{
|
||||
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
|
||||
@@ -536,7 +528,6 @@ void scenes::stream::on_unfocused()
|
||||
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets;
|
||||
world.clear();
|
||||
input.reset();
|
||||
clear_swapchains();
|
||||
left_hand.reset();
|
||||
right_hand.reset();
|
||||
apps.reset();
|
||||
@@ -575,7 +566,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
|
||||
|
||||
if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty()))
|
||||
{
|
||||
state_ = state::streaming;
|
||||
set_state(state::streaming);
|
||||
spdlog::info("Stream scene ready at t={}", instance.now());
|
||||
}
|
||||
}
|
||||
@@ -682,28 +673,51 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
|
||||
|
||||
std::shared_ptr<shard_accumulator::blit_handle> scenes::stream::accumulator_images::frame(uint64_t id) const
|
||||
{
|
||||
for (auto it = latest_frames.rbegin(); it != latest_frames.rend(); ++it)
|
||||
{
|
||||
if (not *it)
|
||||
continue;
|
||||
|
||||
if ((*it)->feedback.frame_index != id)
|
||||
continue;
|
||||
|
||||
return *it;
|
||||
}
|
||||
return nullptr;
|
||||
auto & frame = latest_frames[id % latest_frames.size()];
|
||||
if (frame and frame->feedback.frame_index != id)
|
||||
return nullptr;
|
||||
return frame;
|
||||
}
|
||||
|
||||
void scenes::stream::update_gui_position(xr::spaces controller)
|
||||
{
|
||||
auto aim = application::locate_controller(
|
||||
application::space(controller),
|
||||
application::space(xr::spaces::view),
|
||||
predicted_display_time);
|
||||
std::optional<std::pair<glm::vec3, glm::quat>> aim;
|
||||
|
||||
if (not aim)
|
||||
return;
|
||||
switch (guess_model())
|
||||
{
|
||||
case model::pico_4:
|
||||
case model::pico_4s:
|
||||
case model::pico_4_pro:
|
||||
case model::pico_4_enterprise: {
|
||||
// Pico fails to find its controllers within view space, so use the head position in
|
||||
// world space as a reference
|
||||
aim = application::locate_controller(
|
||||
application::space(controller),
|
||||
application::space(xr::spaces::world),
|
||||
predicted_display_time);
|
||||
|
||||
auto head_position = application::locate_controller(application::space(xr::spaces::view),
|
||||
application::space(xr::spaces::world),
|
||||
predicted_display_time);
|
||||
if (not aim || not head_position)
|
||||
return;
|
||||
|
||||
aim->first = glm::conjugate(head_position->second) * (aim->first - head_position->first);
|
||||
aim->second = glm::conjugate(head_position->second) * aim->second;
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
aim = application::locate_controller(
|
||||
application::space(controller),
|
||||
application::space(xr::spaces::view),
|
||||
predicted_display_time);
|
||||
|
||||
if (not aim)
|
||||
return;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
auto [offset_position, offset_orientation] = input->offset[controller];
|
||||
|
||||
@@ -748,40 +762,44 @@ void scenes::stream::update_gui_position(xr::spaces controller)
|
||||
}
|
||||
}
|
||||
|
||||
bool scenes::stream::is_gui_interactable() const
|
||||
bool scenes::stream::is_interactable(stream_tab tab)
|
||||
{
|
||||
switch (gui_status)
|
||||
switch (tab)
|
||||
{
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::applications:
|
||||
case stream_tab::application_launcher:
|
||||
return true;
|
||||
|
||||
case gui_status::hidden:
|
||||
case gui_status::overlay_only:
|
||||
case gui_status::compact:
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::overlay_only:
|
||||
case stream_tab::compact:
|
||||
return false;
|
||||
}
|
||||
spdlog::warn("Invalid tab value {}", int(tab));
|
||||
return false;
|
||||
}
|
||||
|
||||
assert(false);
|
||||
__builtin_unreachable();
|
||||
bool scenes::stream::is_gui_interactable() const
|
||||
{
|
||||
return is_interactable(gui_status);
|
||||
}
|
||||
|
||||
void scenes::stream::render(const XrFrameState & frame_state)
|
||||
{
|
||||
if (exiting)
|
||||
if (state_ == state::shutdown)
|
||||
application::pop_scene();
|
||||
|
||||
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod;
|
||||
display_time_phase = frame_state.predictedDisplayPeriod ? frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod : 0;
|
||||
display_time_period = frame_state.predictedDisplayPeriod;
|
||||
real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod;
|
||||
last_display_time = frame_state.predictedDisplayTime;
|
||||
|
||||
std::shared_lock lock(decoder_mutex);
|
||||
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting)
|
||||
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or state_ == state::shutdown)
|
||||
{
|
||||
// TODO: stop/restart video stream
|
||||
session.begin_frame();
|
||||
@@ -797,7 +815,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
.variant = application::get_messages_info().variant,
|
||||
});
|
||||
|
||||
gui_status = stream::gui_status::hidden;
|
||||
next_gui_status = stream_tab::hidden;
|
||||
application::pop_scene();
|
||||
}
|
||||
|
||||
@@ -861,7 +879,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
blit_handle->feedback.blitted = instance.now();
|
||||
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
|
||||
state_ = stream::state::stalled;
|
||||
set_state(state::stalled);
|
||||
++blit_handle->feedback.times_displayed;
|
||||
blit_handle->feedback.displayed = frame_state.predictedDisplayTime;
|
||||
|
||||
@@ -1033,17 +1051,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
{
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::hidden:
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::compact:
|
||||
case gui_status::overlay_only:
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::compact:
|
||||
case stream_tab::overlay_only:
|
||||
dimming = dimming - frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
|
||||
break;
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::applications:
|
||||
case stream_tab::application_launcher:
|
||||
dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
|
||||
break;
|
||||
}
|
||||
@@ -1124,23 +1142,14 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
if (state_1.currentState and state_2.currentState and (state_1.changedSinceLastSync or state_2.changedSinceLastSync))
|
||||
{
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::hidden:
|
||||
case gui_status::compact:
|
||||
case gui_status::overlay_only:
|
||||
gui_status = next_gui_status;
|
||||
break;
|
||||
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
gui_status = gui_status::hidden;
|
||||
break;
|
||||
}
|
||||
// Arbitraty transitions can happen from network commands
|
||||
// Ensure we can't have a set of 2 non interactable states
|
||||
if (is_gui_interactable())
|
||||
next_gui_status = stream_tab::hidden;
|
||||
else if (is_interactable(stored_gui_status))
|
||||
next_gui_status = stored_gui_status;
|
||||
else
|
||||
next_gui_status = stream_tab::applications;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1149,15 +1158,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
|
||||
void scenes::stream::exit()
|
||||
{
|
||||
exiting = true;
|
||||
state_ = state::shutdown;
|
||||
}
|
||||
|
||||
void scenes::stream::setup(const to_headset::video_stream_description & description)
|
||||
{
|
||||
session.set_refresh_rate(description.fps);
|
||||
|
||||
spdlog::info("Creating decoders, size {}x{}", description.width, description.height);
|
||||
std::unique_lock lock(decoder_mutex);
|
||||
if (video_stream_description == description)
|
||||
return;
|
||||
spdlog::info("Creating decoders, size {}x{}", description.width, description.height);
|
||||
video_stream_description = description;
|
||||
|
||||
for (const auto & [stream_index, item]: utils::enumerate(decoders))
|
||||
@@ -1166,6 +1177,9 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
|
||||
.decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, queue_family_index, description, shared_from_this(), stream_index),
|
||||
};
|
||||
}
|
||||
|
||||
if (defoveator)
|
||||
defoveator->reset_pipelines();
|
||||
}
|
||||
|
||||
void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint32_t swapchain_height)
|
||||
@@ -1187,14 +1201,11 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
|
||||
|
||||
spdlog::info("Initializing reprojector");
|
||||
vk::Extent2D extent = {(uint32_t)swapchain.width(), (uint32_t)swapchain.height()};
|
||||
std::vector<vk::Image> swapchain_images;
|
||||
for (auto & image: swapchain.images())
|
||||
swapchain_images.push_back(image.image);
|
||||
|
||||
defoveator.emplace(
|
||||
device,
|
||||
physical_device,
|
||||
swapchain_images,
|
||||
swapchain.images(),
|
||||
extent,
|
||||
swapchain.format());
|
||||
}
|
||||
@@ -1274,6 +1285,18 @@ scene::meta & scenes::stream::get_meta_scene()
|
||||
return m;
|
||||
}
|
||||
|
||||
std::optional<std::string> scenes::stream::pop_stream_error()
|
||||
{
|
||||
auto queue = stream_error_queue.lock();
|
||||
if (queue->empty())
|
||||
return std::nullopt;
|
||||
|
||||
auto err = std::make_optional(queue->front());
|
||||
queue->pop();
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
void scenes::stream::on_xr_event(const xr::event & event)
|
||||
{
|
||||
switch (event.header.type)
|
||||
|
||||
+32
-22
@@ -32,6 +32,7 @@
|
||||
#include "wivrn_packets.h"
|
||||
#include "xr/space.h"
|
||||
#include <mutex>
|
||||
#include <queue>
|
||||
#include <shared_mutex>
|
||||
#include <thread>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
@@ -45,7 +46,8 @@ public:
|
||||
{
|
||||
initializing,
|
||||
streaming,
|
||||
stalled
|
||||
stalled,
|
||||
shutdown,
|
||||
};
|
||||
static const size_t image_buffer_size = 3;
|
||||
|
||||
@@ -72,7 +74,6 @@ private:
|
||||
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time);
|
||||
|
||||
std::unique_ptr<wivrn_session> network_session;
|
||||
std::atomic<bool> exiting = false;
|
||||
std::thread network_thread;
|
||||
thread_safe<to_headset::tracking_control> tracking_control{};
|
||||
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
|
||||
@@ -104,7 +105,16 @@ private:
|
||||
std::unordered_multimap<device_id, haptics_action> haptics_actions;
|
||||
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
|
||||
|
||||
state state_ = state::initializing;
|
||||
std::atomic<state> state_ = state::initializing;
|
||||
|
||||
void set_state(state new_state)
|
||||
{
|
||||
state prev = state_;
|
||||
if (prev == state::shutdown)
|
||||
return;
|
||||
|
||||
state_.compare_exchange_strong(prev, new_state);
|
||||
}
|
||||
|
||||
xr::swapchain swapchain;
|
||||
|
||||
@@ -121,27 +131,28 @@ private:
|
||||
uint32_t height;
|
||||
|
||||
std::optional<imgui_context> imgui_ctx;
|
||||
enum class gui_status
|
||||
struct gui_toast
|
||||
{
|
||||
hidden,
|
||||
overlay_only,
|
||||
compact,
|
||||
stats,
|
||||
settings,
|
||||
bitrate_settings,
|
||||
foveation_settings,
|
||||
applications,
|
||||
application_launcher,
|
||||
std::string content;
|
||||
bool is_urgent = false;
|
||||
};
|
||||
|
||||
static bool is_interactable(stream_tab);
|
||||
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::applications;
|
||||
XrTime gui_status_last_change;
|
||||
// Tab currently being displayed
|
||||
stream_tab gui_status = stream_tab::hidden;
|
||||
// Tab that we will switch to if button is pressed
|
||||
stream_tab stored_gui_status = stream_tab::applications;
|
||||
// Tab that will be displayed on next render()
|
||||
std::atomic<stream_tab> next_gui_status = stream_tab::hidden;
|
||||
float dimming = 0;
|
||||
|
||||
thread_safe<std::optional<gui_toast>> gui_toast;
|
||||
std::atomic<XrTime> gui_status_last_change;
|
||||
|
||||
thread_safe<std::queue<std::string>> stream_error_queue;
|
||||
|
||||
XrAction plots_toggle_1 = XR_NULL_HANDLE;
|
||||
XrAction plots_toggle_2 = XR_NULL_HANDLE;
|
||||
XrAction recenter_left = XR_NULL_HANDLE;
|
||||
@@ -198,6 +209,7 @@ public:
|
||||
void operator()(to_headset::pin_check_2 &&) {};
|
||||
void operator()(to_headset::pin_check_4 &&) {};
|
||||
void operator()(to_headset::handshake &&) {};
|
||||
void operator()(to_headset::server_message &&);
|
||||
void operator()(to_headset::video_stream_data_shard &&);
|
||||
void operator()(to_headset::haptics &&);
|
||||
void operator()(to_headset::timesync_query &&);
|
||||
@@ -206,6 +218,7 @@ public:
|
||||
void operator()(to_headset::audio_stream_description &&);
|
||||
void operator()(to_headset::video_stream_description &&);
|
||||
void operator()(to_headset::refresh_rate_change &&);
|
||||
void operator()(to_headset::stream_tab_change &&);
|
||||
void operator()(to_headset::application_list &&);
|
||||
void operator()(to_headset::application_icon &&);
|
||||
void operator()(to_headset::running_applications &&);
|
||||
@@ -221,14 +234,10 @@ public:
|
||||
}
|
||||
|
||||
void exit();
|
||||
bool alive() const
|
||||
{
|
||||
return !exiting;
|
||||
}
|
||||
|
||||
void start_application(std::string appid);
|
||||
|
||||
static meta & get_meta_scene();
|
||||
std::optional<std::string> pop_stream_error();
|
||||
|
||||
private:
|
||||
void process_packets();
|
||||
@@ -312,6 +321,7 @@ private:
|
||||
void gui_bitrate_settings(float predicted_display_period);
|
||||
void gui_foveation_settings(float predicted_display_period);
|
||||
void gui_applications();
|
||||
void gui_toasts();
|
||||
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
|
||||
};
|
||||
} // namespace scenes
|
||||
|
||||
@@ -283,6 +283,14 @@ stream_defoveator::stream_defoveator(
|
||||
}
|
||||
}
|
||||
|
||||
void stream_defoveator::reset_pipelines()
|
||||
{
|
||||
for (auto & p: pipeline_rgb)
|
||||
p = {};
|
||||
for (auto & p: pipeline_a)
|
||||
p = {};
|
||||
}
|
||||
|
||||
static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p)
|
||||
{
|
||||
// strips are constructed like this:
|
||||
|
||||
@@ -81,6 +81,8 @@ public:
|
||||
|
||||
stream_defoveator(const stream_defoveator &) = delete;
|
||||
|
||||
void reset_pipelines();
|
||||
|
||||
void defoveate(
|
||||
vk::raii::CommandBuffer & command_buffer,
|
||||
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
|
||||
|
||||
+115
-81
@@ -26,7 +26,6 @@
|
||||
#include "imgui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include "implot.h"
|
||||
#include "utils/contains.h"
|
||||
#include "utils/i18n.h"
|
||||
#include "utils/ranges.h"
|
||||
#include <IconsFontAwesome6.h>
|
||||
@@ -384,9 +383,9 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session *
|
||||
from_headset::settings_changed packet{
|
||||
.bitrate_bps = config.bitrate_bps,
|
||||
};
|
||||
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(refresh_rates, *config.preferred_refresh_rate)))
|
||||
if (not refresh_rates.empty())
|
||||
{
|
||||
packet.preferred_refresh_rate = *config.preferred_refresh_rate;
|
||||
packet.preferred_refresh_rate = config.preferred_refresh_rate;
|
||||
packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
|
||||
}
|
||||
else
|
||||
@@ -409,12 +408,11 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
const auto & refresh_rates = session.get_refresh_rates();
|
||||
if (not refresh_rates.empty())
|
||||
{
|
||||
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
|
||||
float active_rate = config.preferred_refresh_rate;
|
||||
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
|
||||
{
|
||||
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
|
||||
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(0);
|
||||
config.preferred_refresh_rate = 0;
|
||||
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
|
||||
config.save();
|
||||
@@ -423,7 +421,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
|
||||
for (float rate: refresh_rates)
|
||||
{
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
|
||||
{
|
||||
session.set_refresh_rate(rate);
|
||||
config.preferred_refresh_rate = rate;
|
||||
@@ -435,7 +433,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
|
||||
if (active_rate == 0 and refresh_rates.size() > 2)
|
||||
{
|
||||
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
|
||||
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
|
||||
@@ -464,7 +462,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
ImGui::SameLine(0.f, 10.f);
|
||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (size.y / 4.f) - style.FramePadding.y * 3.f);
|
||||
if (ImGui::Button(fmt::format("{}Mbit/s", config.bitrate_bps / 1'000'000).c_str()))
|
||||
gui_status = gui_status::bitrate_settings;
|
||||
next_gui_status = stream_tab::bitrate_settings;
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Click to adjust bitrate"));
|
||||
@@ -556,7 +554,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::Button(_S("Change")))
|
||||
gui_status = gui_status::foveation_settings;
|
||||
next_gui_status = stream_tab::foveation_settings;
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
ImGui::EndDisabled();
|
||||
@@ -602,7 +600,7 @@ void scenes::stream::gui_bitrate_settings(float predicted_display_period)
|
||||
if (ok)
|
||||
{
|
||||
config.save();
|
||||
gui_status = gui_status::settings;
|
||||
next_gui_status = stream_tab::settings;
|
||||
}
|
||||
|
||||
send_settings_changed_packet(session, network_session.get(), application::get_config(), predicted_display_period);
|
||||
@@ -631,7 +629,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
|
||||
|
||||
if (ok)
|
||||
{
|
||||
gui_status = gui_status::settings;
|
||||
next_gui_status = stream_tab::settings;
|
||||
|
||||
// Save settings
|
||||
auto & config = application::get_config();
|
||||
@@ -642,7 +640,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
|
||||
}
|
||||
else if (cancel)
|
||||
{
|
||||
gui_status = gui_status::settings;
|
||||
next_gui_status = stream_tab::settings;
|
||||
|
||||
// Restore settings
|
||||
const auto & config = application::get_config();
|
||||
@@ -731,27 +729,58 @@ void scenes::stream::gui_applications()
|
||||
ImGui::PopStyleVar(3);
|
||||
}
|
||||
|
||||
void scenes::stream::gui_toasts()
|
||||
{
|
||||
auto toast = gui_toast.lock();
|
||||
|
||||
if (!toast->has_value())
|
||||
{
|
||||
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::Text("%s", (*toast)->content.c_str());
|
||||
}
|
||||
|
||||
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
|
||||
{
|
||||
if (not(plots_toggle_1 and plots_toggle_2))
|
||||
return;
|
||||
if (auto new_status = next_gui_status.load(); new_status != gui_status)
|
||||
{
|
||||
spdlog::info("Switch tab from {} to {}", magic_enum::enum_name(gui_status), magic_enum::enum_name(new_status));
|
||||
stored_gui_status = gui_status;
|
||||
gui_status = new_status;
|
||||
gui_status_last_change = predicted_display_time;
|
||||
|
||||
// Override session state if the GUI is interactable
|
||||
if (not is_gui_interactable())
|
||||
network_session->send_control(from_headset::session_state_changed{
|
||||
.state = application::get_session_state(),
|
||||
});
|
||||
else if (application::get_session_state() == XR_SESSION_STATE_FOCUSED)
|
||||
network_session->send_control(from_headset::session_state_changed{
|
||||
.state = XR_SESSION_STATE_VISIBLE,
|
||||
});
|
||||
|
||||
network_session->send_control(from_headset::stream_tab_changed{.tab = new_status});
|
||||
}
|
||||
|
||||
bool interactable = true;
|
||||
XrSpace world_space = application::space(xr::spaces::world);
|
||||
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
|
||||
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::hidden:
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case gui_status::overlay_only:
|
||||
case gui_status::compact:
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
case stream_tab::overlay_only:
|
||||
case stream_tab::compact:
|
||||
interactable = false;
|
||||
break;
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::applications:
|
||||
case stream_tab::application_launcher:
|
||||
break;
|
||||
}
|
||||
imgui_ctx->set_controllers_enabled(interactable);
|
||||
@@ -771,33 +800,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
right_hand.reset();
|
||||
}
|
||||
|
||||
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
|
||||
if (not is_gui_interactable())
|
||||
network_session->send_control(from_headset::session_state_changed{
|
||||
.state = application::get_session_state(),
|
||||
});
|
||||
else if (application::get_session_state() == XR_SESSION_STATE_FOCUSED)
|
||||
network_session->send_control(from_headset::session_state_changed{
|
||||
.state = XR_SESSION_STATE_VISIBLE,
|
||||
});
|
||||
}
|
||||
|
||||
float alpha = 1;
|
||||
if (gui_status == gui_status::hidden)
|
||||
bool is_urgent = false;
|
||||
if (gui_status == stream_tab::hidden)
|
||||
{
|
||||
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
|
||||
auto toast = gui_toast.lock();
|
||||
if (toast->has_value())
|
||||
is_urgent = (*toast)->is_urgent;
|
||||
|
||||
alpha = std::clamp<float>(1 - (t - constants::stream::fade_delay) / constants::stream::fade_duration, 0, 1);
|
||||
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
|
||||
float delay = is_urgent ? constants::stream::urgent_fade_delay : constants::stream::fade_delay;
|
||||
|
||||
alpha = std::clamp<float>(1 - (t - delay) / constants::stream::fade_duration, 0, 1);
|
||||
|
||||
if (alpha == 0)
|
||||
{
|
||||
toast->reset();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes
|
||||
@@ -807,24 +827,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
glm::mat3 M = glm::mat3_cast(head_position->second);
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
imgui_ctx->layers()[0].orientation = head_position->second;
|
||||
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance};
|
||||
break;
|
||||
|
||||
case gui_status::hidden:
|
||||
case stream_tab::hidden:
|
||||
// Always use the same position for the GUI shortcut tip
|
||||
imgui_ctx->layers()[0].orientation = head_position->second;
|
||||
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0.0, -0.4, -1.0};
|
||||
break;
|
||||
|
||||
case gui_status::overlay_only:
|
||||
case gui_status::compact:
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case gui_status::application_launcher:
|
||||
case stream_tab::overlay_only:
|
||||
case stream_tab::compact:
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::applications:
|
||||
case stream_tab::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;
|
||||
@@ -844,36 +864,36 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
bool display_tabs, always_auto_resize;
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::overlay_only:
|
||||
case stream_tab::overlay_only:
|
||||
ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
ImGui::SetNextWindowSize(content_size);
|
||||
always_auto_resize = false;
|
||||
display_tabs = false;
|
||||
break;
|
||||
|
||||
case gui_status::hidden:
|
||||
case gui_status::bitrate_settings:
|
||||
case gui_status::foveation_settings:
|
||||
case stream_tab::hidden:
|
||||
case stream_tab::bitrate_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
always_auto_resize = true;
|
||||
display_tabs = false;
|
||||
break;
|
||||
|
||||
case gui_status::compact:
|
||||
case stream_tab::compact:
|
||||
ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
|
||||
always_auto_resize = true;
|
||||
display_tabs = false;
|
||||
break;
|
||||
|
||||
case gui_status::stats:
|
||||
case gui_status::settings:
|
||||
case gui_status::applications:
|
||||
case stream_tab::stats:
|
||||
case stream_tab::settings:
|
||||
case stream_tab::applications:
|
||||
ImGui::SetNextWindowPos(margin_around_window);
|
||||
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
|
||||
always_auto_resize = false;
|
||||
display_tabs = true;
|
||||
break;
|
||||
case gui_status::application_launcher:
|
||||
case stream_tab::application_launcher:
|
||||
ImGui::SetNextWindowPos(margin_around_window);
|
||||
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
|
||||
always_auto_resize = false;
|
||||
@@ -881,6 +901,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
break;
|
||||
}
|
||||
|
||||
if (is_urgent)
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, constants::stream::urgent_border_color);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 4);
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
|
||||
if (always_auto_resize)
|
||||
{
|
||||
@@ -893,58 +919,64 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
|
||||
}
|
||||
|
||||
if (is_urgent)
|
||||
{
|
||||
ImGui::PopStyleColor(1);
|
||||
ImGui::PopStyleVar(1);
|
||||
}
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8});
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
|
||||
|
||||
switch (gui_status)
|
||||
{
|
||||
case gui_status::hidden:
|
||||
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
|
||||
case stream_tab::hidden:
|
||||
gui_toasts();
|
||||
break;
|
||||
|
||||
case gui_status::overlay_only:
|
||||
case stream_tab::overlay_only:
|
||||
ImGui::SetCursorPos({20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
gui_performance_metrics();
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
case gui_status::compact:
|
||||
case stream_tab::compact:
|
||||
gui_compact_view();
|
||||
break;
|
||||
|
||||
case gui_status::stats:
|
||||
case stream_tab::stats:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
gui_performance_metrics();
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
case gui_status::settings:
|
||||
case stream_tab::settings:
|
||||
ImGui::SetCursorPos({tab_width + 20, 20});
|
||||
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
|
||||
gui_settings(predicted_display_period * 1.e-9f);
|
||||
ImGui::EndChild();
|
||||
break;
|
||||
|
||||
case gui_status::bitrate_settings:
|
||||
case stream_tab::bitrate_settings:
|
||||
gui_bitrate_settings(predicted_display_period * 1.e-9f);
|
||||
break;
|
||||
|
||||
case gui_status::foveation_settings:
|
||||
case stream_tab::foveation_settings:
|
||||
gui_foveation_settings(predicted_display_period * 1.e-9f);
|
||||
break;
|
||||
|
||||
case gui_status::applications:
|
||||
case stream_tab::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:
|
||||
case stream_tab::application_launcher:
|
||||
if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None)
|
||||
gui_status = gui_status::applications;
|
||||
next_gui_status = stream_tab::applications;
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding
|
||||
@@ -958,10 +990,11 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10));
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0});
|
||||
auto target = gui_status;
|
||||
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), target, stream_tab::applications, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0}))
|
||||
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), target, stream_tab::application_launcher, {tab_width, 0}))
|
||||
{
|
||||
apps.reset();
|
||||
network_session->send_control(from_headset::get_application_list{
|
||||
@@ -972,22 +1005,22 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), gui_status, gui_status::settings, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), target, stream_tab::settings, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), gui_status, gui_status::stats, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), target, stream_tab::stats, {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);
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), gui_status, gui_status::overlay_only, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), target, stream_tab::overlay_only, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), gui_status, gui_status::compact, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), target, stream_tab::compact, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), gui_status, gui_status::hidden, {tab_width, 0});
|
||||
RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), target, stream_tab::hidden, {tab_width, 0});
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
|
||||
bool dummy = false;
|
||||
@@ -997,6 +1030,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_FramePadding
|
||||
ImGui::EndChild();
|
||||
next_gui_status = target;
|
||||
}
|
||||
ImGui::PopStyleColor(); // ImGuiCol_ChildBg
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ void scenes::stream::process_packets()
|
||||
#ifdef __ANDROID__
|
||||
application::instance().setup_jni();
|
||||
#endif
|
||||
while (not exiting)
|
||||
while (state_ != state::shutdown)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -47,6 +47,28 @@ void scenes::stream::process_packets()
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::server_message && message)
|
||||
{
|
||||
switch (message.kind)
|
||||
{
|
||||
case to_headset::server_message::kind::toast:
|
||||
case to_headset::server_message::kind::toast_urgent: {
|
||||
auto toast = gui_toast.lock();
|
||||
toast->emplace(message.msg, message.kind == to_headset::server_message::kind::toast_urgent);
|
||||
|
||||
gui_status_last_change = instance.now();
|
||||
break;
|
||||
}
|
||||
|
||||
case to_headset::server_message::kind::error: {
|
||||
auto queue = stream_error_queue.lock();
|
||||
queue->emplace(std::move(message.msg));
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
|
||||
{
|
||||
std::shared_lock lock(decoder_mutex);
|
||||
@@ -95,6 +117,11 @@ void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
|
||||
video_stream_description->fps = rate.fps;
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::stream_tab_change && tab)
|
||||
{
|
||||
next_gui_status = tab.tab;
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::timesync_query && query)
|
||||
{
|
||||
network_session->send_stream(from_headset::timesync_response{
|
||||
|
||||
@@ -341,7 +341,7 @@ void scenes::stream::tracking()
|
||||
XrDuration frame_duration;
|
||||
XrTime pattern_begin = instance.now();
|
||||
|
||||
while (not exiting)
|
||||
while (state_ != state::shutdown)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* 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 "foveation_profile.h"
|
||||
#include "xr/instance.h"
|
||||
#include "xr/session.h"
|
||||
|
||||
xr::foveation_profile::foveation_profile(instance & inst, session & s, XrFoveationLevelFB level, float vertical_offset_degrees, bool dynamic) :
|
||||
handle(inst.get_proc<PFN_xrDestroyFoveationProfileFB>("xrDestroyFoveationProfileFB")),
|
||||
level_(level),
|
||||
vertical_offset_degrees_(vertical_offset_degrees),
|
||||
dynamic_(dynamic)
|
||||
{
|
||||
auto create = inst.get_proc<PFN_xrCreateFoveationProfileFB>("xrCreateFoveationProfileFB");
|
||||
XrFoveationLevelProfileCreateInfoFB level_info{
|
||||
.type = XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB,
|
||||
.level = level,
|
||||
.verticalOffset = vertical_offset_degrees,
|
||||
.dynamic = dynamic ? XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB : XR_FOVEATION_DYNAMIC_DISABLED_FB,
|
||||
};
|
||||
XrFoveationProfileCreateInfoFB info{
|
||||
.type = XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB,
|
||||
.next = &level_info,
|
||||
};
|
||||
create(s, &info, &id);
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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 "utils/handle.h"
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
namespace xr
|
||||
{
|
||||
class instance;
|
||||
class session;
|
||||
class foveation_profile : public utils::handle<XrFoveationProfileFB>
|
||||
{
|
||||
XrFoveationLevelFB level_;
|
||||
float vertical_offset_degrees_;
|
||||
bool dynamic_;
|
||||
|
||||
public:
|
||||
foveation_profile(instance & inst, session & s, XrFoveationLevelFB level, float vertical_offset_degrees, bool dynamic);
|
||||
|
||||
bool operator==(const foveation_profile & other) const
|
||||
{
|
||||
return level_ == other.level_ and vertical_offset_degrees_ == other.vertical_offset_degrees_ and dynamic_ == other.dynamic_;
|
||||
}
|
||||
|
||||
XrFoveationLevelFB level() const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
float vertical_offset_degrees() const
|
||||
{
|
||||
return vertical_offset_degrees_;
|
||||
}
|
||||
|
||||
bool dynamic() const
|
||||
{
|
||||
return dynamic_;
|
||||
}
|
||||
};
|
||||
} // namespace xr
|
||||
+5
-41
@@ -30,16 +30,13 @@ xr::swapchain::swapchain(
|
||||
int32_t width,
|
||||
int32_t height,
|
||||
int sample_count,
|
||||
uint32_t array_size,
|
||||
XrFoveationProfileFB foveated) :
|
||||
uint32_t array_size) :
|
||||
width_(width),
|
||||
height_(height),
|
||||
sample_count_(sample_count),
|
||||
format_(format)
|
||||
{
|
||||
assert(sample_count == 1);
|
||||
if (foveated)
|
||||
update = inst.get_proc<PFN_xrUpdateSwapchainFB>("xrUpdateSwapchainFB");
|
||||
|
||||
XrSwapchainUsageFlags usage_flags;
|
||||
|
||||
@@ -58,14 +55,8 @@ xr::swapchain::swapchain(
|
||||
break;
|
||||
}
|
||||
|
||||
XrSwapchainCreateInfoFoveationFB foveation_info{
|
||||
.type = XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB,
|
||||
.flags = XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB,
|
||||
};
|
||||
|
||||
XrSwapchainCreateInfo create_info{
|
||||
.type = XR_TYPE_SWAPCHAIN_CREATE_INFO,
|
||||
.next = foveated ? &foveation_info : nullptr,
|
||||
.createFlags = 0,
|
||||
.usageFlags = usage_flags,
|
||||
.format = static_cast<VkFormat>(format),
|
||||
@@ -79,29 +70,11 @@ xr::swapchain::swapchain(
|
||||
|
||||
CHECK_XR(xrCreateSwapchain(s, &create_info, &id));
|
||||
|
||||
std::tuple<std::vector<XrSwapchainImageVulkanKHR>, std::vector<XrSwapchainImageFoveationVulkanFB>> array;
|
||||
auto & images = std::get<0>(array);
|
||||
auto & foveation = std::get<1>(array);
|
||||
if (foveated)
|
||||
{
|
||||
update_foveation(foveated);
|
||||
details::enumerate2(xrEnumerateSwapchainImages, array, id);
|
||||
assert(images.size() == foveation.size());
|
||||
}
|
||||
else
|
||||
{
|
||||
details::enumerate(xrEnumerateSwapchainImages, images, id);
|
||||
}
|
||||
auto images = details::enumerate<XrSwapchainImageVulkanKHR>(xrEnumerateSwapchainImages, id);
|
||||
|
||||
images_.resize(images.size());
|
||||
for (uint32_t i = 0; i < images.size(); i++)
|
||||
{
|
||||
images_[i].image = images[i].image;
|
||||
if (foveated)
|
||||
{
|
||||
images_[i].foveation = foveation[i].image;
|
||||
}
|
||||
}
|
||||
images_.reserve(images.size());
|
||||
for (auto & image: images)
|
||||
images_.push_back(image.image);
|
||||
}
|
||||
|
||||
int xr::swapchain::acquire()
|
||||
@@ -139,12 +112,3 @@ void xr::swapchain::release()
|
||||
auto lock = application::get_queue().lock();
|
||||
CHECK_XR(xrReleaseSwapchainImage(id, &release_info));
|
||||
}
|
||||
|
||||
void xr::swapchain::update_foveation(XrFoveationProfileFB foveation)
|
||||
{
|
||||
XrSwapchainStateFoveationFB update_info{
|
||||
.type = XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB,
|
||||
.profile = foveation,
|
||||
};
|
||||
CHECK_XR(update(id, (XrSwapchainStateBaseHeaderFB *)&update_info));
|
||||
}
|
||||
|
||||
+5
-16
@@ -35,21 +35,13 @@ class session;
|
||||
|
||||
class swapchain : public utils::handle<XrSwapchain, xrDestroySwapchain>
|
||||
{
|
||||
public:
|
||||
struct image
|
||||
{
|
||||
vk::Image image{};
|
||||
vk::Image foveation{};
|
||||
};
|
||||
|
||||
private:
|
||||
PFN_xrUpdateSwapchainFB update;
|
||||
int32_t width_;
|
||||
int32_t height_;
|
||||
int sample_count_;
|
||||
vk::Format format_;
|
||||
|
||||
std::vector<image> images_;
|
||||
std::vector<vk::Image> images_;
|
||||
|
||||
public:
|
||||
swapchain() = default;
|
||||
@@ -61,8 +53,7 @@ public:
|
||||
int32_t width,
|
||||
int32_t height,
|
||||
int sample_count = 1,
|
||||
uint32_t array_size = 1,
|
||||
XrFoveationProfileFB foveation = XR_NULL_HANDLE);
|
||||
uint32_t array_size = 1);
|
||||
|
||||
int32_t width() const
|
||||
{
|
||||
@@ -80,13 +71,13 @@ public:
|
||||
{
|
||||
return sample_count_;
|
||||
}
|
||||
const std::vector<image> & images() const
|
||||
const std::vector<vk::Image> & images() const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
std::vector<image> & images()
|
||||
vk::Image image(size_t i) const
|
||||
{
|
||||
return images_;
|
||||
return images_[i];
|
||||
}
|
||||
vk::Format format() const
|
||||
{
|
||||
@@ -96,7 +87,5 @@ public:
|
||||
int acquire();
|
||||
bool wait(XrDuration timeout = XR_INFINITE_DURATION);
|
||||
void release();
|
||||
|
||||
void update_foveation(XrFoveationProfileFB foveation);
|
||||
};
|
||||
} // namespace xr
|
||||
|
||||
@@ -20,15 +20,14 @@ if (NOT GIT_COMMIT)
|
||||
endif()
|
||||
|
||||
if (NOT GIT_DESC)
|
||||
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
||||
message(STATUS "Setting version to ${GIT_DESC} from CMakeLists")
|
||||
message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time")
|
||||
endif()
|
||||
|
||||
if (GIT_COMMIT)
|
||||
message(STATUS "Setting commit to ${GIT_COMMIT}")
|
||||
else()
|
||||
set(GIT_COMMIT "")
|
||||
message(STATUS "Not setting commit")
|
||||
message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time")
|
||||
endif()
|
||||
|
||||
configure_file(${INPUT_FILE} ${OUTPUT_FILE})
|
||||
configure_file(${INPUT_FILE_1} ${OUTPUT_FILE_1})
|
||||
|
||||
+1
-14
@@ -5,25 +5,12 @@ else()
|
||||
FetchContent_MakeAvailable(boost)
|
||||
endif()
|
||||
|
||||
add_custom_target(wivrn-version ALL
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D GIT_EXECUTABLE=${GIT_EXECUTABLE}
|
||||
-D INPUT_FILE=${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in
|
||||
-D OUTPUT_FILE=${CMAKE_CURRENT_BINARY_DIR}/version.cpp
|
||||
-D CMAKE_PROJECT_VERSION=${CMAKE_PROJECT_VERSION}
|
||||
-D GIT_DESC="${GIT_DESC}"
|
||||
-D GIT_COMMIT="${GIT_COMMIT}"
|
||||
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
|
||||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/version.cpp
|
||||
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in
|
||||
)
|
||||
|
||||
configure_file(wivrn_config.h.in wivrn_config.h)
|
||||
|
||||
add_library(wivrn-common-base STATIC EXCLUDE_FROM_ALL
|
||||
utils/strings.cpp
|
||||
utils/xdg_base_directory.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.cpp
|
||||
${CMAKE_BINARY_DIR}/version.cpp
|
||||
)
|
||||
|
||||
add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
|
||||
|
||||
@@ -173,6 +173,19 @@ enum video_codec
|
||||
raw,
|
||||
};
|
||||
|
||||
enum class stream_tab : uint8_t
|
||||
{
|
||||
hidden,
|
||||
overlay_only,
|
||||
compact,
|
||||
stats,
|
||||
settings,
|
||||
bitrate_settings,
|
||||
foveation_settings,
|
||||
applications,
|
||||
application_launcher,
|
||||
};
|
||||
|
||||
struct audio_data
|
||||
{
|
||||
XrTime timestamp;
|
||||
@@ -512,6 +525,11 @@ struct user_presence_changed
|
||||
bool present;
|
||||
};
|
||||
|
||||
struct stream_tab_changed
|
||||
{
|
||||
stream_tab tab;
|
||||
};
|
||||
|
||||
struct override_foveation_center
|
||||
{
|
||||
bool enabled;
|
||||
@@ -565,6 +583,7 @@ using packets = std::variant<
|
||||
refresh_rate_changed,
|
||||
session_state_changed,
|
||||
user_presence_changed,
|
||||
stream_tab_changed,
|
||||
override_foveation_center,
|
||||
get_application_list,
|
||||
start_app,
|
||||
@@ -608,6 +627,22 @@ struct handshake
|
||||
int stream_port;
|
||||
};
|
||||
|
||||
struct server_message
|
||||
{
|
||||
enum class kind : uint8_t
|
||||
{
|
||||
// in-stream toasts (not buffered)
|
||||
toast,
|
||||
toast_urgent,
|
||||
|
||||
// displayed in lobby after disconnect (buffered)
|
||||
error,
|
||||
};
|
||||
|
||||
kind kind;
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
struct foveation_parameter
|
||||
{
|
||||
// The number of source pixels for each ratio,
|
||||
@@ -643,6 +678,8 @@ struct video_stream_description
|
||||
uint16_t height;
|
||||
std::array<video_codec, 3> codec; // left, right, alpha
|
||||
float fps;
|
||||
|
||||
bool operator==(const video_stream_description &) const = default;
|
||||
};
|
||||
|
||||
class video_stream_data_shard
|
||||
@@ -730,6 +767,11 @@ struct refresh_rate_change
|
||||
float fps;
|
||||
};
|
||||
|
||||
struct stream_tab_change
|
||||
{
|
||||
stream_tab tab;
|
||||
};
|
||||
|
||||
struct application_list
|
||||
{
|
||||
std::string language;
|
||||
@@ -766,6 +808,7 @@ using packets = std::variant<
|
||||
pin_check_2,
|
||||
pin_check_4,
|
||||
handshake,
|
||||
server_message,
|
||||
audio_stream_description,
|
||||
video_stream_description,
|
||||
audio_data,
|
||||
@@ -775,6 +818,7 @@ using packets = std::variant<
|
||||
tracking_control,
|
||||
feature_control,
|
||||
refresh_rate_change,
|
||||
stream_tab_change,
|
||||
application_list,
|
||||
application_icon,
|
||||
running_applications>;
|
||||
|
||||
@@ -165,7 +165,7 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("Firewall may not allow port 9757")
|
||||
type: Kirigami.MessageType.Warning
|
||||
showCloseButton: true
|
||||
visible: DashboardSettings.show_system_checks && Firewall.needSetup
|
||||
visible: DashboardSettings.show_system_checks && Firewall.needSetup && Settings.port == Settings.default_port
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: i18n("Fix it")
|
||||
|
||||
+45
-1
@@ -21,6 +21,7 @@
|
||||
#include "escape_string.h"
|
||||
#include "gui_config.h"
|
||||
#include "utils/flatpak.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_server.h"
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
@@ -121,6 +122,8 @@ void Settings::emitAllChanged()
|
||||
debugGuiChanged();
|
||||
steamVrLhChanged();
|
||||
hidForwardingChanged();
|
||||
portChanged();
|
||||
hostnameChanged();
|
||||
}
|
||||
|
||||
void Settings::load(const wivrn_server * server)
|
||||
@@ -429,6 +432,40 @@ void Settings::set_tcpOnly(const bool & value)
|
||||
tcpOnlyChanged();
|
||||
}
|
||||
|
||||
int Settings::port() const
|
||||
{
|
||||
auto it = m_jsonSettings.find("port");
|
||||
if (it != m_jsonSettings.end() and it->is_number_integer())
|
||||
return *it;
|
||||
return wivrn::default_port;
|
||||
}
|
||||
|
||||
void Settings::set_port(const int & value)
|
||||
{
|
||||
auto old = port();
|
||||
m_jsonSettings["port"] = value;
|
||||
if (old != value)
|
||||
portChanged();
|
||||
}
|
||||
|
||||
QString Settings::hostname() const
|
||||
{
|
||||
if (auto it = m_jsonSettings.find("hostname"); it != m_jsonSettings.end() and it->is_string())
|
||||
return QString::fromStdString(*it);
|
||||
return "";
|
||||
}
|
||||
|
||||
void Settings::set_hostname(const QString & value)
|
||||
{
|
||||
auto old = hostname();
|
||||
if (value == "")
|
||||
m_jsonSettings.erase("hostname");
|
||||
else
|
||||
m_jsonSettings["hostname"] = value.toStdString();
|
||||
if (old != value)
|
||||
hostnameChanged();
|
||||
}
|
||||
|
||||
QString Settings::openvr() const
|
||||
{
|
||||
// OpenVR compat library
|
||||
@@ -452,7 +489,7 @@ void Settings::set_openvr(const QString & value)
|
||||
else
|
||||
m_jsonSettings["openvr-compat-path"] = value.toStdString();
|
||||
if (old != value)
|
||||
tcpOnlyChanged();
|
||||
openvrChanged();
|
||||
}
|
||||
|
||||
QList<Settings::video_codec> Settings::allowedCodecs() const
|
||||
@@ -504,6 +541,8 @@ void Settings::restore_defaults()
|
||||
m_jsonSettings.erase("use-steamvr-lh");
|
||||
m_jsonSettings.erase("tcp-only");
|
||||
m_jsonSettings.erase("application");
|
||||
m_jsonSettings.erase("port");
|
||||
m_jsonSettings.erase("hostname");
|
||||
emitAllChanged();
|
||||
}
|
||||
|
||||
@@ -512,6 +551,11 @@ bool Settings::flatpak() const
|
||||
return wivrn::is_flatpak();
|
||||
}
|
||||
|
||||
int Settings::default_port() const
|
||||
{
|
||||
return wivrn::default_port;
|
||||
}
|
||||
|
||||
bool Settings::debug_gui() const
|
||||
{
|
||||
#if WIVRN_FEATURE_DEBUG_GUI
|
||||
|
||||
@@ -68,6 +68,8 @@ public:
|
||||
Q_PROPERTY(bool tenbit READ tenbit WRITE set_tenbit NOTIFY tenbitChanged)
|
||||
|
||||
Q_PROPERTY(bool tcpOnly READ tcpOnly WRITE set_tcpOnly NOTIFY tcpOnlyChanged)
|
||||
Q_PROPERTY(int port READ port WRITE set_port NOTIFY portChanged)
|
||||
Q_PROPERTY(QString hostname READ hostname WRITE set_hostname NOTIFY hostnameChanged)
|
||||
Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged)
|
||||
Q_PROPERTY(QString openvr READ openvr WRITE set_openvr NOTIFY openvrChanged)
|
||||
|
||||
@@ -76,6 +78,7 @@ public:
|
||||
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
|
||||
|
||||
Q_PROPERTY(bool flatpak READ flatpak CONSTANT)
|
||||
Q_PROPERTY(int default_port READ default_port CONSTANT)
|
||||
Q_PROPERTY(bool hid_forwarding_supported READ hid_forwarding CONSTANT)
|
||||
Q_PROPERTY(bool debug_gui_supported READ debug_gui CONSTANT)
|
||||
Q_PROPERTY(bool steamvr_lh_supported READ steamvr_lh CONSTANT)
|
||||
@@ -89,6 +92,8 @@ public:
|
||||
SETTER_GETTER_NOTIFY(bool, debugGui)
|
||||
SETTER_GETTER_NOTIFY(bool, steamVrLh)
|
||||
SETTER_GETTER_NOTIFY(bool, tcpOnly)
|
||||
SETTER_GETTER_NOTIFY(int, port)
|
||||
SETTER_GETTER_NOTIFY(QString, hostname)
|
||||
SETTER_GETTER_NOTIFY(QString, openvr)
|
||||
private:
|
||||
nlohmann::json m_jsonSettings = nlohmann::json::object();
|
||||
@@ -107,6 +112,7 @@ public:
|
||||
bool can10bit() const;
|
||||
|
||||
bool flatpak() const;
|
||||
int default_port() const;
|
||||
bool debug_gui() const;
|
||||
bool steamvr_lh() const;
|
||||
bool hid_forwarding() const;
|
||||
|
||||
@@ -73,6 +73,11 @@
|
||||
<property name="PairingEnabled" type="b" access="read"/>
|
||||
<property name="EncryptionEnabled" type="b" access="read"/>
|
||||
|
||||
<property name="ClientTab" type="s" access="read"/>
|
||||
<method name="SetClientTab">
|
||||
<arg type="s" name="Tab"/>
|
||||
</method>
|
||||
|
||||
<signal name="ServerError">
|
||||
<arg type="s" name="where"/>
|
||||
<arg type="s" name="message"/>
|
||||
|
||||
@@ -158,3 +158,13 @@ Default value: `false`
|
||||
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`
|
||||
|
||||
Enables the driver to load SteamVR Lighthouse devices.
|
||||
|
||||
## `port`
|
||||
Default value: `9757`
|
||||
|
||||
Change the TCP/UDP port used for the connection.
|
||||
|
||||
## `hostname`
|
||||
Default value: unset
|
||||
|
||||
If set, overrides the name displayed in the server list.
|
||||
|
||||
@@ -58,12 +58,16 @@
|
||||
# Keep in sync with CMakeLists.txt monado rev
|
||||
rev = lib.strings.trim (builtins.readFile ./monado-rev);
|
||||
# Nix will output the correct hash when it doesn't match
|
||||
hash = "sha256-wGqvTI/X22apc8XCN3GCGQClHfBW5xk73mZnwWvHtyI=";
|
||||
hash = "sha256-M0SQMu1rgY++a+4r0DK//ralFEO5w7I3UrgLecoLO+A=";
|
||||
};
|
||||
};
|
||||
|
||||
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
|
||||
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs;
|
||||
cmakeFlags = (oldAttrs.cmakeFlags or []) ++ [
|
||||
(lib.cmakeFeature "GIT_DESC" "nightly")
|
||||
(lib.cmakeFeature "GIT_COMMIT" "nightly")
|
||||
];
|
||||
}));
|
||||
in {
|
||||
packages = {
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-16 21:54+0100\n"
|
||||
"POT-Creation-Date: 2026-02-26 15:00+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -15,7 +15,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Generator: Qt Linguist 6.10.2\n"
|
||||
"X-Language: es_ES\n"
|
||||
"X-Source-Language: en_US\n"
|
||||
|
||||
@@ -135,13 +135,13 @@ msgstr ""
|
||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Follow the instructions in the <a "
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentation</a> "
|
||||
"to build your own client."
|
||||
"Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentation</a> to build your own "
|
||||
"client."
|
||||
msgstr ""
|
||||
"Sigue las instrucciones en la <a "
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> "
|
||||
"para compilar tu propio cliente."
|
||||
"Sigue las instrucciones en la <a href=\"https://github.com/WiVRn/WiVRn/blob/"
|
||||
"master/docs/building.md#client-headset\">documentación</a> para compilar tu "
|
||||
"propio cliente."
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
@@ -469,19 +469,19 @@ msgstr "Solucionar problemas"
|
||||
msgid "Version %1"
|
||||
msgstr "Versión %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#: dashboard/qml/SelectGame.qml:12
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "Ninguno"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:20
|
||||
#: dashboard/qml/SelectGame.qml:18
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#: dashboard/qml/SelectGame.qml:70
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
@@ -708,9 +708,9 @@ msgstr "Tengo un error de \"Servidor WiVRn incompatible\" en mi visor"
|
||||
#: dashboard/qml/TroubleshootPage.qml:37
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"<p>The version of the headset app and the server on your computer must "
|
||||
"match.</p><ul><li>The headset app version is in the \"About\" "
|
||||
"page</li><li>The server version is <b>%1</b></li></ul>"
|
||||
"<p>The version of the headset app and the server on your computer must match."
|
||||
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
|
||||
"server version is <b>%1</b></li></ul>"
|
||||
msgstr ""
|
||||
"<p>La versión de la aplicación del visor y la del servidor en tu computadora "
|
||||
"deben coincidir.</p><ul><li>La versión de la aplicación del visor está en la "
|
||||
@@ -762,13 +762,12 @@ msgstr "Algunos juegos fallan al abrirse o tienen problemas de input"
|
||||
#: dashboard/qml/TroubleshootPage.qml:62
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"For game specific issues, check on <a "
|
||||
"href=\"https://db.vronlinux.org/\">vronlinux DB</a> if there are known bugs "
|
||||
"or workarounds."
|
||||
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
|
||||
"\">vronlinux DB</a> if there are known bugs or workarounds."
|
||||
msgstr ""
|
||||
"Para problemas específicos de un juego, mirar en <a "
|
||||
"href=\"https://db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún "
|
||||
"problema conocido o por soluciones."
|
||||
"Para problemas específicos de un juego, mirar en <a href=\"https://"
|
||||
"db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún problema conocido "
|
||||
"o por soluciones."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:79
|
||||
#, kde-format
|
||||
|
||||
+150
-140
@@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-15 00:02+0100\n"
|
||||
"POT-Creation-Date: 2026-02-27 16:03+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:23+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -14,7 +14,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Generator: Qt Linguist 6.10.2\n"
|
||||
"X-Language: es_ES\n"
|
||||
"X-Source-Language: en_US\n"
|
||||
|
||||
@@ -70,11 +70,11 @@ msgstr "No se puede conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Esperando conexión"
|
||||
|
||||
#: client/scenes/lobby.cpp:1307
|
||||
#: client/scenes/lobby.cpp:1316
|
||||
msgid "Passthrough"
|
||||
msgstr "Exterior"
|
||||
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
#: client/scenes/lobby.cpp:1328
|
||||
msgid "Default environment"
|
||||
msgstr "Entorno por defecto"
|
||||
|
||||
@@ -93,14 +93,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:992
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
@@ -121,32 +122,41 @@ msgstr "PIN"
|
||||
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:282
|
||||
msgid "Disconnected"
|
||||
msgstr "Desconectado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "Desconectado de {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "Nombre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "Dirección"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "Puerto"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "Guardar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -154,46 +164,46 @@ msgstr ""
|
||||
"Inicia un servidor WiVRn en tu\n"
|
||||
"red local"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "Conexión automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "Conectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versión del servidor incompatible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "Servidor no disponible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Español"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "Idioma"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "Idioma del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frecuencia de actualización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -202,38 +212,38 @@ msgstr ""
|
||||
"aplicación.\n"
|
||||
"Puede causar parpadeos cuando ocurre un cambio."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Tasa mínima de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Foveation level"
|
||||
msgstr "Nivel de fóvea"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Render resolution"
|
||||
msgstr "Resolución de renderizado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} por ojo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#, 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:680
|
||||
#: client/scenes/lobby_gui.cpp:723
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Codificación foveada"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:740
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -241,7 +251,7 @@ msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -249,90 +259,90 @@ msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre en el centro\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:752
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:758
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:796
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
#: client/scenes/lobby_gui.cpp:812
|
||||
msgid "Bitrate"
|
||||
msgstr "Bitrate"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
#: client/scenes/lobby_gui.cpp:816
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:784
|
||||
#: client/scenes/lobby_gui.cpp:827
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alto rendimiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:787
|
||||
#: client/scenes/lobby_gui.cpp:830
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
|
||||
"de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:793
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activar micrófono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:845
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Entrada de audio sin procesar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
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:815
|
||||
#: client/scenes/lobby_gui.cpp:858
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activar seguimiento de manos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
|
||||
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
|
||||
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Esta función no es compatible con tu visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:869
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activar seguimiento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:837
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activar seguimiento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui.cpp:892
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Habilitar seguimiento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:862
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -343,11 +353,11 @@ msgstr ""
|
||||
"si no el seguimiento corporal será medido por la posición de los controles y "
|
||||
"el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
#: client/scenes/lobby_gui.cpp:915
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Habilitar seguimiento de cintura para abajo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:878
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -358,11 +368,11 @@ msgstr ""
|
||||
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
|
||||
"movimiento de Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Habilitar seguimiento de cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:930
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -370,11 +380,11 @@ 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:896
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar ventana mientras se juega"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:899
|
||||
#: client/scenes/lobby_gui.cpp:942
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -382,25 +392,25 @@ 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:903
|
||||
#: client/scenes/lobby_gui.cpp:946
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Extender valores de configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:949
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr ""
|
||||
"Permitir valores de configuración inseguros, usar bajo propia "
|
||||
"responsabilidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475
|
||||
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-procesamiento de OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "Sobremuestreo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -409,11 +419,11 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505
|
||||
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "Nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526
|
||||
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -422,129 +432,129 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "Tiempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1157
|
||||
#: client/scenes/lobby_gui.cpp:1200
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tiempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "Tiempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1171
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tiempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1235
|
||||
#: client/scenes/lobby_gui.cpp:1278
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "¿Habilitar micrófono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1240
|
||||
#: client/scenes/lobby_gui.cpp:1283
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "¿Habilitar seguimiento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1245
|
||||
#: client/scenes/lobby_gui.cpp:1288
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "¿Habilitar seguimiento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1250
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "¿Habilitar seguimiento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1258
|
||||
#: client/scenes/lobby_gui.cpp:1301
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenido a WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1286
|
||||
#: client/scenes/lobby_gui.cpp:1329
|
||||
msgid "Yes"
|
||||
msgstr "Sí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
#: client/scenes/lobby_gui.cpp:1336
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
|
||||
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
|
||||
msgid "Licenses"
|
||||
msgstr "Licencias"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1631
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Micrófono activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1589
|
||||
#: client/scenes/lobby_gui.cpp:1632
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Micrófono desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1641
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Seguimiento de manos activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1599
|
||||
#: client/scenes/lobby_gui.cpp:1642
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Seguimiento de manos desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Seguimiento ocular activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1609
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Seguimiento ocular desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1662
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Seguimiento facial activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1620
|
||||
#: client/scenes/lobby_gui.cpp:1663
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Seguimiento facial desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1677
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Seguimiento corporal está habilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Seguimiento corporal está deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
#: client/scenes/lobby_gui.cpp:1694
|
||||
msgid "Add server"
|
||||
msgstr "Agregar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1937
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973
|
||||
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1943
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-procesamiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1946
|
||||
#: client/scenes/lobby_gui.cpp:1989
|
||||
msgid "Customize"
|
||||
msgstr "Personalización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1950
|
||||
#: client/scenes/lobby_gui.cpp:1993
|
||||
msgid "Debug"
|
||||
msgstr "Depuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1955
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1961
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1978
|
||||
#: client/scenes/lobby_gui.cpp:2021
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -552,7 +562,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:1980
|
||||
#: client/scenes/lobby_gui.cpp:2023
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pulsa el botón de agarre para mover la ventana principal"
|
||||
|
||||
@@ -631,160 +641,160 @@ msgstr "Descargar más entornos"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo glTF local"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "Desfovear"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:178
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Red"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "Descargar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "Subir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:248
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Decodificador {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:260
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Tiempos [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Codificar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Enviar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Recibir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Decodificar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Copiado"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Mostrado"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:326
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Previsto"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latencia estimada de movimiento a fotones: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:350
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
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:352 client/scenes/stream_gui.cpp:900
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latencia entre el movimiento y la imagen mostrada"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:460
|
||||
#: client/scenes/stream_gui.cpp:458
|
||||
msgid "Bitrate:"
|
||||
msgstr "Bitrate:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:470
|
||||
#: client/scenes/stream_gui.cpp:468
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "Haga click para ajustar el bitrate"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "Reajustar el centro de la fóvea"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:537
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "Habilitar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Altura {:.1f} °"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distancia {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:547
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "Por defecto"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:558
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "Cambiar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#: client/scenes/stream_gui.cpp:588
|
||||
msgid "Use the right thumbstick to adjust the bitrate"
|
||||
msgstr "Use el stick derecho para ajustar el bitrate"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:591
|
||||
#: client/scenes/stream_gui.cpp:589
|
||||
msgid "Press A to go back"
|
||||
msgstr "Pulse A para volver"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:592
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#, c++-format
|
||||
msgid "Bitrate: {}Mbit/s"
|
||||
msgstr "Bitrate: {}Mbit/s"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:614
|
||||
#: client/scenes/stream_gui.cpp:612
|
||||
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:615
|
||||
#: client/scenes/stream_gui.cpp:613
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "Pulsa A para guardar o B para cancelar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:673
|
||||
#: client/scenes/stream_gui.cpp:671
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Aplicaciones XR ejecutandose:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:690
|
||||
#: client/scenes/stream_gui.cpp:688
|
||||
msgid "Overlays"
|
||||
msgstr "Superposiciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:729
|
||||
#: client/scenes/stream_gui.cpp:727
|
||||
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:959
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "Aplicaciones"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:962
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:976
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "Estadísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:982
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Superponer stats"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:985
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "Vista compacta"
|
||||
|
||||
|
||||
+155
-145
@@ -1,13 +1,13 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025.
|
||||
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
|
||||
"PO-Revision-Date: 2025-12-29 15:40+0100\n"
|
||||
"POT-Creation-Date: 2026-02-27 16:09+0100\n"
|
||||
"PO-Revision-Date: 2026-02-27 16:12+0100\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -21,27 +21,27 @@ msgstr ""
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Aucun format de swapchain supporté"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
#: client/scenes/app_launcher.cpp:127
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connecté au serveur WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#: client/scenes/app_launcher.cpp:129
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connecté à {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
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:146
|
||||
#: client/scenes/app_launcher.cpp:145
|
||||
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:148
|
||||
#: client/scenes/app_launcher.cpp:147
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
@@ -73,11 +73,11 @@ msgstr "Impossible de se connecter à {} ({}) : {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Attente de connexion"
|
||||
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
#: client/scenes/lobby.cpp:1316
|
||||
msgid "Passthrough"
|
||||
msgstr "Vue réelle"
|
||||
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
#: client/scenes/lobby.cpp:1328
|
||||
msgid "Default environment"
|
||||
msgstr "Environnement par défaut"
|
||||
|
||||
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:1015
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
@@ -124,32 +125,41 @@ msgstr "Code PIN"
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Entrez le code PIN affiché sur le tableau de bord"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Disconnected"
|
||||
msgstr "Connexion terminée"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "Connexion à {} terminée"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "Nom"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "TCP seulement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "Enregistrer"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -157,46 +167,46 @@ msgstr ""
|
||||
"Démarrez un serveur WiVRn sur\n"
|
||||
"le réseau local"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "Autoconnexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "Connexion"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Version du serveur incompatible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "Serveur non disponible"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Français"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "Langue"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "Langue système"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taux de rafraichissement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -205,38 +215,38 @@ msgstr ""
|
||||
"des performances mesurées.\n"
|
||||
"Peut causer des clignotements lors du changement de fréquence."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taux minimal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Foveation level"
|
||||
msgstr "Niveau de fovéation"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Render resolution"
|
||||
msgstr "Résolution de rendu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{} %% - {}x{} par œil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#, 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:680
|
||||
#: client/scenes/lobby_gui.cpp:723
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Fovéation d'encodage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{} %%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:740
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -245,7 +255,7 @@ msgstr ""
|
||||
"porte le regard, ce qui diminue la latence, réduit la\n"
|
||||
"consommation d'énergie et améliore la qualité."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -254,88 +264,88 @@ msgstr ""
|
||||
"de l'image, ce qui diminue la latence, réduit la\n"
|
||||
"consommation d'énergie et améliore la qualité."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:752
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:758
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:796
|
||||
msgid "10-bit"
|
||||
msgstr "10 bits"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
#: client/scenes/lobby_gui.cpp:812
|
||||
msgid "Bitrate"
|
||||
msgstr "Débit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#: client/scenes/lobby_gui.cpp:816
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{} Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
#: client/scenes/lobby_gui.cpp:827
|
||||
msgid "High power mode"
|
||||
msgstr "Mode haute consommation"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
#: client/scenes/lobby_gui.cpp:830
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Augmente la consommation d'énergie pour permettre une résolution\n"
|
||||
"et une fréquence de rafraîchissement plus élevées"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activer le micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
#: client/scenes/lobby_gui.cpp:845
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Utiliser les données brutes du micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
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:814
|
||||
#: client/scenes/lobby_gui.cpp:858
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activer le suivi des mains"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
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:825
|
||||
#: client/scenes/lobby_gui.cpp:869
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activer le suivi des yeux"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activer le suivi du visage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
#: client/scenes/lobby_gui.cpp:892
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Activer le suivi du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -346,11 +356,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:871
|
||||
#: client/scenes/lobby_gui.cpp:915
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Activer le suivi du bas du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -361,11 +371,11 @@ msgstr ""
|
||||
"paramètres\n"
|
||||
"de suivi de mouvements du casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Activer le suivi des hanches"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
#: client/scenes/lobby_gui.cpp:930
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -373,11 +383,11 @@ 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:895
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Activer la fenêtre WiVRn lors de la transmission"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
#: client/scenes/lobby_gui.cpp:942
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -387,25 +397,25 @@ msgstr ""
|
||||
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
|
||||
"sticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
#: client/scenes/lobby_gui.cpp:946
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valeurs de configuration étendues"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
#: client/scenes/lobby_gui.cpp:949
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr ""
|
||||
"Permet d'utiliser des limites plus hautes,\n"
|
||||
"peut ne pas fonctionner correctement."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-traitement OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "Suréchantillonnage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -413,11 +423,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:948 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "Affinage de netteté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -425,129 +435,129 @@ 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:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "Temps CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
#: client/scenes/lobby_gui.cpp:1200
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Temps CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "Temps GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Temps GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1278
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Activer le micro ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
#: client/scenes/lobby_gui.cpp:1283
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Activer le suivi des yeux ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
#: client/scenes/lobby_gui.cpp:1288
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Activer le suivi du visage ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Activer le suivi du corps ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:1301
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenue sur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
#: client/scenes/lobby_gui.cpp:1329
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
#: client/scenes/lobby_gui.cpp:1336
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
|
||||
msgid "Licenses"
|
||||
msgstr "Licences"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
#: client/scenes/lobby_gui.cpp:1631
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Le micro est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1632
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Le micro est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
#: client/scenes/lobby_gui.cpp:1641
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Le suivi des mains est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1642
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Le suivi des mains est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Le suivi des yeux est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Le suivi des yeux est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1662
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Le suivi du visage est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1663
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Le suivi du visage est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
#: client/scenes/lobby_gui.cpp:1677
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Le suivi du corps est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Le suivi du corps est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
#: client/scenes/lobby_gui.cpp:1694
|
||||
msgid "Add server"
|
||||
msgstr "Ajouter un serveur"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
msgid "Server list"
|
||||
msgstr "Serveurs"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1989
|
||||
msgid "Customize"
|
||||
msgstr "Personnaliser"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
#: client/scenes/lobby_gui.cpp:1993
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Exit"
|
||||
msgstr "Quitter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
#: client/scenes/lobby_gui.cpp:2021
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -555,7 +565,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:1979
|
||||
#: client/scenes/lobby_gui.cpp:2023
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
|
||||
@@ -634,56 +644,56 @@ msgstr "Télécharger plus d'environnements"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Ouvrir un modèle glTF local"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "Défovéation"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Réseau"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "Téléchargement"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "Téléversement"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Décodeur {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Durées [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Encodage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Envoi"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Réception"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Décodage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Copie"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Affichage"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Prédiction"
|
||||
|
||||
@@ -692,102 +702,102 @@ msgstr "Prédiction"
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latence mouvement à photons estimée : {} ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:351
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
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:353 client/scenes/stream_gui.cpp:924
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
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:375
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latence mouvements à photons"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/stream_gui.cpp:458
|
||||
msgid "Bitrate:"
|
||||
msgstr "Débit :"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:474
|
||||
#: client/scenes/stream_gui.cpp:468
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "Cliquez pour modifier le débit"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:537
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "Zone de fovéation manuelle"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:540
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "Activer"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Hauteur : {:.1f} deg"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distance {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:550
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "Réinitialiser"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:561
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "Ajuster"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:594
|
||||
#: client/scenes/stream_gui.cpp:588
|
||||
msgid "Use the right thumbstick to adjust the bitrate"
|
||||
msgstr "Utilisez le stick droit pour modifier le débit"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:595
|
||||
#: client/scenes/stream_gui.cpp:589
|
||||
msgid "Press A to go back"
|
||||
msgstr "Appuyez sur A pour revenir"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:596
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#, c++-format
|
||||
msgid "Bitrate: {}Mbit/s"
|
||||
msgstr "Débit : {} MBit/s"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
#: client/scenes/stream_gui.cpp:612
|
||||
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:619
|
||||
#: client/scenes/stream_gui.cpp:613
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A pour sauvegarder, B pour annuler"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
#: client/scenes/stream_gui.cpp:671
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applications XR lancées :"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:694
|
||||
#: client/scenes/stream_gui.cpp:688
|
||||
msgid "Overlays"
|
||||
msgstr "Surcouches"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:733
|
||||
#: client/scenes/stream_gui.cpp:727
|
||||
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:983
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "Applications"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:986
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "Démarrer"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:999
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1005
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Statistiques seules"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1008
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "Vue compacte"
|
||||
|
||||
|
||||
+155
-145
@@ -1,12 +1,12 @@
|
||||
#
|
||||
# Albano Battistella <albanobattistella@gmail.com>, 2025.
|
||||
# Albano Battistella <albanobattistella@gmail.com>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
|
||||
"PO-Revision-Date: 2025-12-29 15:38+0100\n"
|
||||
"POT-Creation-Date: 2026-02-27 16:09+0100\n"
|
||||
"PO-Revision-Date: 2026-02-27 16:11+0100\n"
|
||||
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: Italian\n"
|
||||
@@ -19,26 +19,26 @@ msgstr ""
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Nessun formato swapchain supportato"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
#: client/scenes/app_launcher.cpp:127
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Connesso al server WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#: client/scenes/app_launcher.cpp:129
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Connesso a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
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:146
|
||||
#: client/scenes/app_launcher.cpp:145
|
||||
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:148
|
||||
#: client/scenes/app_launcher.cpp:147
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr ""
|
||||
@@ -68,11 +68,11 @@ msgstr "Impossibile connettersi a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "In attesa di connessione"
|
||||
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
#: client/scenes/lobby.cpp:1316
|
||||
msgid "Passthrough"
|
||||
msgstr "Vista reale"
|
||||
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
#: client/scenes/lobby.cpp:1328
|
||||
msgid "Default environment"
|
||||
msgstr "Ambiente di default"
|
||||
|
||||
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:1015
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "Sconnetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
@@ -119,32 +120,41 @@ msgstr "PIN"
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Digitare il PIN visibile sul server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Disconnected"
|
||||
msgstr "Connessione chiusa"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "Connessione con {} chiusa"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "Indirizzo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "Salva"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -152,46 +162,46 @@ msgstr ""
|
||||
"Avvia un server WiVRn sulla\n"
|
||||
"rete locale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "Connessione automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "Connetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versione del server incompatibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "Server non disponibile"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Italiano"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "Lingua"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "Lingua del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frequenza di aggiornamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -200,39 +210,39 @@ msgstr ""
|
||||
"misurate dell'applicazione.\n"
|
||||
"Può causare un flash quando avviene il cambiamento."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Frequenza minima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Foveation level"
|
||||
msgstr "Intensità di foveazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Render resolution"
|
||||
msgstr "Risoluzione del gioco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} per occhio"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#, 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:680
|
||||
#: client/scenes/lobby_gui.cpp:723
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Foveazione della codifica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:740
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -240,7 +250,7 @@ msgstr ""
|
||||
"Valori alti concentrano la qualità dove si guarda,\n"
|
||||
"migliorando la latenza, efficienza energetica e qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -248,88 +258,88 @@ msgstr ""
|
||||
"Valori alti concentrano la qualità al centro dell'immagine,\n"
|
||||
"migliorando la latenza, efficienza energetica e qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:752
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatico"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:758
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:796
|
||||
msgid "10-bit"
|
||||
msgstr "10 bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
#: client/scenes/lobby_gui.cpp:812
|
||||
msgid "Bitrate"
|
||||
msgstr "Velocità di trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#: client/scenes/lobby_gui.cpp:816
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
#: client/scenes/lobby_gui.cpp:827
|
||||
msgid "High power mode"
|
||||
msgstr "Modalità alto consumo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
#: client/scenes/lobby_gui.cpp:830
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Aumenta il consumo di energie per permettere una risoluzione e\n"
|
||||
"frequenza d'immagine più alta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable microphone"
|
||||
msgstr "Attiva il microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
#: client/scenes/lobby_gui.cpp:845
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Usare dati grezzi del microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Disattiva gli effetti come la cancellazione del rumore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:858
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Abilita il tracciamento delle mani"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Questa funzionalità non è supportata dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
#: client/scenes/lobby_gui.cpp:869
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Abilita il tracciamento oculare"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Abilita il tracciamento facciale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
#: client/scenes/lobby_gui.cpp:892
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Abilita il tracciamento del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -342,11 +352,11 @@ msgstr ""
|
||||
"controller e\n"
|
||||
"del visore."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
#: client/scenes/lobby_gui.cpp:915
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Abilita il tracciamento del basso del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -357,11 +367,11 @@ msgstr ""
|
||||
"impostazioni,\n"
|
||||
"sezione \"Tracking dei movimenti\"."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Abilitia il tracciamento delle anche"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
#: client/scenes/lobby_gui.cpp:930
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -370,11 +380,11 @@ msgstr ""
|
||||
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
|
||||
"delle anche."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
#: client/scenes/lobby_gui.cpp:942
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -382,23 +392,23 @@ 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:902
|
||||
#: client/scenes/lobby_gui.cpp:946
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valori di configurazione estesi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
#: client/scenes/lobby_gui.cpp:949
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "Permette di usare limiti più alti, può non funzionare correttamente."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-trattamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersamping"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -406,11 +416,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:948 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "Miglioramento della nitidezza"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -419,129 +429,129 @@ msgstr ""
|
||||
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
|
||||
"visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
#: client/scenes/lobby_gui.cpp:1200
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1278
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Attivare il microfono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
#: client/scenes/lobby_gui.cpp:1283
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Attivare il tracciamento oculare?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
#: client/scenes/lobby_gui.cpp:1288
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Attivare il tracciamento facciale?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Attivare il tracciamento del corpo?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:1301
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
#: client/scenes/lobby_gui.cpp:1329
|
||||
msgid "Yes"
|
||||
msgstr "Sì"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
#: client/scenes/lobby_gui.cpp:1336
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
|
||||
msgid "Licenses"
|
||||
msgstr "Licenze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
#: client/scenes/lobby_gui.cpp:1631
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Microfono attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1632
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Microfono disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
#: client/scenes/lobby_gui.cpp:1641
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Tracciamento delle mani attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1642
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Tracciamento delle mani disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Tracciamento oculare attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Tracciamento oculare disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1662
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Tracciamento facciale attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1663
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Tracciamento facciale disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
#: client/scenes/lobby_gui.cpp:1677
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Tracciamento del corpo attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Tracciamento del corpo disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
#: client/scenes/lobby_gui.cpp:1694
|
||||
msgid "Add server"
|
||||
msgstr "Aggiungi server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
msgid "Server list"
|
||||
msgstr "Elenco dei server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-trattamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1989
|
||||
msgid "Customize"
|
||||
msgstr "Personalizzazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
#: client/scenes/lobby_gui.cpp:1993
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Exit"
|
||||
msgstr "Esci"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
#: client/scenes/lobby_gui.cpp:2021
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -549,7 +559,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:1979
|
||||
#: client/scenes/lobby_gui.cpp:2023
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra principale"
|
||||
|
||||
@@ -628,56 +638,56 @@ msgstr "Scaricare più ambienti"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Aprire un modello glTF"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "Defoveazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Rete"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "Download"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "Upload"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Decoder {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Durata [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Compressione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Invio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Ricezione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Decodifica"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Copiato"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Visualizzato"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Previsto"
|
||||
|
||||
@@ -686,102 +696,102 @@ msgstr "Previsto"
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Latenza stimata da movimento a fotoni: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:351
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
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:375
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latenza da movimento a fotoni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:464
|
||||
#: client/scenes/stream_gui.cpp:458
|
||||
msgid "Bitrate:"
|
||||
msgstr "Velocità di trasmissione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:474
|
||||
#: client/scenes/stream_gui.cpp:468
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "Clicca per cambiare la velocità di trasmissione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:537
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "Centro di foveazione manuale"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:540
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "Attiva"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Altezza {:.1f} deg"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distanza {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:550
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "Reimposta"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:561
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "Cambia"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:594
|
||||
#: client/scenes/stream_gui.cpp:588
|
||||
msgid "Use the right thumbstick to adjust the bitrate"
|
||||
msgstr "Usa lo stick destro per cambiare la velocità di trasmissione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:595
|
||||
#: client/scenes/stream_gui.cpp:589
|
||||
msgid "Press A to go back"
|
||||
msgstr "Premi A per tornare indietro"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:596
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#, c++-format
|
||||
msgid "Bitrate: {}Mbit/s"
|
||||
msgstr "Velocità di trasmissione: {}Mbit/s"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:618
|
||||
#: client/scenes/stream_gui.cpp:612
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "Usa gli stick per spostare il centro di foveazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:619
|
||||
#: client/scenes/stream_gui.cpp:613
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "A per salvare, B per annullare"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:677
|
||||
#: client/scenes/stream_gui.cpp:671
|
||||
msgid "Running XR applications:"
|
||||
msgstr "Applicazioni XR avviate:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:694
|
||||
#: client/scenes/stream_gui.cpp:688
|
||||
msgid "Overlays"
|
||||
msgstr "Overlays"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:733
|
||||
#: client/scenes/stream_gui.cpp:727
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:983
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "Applicazioni"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:986
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "Avvio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:999
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "Statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1005
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Solo statistiche"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1008
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "Modalità compatta"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-17 12:42+0900\n"
|
||||
"POT-Creation-Date: 2026-03-03 13:37+0900\n"
|
||||
"PO-Revision-Date: 2025-04-10 07:14+0900\n"
|
||||
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
|
||||
"Language-Team: Japanese <>\n"
|
||||
@@ -301,7 +301,8 @@ msgstr "詳細情報"
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
|
||||
msgstr "Vulkanドライバーが見つかりません。「flatpak update」を実行してみて下さい。"
|
||||
msgstr ""
|
||||
"Vulkanドライバーが見つかりません。「flatpak update」を実行してみて下さい。"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
@@ -452,19 +453,19 @@ msgstr "問題解決"
|
||||
msgid "Version %1"
|
||||
msgstr "バージョン%1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#: dashboard/qml/SelectGame.qml:12
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "なし"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:20
|
||||
#: dashboard/qml/SelectGame.qml:18
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "カスタム"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#: dashboard/qml/SelectGame.qml:70
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
|
||||
+175
-169
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.16\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-17 12:42+0900\n"
|
||||
"POT-Creation-Date: 2026-03-03 13:37+0900\n"
|
||||
"PO-Revision-Date: 2024-06-20 10:33+0900\n"
|
||||
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
|
||||
"Language: Japanese\n"
|
||||
@@ -14,56 +14,56 @@ msgstr ""
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "互換性のあるスワップチェーンは見つからなかった"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:127
|
||||
#: client/scenes/app_launcher.cpp:119
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "WiVRnサーバーに接続しました。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:129
|
||||
#: client/scenes/app_launcher.cpp:121
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "{}に接続しました。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
#: client/scenes/app_launcher.cpp:127
|
||||
msgid "Start an application on the server to start streaming."
|
||||
msgstr "VRアプリを起動してVRに入りましょう!"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:145
|
||||
#: client/scenes/app_launcher.cpp:137
|
||||
msgid "Start an application on your computer or select one to start streaming."
|
||||
msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:147
|
||||
#: client/scenes/app_launcher.cpp:139
|
||||
#, c++-format
|
||||
msgid "Start an application on {} or select one to start streaming."
|
||||
msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。"
|
||||
|
||||
#: client/scenes/lobby.cpp:230
|
||||
#: client/scenes/lobby.cpp:221
|
||||
msgid "Incompatible WiVRn server: no protocol field in TXT"
|
||||
msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)"
|
||||
|
||||
#: client/scenes/lobby.cpp:233
|
||||
#: client/scenes/lobby.cpp:224
|
||||
#, c++-format
|
||||
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
|
||||
msgstr "互換性のないサーバー(クライエント{}、サーバー{})"
|
||||
|
||||
#: client/scenes/lobby.cpp:248
|
||||
#: client/scenes/lobby.cpp:239
|
||||
#, c++-format
|
||||
msgid "Cannot resolve hostname: {}"
|
||||
msgstr "ホスト名解決に失敗:{}"
|
||||
|
||||
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
|
||||
#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332
|
||||
#, c++-format
|
||||
msgid "Cannot connect to {} ({}): {}"
|
||||
msgstr "{}に接続できませんでした:({}) {}"
|
||||
|
||||
#: client/scenes/lobby.cpp:424
|
||||
#: client/scenes/lobby.cpp:410
|
||||
msgid "Waiting for connection"
|
||||
msgstr "接続を待っています"
|
||||
|
||||
#: client/scenes/lobby.cpp:1307
|
||||
#: client/scenes/lobby.cpp:1298
|
||||
msgid "Passthrough"
|
||||
msgstr "パススルー"
|
||||
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
msgid "Default environment"
|
||||
msgstr "デフォルトのホーム環境"
|
||||
|
||||
@@ -82,14 +82,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "無効"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:992
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "切断する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:752
|
||||
#: client/scenes/lobby_gui_customize.cpp:843
|
||||
#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "閉じる"
|
||||
|
||||
@@ -110,32 +111,41 @@ msgstr "暗証番号"
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "パソコンで表示された暗証番号を入力してください"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Disconnected"
|
||||
msgstr "切断されました"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "{}から切断されました"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "表示名"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "アドレス"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "ポート番号"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "TCPのみを使用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:944
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:654
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "キャンセル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "保存する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -143,46 +153,46 @@ msgstr ""
|
||||
"ローカルネットワークでWiVRnサーバーを\n"
|
||||
"起動してみて下さい"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "自動接続"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "接続する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "互換性のないサーバーです"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "サーバーは利用不可です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "日本語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "言語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "デバイス言語"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "リフレッシュレート"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "自動"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -190,39 +200,35 @@ msgstr ""
|
||||
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
|
||||
"変更時にチラツキが発生する可能性があります。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "最低リフレッシュレート"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "フォビエーション・レベル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:673
|
||||
msgid "Render resolution"
|
||||
msgstr "レンダー解像度"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:677
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - 目あたり{}x{}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:688
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr ""
|
||||
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Foveated encoding"
|
||||
msgstr "エンコード・フォビエーション"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -230,7 +236,7 @@ msgstr ""
|
||||
"高い方は、視線方向の画質を最適化し、\n"
|
||||
"応答速度、電力効率、画質を向上させます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:718
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -238,86 +244,86 @@ msgstr ""
|
||||
"高い方は、画面の中央の画質を最適化し、\n"
|
||||
"応答速度、電力効率、画質を向上させます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "自動"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:731
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:733
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:735
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid "Codec"
|
||||
msgstr "コーデック"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
msgid "10-bit"
|
||||
msgstr "10ビット"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
#: client/scenes/lobby_gui.cpp:787
|
||||
msgid "Bitrate"
|
||||
msgstr "ビットレート"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
#: client/scenes/lobby_gui.cpp:791
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:784
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
msgid "High power mode"
|
||||
msgstr "高電力モード"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:787
|
||||
#: client/scenes/lobby_gui.cpp:805
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr "HMDの性能問題を緩和するため、電力を増加させます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:793
|
||||
#: client/scenes/lobby_gui.cpp:811
|
||||
msgid "Enable microphone"
|
||||
msgstr "マイクを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:820
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "未処理のマイク音声"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "ノイズ除去などのフィルターを無効化する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:815
|
||||
#: client/scenes/lobby_gui.cpp:833
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "ハンドトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
|
||||
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
#: client/scenes/lobby_gui.cpp:839 client/scenes/lobby_gui.cpp:850
|
||||
#: client/scenes/lobby_gui.cpp:860 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui_customize.cpp:639
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "デバイスはこの機能をサポートしていません"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:844
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "アイトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:837
|
||||
#: client/scenes/lobby_gui.cpp:855
|
||||
msgid "Enable face tracking"
|
||||
msgstr "顔トラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui.cpp:867
|
||||
msgid "Enable body tracking"
|
||||
msgstr "ボディラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:862
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -328,11 +334,11 @@ msgstr ""
|
||||
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
|
||||
"とになる。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "下半身トラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:878
|
||||
#: client/scenes/lobby_gui.cpp:896
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -342,11 +348,11 @@ msgstr ""
|
||||
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
|
||||
"有効する必要がある。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:899
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "腰のトラッキングを有効する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -354,11 +360,11 @@ msgstr ""
|
||||
"下半身トラッキングが有効な場合に使用可能。\n"
|
||||
"腰トラッカーを持ってる方は無効にしましょう。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:896
|
||||
#: client/scenes/lobby_gui.cpp:914
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "ストリーミング中の設定パネル"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:899
|
||||
#: client/scenes/lobby_gui.cpp:917
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -366,23 +372,23 @@ msgstr ""
|
||||
"ストリーミング中にも設定パネルを表示できるようにします。\n"
|
||||
"両方のサムスティックを同時に押して切り替えることができます。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:903
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid "Extended configuration values"
|
||||
msgstr "設定に対する制限の緩和"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "不安定な状態が発生しないよう、十分にご注意ください。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475
|
||||
#: client/scenes/lobby_gui.cpp:938 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "OpenXRポストエフェクト"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:942 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "スーパーサンプリング"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500
|
||||
#: client/scenes/lobby_gui.cpp:962 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -390,11 +396,11 @@ msgstr ""
|
||||
"コントラストが高い部分のギザギザを低減する。\n"
|
||||
"ストリームの解像度は、HMDの解像度より高い場合は有用です。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "シャープ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -402,129 +408,129 @@ msgstr ""
|
||||
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
|
||||
"ストリームの解像度は、HMDの解像度より低い場合に有用です。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/lobby_gui.cpp:1171 client/scenes/lobby_gui.cpp:1179
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "CPU使用時間"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1157
|
||||
#: client/scenes/lobby_gui.cpp:1175
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU使用時間、ミリ秒"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373
|
||||
#: client/scenes/lobby_gui.cpp:1185 client/scenes/lobby_gui.cpp:1193
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "GPU使用時間"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1171
|
||||
#: client/scenes/lobby_gui.cpp:1189
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU使用時間、ミリ秒"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1235
|
||||
#: client/scenes/lobby_gui.cpp:1253
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "マイクを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1240
|
||||
#: client/scenes/lobby_gui.cpp:1258
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "アイトラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1245
|
||||
#: client/scenes/lobby_gui.cpp:1263
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "フェースラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1250
|
||||
#: client/scenes/lobby_gui.cpp:1268
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "ボディトラッキングを有効にしますか?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1258
|
||||
#: client/scenes/lobby_gui.cpp:1276
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "WiVRnへようこそ!"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1286
|
||||
#: client/scenes/lobby_gui.cpp:1304
|
||||
msgid "Yes"
|
||||
msgstr "はい"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
#: client/scenes/lobby_gui.cpp:1311
|
||||
msgid "No"
|
||||
msgstr "いいえ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
|
||||
#: client/scenes/lobby_gui.cpp:1330 client/scenes/lobby_gui.cpp:1976
|
||||
msgid "Licenses"
|
||||
msgstr "ライセンス"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1606
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "マイクは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1589
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "マイクは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1616
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "ハンドトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1599
|
||||
#: client/scenes/lobby_gui.cpp:1617
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "ハンドラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1626
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "アイトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1609
|
||||
#: client/scenes/lobby_gui.cpp:1627
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "アイトラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1637
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "フェーストラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1620
|
||||
#: client/scenes/lobby_gui.cpp:1638
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "フェーストラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "ボディトラッキングは有効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1653
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "ボディトラッキングは無効です"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
#: client/scenes/lobby_gui.cpp:1669
|
||||
msgid "Add server"
|
||||
msgstr "サーバーを追加する"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1937
|
||||
#: client/scenes/lobby_gui.cpp:1955
|
||||
msgid "Server list"
|
||||
msgstr "サーバー"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973
|
||||
#: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "設定"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1943
|
||||
#: client/scenes/lobby_gui.cpp:1961
|
||||
msgid "Post-processing"
|
||||
msgstr "ポストエフェクト"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1946
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
msgid "Customize"
|
||||
msgstr "カスタマイズ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1950
|
||||
#: client/scenes/lobby_gui.cpp:1968
|
||||
msgid "Debug"
|
||||
msgstr "デバッグ"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1955
|
||||
#: client/scenes/lobby_gui.cpp:1973
|
||||
msgid "About"
|
||||
msgstr "WiVRnについて"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1961
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Exit"
|
||||
msgstr "完了"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1978
|
||||
#: client/scenes/lobby_gui.cpp:1996
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -532,7 +538,7 @@ msgstr ""
|
||||
"メイン・パネルを動かすには、グリップを握るか、\n"
|
||||
"手のひらを上向きにしましょう。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "グリップを握ってパネルを動かしましょう。"
|
||||
|
||||
@@ -545,38 +551,38 @@ msgstr "ローカル環境"
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "ローカル環境({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#: client/scenes/lobby_gui_customize.cpp:299
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "ローカル環境ロードできません:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#: client/scenes/lobby_gui_customize.cpp:332
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "環境リストをロードできませんでした:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:462
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "作者:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#: client/scenes/lobby_gui_customize.cpp:466
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "サイズ:{:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
#: client/scenes/lobby_gui_customize.cpp:546
|
||||
msgid "Delete this model"
|
||||
msgstr "モデルを削除しますか?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#: client/scenes/lobby_gui_customize.cpp:582
|
||||
#: client/scenes/lobby_gui_customize.cpp:788
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "{}をダウンロード中にHTTP {}が発生しました。"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#: client/scenes/lobby_gui_customize.cpp:590
|
||||
#: client/scenes/lobby_gui_customize.cpp:796
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -585,186 +591,186 @@ msgstr ""
|
||||
"{}をダウンロード中にCurlエラーが発生しました。\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:651
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "{}を削除しますか?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
#: client/scenes/lobby_gui_customize.cpp:655
|
||||
msgid "Delete"
|
||||
msgstr "削除"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#: client/scenes/lobby_gui_customize.cpp:736
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "環境をロードできませんでした:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
#: client/scenes/lobby_gui_customize.cpp:744
|
||||
msgid "Loading environment"
|
||||
msgstr "ホーム環境をロード中"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
#: client/scenes/lobby_gui_customize.cpp:823
|
||||
msgid "Download more environments"
|
||||
msgstr "ホーム環境をダウンロード"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
#: client/scenes/lobby_gui_customize.cpp:831
|
||||
msgid "Open local glTF model"
|
||||
msgstr "glTFファイルを開く"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "フォビエーション解除"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:178
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "ネットワーク"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "ダウンロード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "アップロード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:248
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "デコーダー {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:260
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "タイミング、ミリ秒"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "動画エンコード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "送信"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "受信"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "デコード"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "描画"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "表示"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:326
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "予測時間"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:345
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:350
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "グリップを握ってパネルを動かしましょう。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:900
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "両方のサムスティックを同時に押すことで設定表示"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:374
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "「Motion-to-photon」遅延"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:460
|
||||
#: client/scenes/stream_gui.cpp:458
|
||||
msgid "Bitrate:"
|
||||
msgstr "ビットレート:"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:470
|
||||
#: client/scenes/stream_gui.cpp:468
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "クリックしてビットレートを調整"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "光学中心の調整"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:537
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "有効"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "仰角 {:.1f}°"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "距離 {:.2f}m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:547
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "デフォルト"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:558
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "編集"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#: client/scenes/stream_gui.cpp:588
|
||||
msgid "Use the right thumbstick to adjust the bitrate"
|
||||
msgstr "右スティックでビットレートを調整しましょう"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:591
|
||||
#: client/scenes/stream_gui.cpp:589
|
||||
msgid "Press A to go back"
|
||||
msgstr "「A」を押して戻る"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:592
|
||||
#: client/scenes/stream_gui.cpp:590
|
||||
#, c++-format
|
||||
msgid "Bitrate: {}Mbit/s"
|
||||
msgstr "ビットレート:{}Mbps"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:614
|
||||
#: client/scenes/stream_gui.cpp:612
|
||||
msgid "Use the thumbsticks to move the foveation center"
|
||||
msgstr "ジョイスティックを使って中心点を調整しましょう。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:615
|
||||
#: client/scenes/stream_gui.cpp:613
|
||||
msgid "Press A to save or B to cancel"
|
||||
msgstr "AかBを押してキャンセル。"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:673
|
||||
#: client/scenes/stream_gui.cpp:671
|
||||
msgid "Running XR applications:"
|
||||
msgstr "XRアプリの実行"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:690
|
||||
#: client/scenes/stream_gui.cpp:688
|
||||
msgid "Overlays"
|
||||
msgstr "オーバーレイ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:729
|
||||
#: client/scenes/stream_gui.cpp:727
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "終了シグナルを送信する"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:959
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "アプリ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:962
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "実行する"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:976
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "統計情報"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:982
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "統計オーバーレイ"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:985
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "コンパクト・モード"
|
||||
|
||||
|
||||
+146
-136
@@ -11,41 +11,41 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-01-31 21:11+0100\n"
|
||||
"PO-Revision-Date: 2026-02-02 15:55+0100\n"
|
||||
"POT-Creation-Date: 2026-02-27 16:03+0100\n"
|
||||
"PO-Revision-Date: 2026-02-28 16:29+0100\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: Lokalize 25.12.1\n"
|
||||
"X-Generator: Lokalize 25.12.2\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: client/scene.cpp:73
|
||||
msgid "No supported swapchain format"
|
||||
msgstr "Sem formato de cadeia de troca suportado"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:128
|
||||
#: client/scenes/app_launcher.cpp:127
|
||||
msgid "Connected to WiVRn server"
|
||||
msgstr "Conectado ao servidor WiVRn"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:130
|
||||
#: client/scenes/app_launcher.cpp:129
|
||||
#, c++-format
|
||||
msgid "Connected to {}"
|
||||
msgstr "Conectado a {}"
|
||||
|
||||
#: client/scenes/app_launcher.cpp:136
|
||||
#: client/scenes/app_launcher.cpp:135
|
||||
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:146
|
||||
#: client/scenes/app_launcher.cpp:145
|
||||
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:148
|
||||
#: client/scenes/app_launcher.cpp:147
|
||||
#, 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."
|
||||
@@ -73,11 +73,11 @@ msgstr "Incapaz de conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Aguardando conexão"
|
||||
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
#: client/scenes/lobby.cpp:1316
|
||||
msgid "Passthrough"
|
||||
msgstr "Passthrough"
|
||||
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
#: client/scenes/lobby.cpp:1328
|
||||
msgid "Default environment"
|
||||
msgstr "Ambiente default"
|
||||
|
||||
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "Desabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:1009
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "Fechar"
|
||||
|
||||
@@ -124,32 +125,41 @@ msgstr "PIN"
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "Entre o PIN mostrado no painel"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Disconnected"
|
||||
msgstr "Desconectado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "Desconectado de {}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "Nome"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "Endereço"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "Porta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "TCP somente"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:962
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "Salvar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -157,46 +167,46 @@ msgstr ""
|
||||
"Inicie um servidor WiVRn em sua\n"
|
||||
"rede local"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "Autoconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "Conectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "Versão de servidor incompatível"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "Servidor não disponível"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "Português (Brasil)"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "Linguagem"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "Linguagem do Sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taxa de atualização"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -204,38 +214,38 @@ 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:606 client/scenes/stream_gui.cpp:439
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taxa de atualização mínima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Foveation level"
|
||||
msgstr "Nível de foveação"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Render resolution"
|
||||
msgstr "Resolução de renderização"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} por olho"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#, 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:680
|
||||
#: client/scenes/lobby_gui.cpp:723
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Codificação foveada"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:740
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -243,7 +253,7 @@ msgstr ""
|
||||
"Valores mais altos focalizam a qualidade de imagem a onde você olha,\n"
|
||||
"melhorando latência, eficiência energética e qualidade."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -251,88 +261,88 @@ msgstr ""
|
||||
"Valores mais altos focalizam qualidade de image, no centro,\n"
|
||||
"melhorando latência, eficiência energética e qualidade."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:752
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:758
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:796
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
#: client/scenes/lobby_gui.cpp:812
|
||||
msgid "Bitrate"
|
||||
msgstr "Bitrate"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#: client/scenes/lobby_gui.cpp:816
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
#: client/scenes/lobby_gui.cpp:827
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alta potência"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
#: client/scenes/lobby_gui.cpp:830
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Aumenta a potência para permitir resolução e taxa de atualização mais altas"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable microphone"
|
||||
msgstr "Ativar microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
#: client/scenes/lobby_gui.cpp:845
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Áudio Não-processado de Microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
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:814
|
||||
#: client/scenes/lobby_gui.cpp:858
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Ativar rastreamento de mãos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Este recurso não é suportado pelo seu headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
#: client/scenes/lobby_gui.cpp:869
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Ativar rastreamento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Ativar rastreamento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
#: client/scenes/lobby_gui.cpp:892
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Ativar rastreamento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -344,11 +354,11 @@ msgstr ""
|
||||
"estimados\n"
|
||||
"com base nas posições do controle e do headset."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
#: client/scenes/lobby_gui.cpp:915
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Ativar rastreamento corporal inferior"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -359,11 +369,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:880
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Ativar rastreamento de quadril"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
#: client/scenes/lobby_gui.cpp:930
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -371,11 +381,11 @@ 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:895
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar janela na stream"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
#: client/scenes/lobby_gui.cpp:942
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -384,23 +394,23 @@ msgstr ""
|
||||
"streamado.\n"
|
||||
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
#: client/scenes/lobby_gui.cpp:946
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valores de configuração estendidos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
#: client/scenes/lobby_gui.cpp:949
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "Permite valores de configuração inseguros, use por sua conta e risco."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473
|
||||
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Pós-processamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersampling"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -408,11 +418,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:948 client/scenes/stream_gui.cpp:503
|
||||
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "Aumento de nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524
|
||||
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -420,129 +430,129 @@ 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:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
#: client/scenes/lobby_gui.cpp:1200
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1278
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Habilitar o microfone?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
#: client/scenes/lobby_gui.cpp:1283
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Habilitar o rastreamento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
#: client/scenes/lobby_gui.cpp:1288
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Habilitar o rastreamento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Habilitar o rastreamento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
#: client/scenes/lobby_gui.cpp:1301
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bem vindo(a) ao WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
#: client/scenes/lobby_gui.cpp:1329
|
||||
msgid "Yes"
|
||||
msgstr "Sim"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
#: client/scenes/lobby_gui.cpp:1336
|
||||
msgid "No"
|
||||
msgstr "Não"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
|
||||
msgid "Licenses"
|
||||
msgstr "Licenças"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
#: client/scenes/lobby_gui.cpp:1631
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "O microfone está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1632
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "O microfone está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
#: client/scenes/lobby_gui.cpp:1641
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "O rastreamento de mãos está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1642
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "O rastreamento de mãos está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "O rastreamento ocular está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "O rastreamento ocular está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1662
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "O rastreamento facial está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1663
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "O rastreamento facial está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
#: client/scenes/lobby_gui.cpp:1677
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "O rastreamento corporal está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "O rastreamento corporal está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
#: client/scenes/lobby_gui.cpp:1694
|
||||
msgid "Add server"
|
||||
msgstr "Adicionar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
|
||||
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
msgid "Post-processing"
|
||||
msgstr "Pós-processamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1989
|
||||
msgid "Customize"
|
||||
msgstr "Personalizar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
#: client/scenes/lobby_gui.cpp:1993
|
||||
msgid "Debug"
|
||||
msgstr "Depurar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "About"
|
||||
msgstr "Sobre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Exit"
|
||||
msgstr "Sair"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
#: client/scenes/lobby_gui.cpp:2021
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -550,7 +560,7 @@ msgstr ""
|
||||
"Pressione o botão de aderência ou coloque a palma\n"
|
||||
"da mão para cima para mover a janela principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
#: client/scenes/lobby_gui.cpp:2023
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pressione o botão de aderência para mover a janela principal"
|
||||
|
||||
@@ -629,73 +639,73 @@ msgstr "Baixar mais ambientes"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo local glTF"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "Defoveação"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "Rede"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "Download"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "Upload"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "Decodificador {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "Tempos [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "Codificação"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "Envio"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "Recepção"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "Decodificação"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "Blitagem"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "Exibição"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "Previsão"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:343
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "Movimento estimado para a latência de fótons: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:348
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
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:350 client/scenes/stream_gui.cpp:918
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "Latência (de movimento para fótons)"
|
||||
|
||||
@@ -707,29 +717,29 @@ msgstr "Bitrate:"
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "Clique para ajustar a bitrate"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:531
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "Ajuste do centro de foveação"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "Habilitar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "Altura {:.1f} graus"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "Distância {:.2f} m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:544
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "Padrão"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "Modificar"
|
||||
|
||||
@@ -766,23 +776,23 @@ msgstr "Overlays"
|
||||
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:977
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "Aplicativos"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:980
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "Iniciar"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "Estatísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:999
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "Overlay de estatísticas"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1002
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "Visualização compacta"
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-02 21:05+0800\n"
|
||||
"PO-Revision-Date: 2026-02-08 12:43+0800\n"
|
||||
"POT-Creation-Date: 2026-02-18 16:24+0800\n"
|
||||
"PO-Revision-Date: 2026-02-25 21:21+0800\n"
|
||||
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -119,8 +119,8 @@ msgstr "正在检查最新版本..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "此版本无预编译 APK"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
|
||||
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
|
||||
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -161,7 +161,7 @@ msgstr "重新安装 WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "安装 WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "头显"
|
||||
@@ -282,7 +282,7 @@ msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi 守护进程未启用"
|
||||
|
||||
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:223
|
||||
#: dashboard/qml/Main.qml:231
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "修复"
|
||||
@@ -305,6 +305,16 @@ msgstr "更多信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
|
||||
msgstr "找不到 Vulkan 设备,您或许需要执行 \"flatpak update\""
|
||||
|
||||
#: dashboard/qml/Main.qml:193
|
||||
#, kde-format
|
||||
msgid "Vulkan drivers cannot be found"
|
||||
msgstr "无法找到 Vulkan 设备"
|
||||
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
|
||||
@@ -312,7 +322,7 @@ msgstr ""
|
||||
"AMD 显卡请使用 Mesa (radv) 驱动程序\n"
|
||||
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:209
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -321,142 +331,142 @@ msgstr ""
|
||||
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
|
||||
"请安装 xrizer 或 OpenComposite"
|
||||
|
||||
#: dashboard/qml/Main.qml:209
|
||||
#: dashboard/qml/Main.qml:217
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
|
||||
|
||||
#: dashboard/qml/Main.qml:217
|
||||
#: dashboard/qml/Main.qml:225
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
|
||||
|
||||
#: dashboard/qml/Main.qml:232
|
||||
#: dashboard/qml/Main.qml:240
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "重新启动服务器以使配置更改生效。"
|
||||
|
||||
#: dashboard/qml/Main.qml:238
|
||||
#: dashboard/qml/Main.qml:246
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "立即重新启动"
|
||||
|
||||
#: dashboard/qml/Main.qml:263
|
||||
#: dashboard/qml/Main.qml:271
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "服务器启动失败"
|
||||
|
||||
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "开启服务器日志"
|
||||
|
||||
#: dashboard/qml/Main.qml:295
|
||||
#: dashboard/qml/Main.qml:303
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "服务器状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:301
|
||||
#: dashboard/qml/Main.qml:309
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "运行"
|
||||
|
||||
#: dashboard/qml/Main.qml:314
|
||||
#: dashboard/qml/Main.qml:322
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "配对"
|
||||
|
||||
#: dashboard/qml/Main.qml:334
|
||||
#: dashboard/qml/Main.qml:342
|
||||
#, kde-format
|
||||
msgid "Headset status"
|
||||
msgstr "头显状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:341
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#, kde-format
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "头显"
|
||||
|
||||
#: dashboard/qml/Main.qml:344
|
||||
#: dashboard/qml/Main.qml:352
|
||||
#, kde-format
|
||||
msgid "Not connected"
|
||||
msgstr "未连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:348
|
||||
#: dashboard/qml/Main.qml:356
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "断开连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
|
||||
#: dashboard/qml/Main.qml:372
|
||||
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
|
||||
#: dashboard/qml/Main.qml:380
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:358
|
||||
#: dashboard/qml/Main.qml:366
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "链接 (有线)"
|
||||
|
||||
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "没有检测到头显,或您的头显未启用开发者模式"
|
||||
|
||||
#: dashboard/qml/Main.qml:396
|
||||
#: dashboard/qml/Main.qml:404
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Steam 信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:412
|
||||
#: dashboard/qml/Main.qml:420
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "向导"
|
||||
|
||||
#: dashboard/qml/Main.qml:418
|
||||
#: dashboard/qml/Main.qml:426
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "安装应用程序"
|
||||
|
||||
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: dashboard/qml/Main.qml:443
|
||||
#: dashboard/qml/Main.qml:451
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "关于"
|
||||
|
||||
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "疑难解答"
|
||||
|
||||
#: dashboard/qml/Main.qml:455
|
||||
#: dashboard/qml/Main.qml:463
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "版本 %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#: dashboard/qml/SelectGame.qml:12
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
msgid "None"
|
||||
msgstr "无"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:20
|
||||
#: dashboard/qml/SelectGame.qml:18
|
||||
#, kde-format
|
||||
msgctxt "choose a custom application to start"
|
||||
msgid "Custom"
|
||||
msgstr "自定义"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:72
|
||||
#: dashboard/qml/SelectGame.qml:70
|
||||
#, kde-format
|
||||
msgctxt "browse a file to choose the application to start"
|
||||
msgid "Browse"
|
||||
|
||||
+139
-129
@@ -2,14 +2,14 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn package.
|
||||
# Jayden Ha <jayden@jaydenha.uk>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-02-07 17:21+0800\n"
|
||||
"PO-Revision-Date: 2025-12-31 18:23+0800\n"
|
||||
"POT-Creation-Date: 2026-02-27 23:03+0800\n"
|
||||
"PO-Revision-Date: 2026-02-28 21:35+0800\n"
|
||||
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
|
||||
msgid "Disabled"
|
||||
msgstr "停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
|
||||
#: client/scenes/stream_gui.cpp:1026
|
||||
msgid "Disconnect"
|
||||
msgstr "终止连接"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
|
||||
#: client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
|
||||
msgid "Close"
|
||||
msgstr "关闭"
|
||||
|
||||
@@ -119,32 +120,41 @@ msgstr "身份识别码"
|
||||
msgid "Input the PIN displayed on the dashboard"
|
||||
msgstr "请输入显示在控制面板上的身份识别码"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:282
|
||||
msgid "Disconnected"
|
||||
msgstr "连接已断开"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:284
|
||||
#, c++-format
|
||||
msgid "Disconnected from {}"
|
||||
msgstr "{} 连接已断开"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:316
|
||||
msgid "Name"
|
||||
msgstr "名"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:295
|
||||
#: client/scenes/lobby_gui.cpp:327
|
||||
msgid "Address"
|
||||
msgstr "服务器地址"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:304
|
||||
#: client/scenes/lobby_gui.cpp:336
|
||||
msgid "Port"
|
||||
msgstr "端口"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:312
|
||||
#: client/scenes/lobby_gui.cpp:344
|
||||
msgid "TCP only"
|
||||
msgstr "仅限 TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:962
|
||||
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:978
|
||||
msgid "Cancel"
|
||||
msgstr "取消"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:333
|
||||
#: client/scenes/lobby_gui.cpp:365
|
||||
msgid "Save"
|
||||
msgstr "保存"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:386
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
msgid ""
|
||||
"Start a WiVRn server on your\n"
|
||||
"local network"
|
||||
@@ -152,46 +162,46 @@ msgstr ""
|
||||
"在您的局域网中启动\n"
|
||||
"WiVRn 服务器"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:418
|
||||
#: client/scenes/lobby_gui.cpp:450
|
||||
msgid "Autoconnect"
|
||||
msgstr "自动连接"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:444
|
||||
#: client/scenes/lobby_gui.cpp:476
|
||||
msgid "Connect"
|
||||
msgstr "连接"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
|
||||
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
|
||||
msgid "Incompatible server version"
|
||||
msgstr "服务器版本不兼容"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:456
|
||||
#: client/scenes/lobby_gui.cpp:488
|
||||
msgid "Server not available"
|
||||
msgstr "服务器不可用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:538
|
||||
#: client/scenes/lobby_gui.cpp:581
|
||||
msgctxt "language selection, replace with the name of the language"
|
||||
msgid "English"
|
||||
msgstr "中文"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552
|
||||
#: client/scenes/lobby_gui.cpp:595
|
||||
msgid "Language"
|
||||
msgstr "语言"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
|
||||
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
|
||||
msgid "System language"
|
||||
msgstr "系统语言"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
|
||||
msgid "Refresh rate"
|
||||
msgstr "刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
|
||||
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
|
||||
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "自动"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
|
||||
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -199,38 +209,38 @@ msgstr ""
|
||||
"根据测量的应用程序性能选择刷新率。\n"
|
||||
"更改时可能会造成闪烁。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
|
||||
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "最低刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
#: client/scenes/lobby_gui.cpp:675
|
||||
msgid "Foveation level"
|
||||
msgstr "注视点渲染等级"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
#: client/scenes/lobby_gui.cpp:698
|
||||
msgid "Render resolution"
|
||||
msgstr "渲染分辨率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#: client/scenes/lobby_gui.cpp:702
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - 单眼 {}x{}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "分辨率高于 {}x{} 可能不被头显支持"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
#: client/scenes/lobby_gui.cpp:723
|
||||
msgid "Foveated encoding"
|
||||
msgstr "注视点编码"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#: client/scenes/lobby_gui.cpp:727
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
#: client/scenes/lobby_gui.cpp:740
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -238,7 +248,7 @@ msgstr ""
|
||||
"更高的数值会降低注视点之外的画面质量,\n"
|
||||
"从而改善延迟、提升能效并优化整体画质。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
#: client/scenes/lobby_gui.cpp:743
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
@@ -246,86 +256,86 @@ msgstr ""
|
||||
"更高的数值会降低画面中心点之外的画面质量,\n"
|
||||
"从而改善延迟、提高能效并优化整体画质。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
#: client/scenes/lobby_gui.cpp:752
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "自动"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
#: client/scenes/lobby_gui.cpp:758
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Codec"
|
||||
msgstr "编解码器"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
#: client/scenes/lobby_gui.cpp:796
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:769
|
||||
#: client/scenes/lobby_gui.cpp:812
|
||||
msgid "Bitrate"
|
||||
msgstr "码率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:773
|
||||
#: client/scenes/lobby_gui.cpp:816
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:784
|
||||
#: client/scenes/lobby_gui.cpp:827
|
||||
msgid "High power mode"
|
||||
msgstr "高耗电模式"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:787
|
||||
#: client/scenes/lobby_gui.cpp:830
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr "增加功耗以支持更高的分辨率和刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:793
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable microphone"
|
||||
msgstr "启用麦克风"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:845
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "未处理的麦克风音频"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808
|
||||
#: client/scenes/lobby_gui.cpp:851
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "强制停用音频滤波器,如降噪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:815
|
||||
#: client/scenes/lobby_gui.cpp:858
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "启用手部追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
|
||||
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
|
||||
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
|
||||
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "您的头显不支持此功能"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:869
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "启用眼动追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:837
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable face tracking"
|
||||
msgstr "启用面部追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui.cpp:892
|
||||
msgid "Enable body tracking"
|
||||
msgstr "启用身体追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:862
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -334,11 +344,11 @@ msgstr ""
|
||||
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n"
|
||||
"否则身体数据将根据手柄和头显的位置进行猜测"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:872
|
||||
#: client/scenes/lobby_gui.cpp:915
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "启用下半身追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:878
|
||||
#: client/scenes/lobby_gui.cpp:921
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -347,11 +357,11 @@ msgstr ""
|
||||
"使用 Generative Legs 猜测下半身关节位置\n"
|
||||
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:881
|
||||
#: client/scenes/lobby_gui.cpp:924
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "启用臀部(腰部)追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:930
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -359,11 +369,11 @@ msgstr ""
|
||||
"仅在启用下半身追踪时生效\n"
|
||||
"在使用其他臀部追踪时可能需要此功能"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:896
|
||||
#: client/scenes/lobby_gui.cpp:939
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "启用串流中窗口"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:899
|
||||
#: client/scenes/lobby_gui.cpp:942
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -371,23 +381,23 @@ msgstr ""
|
||||
"在游戏串流期间启用配置窗口显示\n"
|
||||
"若启用此功能,同时按下两只摇杆,将会显示该窗口。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:903
|
||||
#: client/scenes/lobby_gui.cpp:946
|
||||
msgid "Extended configuration values"
|
||||
msgstr "扩大配置值范围"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:906
|
||||
#: client/scenes/lobby_gui.cpp:949
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "允许使用不安全的配置值,风险自负。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:473
|
||||
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "OpenXR 后处理"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477
|
||||
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
|
||||
msgid "Supersampling"
|
||||
msgstr "超采样"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:498
|
||||
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -395,11 +405,11 @@ msgstr ""
|
||||
"减少高对比度边缘的闪烁。\n"
|
||||
"当串流分辨率高于头显原生分辨率时很有用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503
|
||||
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
|
||||
msgid "Sharpening"
|
||||
msgstr "锐化"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:524
|
||||
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -407,129 +417,129 @@ msgstr ""
|
||||
"改善高对比边缘的清晰度并抵消模糊。\n"
|
||||
"当串流分辨率低于头显原生分辨率时很有用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
|
||||
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
|
||||
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
|
||||
msgid "CPU time"
|
||||
msgstr "CPU 时间"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1157
|
||||
#: client/scenes/lobby_gui.cpp:1200
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU 时间 [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
|
||||
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
|
||||
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
|
||||
msgid "GPU time"
|
||||
msgstr "GPU 时间"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1171
|
||||
#: client/scenes/lobby_gui.cpp:1214
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU 时间 [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1235
|
||||
#: client/scenes/lobby_gui.cpp:1278
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "是否启用麦克风?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1240
|
||||
#: client/scenes/lobby_gui.cpp:1283
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "是否启用眼动追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1245
|
||||
#: client/scenes/lobby_gui.cpp:1288
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "是否启用面部追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1250
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "是否启用身体追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1258
|
||||
#: client/scenes/lobby_gui.cpp:1301
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "欢迎使用 WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1286
|
||||
#: client/scenes/lobby_gui.cpp:1329
|
||||
msgid "Yes"
|
||||
msgstr "是"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1293
|
||||
#: client/scenes/lobby_gui.cpp:1336
|
||||
msgid "No"
|
||||
msgstr "否"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
|
||||
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
|
||||
msgid "Licenses"
|
||||
msgstr "许可证"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
#: client/scenes/lobby_gui.cpp:1631
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "麦克风已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1589
|
||||
#: client/scenes/lobby_gui.cpp:1632
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "麦克风已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
#: client/scenes/lobby_gui.cpp:1641
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "手部追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1599
|
||||
#: client/scenes/lobby_gui.cpp:1642
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "手部追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "眼动追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1609
|
||||
#: client/scenes/lobby_gui.cpp:1652
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "眼动追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1662
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "面部追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1620
|
||||
#: client/scenes/lobby_gui.cpp:1663
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "面部追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
#: client/scenes/lobby_gui.cpp:1677
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "身体追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1678
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "身体追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1651
|
||||
#: client/scenes/lobby_gui.cpp:1694
|
||||
msgid "Add server"
|
||||
msgstr "新增服务器"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1937
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
msgid "Server list"
|
||||
msgstr "服务器列表"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
|
||||
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1943
|
||||
#: client/scenes/lobby_gui.cpp:1986
|
||||
msgid "Post-processing"
|
||||
msgstr "后处理"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1946
|
||||
#: client/scenes/lobby_gui.cpp:1989
|
||||
msgid "Customize"
|
||||
msgstr "自定义"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1950
|
||||
#: client/scenes/lobby_gui.cpp:1993
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1955
|
||||
#: client/scenes/lobby_gui.cpp:1998
|
||||
msgid "About"
|
||||
msgstr "关于"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1961
|
||||
#: client/scenes/lobby_gui.cpp:2004
|
||||
msgid "Exit"
|
||||
msgstr "退出"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1978
|
||||
#: client/scenes/lobby_gui.cpp:2021
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -537,7 +547,7 @@ msgstr ""
|
||||
"按下抓握键,或手掌向上\n"
|
||||
"以移动主窗口"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1980
|
||||
#: client/scenes/lobby_gui.cpp:2023
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "按下抓握键以移动主窗口"
|
||||
|
||||
@@ -616,73 +626,73 @@ msgstr "下载更多环境"
|
||||
msgid "Open local glTF model"
|
||||
msgstr "打开本地 glTF 模型"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
#: client/scenes/stream_gui.cpp:175
|
||||
msgid "Defoveate"
|
||||
msgstr "去凹形畸变"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
#: client/scenes/stream_gui.cpp:177
|
||||
msgid "Network"
|
||||
msgstr "网络"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
msgid "Download"
|
||||
msgstr "下载"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
|
||||
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
|
||||
msgid "Upload"
|
||||
msgstr "上传"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:246
|
||||
#: client/scenes/stream_gui.cpp:247
|
||||
#, c++-format
|
||||
msgid "Decoder {}"
|
||||
msgstr "解码器 {}"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:258
|
||||
#: client/scenes/stream_gui.cpp:259
|
||||
msgid "Timings [ms]"
|
||||
msgstr "时间信息 [ms]"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:318
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
msgid "Encode"
|
||||
msgstr "编码"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:319
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
msgid "Send"
|
||||
msgstr "发送"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:320
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
msgid "Receive"
|
||||
msgstr "接收"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:321
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
msgid "Decode"
|
||||
msgstr "解码"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:322
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
msgid "Blitted"
|
||||
msgstr "已传输位块"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:323
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
msgid "Displayed"
|
||||
msgstr "已显示"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:324
|
||||
#: client/scenes/stream_gui.cpp:325
|
||||
msgid "Predicted"
|
||||
msgstr "已预测"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:343
|
||||
#: client/scenes/stream_gui.cpp:344
|
||||
#, c++-format
|
||||
msgid "Estimated motion to photons latency: {}ms"
|
||||
msgstr "估计从运动到显示延迟: {}ms"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:348
|
||||
#: client/scenes/stream_gui.cpp:349
|
||||
msgid "Press the grip button to move the window"
|
||||
msgstr "按下抓握键来移动窗口"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
|
||||
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
|
||||
msgid "Press both thumbsticks to display the WiVRn window"
|
||||
msgstr "同时按下两侧摇杆以显示 WiVRn 窗口"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:372
|
||||
#: client/scenes/stream_gui.cpp:373
|
||||
msgid "Motion to photon latency"
|
||||
msgstr "从动作到显示的延迟"
|
||||
|
||||
@@ -694,29 +704,29 @@ msgstr "码率:"
|
||||
msgid "Click to adjust bitrate"
|
||||
msgstr "点击以调整码率"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:531
|
||||
#: client/scenes/stream_gui.cpp:532
|
||||
msgid "Foveation center override"
|
||||
msgstr "注视点渲染位置覆盖"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:534
|
||||
#: client/scenes/stream_gui.cpp:535
|
||||
msgid "Enable"
|
||||
msgstr "启用"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
|
||||
#, c++-format
|
||||
msgid "Height {:.1f} deg"
|
||||
msgstr "俯仰 {:.1f}°"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
|
||||
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
|
||||
#, c++-format
|
||||
msgid "Distance {:.2f} m"
|
||||
msgstr "距离 {:.2f}m"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:544
|
||||
#: client/scenes/stream_gui.cpp:545
|
||||
msgid "Default"
|
||||
msgstr "默认"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:555
|
||||
#: client/scenes/stream_gui.cpp:556
|
||||
msgid "Change"
|
||||
msgstr "变更"
|
||||
|
||||
@@ -753,23 +763,23 @@ msgstr "叠加层"
|
||||
msgid "Request to quit, may be ignored by the application"
|
||||
msgstr "退出请求可能会被应用程序忽略"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:977
|
||||
#: client/scenes/stream_gui.cpp:993
|
||||
msgid "Applications"
|
||||
msgstr "应用程序"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:980
|
||||
#: client/scenes/stream_gui.cpp:996
|
||||
msgid "Start"
|
||||
msgstr "启动"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:994
|
||||
#: client/scenes/stream_gui.cpp:1010
|
||||
msgid "Stats"
|
||||
msgstr "统计"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1000
|
||||
#: client/scenes/stream_gui.cpp:1016
|
||||
msgid "Statistics overlay"
|
||||
msgstr "统计数据叠加"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:1003
|
||||
#: client/scenes/stream_gui.cpp:1019
|
||||
msgid "Compact view"
|
||||
msgstr "概览"
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
723652b545a79609f9f04cb89fcbf807d9d6451a
|
||||
ef152c973b94a313e1ba9552162818b5151ac671
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 2884795b7d352e3e45348473a17660a568260d6e Mon Sep 17 00:00:00 2001
|
||||
From 6317d6556f2510cc63aa5f71d86585830a38b2a1 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
||||
Subject: [PATCH 1/8] c/multi: early wake of compositor
|
||||
Subject: [PATCH 1/9] c/multi: early wake of compositor
|
||||
|
||||
---
|
||||
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
||||
@@ -10,7 +10,7 @@ Subject: [PATCH 1/8] c/multi: early wake of compositor
|
||||
3 files changed, 41 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
index 94cea110e..88347a092 100644
|
||||
index 1fc135ce4..25b64aca8 100644
|
||||
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
From 8d22720c9574146f7115f5ba7ac39f3c4e4f48ae Mon Sep 17 00:00:00 2001
|
||||
From 71b4f13a8b7cb90edf83f75bef8459d2db66c386 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
||||
Subject: [PATCH 2/8] Use extern socket fd
|
||||
Subject: [PATCH 2/9] Use extern socket fd
|
||||
|
||||
---
|
||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
|
||||
index 36bf3e31d..e40447bb2 100644
|
||||
index 777a31e96..9235375e6 100644
|
||||
--- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c
|
||||
+++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
|
||||
@@ -48,6 +48,8 @@
|
||||
@@ -49,6 +49,8 @@
|
||||
#endif
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ index 36bf3e31d..e40447bb2 100644
|
||||
/*
|
||||
*
|
||||
* Static functions.
|
||||
@@ -56,6 +58,12 @@
|
||||
@@ -57,6 +59,12 @@
|
||||
static int
|
||||
get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From dc8c6b0fdd002631827528b0cd831e762cf74c31 Mon Sep 17 00:00:00 2001
|
||||
From d3fc5ebb88a59ce5fc1120ed33de921eec03384f 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 3/8] change environment blend mode selection logic
|
||||
Subject: [PATCH 3/9] change environment blend mode selection logic
|
||||
|
||||
---
|
||||
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From f4b4c07740dcc58438340171ec473570b002b379 Mon Sep 17 00:00:00 2001
|
||||
From 42e1e561a98f5c9fd6f757232bd4821124ae9bb3 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
||||
Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate
|
||||
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_compositor.c | 2 +-
|
||||
@@ -9,10 +9,10 @@ Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate
|
||||
2 files changed, 2 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
|
||||
index b6c4947bf..0e8ed02b7 100644
|
||||
index 3364aaead..deec90a73 100644
|
||||
--- a/src/xrt/compositor/main/comp_compositor.c
|
||||
+++ b/src/xrt/compositor/main/comp_compositor.c
|
||||
@@ -372,7 +372,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
|
||||
@@ -377,7 +377,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
|
||||
if (c->target && c->target->request_refresh_rate) {
|
||||
xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz);
|
||||
// Assume refresh rate change is immediate
|
||||
@@ -22,7 +22,7 @@ index b6c4947bf..0e8ed02b7 100644
|
||||
return result;
|
||||
}
|
||||
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
index 587cdf28f..b1f96df54 100644
|
||||
index 09297f885..9f3a7ebc2 100644
|
||||
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
@@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
From 73f329eaba1e46bf62ff6579e27cd39f0d9e6730 Mon Sep 17 00:00:00 2001
|
||||
From 4b5685fc3177fd2f54996e0a87c1efe985db9c7b Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
||||
Subject: [PATCH 5/8] Replace distortion with foveation
|
||||
Subject: [PATCH 5/9] Replace distortion with foveation
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_renderer.c | 6 +-
|
||||
src/xrt/compositor/main/comp_target.h | 3 +-
|
||||
src/xrt/compositor/render/CMakeLists.txt | 2 +-
|
||||
src/xrt/compositor/render/render_compute.c | 410 +++++++-----------
|
||||
src/xrt/compositor/render/render_interface.h | 95 ++--
|
||||
src/xrt/compositor/render/render_interface.h | 94 ++--
|
||||
src/xrt/compositor/render/render_resources.c | 106 ++---
|
||||
src/xrt/compositor/shaders/CMakeLists.txt | 2 +-
|
||||
src/xrt/compositor/shaders/clear.comp | 4 +-
|
||||
@@ -17,7 +17,7 @@ Subject: [PATCH 5/8] Replace distortion with foveation
|
||||
.../compositor/util/comp_high_level_render.h | 9 +-
|
||||
src/xrt/compositor/util/comp_render.h | 11 +-
|
||||
src/xrt/compositor/util/comp_render_cs.c | 112 ++---
|
||||
13 files changed, 356 insertions(+), 592 deletions(-)
|
||||
13 files changed, 355 insertions(+), 592 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index f6c403015..ff9728a59 100644
|
||||
@@ -647,10 +647,10 @@ index 62d7138b9..44c3f0aee 100644
|
||||
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
|
||||
.image = target_image,
|
||||
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
|
||||
index 2b7893881..3c59645dc 100644
|
||||
index 8a198707f..a4b5c53a2 100644
|
||||
--- a/src/xrt/compositor/render/render_interface.h
|
||||
+++ b/src/xrt/compositor/render/render_interface.h
|
||||
@@ -82,12 +82,8 @@ extern "C" {
|
||||
@@ -83,12 +83,8 @@ extern "C" {
|
||||
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
|
||||
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
|
||||
|
||||
@@ -665,7 +665,7 @@ index 2b7893881..3c59645dc 100644
|
||||
|
||||
//! The binding that the layer projection and quad shader have their UBO on.
|
||||
#define RENDER_BINDING_LAYER_SHARED_UBO 0
|
||||
@@ -120,12 +116,6 @@ extern "C" {
|
||||
@@ -121,12 +117,6 @@ extern "C" {
|
||||
uint32_t
|
||||
render_max_layers_capable(const struct vk_bundle *vk, bool use_compute, uint32_t desired_max_layers);
|
||||
|
||||
@@ -678,7 +678,7 @@ index 2b7893881..3c59645dc 100644
|
||||
/*!
|
||||
* Calculates a timewarp matrix which takes in NDC coords and gives out results
|
||||
* in [-1, 1] space that needs a perspective divide.
|
||||
@@ -465,7 +455,8 @@ struct render_resources
|
||||
@@ -466,7 +456,8 @@ struct render_resources
|
||||
uint32_t distortion_binding;
|
||||
|
||||
//! Writing the image out too.
|
||||
@@ -688,7 +688,7 @@ index 2b7893881..3c59645dc 100644
|
||||
|
||||
//! Uniform data binding.
|
||||
uint32_t ubo_binding;
|
||||
@@ -502,9 +493,6 @@ struct render_resources
|
||||
@@ -503,9 +494,6 @@ struct render_resources
|
||||
//! Doesn't depend on target so is static.
|
||||
VkPipeline pipeline;
|
||||
|
||||
@@ -698,7 +698,7 @@ index 2b7893881..3c59645dc 100644
|
||||
//! Target info.
|
||||
struct render_buffer ubo;
|
||||
} distortion;
|
||||
@@ -526,17 +514,11 @@ struct render_resources
|
||||
@@ -527,17 +515,11 @@ struct render_resources
|
||||
//! Transform to go from UV to tangle angles.
|
||||
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
|
||||
|
||||
@@ -720,15 +720,7 @@ index 2b7893881..3c59645dc 100644
|
||||
} distortion;
|
||||
};
|
||||
|
||||
@@ -1262,6 +1244,7 @@ struct render_compute_layer_ubo_data
|
||||
//! Timewarp matrices
|
||||
struct xrt_matrix_4x4 transforms_timewarp[RENDER_MAX_LAYERS];
|
||||
|
||||
+
|
||||
/*!
|
||||
* For quad layers
|
||||
*/
|
||||
@@ -1307,6 +1290,14 @@ struct render_compute_distortion_ubo_data
|
||||
@@ -1315,6 +1297,14 @@ struct render_compute_distortion_ubo_data
|
||||
struct xrt_matrix_4x4 transform_timewarp_scanout_end[XRT_MAX_VIEWS];
|
||||
};
|
||||
|
||||
@@ -743,7 +735,7 @@ index 2b7893881..3c59645dc 100644
|
||||
/*!
|
||||
* Init struct and create resources needed for compute rendering.
|
||||
*
|
||||
@@ -1360,7 +1351,8 @@ render_compute_layers(struct render_compute *render,
|
||||
@@ -1368,7 +1358,8 @@ render_compute_layers(struct render_compute *render,
|
||||
VkSampler src_samplers[RENDER_MAX_IMAGES_SIZE],
|
||||
VkImageView src_image_views[RENDER_MAX_IMAGES_SIZE],
|
||||
uint32_t num_srcs,
|
||||
@@ -753,7 +745,7 @@ index 2b7893881..3c59645dc 100644
|
||||
const struct render_viewport_data *view,
|
||||
bool timewarp);
|
||||
|
||||
@@ -1368,44 +1360,14 @@ render_compute_layers(struct render_compute *render,
|
||||
@@ -1376,44 +1367,14 @@ render_compute_layers(struct render_compute *render,
|
||||
* @public @memberof render_compute
|
||||
*/
|
||||
void
|
||||
@@ -806,7 +798,7 @@ index 2b7893881..3c59645dc 100644
|
||||
|
||||
/*!
|
||||
* @public @memberof render_compute
|
||||
@@ -1413,7 +1375,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
|
||||
@@ -1421,7 +1382,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
|
||||
void
|
||||
render_compute_clear(struct render_compute *render,
|
||||
VkImage target_image,
|
||||
@@ -817,7 +809,7 @@ index 2b7893881..3c59645dc 100644
|
||||
|
||||
|
||||
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
|
||||
index d28caaed8..5232a774d 100644
|
||||
index e1b4f0916..9a993dc81 100644
|
||||
--- a/src/xrt/compositor/render/render_resources.c
|
||||
+++ b/src/xrt/compositor/render/render_resources.c
|
||||
@@ -184,14 +184,15 @@ init_mesh_ubo_buffers(struct vk_bundle *vk, struct render_buffer ubo[XRT_MAX_VIE
|
||||
@@ -906,7 +898,7 @@ index d28caaed8..5232a774d 100644
|
||||
};
|
||||
|
||||
VkDescriptorSetLayoutCreateInfo set_layout_info = {
|
||||
@@ -295,12 +309,6 @@ struct compute_layer_params
|
||||
@@ -294,12 +308,6 @@ struct compute_layer_params
|
||||
uint32_t image_array_size;
|
||||
};
|
||||
|
||||
@@ -919,7 +911,7 @@ index d28caaed8..5232a774d 100644
|
||||
XRT_CHECK_RESULT static VkResult
|
||||
create_compute_layer_pipeline(struct vk_bundle *vk,
|
||||
VkPipelineCache pipeline_cache,
|
||||
@@ -345,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
|
||||
@@ -343,35 +351,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
|
||||
VkPipelineCache pipeline_cache,
|
||||
VkShaderModule shader,
|
||||
VkPipelineLayout pipeline_layout,
|
||||
@@ -956,7 +948,7 @@ index d28caaed8..5232a774d 100644
|
||||
out_compute_pipeline); // out_compute_pipeline
|
||||
}
|
||||
|
||||
@@ -539,8 +527,9 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -537,8 +525,9 @@ render_resources_init(struct render_resources *r,
|
||||
}
|
||||
r->compute.src_binding = 0;
|
||||
r->compute.distortion_binding = 1;
|
||||
@@ -967,7 +959,7 @@ index d28caaed8..5232a774d 100644
|
||||
|
||||
r->compute.layer.image_array_size =
|
||||
MIN(vk->limits.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_SIZE);
|
||||
@@ -834,9 +823,9 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -832,9 +821,9 @@ render_resources_init(struct render_resources *r,
|
||||
struct vk_descriptor_pool_info compute_pool_info = {
|
||||
.uniform_per_descriptor_count = 1,
|
||||
// layer images
|
||||
@@ -979,7 +971,7 @@ index d28caaed8..5232a774d 100644
|
||||
.descriptor_count = compute_descriptor_count,
|
||||
.freeable = false,
|
||||
};
|
||||
@@ -856,7 +845,8 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -854,7 +843,8 @@ render_resources_init(struct render_resources *r,
|
||||
ret = create_compute_layer_descriptor_set_layout( //
|
||||
vk, // vk_bundle
|
||||
r->compute.src_binding, // src_binding,
|
||||
@@ -989,7 +981,7 @@ index d28caaed8..5232a774d 100644
|
||||
r->compute.ubo_binding, // ubo_binding,
|
||||
r->compute.layer.image_array_size, // source_images_count,
|
||||
&r->compute.layer.descriptor_set_layout); // out_descriptor_set_layout
|
||||
@@ -937,7 +927,8 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -933,7 +923,8 @@ render_resources_init(struct render_resources *r,
|
||||
vk, // vk_bundle
|
||||
r->compute.src_binding, // src_binding,
|
||||
r->compute.distortion_binding, // distortion_binding,
|
||||
@@ -999,7 +991,7 @@ index d28caaed8..5232a774d 100644
|
||||
r->compute.ubo_binding, // ubo_binding,
|
||||
&r->compute.distortion.descriptor_set_layout); // out_descriptor_set_layout
|
||||
VK_CHK_WITH_RET(ret, "create_compute_distortion_descriptor_set_layout", false);
|
||||
@@ -954,39 +945,16 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -950,39 +941,16 @@ render_resources_init(struct render_resources *r,
|
||||
VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout,
|
||||
"render_resources compute distortion pipeline layout");
|
||||
|
||||
@@ -1039,7 +1031,7 @@ index d28caaed8..5232a774d 100644
|
||||
size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data);
|
||||
|
||||
ret = render_buffer_init( //
|
||||
@@ -1039,15 +1007,8 @@ render_resources_init(struct render_resources *r,
|
||||
@@ -1035,15 +1003,8 @@ render_resources_init(struct render_resources *r,
|
||||
* Compute distortion textures, not created until later.
|
||||
*/
|
||||
|
||||
@@ -1057,7 +1049,7 @@ index d28caaed8..5232a774d 100644
|
||||
|
||||
|
||||
/*
|
||||
@@ -1124,7 +1085,6 @@ render_resources_fini(struct render_resources *r)
|
||||
@@ -1120,7 +1081,6 @@ render_resources_fini(struct render_resources *r)
|
||||
|
||||
D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout);
|
||||
D(Pipeline, r->compute.distortion.pipeline);
|
||||
@@ -1066,10 +1058,10 @@ index d28caaed8..5232a774d 100644
|
||||
|
||||
D(Pipeline, r->compute.clear.pipeline);
|
||||
diff --git a/src/xrt/compositor/shaders/CMakeLists.txt b/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
index d8aca97e2..ffc79ca6e 100644
|
||||
index c8c3ce3ab..b5d899cc9 100644
|
||||
--- a/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
@@ -25,7 +25,7 @@ set(SHADERS
|
||||
@@ -26,7 +26,7 @@ set(SHADERS
|
||||
spirv_shaders(
|
||||
SHADER_HEADERS
|
||||
SPIRV_VERSION
|
||||
@@ -1415,7 +1407,7 @@ index bd7ab2957..c2b95d68d 100644
|
||||
bool do_timewarp);
|
||||
|
||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
||||
index 6e93eabe8..4a304c6f7 100644
|
||||
index a2b6e0d01..0868e515b 100644
|
||||
--- a/src/xrt/compositor/util/comp_render_cs.c
|
||||
+++ b/src/xrt/compositor/util/comp_render_cs.c
|
||||
@@ -370,7 +370,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
From 9d1294834f49fc90ea22f5d841d7c0e5c0c1045d Mon Sep 17 00:00:00 2001
|
||||
From 5664ae214c09deb241507526e749f83f3a16298c Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Sun, 28 Sep 2025 11:33:10 +0200
|
||||
Subject: [PATCH 6/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
|
||||
Subject: [PATCH 6/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
|
||||
|
||||
---
|
||||
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
|
||||
index 25c68a0ea..86baa9fd4 100644
|
||||
index 0fbe4f563..dc9e3d3a5 100644
|
||||
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
|
||||
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
|
||||
@@ -913,7 +913,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
|
||||
@@ -954,7 +954,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
|
||||
|
||||
// Include the HMD
|
||||
if (svrs->ctx->hmd) {
|
||||
|
||||
@@ -1,49 +1,27 @@
|
||||
From b9af535cf229acdbf7f1b534e9804c1b4e3fa3e1 Mon Sep 17 00:00:00 2001
|
||||
From 4fdc8798f4810145c446fe147ae94e4c717b6b28 Mon Sep 17 00:00:00 2001
|
||||
From: Sapphire <imsapphire0@gmail.com>
|
||||
Date: Fri, 7 Nov 2025 20:41:16 -0600
|
||||
Subject: [PATCH 7/8] st/oxr: push XrEventDataInteractionProfileChanged when
|
||||
Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when
|
||||
profile changes to NULL
|
||||
|
||||
---
|
||||
src/xrt/state_trackers/oxr/oxr_input.c | 15 +++++----------
|
||||
1 file changed, 5 insertions(+), 10 deletions(-)
|
||||
src/xrt/state_trackers/oxr/actions/oxr_input.c | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c
|
||||
index df2b479eb..c4b36ba81 100644
|
||||
--- a/src/xrt/state_trackers/oxr/oxr_input.c
|
||||
+++ b/src/xrt/state_trackers/oxr/oxr_input.c
|
||||
@@ -1881,26 +1881,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
|
||||
}
|
||||
}
|
||||
|
||||
- /*
|
||||
- * This code will only send events (and update the bindings) if there
|
||||
- * is a profile mapped to the subaction path. Meaning it won't update
|
||||
- * the cache or generate events when a controller goes away, basically
|
||||
- * latching the interaction profile to the last active device.
|
||||
- */
|
||||
+ bool any_profile_changed = false;
|
||||
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
|
||||
index 269c6ec62..05a747f74 100644
|
||||
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
|
||||
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
|
||||
@@ -1947,9 +1947,6 @@ session_update_action_bindings(struct oxr_logger *log,
|
||||
#define POPULATE_PROFILE(X) \
|
||||
do { \
|
||||
XrPath path = profiles.X != NULL ? profiles.X->path : XR_NULL_PATH; \
|
||||
- if (path == XR_NULL_PATH) { \
|
||||
- break; /* Only update on "active" interaction profiles per sub-action path. */ \
|
||||
- } \
|
||||
if (sess->X != path) { \
|
||||
sess->X = path; \
|
||||
- oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \
|
||||
+ any_profile_changed = true; \
|
||||
} \
|
||||
} while (false);
|
||||
OXR_FOR_EACH_VALID_SUBACTION_PATH(POPULATE_PROFILE)
|
||||
#undef POPULATE_PROFILE
|
||||
|
||||
+ if (any_profile_changed) {
|
||||
+ oxr_event_push_XrEventDataInteractionProfileChanged(log, sess);
|
||||
+ }
|
||||
return oxr_session_success_result(sess);
|
||||
}
|
||||
|
||||
if (action_context->X != path) { \
|
||||
action_context->X = path; \
|
||||
interaction_profile_changed = true; \
|
||||
--
|
||||
2.53.0
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
From 02206ede3aae832be5024263a805cafee2264080 Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Thu, 15 Jan 2026 12:13:06 +0100
|
||||
Subject: [PATCH 8/8] Don't get pose data for fast path
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_renderer.c | 17 +++++++++--------
|
||||
1 file changed, 9 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index ff9728a59..08cdef540 100644
|
||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||
@@ -972,14 +972,15 @@ dispatch_compute(struct comp_renderer *r,
|
||||
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
|
||||
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
|
||||
struct xrt_pose eye_poses[XRT_MAX_VIEWS];
|
||||
- calc_pose_data( //
|
||||
- r, //
|
||||
- fov_source, //
|
||||
- fovs, //
|
||||
- world_poses_scanout_begin, //
|
||||
- world_poses_scanout_end, //
|
||||
- eye_poses, //
|
||||
- render->r->view_count); //
|
||||
+ if (!c->base.frame_params.one_projection_layer_fast_path)
|
||||
+ calc_pose_data( //
|
||||
+ r, //
|
||||
+ fov_source, //
|
||||
+ fovs, //
|
||||
+ world_poses_scanout_begin, //
|
||||
+ world_poses_scanout_end, //
|
||||
+ eye_poses, //
|
||||
+ render->r->view_count); //
|
||||
|
||||
// Target Vulkan resources..
|
||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
||||
--
|
||||
2.53.0
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
From 025dcad51542cd6c23d9a6ad16cca982bf2fa5ca Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Thu, 15 Jan 2026 12:13:06 +0100
|
||||
Subject: [PATCH 8/9] Don't get pose data in compositor
|
||||
|
||||
Reproject onto the first projection layer's pose, if there isn't any get
|
||||
it from device instead.
|
||||
---
|
||||
src/xrt/compositor/main/comp_renderer.c | 53 +++++++++++++++++++++----
|
||||
1 file changed, 45 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index ff9728a59..4a91bbcd0 100644
|
||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||
@@ -948,6 +948,24 @@ dispatch_graphics(struct comp_renderer *r,
|
||||
*
|
||||
*/
|
||||
|
||||
+static struct comp_layer *
|
||||
+get_projection_layer(struct comp_layer_accum *layers)
|
||||
+{
|
||||
+ for (uint32_t layer = 0; layer < layers->layer_count; ++layer) {
|
||||
+ switch (layers->layers[layer].data.type) {
|
||||
+ case XRT_LAYER_PROJECTION:
|
||||
+ case XRT_LAYER_PROJECTION_DEPTH: return &layers->layers[layer];
|
||||
+ case XRT_LAYER_QUAD:
|
||||
+ case XRT_LAYER_CUBE:
|
||||
+ case XRT_LAYER_CYLINDER:
|
||||
+ case XRT_LAYER_EQUIRECT1:
|
||||
+ case XRT_LAYER_EQUIRECT2:
|
||||
+ case XRT_LAYER_PASSTHROUGH: break;
|
||||
+ }
|
||||
+ }
|
||||
+ return NULL;
|
||||
+}
|
||||
+
|
||||
/*!
|
||||
* @pre render_compute_init(render, &c->nr)
|
||||
*/
|
||||
@@ -972,14 +990,33 @@ dispatch_compute(struct comp_renderer *r,
|
||||
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
|
||||
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
|
||||
struct xrt_pose eye_poses[XRT_MAX_VIEWS];
|
||||
- calc_pose_data( //
|
||||
- r, //
|
||||
- fov_source, //
|
||||
- fovs, //
|
||||
- world_poses_scanout_begin, //
|
||||
- world_poses_scanout_end, //
|
||||
- eye_poses, //
|
||||
- render->r->view_count); //
|
||||
+ if (!c->base.frame_params.one_projection_layer_fast_path) {
|
||||
+ struct comp_layer *proj_layer = get_projection_layer(&c->base.layer_accum);
|
||||
+ int64_t predicted_display_time_ns = c->frame.rendering.predicted_display_time_ns;
|
||||
+ int64_t cutoff_ns = 3 * c->frame_interval_ns;
|
||||
+ if (proj_layer && llabs(predicted_display_time_ns - proj_layer->data.timestamp) <= cutoff_ns) {
|
||||
+ struct xrt_layer_projection_view_data *data = proj_layer->data.proj.v;
|
||||
+ // depth has the same first member as proj
|
||||
+ for (int view = 0; view < XRT_MAX_VIEWS; ++view) {
|
||||
+ fovs[view] = data[view].fov;
|
||||
+ world_poses_scanout_begin[view] = data[view].pose;
|
||||
+ world_poses_scanout_end[view] = data[view].pose;
|
||||
+ eye_poses[view] = data[view].pose;
|
||||
+
|
||||
+ r->c->base.frame_params.fovs[view] = data[view].fov;
|
||||
+ r->c->base.frame_params.poses[view] = data[view].pose;
|
||||
+ }
|
||||
+ } else {
|
||||
+ calc_pose_data( //
|
||||
+ r, //
|
||||
+ fov_source, //
|
||||
+ fovs, //
|
||||
+ world_poses_scanout_begin, //
|
||||
+ world_poses_scanout_end, //
|
||||
+ eye_poses, //
|
||||
+ render->r->view_count); //
|
||||
+ }
|
||||
+ }
|
||||
|
||||
// Target Vulkan resources..
|
||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
||||
--
|
||||
2.53.0
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
From 6f17ee6c92b62a2418164f627775f267eb6d19fc Mon Sep 17 00:00:00 2001
|
||||
From dfacf60061206ca6f41b8bc44e9cd7166230d77e Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Sun, 25 Jan 2026 10:09:10 +0100
|
||||
Subject: [PATCH] don't verify GL stuff
|
||||
Subject: [PATCH 9/9] don't verify GL stuff
|
||||
|
||||
---
|
||||
src/xrt/state_trackers/oxr/oxr_verify.c | 10 ----------
|
||||
1 file changed, 10 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c
|
||||
index e9197d501..71f81c954 100644
|
||||
index 68906d7de..239f87fba 100644
|
||||
--- a/src/xrt/state_trackers/oxr/oxr_verify.c
|
||||
+++ b/src/xrt/state_trackers/oxr/oxr_verify.c
|
||||
@@ -608,16 +608,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
|
||||
@@ -610,16 +610,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
|
||||
"XrGraphicsBindingOpenGLXlibKHR::glxDrawable is NULL");
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@ index e9197d501..71f81c954 100644
|
||||
}
|
||||
|
||||
--
|
||||
2.52.0
|
||||
2.53.0
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From a9ac675eab72a6ce96adb38215e83f7b3e9b51e7 Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Fri, 20 Mar 2026 16:51:18 +0100
|
||||
Subject: [PATCH] configure u_git_tag in WiVRn
|
||||
|
||||
---
|
||||
src/xrt/auxiliary/util/CMakeLists.txt | 7 +------
|
||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
|
||||
index d45cd60c9..ec0d45434 100644
|
||||
--- a/src/xrt/auxiliary/util/CMakeLists.txt
|
||||
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
|
||||
@@ -10,11 +10,6 @@
|
||||
# by applications like the OpenXR runtime library.
|
||||
#
|
||||
|
||||
-configure_file(
|
||||
- "${CMAKE_CURRENT_SOURCE_DIR}/u_git_tag.c.in" "${CMAKE_CURRENT_BINARY_DIR}/u_git_tag.c"
|
||||
- @ONLY
|
||||
- )
|
||||
-
|
||||
add_library(
|
||||
aux_util STATIC
|
||||
u_autoexpgain.c
|
||||
@@ -118,7 +113,7 @@ add_library(
|
||||
u_worker.cpp
|
||||
u_worker.h
|
||||
u_worker.hpp
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/u_git_tag.c"
|
||||
+ "${U_GIT_TAG_CPP}"
|
||||
)
|
||||
target_link_libraries(
|
||||
aux_util
|
||||
--
|
||||
2.53.0
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
set(U_GIT_TAG_CPP "${CMAKE_BINARY_DIR}/u_git_tag.cpp")
|
||||
|
||||
set(XRT_BUILD_DRIVER_ARDUINO OFF)
|
||||
set(XRT_BUILD_DRIVER_BLUBUR_S1 OFF)
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "util/u_logging.h"
|
||||
#include "utils/overloaded.h"
|
||||
|
||||
#include "driver/configuration.h"
|
||||
#include "driver/wivrn_session.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_ipc.h"
|
||||
#include "wivrn_sockets.h"
|
||||
|
||||
@@ -33,7 +33,7 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(wivrn_session & cnx, std::s
|
||||
{
|
||||
wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{});
|
||||
|
||||
wivrn::TCPListener listener(wivrn::default_port);
|
||||
wivrn::TCPListener listener(configuration().port);
|
||||
|
||||
pollfd fds[2]{
|
||||
{.fd = listener.get_fd(), .events = POLLIN},
|
||||
|
||||
@@ -79,7 +79,8 @@ struct pipewire_device : public audio_device
|
||||
static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error);
|
||||
|
||||
void process_mic_data(wivrn::audio_data &&) override;
|
||||
void on_connect() override;
|
||||
void pause() override;
|
||||
void resume() override;
|
||||
|
||||
~pipewire_device()
|
||||
{
|
||||
@@ -415,8 +416,14 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
|
||||
if (mic_samples.write(std::move(sample)))
|
||||
mic_buffer_size_bytes += size;
|
||||
}
|
||||
void pipewire_device::on_connect()
|
||||
|
||||
void pipewire_device::pause()
|
||||
{
|
||||
}
|
||||
|
||||
void pipewire_device::resume()
|
||||
{
|
||||
session.send_control(description());
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING});
|
||||
}
|
||||
|
||||
|
||||
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
|
||||
mic_buffer.push(std::move(mic_data));
|
||||
}
|
||||
|
||||
void on_connect() override
|
||||
void pause() override
|
||||
{
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
|
||||
}
|
||||
|
||||
void resume() override
|
||||
{
|
||||
session.send_control(description());
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
|
||||
}
|
||||
|
||||
pulse_device(
|
||||
|
||||
@@ -34,9 +34,10 @@ struct audio_device
|
||||
virtual ~audio_device() = default;
|
||||
|
||||
virtual wivrn::to_headset::audio_stream_description description() const = 0;
|
||||
|
||||
virtual void process_mic_data(wivrn::audio_data &&) = 0;
|
||||
virtual void on_connect() = 0;
|
||||
|
||||
virtual void pause() = 0;
|
||||
virtual void resume() = 0;
|
||||
|
||||
static std::unique_ptr<audio_device> create(
|
||||
const std::string & source_name,
|
||||
|
||||
@@ -204,6 +204,12 @@ configuration::configuration()
|
||||
if (auto it = json.find("tcp-only"); it != json.end())
|
||||
tcp_only = *it;
|
||||
|
||||
if (auto it = json.find("port"); it != json.end())
|
||||
port = *it;
|
||||
|
||||
if (auto it = json.find("hostname"); it != json.end())
|
||||
hostname = *it;
|
||||
|
||||
if (auto it = json.find("publish-service"); it != json.end())
|
||||
{
|
||||
publication = *it;
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "hostname.h"
|
||||
#include "wivrn_config.h"
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
#include <filesystem>
|
||||
@@ -57,6 +59,8 @@ struct configuration
|
||||
bool use_steamvr_lh = false;
|
||||
bool hid_forwarding = false;
|
||||
bool tcp_only = false;
|
||||
int port = wivrn::default_port;
|
||||
std::string hostname = wivrn::hostname();
|
||||
service_publication publication = service_publication::avahi;
|
||||
|
||||
// monostate: default value, string: user defined, nullptr: disabled
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/QR>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <limits>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
@@ -199,14 +198,6 @@ public:
|
||||
else
|
||||
sol = (Aprime.transpose() * Aprime).ldlt().solve(Aprime.transpose() * bprime).transpose();
|
||||
|
||||
#ifndef NDEBUG
|
||||
if constexpr (quaternion)
|
||||
{
|
||||
float norm = sol.template block<N, 1>(0, 0).norm();
|
||||
assert(norm > 0.9);
|
||||
}
|
||||
#endif
|
||||
|
||||
return sample{
|
||||
.production_timestamp = production_timestamp,
|
||||
.timestamp = timestamp,
|
||||
|
||||
@@ -43,8 +43,15 @@ void wivrn::tracking_control::add_request(device_id device, XrTime now, XrTime a
|
||||
|
||||
if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
|
||||
cnx.send_control(to_headset::tracking_control(last_control));
|
||||
try
|
||||
{
|
||||
cnx.send_control(to_headset::tracking_control(last_control));
|
||||
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// ignore network errors
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+297
-293
@@ -2,6 +2,7 @@
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
* Copyright (C) 2026 Sapphire <imsapphire0@gmail.com>
|
||||
*
|
||||
* 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
|
||||
@@ -22,6 +23,7 @@
|
||||
#include "driver/wivrn_session.h"
|
||||
#include "encoder/video_encoder.h"
|
||||
#include "util/u_logging.h"
|
||||
#include "utils/method.h"
|
||||
#include "utils/scoped_lock.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_foveation.h"
|
||||
@@ -72,15 +74,6 @@ std::vector<const char *> wivrn_comp_target::wanted_device_extensions = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static void target_init_semaphores(struct wivrn_comp_target * cn);
|
||||
|
||||
static void target_fini_semaphores(struct wivrn_comp_target * cn);
|
||||
|
||||
static inline struct vk_bundle * get_vk(struct wivrn_comp_target * cn)
|
||||
{
|
||||
return &cn->c->base.vk;
|
||||
}
|
||||
|
||||
#ifdef XRT_FEATURE_RENDERDOC
|
||||
static auto renderdoc()
|
||||
{
|
||||
@@ -103,72 +96,57 @@ static auto renderdoc()
|
||||
}
|
||||
#endif
|
||||
|
||||
static void destroy_images(struct wivrn_comp_target * cn)
|
||||
void wivrn_comp_target::init_semaphores()
|
||||
{
|
||||
if (cn->images == nullptr)
|
||||
return;
|
||||
auto vk = get_vk();
|
||||
VkResult ret;
|
||||
|
||||
if (cn->wivrn_bundle)
|
||||
cn->wivrn_bundle->device.waitIdle();
|
||||
fini_semaphores();
|
||||
|
||||
cn->psc.status = 1;
|
||||
cn->psc.status.notify_all();
|
||||
cn->encoder_threads.clear();
|
||||
cn->encoders.clear();
|
||||
VkSemaphoreCreateInfo info = {
|
||||
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
|
||||
};
|
||||
|
||||
cn->psc.images.clear();
|
||||
|
||||
free(cn->images);
|
||||
cn->images = NULL;
|
||||
|
||||
target_fini_semaphores(cn);
|
||||
}
|
||||
|
||||
static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_target * cn, int index, std::vector<std::shared_ptr<video_encoder>> encoders);
|
||||
|
||||
static void create_encoders(wivrn_comp_target * cn)
|
||||
{
|
||||
auto vk = get_vk(cn);
|
||||
assert(cn->encoders.empty());
|
||||
assert(cn->encoder_threads.empty());
|
||||
assert(cn->wivrn_bundle);
|
||||
cn->psc.status = 0;
|
||||
|
||||
to_headset::video_stream_description & desc = cn->desc;
|
||||
desc.width = cn->width;
|
||||
desc.height = cn->height;
|
||||
|
||||
std::map<int, std::vector<std::shared_ptr<video_encoder>>> thread_params;
|
||||
|
||||
for (auto [i, settings]: std::ranges::enumerate_view(cn->settings))
|
||||
ret = vk->vkCreateSemaphore(vk->device, &info, nullptr, &semaphores.present_complete);
|
||||
if (ret != VK_SUCCESS)
|
||||
{
|
||||
auto & encoder = cn->encoders.emplace_back(
|
||||
video_encoder::create(*cn->wivrn_bundle, settings, i));
|
||||
desc.codec[i] = settings.codec;
|
||||
|
||||
thread_params[settings.group].emplace_back(encoder);
|
||||
COMP_ERROR(c, "vkCreateSemaphore: %s", vk_result_string(ret));
|
||||
}
|
||||
|
||||
for (auto & [group, params]: thread_params)
|
||||
semaphores.render_complete_is_timeline = false;
|
||||
ret = vk->vkCreateSemaphore(vk->device, &info, nullptr, &semaphores.render_complete);
|
||||
if (ret != VK_SUCCESS)
|
||||
{
|
||||
auto & thread = cn->encoder_threads.emplace_back(
|
||||
comp_wivrn_present_thread, cn, cn->encoder_threads.size(), std::move(params));
|
||||
std::string name = "encoder " + std::to_string(group);
|
||||
pthread_setname_np(thread.native_handle(), name.c_str());
|
||||
COMP_ERROR(c, "vkCreateSemaphore: %s", vk_result_string(ret));
|
||||
}
|
||||
}
|
||||
void wivrn_comp_target::fini_semaphores()
|
||||
{
|
||||
auto vk = get_vk();
|
||||
|
||||
if (semaphores.present_complete != VK_NULL_HANDLE)
|
||||
{
|
||||
vk->vkDestroySemaphore(vk->device, semaphores.present_complete, nullptr);
|
||||
semaphores.present_complete = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
if (semaphores.render_complete != VK_NULL_HANDLE)
|
||||
{
|
||||
vk->vkDestroySemaphore(vk->device, semaphores.render_complete, nullptr);
|
||||
semaphores.render_complete = VK_NULL_HANDLE;
|
||||
}
|
||||
cn->cnx.send_control(to_headset::video_stream_description{desc});
|
||||
}
|
||||
|
||||
static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags flags)
|
||||
VkResult wivrn_comp_target::create_images_impl(vk::ImageUsageFlags flags)
|
||||
{
|
||||
auto vk = get_vk(cn);
|
||||
assert(cn->image_count > 0);
|
||||
COMP_DEBUG(cn->c, "Creating %d images.", cn->image_count);
|
||||
auto & device = cn->wivrn_bundle->device;
|
||||
auto vk = get_vk();
|
||||
assert(image_count > 0);
|
||||
COMP_DEBUG(c, "Creating %d images.", image_count);
|
||||
auto & device = wivrn_bundle->device;
|
||||
|
||||
destroy_images(cn);
|
||||
destroy_images();
|
||||
|
||||
auto format = vk::Format(cn->format);
|
||||
auto format = vk::Format(this->format);
|
||||
|
||||
bool is_10bit = format == vk::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16;
|
||||
|
||||
@@ -177,7 +155,7 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
is_10bit ? vk::Format::eR16G16Unorm : vk::Format::eR8G8Unorm,
|
||||
format};
|
||||
|
||||
cn->images = U_TYPED_ARRAY_CALLOC(struct comp_target_image, cn->image_count);
|
||||
images = U_TYPED_ARRAY_CALLOC(comp_target_image, image_count);
|
||||
|
||||
vk::StructureChain image_info{
|
||||
vk::ImageCreateInfo{
|
||||
@@ -185,8 +163,8 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
.imageType = vk::ImageType::e2D,
|
||||
.format = format,
|
||||
.extent = {
|
||||
.width = cn->width,
|
||||
.height = cn->height,
|
||||
.width = width,
|
||||
.height = height,
|
||||
.depth = 1,
|
||||
},
|
||||
.mipLevels = 1,
|
||||
@@ -205,7 +183,7 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
if (
|
||||
vk->features.video_maintenance_1 and
|
||||
std::ranges::contains(
|
||||
cn->settings,
|
||||
settings,
|
||||
encoder_vulkan,
|
||||
&encoder_settings::encoder_name))
|
||||
{
|
||||
@@ -214,21 +192,21 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
}
|
||||
#endif
|
||||
|
||||
cn->psc.images.resize(cn->image_count);
|
||||
for (uint32_t i = 0; i < cn->image_count; i++)
|
||||
psc.images.resize(image_count);
|
||||
for (uint32_t i = 0; i < image_count; i++)
|
||||
{
|
||||
auto & image = cn->psc.images[i].image;
|
||||
auto & image = psc.images[i].image;
|
||||
image = image_allocation(
|
||||
device,
|
||||
image_info.get(),
|
||||
{.usage = VMA_MEMORY_USAGE_AUTO},
|
||||
std::format("comp target image {}", i));
|
||||
cn->images[i].handle = image;
|
||||
images[i].handle = image;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < cn->image_count; i++)
|
||||
for (uint32_t i = 0; i < image_count; i++)
|
||||
{
|
||||
auto & item = cn->psc.images[i];
|
||||
auto & item = psc.images[i];
|
||||
vk::ImageViewUsageCreateInfo usage{
|
||||
.usage = flags,
|
||||
};
|
||||
@@ -256,44 +234,93 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
.layerCount = vk::RemainingArrayLayers,
|
||||
},
|
||||
});
|
||||
cn->images[i].view = VkImageView(*item.image_view_y);
|
||||
cn->images[i].view_cbcr = VkImageView(*item.image_view_cbcr);
|
||||
cn->wivrn_bundle->name(item.image_view_y, "comp target image view (y)");
|
||||
cn->wivrn_bundle->name(item.image_view_cbcr, "comp target image view (CbCr)");
|
||||
images[i].view = VkImageView(*item.image_view_y);
|
||||
images[i].view_cbcr = VkImageView(*item.image_view_cbcr);
|
||||
wivrn_bundle->name(item.image_view_y, "comp target image view (y)");
|
||||
wivrn_bundle->name(item.image_view_cbcr, "comp target image view (CbCr)");
|
||||
}
|
||||
|
||||
cn->psc.fence = vk::raii::Fence(device, vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled});
|
||||
cn->wivrn_bundle->name(cn->psc.fence, "comp target fence");
|
||||
psc.fence = vk::raii::Fence(device, vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled});
|
||||
wivrn_bundle->name(psc.fence, "comp target fence");
|
||||
|
||||
cn->psc.command_buffer = std::move(device.allocateCommandBuffers(
|
||||
{.commandPool = *cn->command_pool,
|
||||
psc.command_buffer = std::move(device.allocateCommandBuffers(
|
||||
{.commandPool = *command_pool,
|
||||
.commandBufferCount = 1})[0]);
|
||||
cn->wivrn_bundle->name(cn->psc.command_buffer, "comp target command buffer");
|
||||
wivrn_bundle->name(psc.command_buffer, "comp target command buffer");
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
void wivrn_comp_target::destroy_images()
|
||||
{
|
||||
if (images == nullptr)
|
||||
return;
|
||||
|
||||
static bool comp_wivrn_init_pre_vulkan(struct comp_target * ct)
|
||||
if (wivrn_bundle)
|
||||
wivrn_bundle->device.waitIdle();
|
||||
|
||||
psc.status = 1;
|
||||
psc.status.notify_all();
|
||||
encoder_threads.clear();
|
||||
encoders.clear();
|
||||
|
||||
psc.images.clear();
|
||||
|
||||
free(images);
|
||||
images = nullptr;
|
||||
|
||||
fini_semaphores();
|
||||
}
|
||||
|
||||
void wivrn_comp_target::create_encoders()
|
||||
{
|
||||
auto vk = get_vk();
|
||||
assert(encoders.empty());
|
||||
assert(encoder_threads.empty());
|
||||
assert(wivrn_bundle);
|
||||
psc.status = 0;
|
||||
|
||||
desc.width = width;
|
||||
desc.height = height;
|
||||
|
||||
std::map<int, std::vector<std::shared_ptr<video_encoder>>> thread_params;
|
||||
|
||||
for (auto [i, settings]: std::ranges::enumerate_view(settings))
|
||||
{
|
||||
auto & encoder = encoders.emplace_back(
|
||||
video_encoder::create(*wivrn_bundle, settings, i));
|
||||
desc.codec[i] = settings.codec;
|
||||
|
||||
thread_params[settings.group].emplace_back(encoder);
|
||||
}
|
||||
|
||||
for (auto & [group, params]: thread_params)
|
||||
{
|
||||
auto & thread = encoder_threads.emplace_back([this](auto stop_token, auto... args) { return run_present(stop_token, args...); }, encoder_threads.size(), std::move(params));
|
||||
std::string name = "encoder " + std::to_string(group);
|
||||
pthread_setname_np(thread.native_handle(), name.c_str());
|
||||
}
|
||||
cnx.send_control(to_headset::video_stream_description{desc});
|
||||
}
|
||||
|
||||
bool wivrn_comp_target::init_pre_vulkan()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t preferred_width, uint32_t preferred_height)
|
||||
bool wivrn_comp_target::init_post_vulkan(uint32_t preferred_width, uint32_t preferred_height)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
auto vk = get_vk(cn);
|
||||
auto vk = get_vk();
|
||||
try
|
||||
{
|
||||
cn->wivrn_bundle.emplace(*vk,
|
||||
wivrn_comp_target::wanted_instance_extensions,
|
||||
wivrn_comp_target::wanted_device_extensions);
|
||||
cn->command_pool = vk::raii::CommandPool(
|
||||
cn->wivrn_bundle->device,
|
||||
wivrn_bundle.emplace(*vk,
|
||||
wivrn_comp_target::wanted_instance_extensions,
|
||||
wivrn_comp_target::wanted_device_extensions);
|
||||
command_pool = vk::raii::CommandPool(
|
||||
wivrn_bundle->device,
|
||||
{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.queueFamilyIndex = vk->main_queue->family_index,
|
||||
});
|
||||
cn->wivrn_bundle->name(cn->command_pool, "comp target command pool");
|
||||
wivrn_bundle->name(command_pool, "comp target command pool");
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
@@ -303,14 +330,14 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer
|
||||
|
||||
try
|
||||
{
|
||||
cn->settings = get_encoder_settings(
|
||||
*cn->wivrn_bundle,
|
||||
cn->cnx.get_info(),
|
||||
*cn->cnx.get_settings());
|
||||
print_encoders(cn->settings);
|
||||
settings = get_encoder_settings(
|
||||
*wivrn_bundle,
|
||||
cnx.get_info(),
|
||||
*cnx.get_settings());
|
||||
print_encoders(settings);
|
||||
|
||||
cn->c->settings.preferred.width = cn->settings[0].width;
|
||||
cn->c->settings.preferred.height = cn->settings[0].height;
|
||||
c->settings.preferred.width = settings[0].width;
|
||||
c->settings.preferred.height = settings[0].height;
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
@@ -321,114 +348,67 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer
|
||||
U_LOG_E("Failed to create video encoder: %s", e.what());
|
||||
return false;
|
||||
}
|
||||
cn->cnx.set_foveated_size(cn->c->settings.preferred.width, cn->c->settings.preferred.height);
|
||||
cn->foveation.emplace(*cn->wivrn_bundle, *cn->cnx.get_hmd().hmd);
|
||||
cnx.set_foveated_size(c->settings.preferred.width, c->settings.preferred.height);
|
||||
foveation.emplace(*wivrn_bundle, *cnx.get_hmd().hmd);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool comp_wivrn_check_ready(struct comp_target * ct)
|
||||
bool wivrn_comp_target::check_ready()
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
if (not cn->cnx.connected())
|
||||
if (not cnx.connected())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void target_fini_semaphores(struct wivrn_comp_target * cn)
|
||||
void wivrn_comp_target::create_images(const comp_target_create_images_info * create_info, vk_bundle_queue * present_queue)
|
||||
{
|
||||
struct vk_bundle * vk = get_vk(cn);
|
||||
|
||||
if (cn->semaphores.present_complete != VK_NULL_HANDLE)
|
||||
{
|
||||
vk->vkDestroySemaphore(vk->device, cn->semaphores.present_complete, NULL);
|
||||
cn->semaphores.present_complete = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
if (cn->semaphores.render_complete != VK_NULL_HANDLE)
|
||||
{
|
||||
vk->vkDestroySemaphore(vk->device, cn->semaphores.render_complete, NULL);
|
||||
cn->semaphores.render_complete = VK_NULL_HANDLE;
|
||||
}
|
||||
}
|
||||
|
||||
static void target_init_semaphores(struct wivrn_comp_target * cn)
|
||||
{
|
||||
struct vk_bundle * vk = get_vk(cn);
|
||||
VkResult ret;
|
||||
|
||||
target_fini_semaphores(cn);
|
||||
|
||||
VkSemaphoreCreateInfo info = {
|
||||
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
|
||||
};
|
||||
|
||||
ret = vk->vkCreateSemaphore(vk->device, &info, NULL, &cn->semaphores.present_complete);
|
||||
if (ret != VK_SUCCESS)
|
||||
{
|
||||
COMP_ERROR(cn->c, "vkCreateSemaphore: %s", vk_result_string(ret));
|
||||
}
|
||||
|
||||
cn->semaphores.render_complete_is_timeline = false;
|
||||
ret = vk->vkCreateSemaphore(vk->device, &info, NULL, &cn->semaphores.render_complete);
|
||||
if (ret != VK_SUCCESS)
|
||||
{
|
||||
COMP_ERROR(cn->c, "vkCreateSemaphore: %s", vk_result_string(ret));
|
||||
}
|
||||
}
|
||||
|
||||
static void comp_wivrn_create_images(struct comp_target * ct, const struct comp_target_create_images_info * create_info, struct vk_bundle_queue * present_queue)
|
||||
{
|
||||
assert(present_queue != NULL);
|
||||
assert(present_queue != nullptr);
|
||||
(void)present_queue;
|
||||
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
|
||||
// Free old images.
|
||||
destroy_images(cn);
|
||||
destroy_images();
|
||||
|
||||
target_init_semaphores(cn);
|
||||
init_semaphores();
|
||||
|
||||
// will fail on encoder init if bit_depth is arbitrary garbage
|
||||
if (cn->settings[0].bit_depth == 10)
|
||||
ct->format = VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16;
|
||||
if (settings[0].bit_depth == 10)
|
||||
format = VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16;
|
||||
else
|
||||
ct->format = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;
|
||||
format = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;
|
||||
|
||||
ct->width = create_info->extent.width;
|
||||
ct->height = create_info->extent.height;
|
||||
ct->surface_transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
|
||||
width = create_info->extent.width;
|
||||
height = create_info->extent.height;
|
||||
surface_transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
|
||||
|
||||
cn->image_count = 3;
|
||||
cn->color_space = create_info->color_space;
|
||||
image_count = 3;
|
||||
color_space = create_info->color_space;
|
||||
|
||||
VkResult res = create_images(cn, vk::ImageUsageFlags(create_info->image_usage));
|
||||
VkResult res = create_images_impl(vk::ImageUsageFlags(create_info->image_usage));
|
||||
if (res != VK_SUCCESS)
|
||||
{
|
||||
vk_print_result(get_vk(cn), __FILE__, __LINE__, __func__, res, "create_images");
|
||||
vk_print_result(get_vk(), __FILE__, __LINE__, __func__, res, "create_images");
|
||||
// TODO
|
||||
abort();
|
||||
}
|
||||
create_encoders(cn);
|
||||
create_encoders();
|
||||
}
|
||||
|
||||
static bool comp_wivrn_has_images(struct comp_target * ct)
|
||||
bool wivrn_comp_target::has_images()
|
||||
{
|
||||
return ct->images;
|
||||
return images;
|
||||
}
|
||||
|
||||
static VkResult comp_wivrn_acquire(struct comp_target * ct, uint32_t * out_index)
|
||||
VkResult wivrn_comp_target::acquire(uint32_t * out_index)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
|
||||
while (true)
|
||||
{
|
||||
for (uint32_t i = 0; i < ct->image_count; i++)
|
||||
for (uint32_t i = 0; i < image_count; i++)
|
||||
{
|
||||
if (cn->psc.images[i].status == pseudo_swapchain::status_t::free)
|
||||
if (psc.images[i].status == pseudo_swapchain::status_t::free)
|
||||
{
|
||||
cn->psc.images[i].status = pseudo_swapchain::status_t::acquired;
|
||||
psc.images[i].status = pseudo_swapchain::status_t::acquired;
|
||||
*out_index = i;
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
@@ -436,9 +416,9 @@ static VkResult comp_wivrn_acquire(struct comp_target * ct, uint32_t * out_index
|
||||
};
|
||||
}
|
||||
|
||||
static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_target * cn, int index, std::vector<std::shared_ptr<video_encoder>> encoders)
|
||||
void wivrn_comp_target::run_present(std::stop_token stop_token, int index, std::vector<std::shared_ptr<video_encoder>> encoders)
|
||||
{
|
||||
auto & vk = *cn->wivrn_bundle;
|
||||
auto & vk = *wivrn_bundle;
|
||||
U_LOG_I("Starting encoder thread %d", index);
|
||||
|
||||
const uint8_t status_bit = 1 << (index + 1);
|
||||
@@ -446,30 +426,30 @@ static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_tar
|
||||
while (not stop_token.stop_requested())
|
||||
{
|
||||
{
|
||||
auto status = cn->psc.status.load();
|
||||
auto status = psc.status.load();
|
||||
// Bit 0 to request exit
|
||||
if (status & 1)
|
||||
return;
|
||||
|
||||
if (not(status & status_bit))
|
||||
{
|
||||
cn->psc.status.wait(status);
|
||||
psc.status.wait(status);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Get local copies before releasing the image
|
||||
auto view_info = cn->psc.view_info;
|
||||
auto frame_index = cn->psc.frame_index;
|
||||
auto view_info = psc.view_info;
|
||||
auto frame_index = psc.frame_index;
|
||||
|
||||
auto res = vk.device.waitForFences(*cn->psc.fence, true, UINT64_MAX);
|
||||
auto res = vk.device.waitForFences(*psc.fence, true, UINT64_MAX);
|
||||
|
||||
try
|
||||
{
|
||||
for (auto & encoder: encoders)
|
||||
{
|
||||
if (encoder->stream_idx < 2 or view_info.alpha)
|
||||
encoder->encode(cn->cnx, view_info, frame_index);
|
||||
encoder->encode(cnx, view_info, frame_index);
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
@@ -482,10 +462,10 @@ static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_tar
|
||||
}
|
||||
|
||||
// Update encoder status, release image
|
||||
if ((cn->psc.status &= ~status_bit) == 0)
|
||||
if ((psc.status &= ~status_bit) == 0)
|
||||
{
|
||||
cn->psc.status.notify_all();
|
||||
for (auto & img: cn->psc.images)
|
||||
psc.status.notify_all();
|
||||
for (auto & img: psc.images)
|
||||
{
|
||||
if (img.status == pseudo_swapchain::status_t::encoding)
|
||||
{
|
||||
@@ -497,25 +477,23 @@ static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_tar
|
||||
}
|
||||
}
|
||||
|
||||
static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
struct vk_bundle_queue * present_queue,
|
||||
uint32_t index,
|
||||
uint64_t timeline_semaphore_value,
|
||||
int64_t desired_present_time_ns,
|
||||
int64_t present_slop_ns)
|
||||
VkResult wivrn_comp_target::present(
|
||||
vk_bundle_queue * present_queue,
|
||||
uint32_t index,
|
||||
uint64_t timeline_semaphore_value,
|
||||
int64_t desired_present_time_ns,
|
||||
int64_t present_slop_ns)
|
||||
{
|
||||
assert(present_queue != NULL);
|
||||
assert(present_queue != nullptr);
|
||||
(void)present_queue;
|
||||
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
assert(index < image_count);
|
||||
assert(psc.images[index].status == pseudo_swapchain::status_t::acquired);
|
||||
|
||||
assert(index < cn->image_count);
|
||||
assert(cn->psc.images[index].status == pseudo_swapchain::status_t::acquired);
|
||||
auto vk = get_vk();
|
||||
auto res = wivrn_bundle->device.waitForFences(*psc.fence, true, UINT64_MAX);
|
||||
|
||||
struct vk_bundle * vk = get_vk(cn);
|
||||
auto res = cn->wivrn_bundle->device.waitForFences(*cn->psc.fence, true, UINT64_MAX);
|
||||
|
||||
vk::Semaphore wait_semaphore(cn->semaphores.render_complete);
|
||||
vk::Semaphore wait_semaphore(semaphores.render_complete);
|
||||
vk::PipelineStageFlags wait_stage = vk::PipelineStageFlagBits::eTransfer;
|
||||
vk::SubmitInfo submit_info{
|
||||
.waitSemaphoreCount = 1,
|
||||
@@ -523,34 +501,34 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
.pWaitDstStageMask = &wait_stage,
|
||||
};
|
||||
|
||||
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset())
|
||||
if (c->base.layer_accum.layer_count == 0 or not cnx.get_offset() or skip_encoding)
|
||||
{
|
||||
scoped_lock lock(vk->main_queue->mutex);
|
||||
cn->wivrn_bundle->queue.submit(submit_info);
|
||||
cn->psc.images[index].status = pseudo_swapchain::status_t::free;
|
||||
wivrn_bundle->queue.submit(submit_info);
|
||||
psc.images[index].status = pseudo_swapchain::status_t::free;
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
auto & command_buffer = cn->psc.command_buffer;
|
||||
auto & psc_image = cn->psc.images[index];
|
||||
auto & command_buffer = psc.command_buffer;
|
||||
auto & psc_image = psc.images[index];
|
||||
|
||||
// Wait for encoders to be done with previous frame
|
||||
for (auto status = cn->psc.status.load(); status != 0; status = cn->psc.status)
|
||||
cn->psc.status.wait(status);
|
||||
for (auto status = psc.status.load(); status != 0; status = psc.status)
|
||||
psc.status.wait(status);
|
||||
|
||||
command_buffer.reset();
|
||||
command_buffer.begin(vk::CommandBufferBeginInfo{
|
||||
.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit,
|
||||
});
|
||||
|
||||
cn->wivrn_bundle->device.resetFences(*cn->psc.fence);
|
||||
wivrn_bundle->device.resetFences(*psc.fence);
|
||||
psc_image.status = pseudo_swapchain::status_t::encoding;
|
||||
auto info = cn->pacer.present_to_info(desired_present_time_ns);
|
||||
const bool do_alpha = cn->c->base.layer_accum.data.env_blend_mode == XRT_BLEND_MODE_ALPHA_BLEND;
|
||||
auto info = pacer.present_to_info(desired_present_time_ns);
|
||||
const bool do_alpha = c->base.layer_accum.data.env_blend_mode == XRT_BLEND_MODE_ALPHA_BLEND;
|
||||
|
||||
bool need_queue_transfer = false;
|
||||
std::vector<vk::Semaphore> present_done_sem;
|
||||
for (auto & encoder: cn->encoders)
|
||||
for (auto & encoder: encoders)
|
||||
{
|
||||
if (encoder->stream_idx == 2 and not do_alpha)
|
||||
continue;
|
||||
@@ -594,8 +572,8 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
|
||||
{
|
||||
scoped_lock lock(vk->main_queue->mutex);
|
||||
cn->wivrn_bundle->queue.submit(submit_info, *cn->psc.fence);
|
||||
for (auto & encoder: cn->encoders)
|
||||
wivrn_bundle->queue.submit(submit_info, *psc.fence);
|
||||
for (auto & encoder: encoders)
|
||||
{
|
||||
if (encoder->stream_idx == 2 and not do_alpha)
|
||||
continue;
|
||||
@@ -605,23 +583,23 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
|
||||
#ifdef XRT_FEATURE_RENDERDOC
|
||||
if (auto r = renderdoc())
|
||||
r->EndFrameCapture(NULL, NULL);
|
||||
r->EndFrameCapture(nullptr, nullptr);
|
||||
#endif
|
||||
|
||||
auto & view_info = cn->psc.view_info;
|
||||
view_info.foveation = cn->foveation->get_parameters();
|
||||
view_info.display_time = cn->cnx.get_offset().to_headset(info.predicted_display_time);
|
||||
auto & view_info = psc.view_info;
|
||||
view_info.foveation = foveation->get_parameters();
|
||||
view_info.display_time = cnx.get_offset().to_headset(info.predicted_display_time);
|
||||
if (view_info.alpha != do_alpha)
|
||||
cn->pacer.reset();
|
||||
pacer.reset();
|
||||
view_info.alpha = do_alpha;
|
||||
for (int eye = 0; eye < 2; ++eye)
|
||||
{
|
||||
const auto & frame_params = cn->c->base.frame_params;
|
||||
const auto & frame_params = c->base.frame_params;
|
||||
view_info.fov[eye] = xrt_cast(frame_params.fovs[eye]);
|
||||
view_info.pose[eye] = xrt_cast(frame_params.poses[eye]);
|
||||
if (cn->c->base.frame_params.one_projection_layer_fast_path)
|
||||
if (c->base.frame_params.one_projection_layer_fast_path)
|
||||
{
|
||||
const auto & proj = cn->c->base.layer_accum.layers[0].data.proj;
|
||||
const auto & proj = c->base.layer_accum.layers[0].data.proj;
|
||||
view_info.pose[eye] = xrt_cast(proj.v[eye].pose);
|
||||
view_info.fov[eye] = xrt_cast(proj.v[eye].fov);
|
||||
}
|
||||
@@ -635,46 +613,44 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
}
|
||||
}
|
||||
// set bits to 1 for index 1..num encoder threads + 1
|
||||
cn->psc.status = (1 << (cn->encoder_threads.size() + 1)) - 2;
|
||||
cn->psc.frame_index = info.frame_id;
|
||||
cn->psc.status.notify_all();
|
||||
psc.status = (1 << (encoder_threads.size() + 1)) - 2;
|
||||
psc.frame_index = info.frame_id;
|
||||
psc.status.notify_all();
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
static void comp_wivrn_flush(struct comp_target * ct)
|
||||
void wivrn_comp_target::flush()
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
|
||||
#ifdef XRT_FEATURE_RENDERDOC
|
||||
if (auto r = renderdoc())
|
||||
r->StartFrameCapture(NULL, NULL);
|
||||
r->StartFrameCapture(nullptr, nullptr);
|
||||
#endif
|
||||
|
||||
if (cn->cnx.get_info().eye_gaze)
|
||||
if (cnx.get_info().eye_gaze)
|
||||
{
|
||||
// FIXME: actually get the gaze data here
|
||||
auto now = os_monotonic_get_ns();
|
||||
cn->cnx.add_tracking_request(device_id::EYE_GAZE, cn->c->base.layer_accum.data.display_time_ns, now, now);
|
||||
cnx.add_tracking_request(device_id::EYE_GAZE, c->base.layer_accum.data.display_time_ns, now, now);
|
||||
}
|
||||
|
||||
vk::CommandBuffer cmd;
|
||||
// apply foveation for current frame
|
||||
if (cn->c->base.frame_params.one_projection_layer_fast_path)
|
||||
if (c->base.frame_params.one_projection_layer_fast_path)
|
||||
{
|
||||
const auto & data = cn->c->base.layer_accum.layers[0].data;
|
||||
const auto & hmd = cn->cnx.get_hmd().hmd;
|
||||
const auto & data = c->base.layer_accum.layers[0].data;
|
||||
const auto & hmd = cnx.get_hmd().hmd;
|
||||
xrt_rect rect[] = {data.proj.v[0].sub.rect, data.proj.v[1].sub.rect};
|
||||
xrt_fov fov[] = {data.proj.v[0].fov, data.proj.v[1].fov};
|
||||
cmd = cn->foveation->update_foveation_buffer(
|
||||
ct->c->nr.distortion.buffer,
|
||||
cmd = foveation->update_foveation_buffer(
|
||||
c->nr.distortion.buffer,
|
||||
data.flip_y,
|
||||
rect,
|
||||
fov);
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto & hmd = cn->cnx.get_hmd().hmd;
|
||||
const auto & hmd = cnx.get_hmd().hmd;
|
||||
xrt_rect rect[] = {
|
||||
{.extent = {
|
||||
.w = int(hmd->views[0].display.w_pixels),
|
||||
@@ -685,16 +661,16 @@ static void comp_wivrn_flush(struct comp_target * ct)
|
||||
.h = int(hmd->views[1].display.h_pixels),
|
||||
}},
|
||||
};
|
||||
cmd = cn->foveation->update_foveation_buffer(
|
||||
ct->c->nr.distortion.buffer,
|
||||
cmd = foveation->update_foveation_buffer(
|
||||
c->nr.distortion.buffer,
|
||||
false,
|
||||
rect,
|
||||
hmd->distortion.fov);
|
||||
}
|
||||
|
||||
struct vk_bundle * vk = get_vk(cn);
|
||||
auto vk = get_vk();
|
||||
|
||||
vk::Semaphore sem(cn->semaphores.present_complete);
|
||||
vk::Semaphore sem(semaphores.present_complete);
|
||||
|
||||
vk::SubmitInfo submit_info{
|
||||
.commandBufferCount = cmd ? 1u : 0,
|
||||
@@ -705,20 +681,18 @@ static void comp_wivrn_flush(struct comp_target * ct)
|
||||
|
||||
{
|
||||
scoped_lock lock(vk->main_queue->mutex);
|
||||
cn->wivrn_bundle->queue.submit(submit_info);
|
||||
wivrn_bundle->queue.submit(submit_info);
|
||||
}
|
||||
}
|
||||
|
||||
static void comp_wivrn_calc_frame_pacing(struct comp_target * ct,
|
||||
int64_t * out_frame_id,
|
||||
int64_t * out_wake_up_time_ns,
|
||||
int64_t * out_desired_present_time_ns,
|
||||
int64_t * out_present_slop_ns,
|
||||
int64_t * out_predicted_display_time_ns)
|
||||
void wivrn_comp_target::calc_frame_pacing(
|
||||
int64_t * out_frame_id,
|
||||
int64_t * out_wake_up_time_ns,
|
||||
int64_t * out_desired_present_time_ns,
|
||||
int64_t * out_present_slop_ns,
|
||||
int64_t * out_predicted_display_time_ns)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
|
||||
cn->pacer.predict(
|
||||
pacer.predict(
|
||||
*out_frame_id,
|
||||
*out_wake_up_time_ns,
|
||||
*out_desired_present_time_ns,
|
||||
@@ -726,82 +700,84 @@ static void comp_wivrn_calc_frame_pacing(struct comp_target * ct,
|
||||
*out_predicted_display_time_ns);
|
||||
}
|
||||
|
||||
static void comp_wivrn_mark_timing_point(struct comp_target * ct,
|
||||
enum comp_target_timing_point point,
|
||||
int64_t frame_id,
|
||||
int64_t when_ns)
|
||||
void wivrn_comp_target::mark_timing_point(
|
||||
enum comp_target_timing_point point,
|
||||
int64_t frame_id,
|
||||
int64_t when_ns)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
|
||||
cn->pacer.mark_timing_point(point, frame_id, when_ns);
|
||||
pacer.mark_timing_point(point, frame_id, when_ns);
|
||||
|
||||
switch (point)
|
||||
{
|
||||
case COMP_TARGET_TIMING_POINT_WAKE_UP:
|
||||
cn->cnx.dump_time("wake_up", frame_id, when_ns);
|
||||
cnx.dump_time("wake_up", frame_id, when_ns);
|
||||
break;
|
||||
case COMP_TARGET_TIMING_POINT_BEGIN:
|
||||
cn->cnx.dump_time("begin", frame_id, when_ns);
|
||||
cnx.dump_time("begin", frame_id, when_ns);
|
||||
break;
|
||||
case COMP_TARGET_TIMING_POINT_SUBMIT_BEGIN:
|
||||
break;
|
||||
case COMP_TARGET_TIMING_POINT_SUBMIT_END:
|
||||
cn->cnx.dump_time("submit", frame_id, when_ns);
|
||||
cnx.dump_time("submit", frame_id, when_ns);
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
static VkResult comp_wivrn_update_timings(struct comp_target * ct)
|
||||
VkResult wivrn_comp_target::update_timings()
|
||||
{
|
||||
// TODO
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
static void comp_wivrn_set_title(struct comp_target * ct, const char * title)
|
||||
void wivrn_comp_target::set_title(const char * title)
|
||||
{}
|
||||
|
||||
static xrt_result_t comp_wivrn_get_refresh_rates(struct comp_target * ct, uint32_t * count, float * refresh_rates_hz)
|
||||
xrt_result_t wivrn_comp_target::get_refresh_rates(uint32_t * count, float * refresh_rates_hz)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
const auto & rates = cn->cnx.get_info().available_refresh_rates;
|
||||
const auto & rates = cnx.get_info().available_refresh_rates;
|
||||
*count = std::min<uint32_t>(rates.size(), XRT_MAX_SUPPORTED_REFRESH_RATES);
|
||||
std::copy_n(rates.begin(), *count, refresh_rates_hz);
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
static xrt_result_t comp_wivrn_get_current_refresh_rate(struct comp_target * ct, float * refresh_rate_hz)
|
||||
xrt_result_t wivrn_comp_target::get_current_refresh_rate(float * refresh_rate_hz)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
*refresh_rate_hz = cn->desc.fps;
|
||||
*refresh_rate_hz = desc.fps;
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
static xrt_result_t comp_wivrn_request_refresh_rate(struct comp_target * ct, float refresh_rate_hz)
|
||||
xrt_result_t wivrn_comp_target::request_refresh_rate(float refresh_rate_hz)
|
||||
{
|
||||
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
|
||||
cn->requested_refresh_rate = refresh_rate_hz;
|
||||
requested_refresh_rate = refresh_rate_hz;
|
||||
if (refresh_rate_hz == 0.0f)
|
||||
refresh_rate_hz = get_default_rate(cn->cnx.get_info(), *cn->cnx.get_settings());
|
||||
refresh_rate_hz = get_default_rate(cnx.get_info(), *cnx.get_settings());
|
||||
|
||||
try
|
||||
{
|
||||
cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// ignore network errors
|
||||
}
|
||||
|
||||
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
wivrn_comp_target::~wivrn_comp_target()
|
||||
{
|
||||
destroy_images(this);
|
||||
destroy_images();
|
||||
}
|
||||
|
||||
static void comp_wivrn_destroy(struct comp_target * ct)
|
||||
void wivrn_comp_target::destroy()
|
||||
{
|
||||
auto cn = (struct wivrn_comp_target *)ct;
|
||||
cn->cnx.unset_comp_target();
|
||||
delete cn;
|
||||
cnx.unset_comp_target();
|
||||
delete this;
|
||||
}
|
||||
|
||||
static void comp_wivrn_info_gpu(struct comp_target * ct, int64_t frame_id, int64_t gpu_start_ns, int64_t gpu_end_ns, int64_t when_ns)
|
||||
void wivrn_comp_target::info_gpu(int64_t frame_id, int64_t gpu_start_ns, int64_t gpu_end_ns, int64_t when_ns)
|
||||
{
|
||||
COMP_TRACE_MARKER();
|
||||
}
|
||||
@@ -827,6 +803,29 @@ void wivrn_comp_target::reset_encoders()
|
||||
cnx.send_control(to_headset::video_stream_description{desc});
|
||||
}
|
||||
|
||||
float wivrn_comp_target::get_requested_refresh_rate() const
|
||||
{
|
||||
return requested_refresh_rate;
|
||||
}
|
||||
void wivrn_comp_target::reset_requested_refresh_rate()
|
||||
{
|
||||
requested_refresh_rate = 0;
|
||||
}
|
||||
|
||||
void wivrn_comp_target::pause()
|
||||
{
|
||||
skip_encoding = true;
|
||||
}
|
||||
|
||||
void wivrn_comp_target::resume()
|
||||
{
|
||||
if (!skip_encoding)
|
||||
return;
|
||||
|
||||
reset_encoders();
|
||||
skip_encoding = false;
|
||||
}
|
||||
|
||||
void wivrn_comp_target::set_bitrate(uint32_t bitrate_bps)
|
||||
{
|
||||
for (auto & encoder: encoders)
|
||||
@@ -847,30 +846,35 @@ void wivrn_comp_target::set_refresh_rate(float refresh_rate_hz)
|
||||
encoder->set_framerate(refresh_rate_hz);
|
||||
}
|
||||
|
||||
float wivrn_comp_target::get_refresh_rate()
|
||||
{
|
||||
return desc.fps;
|
||||
}
|
||||
|
||||
wivrn_comp_target::wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c) :
|
||||
comp_target{
|
||||
.c = c,
|
||||
.init_pre_vulkan = comp_wivrn_init_pre_vulkan,
|
||||
.init_post_vulkan = comp_wivrn_init_post_vulkan,
|
||||
.check_ready = comp_wivrn_check_ready,
|
||||
.create_images = comp_wivrn_create_images,
|
||||
.has_images = comp_wivrn_has_images,
|
||||
.acquire = comp_wivrn_acquire,
|
||||
.present = comp_wivrn_present,
|
||||
.flush = comp_wivrn_flush,
|
||||
.calc_frame_pacing = comp_wivrn_calc_frame_pacing,
|
||||
.mark_timing_point = comp_wivrn_mark_timing_point,
|
||||
.update_timings = comp_wivrn_update_timings,
|
||||
.info_gpu = comp_wivrn_info_gpu,
|
||||
.set_title = comp_wivrn_set_title,
|
||||
.get_refresh_rates = comp_wivrn_get_refresh_rates,
|
||||
.get_current_refresh_rate = comp_wivrn_get_current_refresh_rate,
|
||||
.request_refresh_rate = comp_wivrn_request_refresh_rate,
|
||||
.destroy = comp_wivrn_destroy,
|
||||
.init_pre_vulkan = method_pointer<&wivrn_comp_target::init_pre_vulkan>,
|
||||
.init_post_vulkan = method_pointer<&wivrn_comp_target::init_post_vulkan>,
|
||||
.check_ready = method_pointer<&wivrn_comp_target::check_ready>,
|
||||
.create_images = method_pointer<&wivrn_comp_target::create_images>,
|
||||
.has_images = method_pointer<&wivrn_comp_target::has_images>,
|
||||
.acquire = method_pointer<&wivrn_comp_target::acquire>,
|
||||
.present = method_pointer<&wivrn_comp_target::present>,
|
||||
.flush = method_pointer<&wivrn_comp_target::flush>,
|
||||
.calc_frame_pacing = method_pointer<&wivrn_comp_target::calc_frame_pacing>,
|
||||
.mark_timing_point = method_pointer<&wivrn_comp_target::mark_timing_point>,
|
||||
.update_timings = method_pointer<&wivrn_comp_target::update_timings>,
|
||||
.info_gpu = method_pointer<&wivrn_comp_target::info_gpu>,
|
||||
.set_title = method_pointer<&wivrn_comp_target::set_title>,
|
||||
.get_refresh_rates = method_pointer<&wivrn_comp_target::get_refresh_rates>,
|
||||
.get_current_refresh_rate = method_pointer<&wivrn_comp_target::get_current_refresh_rate>,
|
||||
.request_refresh_rate = method_pointer<&wivrn_comp_target::request_refresh_rate>,
|
||||
.destroy = method_pointer<&wivrn_comp_target::destroy>,
|
||||
},
|
||||
desc{.fps = get_default_rate(cnx.get_info(), *cnx.get_settings())},
|
||||
pacer(U_TIME_1S_IN_NS / desc.fps),
|
||||
cnx(cnx)
|
||||
cnx(cnx),
|
||||
pacer(U_TIME_1S_IN_NS / desc.fps)
|
||||
{
|
||||
c->frame_interval_ns = U_TIME_1S_IN_NS / desc.fps;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
* Copyright (C) 2026 Sapphire <imsapphire0@gmail.com>
|
||||
*
|
||||
* 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
|
||||
@@ -19,6 +20,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "main/comp_compositor.h"
|
||||
#include "main/comp_target.h"
|
||||
|
||||
#include "encoder/encoder_settings.h"
|
||||
@@ -28,11 +30,11 @@
|
||||
#include "wivrn_pacer.h"
|
||||
#include "wivrn_packets.h"
|
||||
|
||||
#include <array>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
namespace wivrn
|
||||
@@ -76,10 +78,9 @@ struct pseudo_swapchain
|
||||
to_headset::video_stream_data_shard::view_info_t view_info{};
|
||||
};
|
||||
|
||||
struct wivrn_comp_target : public comp_target
|
||||
class wivrn_comp_target : public comp_target
|
||||
{
|
||||
to_headset::video_stream_description desc{};
|
||||
wivrn_pacer pacer;
|
||||
|
||||
std::optional<wivrn_vk_bundle> wivrn_bundle;
|
||||
vk::raii::CommandPool command_pool = nullptr;
|
||||
@@ -90,26 +91,79 @@ struct wivrn_comp_target : public comp_target
|
||||
|
||||
VkColorSpaceKHR color_space;
|
||||
|
||||
static std::vector<const char *> wanted_instance_extensions;
|
||||
static std::vector<const char *> wanted_device_extensions;
|
||||
|
||||
std::array<encoder_settings, 3> settings;
|
||||
std::list<std::jthread> encoder_threads;
|
||||
std::vector<std::shared_ptr<video_encoder>> encoders;
|
||||
|
||||
wivrn::wivrn_session & cnx;
|
||||
std::optional<wivrn_foveation> foveation;
|
||||
|
||||
std::atomic<float> requested_refresh_rate;
|
||||
std::atomic<bool> skip_encoding;
|
||||
|
||||
inline vk_bundle * get_vk()
|
||||
{
|
||||
return &c->base.vk;
|
||||
}
|
||||
|
||||
void init_semaphores();
|
||||
void fini_semaphores();
|
||||
VkResult create_images_impl(vk::ImageUsageFlags flags);
|
||||
void destroy_images();
|
||||
void create_encoders();
|
||||
|
||||
void run_present(std::stop_token stop_token, int index, std::vector<std::shared_ptr<video_encoder>> encoders);
|
||||
|
||||
bool init_pre_vulkan();
|
||||
bool init_post_vulkan(uint32_t preferred_width, uint32_t preferred_height);
|
||||
bool check_ready();
|
||||
void create_images(const struct comp_target_create_images_info * create_info, struct vk_bundle_queue * present_queue);
|
||||
bool has_images();
|
||||
VkResult acquire(uint32_t * out_index);
|
||||
VkResult present(struct vk_bundle_queue * present_queue,
|
||||
uint32_t index,
|
||||
uint64_t timeline_semaphore_value,
|
||||
int64_t desired_present_time_ns,
|
||||
int64_t present_slop_ns);
|
||||
void flush();
|
||||
void calc_frame_pacing(int64_t * out_frame_id,
|
||||
int64_t * out_wake_up_time_ns,
|
||||
int64_t * out_desired_present_time_ns,
|
||||
int64_t * out_present_slop_ns,
|
||||
int64_t * out_predicted_display_time_ns);
|
||||
void mark_timing_point(enum comp_target_timing_point point,
|
||||
int64_t frame_id,
|
||||
int64_t when_ns);
|
||||
VkResult update_timings();
|
||||
void info_gpu(int64_t frame_id, int64_t gpu_start_ns, int64_t gpu_end_ns, int64_t when_ns);
|
||||
void set_title(const char * title);
|
||||
xrt_result_t get_refresh_rates(uint32_t * count, float * refresh_rates_hz);
|
||||
xrt_result_t get_current_refresh_rate(float * refresh_rate_hz);
|
||||
xrt_result_t request_refresh_rate(float refresh_rate_hz);
|
||||
void destroy();
|
||||
|
||||
public:
|
||||
static std::vector<const char *> wanted_instance_extensions;
|
||||
static std::vector<const char *> wanted_device_extensions;
|
||||
|
||||
wivrn_pacer pacer;
|
||||
std::optional<wivrn_foveation> foveation;
|
||||
|
||||
using base = comp_target;
|
||||
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c);
|
||||
~wivrn_comp_target();
|
||||
|
||||
void on_feedback(const from_headset::feedback &, const clock_offset &);
|
||||
void reset_encoders();
|
||||
void set_bitrate(uint32_t bitrate_bps);
|
||||
|
||||
float get_requested_refresh_rate() const;
|
||||
void reset_requested_refresh_rate();
|
||||
|
||||
void pause();
|
||||
void resume();
|
||||
|
||||
void set_bitrate(uint32_t bitrate_bps);
|
||||
void set_refresh_rate(float);
|
||||
float get_refresh_rate();
|
||||
};
|
||||
|
||||
inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
|
||||
|
||||
@@ -34,20 +34,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::stop)
|
||||
{
|
||||
// Ignore stop request when no headset is connected
|
||||
}
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::disconnect)
|
||||
{
|
||||
// Ignore disconnect request when no headset is connected
|
||||
}
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::set_bitrate)
|
||||
{
|
||||
// Ignore bitrate request when no headset is connected
|
||||
}
|
||||
// Ignored until connection is established
|
||||
static void handle_event_from_main_loop(to_monado::stop) {}
|
||||
static void handle_event_from_main_loop(to_monado::disconnect) {}
|
||||
static void handle_event_from_main_loop(to_monado::set_bitrate) {}
|
||||
static void handle_event_from_main_loop(wivrn::to_headset::stream_tab_change) {}
|
||||
|
||||
static std::string clean_key(std::string key)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
#include "wivrn_hmd.h"
|
||||
#include "math/m_api.h"
|
||||
#include "os/os_time.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_session.h"
|
||||
@@ -37,6 +36,10 @@
|
||||
|
||||
#include "configuration.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "math/m_api.h"
|
||||
#endif
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
@@ -148,8 +151,7 @@ void wivrn_hmd::update_tracking(const from_headset::tracking & tracking, const c
|
||||
void wivrn_hmd::update_battery(const from_headset::battery & new_battery)
|
||||
{
|
||||
// We will only request a new sample if the current one is consumed
|
||||
std::lock_guard lock(mutex);
|
||||
battery = new_battery;
|
||||
*battery.lock() = new_battery;
|
||||
}
|
||||
|
||||
xrt_result_t wivrn_hmd::get_presence(bool * out_presence)
|
||||
@@ -204,10 +206,10 @@ xrt_result_t wivrn_hmd::get_battery_status(bool * out_present,
|
||||
bool * out_charging,
|
||||
float * out_charge)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
*out_present = battery.present;
|
||||
*out_charging = battery.charging;
|
||||
*out_charge = battery.charge;
|
||||
auto bat = battery.lock();
|
||||
*out_present = bat->present;
|
||||
*out_charging = bat->charging;
|
||||
*out_charge = bat->charge;
|
||||
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <mutex>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
@@ -36,8 +35,6 @@ class wivrn_session;
|
||||
|
||||
class wivrn_hmd : public xrt_device
|
||||
{
|
||||
std::mutex mutex;
|
||||
|
||||
xrt_input pose_input{
|
||||
.active = true,
|
||||
.name = XRT_INPUT_GENERIC_HEAD_POSE,
|
||||
@@ -52,7 +49,7 @@ class wivrn_hmd : public xrt_device
|
||||
};
|
||||
|
||||
view_list views;
|
||||
from_headset::battery battery{};
|
||||
thread_safe<from_headset::battery> battery{};
|
||||
|
||||
std::atomic<bool> presence{true};
|
||||
thread_safe<std::array<std::optional<from_headset::visibility_mask_changed::masks>, 2>> visibility_mask;
|
||||
|
||||
+277
-81
@@ -55,6 +55,7 @@
|
||||
#include <magic_enum.hpp>
|
||||
#include <stdexcept>
|
||||
#include <string.h>
|
||||
#include <utility>
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
|
||||
@@ -127,6 +128,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
||||
.destroy = [](xrt_system_devices * self) { delete ((wivrn_session *)self); },
|
||||
},
|
||||
connection(std::move(connection)),
|
||||
headset_info(this->connection->info()),
|
||||
xrt_system(system),
|
||||
control(*this->connection),
|
||||
hmd(this, get_info()),
|
||||
@@ -145,11 +147,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
||||
"WiVRn",
|
||||
get_info(),
|
||||
*this);
|
||||
if (audio_handle)
|
||||
{
|
||||
send_control(audio_handle->description());
|
||||
audio_handle->on_connect();
|
||||
}
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
@@ -157,12 +154,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
||||
throw;
|
||||
}
|
||||
|
||||
(*this)(from_headset::get_application_list{
|
||||
.language = get_info().language,
|
||||
.country = get_info().country,
|
||||
.variant = get_info().variant,
|
||||
});
|
||||
|
||||
static_roles.head = xdevs[xdev_count++] = &hmd;
|
||||
|
||||
if (hmd.supported.face_tracking)
|
||||
@@ -290,7 +281,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
||||
try
|
||||
{
|
||||
uinput_handler.emplace();
|
||||
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@@ -392,7 +382,7 @@ void wivrn_session::start(ipc_server * server)
|
||||
assert(not net_thread.joinable());
|
||||
mnd_ipc_server = server;
|
||||
net_thread = std::jthread([this](auto stop_token) { return run_net(stop_token); });
|
||||
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
|
||||
resume_session();
|
||||
}
|
||||
|
||||
void wivrn_session::stop()
|
||||
@@ -410,6 +400,85 @@ bool wivrn_session::request_stop()
|
||||
return b;
|
||||
}
|
||||
|
||||
void wivrn_session::pause_session()
|
||||
{
|
||||
assert(mnd_ipc_server);
|
||||
|
||||
// notify clients about session pause
|
||||
|
||||
update_client_states(false, false);
|
||||
|
||||
if (get_info().user_presence)
|
||||
{
|
||||
(*this)(from_headset::user_presence_changed{
|
||||
.present = false,
|
||||
});
|
||||
}
|
||||
|
||||
// pause session components
|
||||
|
||||
worker_thread = std::jthread();
|
||||
offset_est.reset();
|
||||
|
||||
if (audio_handle)
|
||||
audio_handle->pause();
|
||||
|
||||
{
|
||||
std::shared_lock lock(comp_target_mutex);
|
||||
if (comp_target)
|
||||
comp_target->pause();
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn_session::resume_session()
|
||||
{
|
||||
assert(mnd_ipc_server);
|
||||
|
||||
// reset session components and send descriptor packets to headset
|
||||
|
||||
if (audio_handle)
|
||||
audio_handle->resume();
|
||||
|
||||
if (uinput_handler)
|
||||
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
|
||||
|
||||
{
|
||||
std::shared_lock lock(comp_target_mutex);
|
||||
if (comp_target)
|
||||
{
|
||||
float target_fps = get_default_rate(get_info(), *get_settings());
|
||||
|
||||
if (target_fps != comp_target->get_refresh_rate())
|
||||
{
|
||||
(*this)(from_headset::refresh_rate_changed{
|
||||
.from = comp_target->get_refresh_rate(),
|
||||
.to = target_fps,
|
||||
});
|
||||
}
|
||||
|
||||
comp_target->resume();
|
||||
}
|
||||
}
|
||||
|
||||
if (get_info().user_presence)
|
||||
{
|
||||
(*this)(from_headset::user_presence_changed{
|
||||
.present = true,
|
||||
});
|
||||
}
|
||||
|
||||
(*this)(from_headset::get_application_list{
|
||||
.language = get_info().language,
|
||||
.country = get_info().country,
|
||||
.variant = get_info().variant,
|
||||
});
|
||||
|
||||
// resume session and notify clients
|
||||
|
||||
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
|
||||
update_client_states(true, true);
|
||||
}
|
||||
|
||||
clock_offset wivrn_session::get_offset()
|
||||
{
|
||||
return offset_est.get_offset();
|
||||
@@ -715,7 +784,6 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
|
||||
|
||||
void wivrn_session::operator()(from_headset::session_state_changed && event)
|
||||
{
|
||||
assert(mnd_ipc_server);
|
||||
U_LOG_I("Session state changed: %s", xr::to_string(event.state));
|
||||
bool visible, focused;
|
||||
switch (event.state)
|
||||
@@ -733,22 +801,8 @@ void wivrn_session::operator()(from_headset::session_state_changed && event)
|
||||
focused = false;
|
||||
break;
|
||||
}
|
||||
scoped_lock lock(mnd_ipc_server->global_state.lock);
|
||||
auto locked = session_loss.lock();
|
||||
for (auto & t: mnd_ipc_server->threads)
|
||||
{
|
||||
auto id = t.ics.client_state.id;
|
||||
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
|
||||
continue;
|
||||
bool current = t.ics.client_state.session_overlay or
|
||||
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
|
||||
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
|
||||
t.ics.client_state.info.application_name,
|
||||
visible ? "true" : "false",
|
||||
focused ? "true" : "false",
|
||||
current ? "true" : "false");
|
||||
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
|
||||
}
|
||||
|
||||
update_client_states(visible, focused);
|
||||
}
|
||||
void wivrn_session::operator()(from_headset::user_presence_changed && event)
|
||||
{
|
||||
@@ -779,6 +833,11 @@ void wivrn_session::operator()(from_headset::refresh_rate_changed && event)
|
||||
});
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(from_headset::stream_tab_changed && event)
|
||||
{
|
||||
send_to_main(std::move(event));
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(from_headset::get_application_list && request)
|
||||
{
|
||||
to_headset::application_list response{
|
||||
@@ -921,6 +980,11 @@ void wivrn_session::operator()(to_monado::set_bitrate && data)
|
||||
comp_target->set_bitrate(data.bitrate_bps);
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(to_headset::stream_tab_change && data)
|
||||
{
|
||||
send_control(std::move(data));
|
||||
}
|
||||
|
||||
struct refresh_rate_adjuster
|
||||
{
|
||||
std::chrono::seconds period{10};
|
||||
@@ -984,17 +1048,29 @@ void wivrn_session::run_net(std::stop_token stop)
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
U_LOG_E("Exception in network thread: %s", e.what());
|
||||
worker_thread = std::jthread();
|
||||
U_LOG_W("Exception in network thread: %s, Session paused.", e.what());
|
||||
pause_session();
|
||||
|
||||
reconnect(stop);
|
||||
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
|
||||
if (stop.stop_requested())
|
||||
break;
|
||||
|
||||
try
|
||||
{
|
||||
resume_session();
|
||||
U_LOG_I("Headset connected, Session resumed.");
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
U_LOG_E("Exception on session resume: %s", e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn_session::run_worker(std::stop_token stop)
|
||||
{
|
||||
refresh_rate_adjuster refresh(connection->info(), settings, app_pacers);
|
||||
refresh_rate_adjuster refresh(get_info(), settings, app_pacers);
|
||||
while (not stop.stop_requested())
|
||||
{
|
||||
try
|
||||
@@ -1019,9 +1095,9 @@ void wivrn_session::run_worker(std::stop_token stop)
|
||||
{
|
||||
scoped_lock lock(xrt_system.sessions.mutex);
|
||||
if (xrt_system.sessions.count == 0)
|
||||
comp_target->requested_refresh_rate = 0;
|
||||
comp_target->reset_requested_refresh_rate();
|
||||
}
|
||||
if (comp_target->requested_refresh_rate == 0)
|
||||
if (comp_target->get_requested_refresh_rate() == 0)
|
||||
refresh.adjust(*connection);
|
||||
}
|
||||
if (do_control)
|
||||
@@ -1066,62 +1142,182 @@ void wivrn_session::quit_if_no_client()
|
||||
}
|
||||
}
|
||||
|
||||
static bool is_audio_changed(const from_headset::headset_info_packet & prev_info, const from_headset::headset_info_packet & info)
|
||||
{
|
||||
bool changed = false;
|
||||
|
||||
if (prev_info.speaker and info.speaker)
|
||||
{
|
||||
changed |= prev_info.speaker->num_channels != info.speaker->num_channels;
|
||||
changed |= prev_info.speaker->sample_rate != info.speaker->sample_rate;
|
||||
}
|
||||
|
||||
if (prev_info.microphone and info.microphone)
|
||||
{
|
||||
changed |= prev_info.microphone->num_channels != info.microphone->num_channels;
|
||||
changed |= prev_info.microphone->sample_rate != info.microphone->sample_rate;
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
std::pair<bool, std::optional<std::string>> wivrn_session::validate_headset_info(const from_headset::headset_info_packet & info)
|
||||
{
|
||||
const auto & prev_info = get_info();
|
||||
|
||||
bool refuse = false; // refuse to connect headset outright
|
||||
bool warn = false; // allow headset but display a pop-up warning about outdated settings
|
||||
|
||||
// stream settings
|
||||
{
|
||||
warn |= prev_info.render_eye_width != info.render_eye_width;
|
||||
warn |= prev_info.render_eye_height != info.render_eye_height;
|
||||
warn |= prev_info.stream_eye_width != info.stream_eye_width;
|
||||
warn |= prev_info.stream_eye_height != info.stream_eye_height;
|
||||
|
||||
refuse |= prev_info.supported_codecs != info.supported_codecs;
|
||||
refuse |= prev_info.bit_depth != info.bit_depth;
|
||||
|
||||
if (refuse)
|
||||
{
|
||||
return std::make_pair(false, "video codec mismatch.");
|
||||
}
|
||||
}
|
||||
|
||||
// audio settings
|
||||
{
|
||||
refuse |= is_audio_changed(prev_info, info);
|
||||
|
||||
warn |= (bool)prev_info.speaker != (bool)info.speaker;
|
||||
warn |= (bool)prev_info.microphone != (bool)info.microphone;
|
||||
|
||||
if (refuse)
|
||||
{
|
||||
return std::make_pair(false, "audio config changed.");
|
||||
}
|
||||
}
|
||||
|
||||
// headset features
|
||||
{
|
||||
// allow toggling some features but changes won't be visible to applications
|
||||
warn |= prev_info.hand_tracking != info.hand_tracking;
|
||||
warn |= prev_info.face_tracking != info.face_tracking;
|
||||
warn |= prev_info.eye_gaze != info.eye_gaze;
|
||||
|
||||
warn |= prev_info.num_generic_trackers != info.num_generic_trackers;
|
||||
|
||||
// only allow connecting from the "same" headset
|
||||
refuse |= prev_info.system_name != info.system_name;
|
||||
|
||||
for (uint32_t i = 0; i < 2; i++)
|
||||
{
|
||||
refuse |= prev_info.fov[i].angleDown != info.fov[i].angleDown;
|
||||
refuse |= prev_info.fov[i].angleUp != info.fov[i].angleUp;
|
||||
refuse |= prev_info.fov[i].angleRight != info.fov[i].angleRight;
|
||||
refuse |= prev_info.fov[i].angleLeft != info.fov[i].angleLeft;
|
||||
}
|
||||
|
||||
refuse |= prev_info.palm_pose != info.palm_pose;
|
||||
refuse |= prev_info.user_presence != info.user_presence;
|
||||
refuse |= prev_info.passthrough != info.passthrough;
|
||||
|
||||
refuse |= prev_info.available_refresh_rates != info.available_refresh_rates;
|
||||
|
||||
if (refuse)
|
||||
{
|
||||
return std::make_pair(false, "headset features changed.");
|
||||
}
|
||||
}
|
||||
|
||||
return std::make_pair(warn, std::nullopt);
|
||||
}
|
||||
|
||||
void wivrn_session::reconnect(std::stop_token stop)
|
||||
{
|
||||
assert(mnd_ipc_server);
|
||||
// Notify clients about disconnected status
|
||||
xrt_session_event event{
|
||||
.state = {
|
||||
.type = XRT_SESSION_EVENT_STATE_CHANGE,
|
||||
.visible = false,
|
||||
.focused = false,
|
||||
},
|
||||
};
|
||||
auto result = push_event(event);
|
||||
if (result != XRT_SUCCESS)
|
||||
{
|
||||
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
|
||||
}
|
||||
|
||||
U_LOG_I("Waiting for new connection");
|
||||
auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
|
||||
if (stop.stop_requested())
|
||||
return;
|
||||
if (not tcp)
|
||||
|
||||
while (not stop.stop_requested())
|
||||
{
|
||||
request_stop();
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
offset_est.reset();
|
||||
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
|
||||
|
||||
const auto & info = connection->info();
|
||||
(*this)(info.settings);
|
||||
|
||||
try
|
||||
{
|
||||
std::shared_lock lock(comp_target_mutex);
|
||||
if (comp_target)
|
||||
comp_target->reset_encoders();
|
||||
// await a new headset connection
|
||||
|
||||
auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
|
||||
if (stop.stop_requested())
|
||||
return;
|
||||
if (not tcp)
|
||||
{
|
||||
request_stop();
|
||||
return;
|
||||
}
|
||||
|
||||
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
|
||||
|
||||
// validate if headset is compatible with the current session
|
||||
|
||||
const auto & info = connection->info();
|
||||
const auto [warn_conn, refuse_conn] = validate_headset_info(info);
|
||||
|
||||
// TODO: add server-side localization
|
||||
|
||||
if (refuse_conn)
|
||||
{
|
||||
send_control(to_headset::server_message{
|
||||
.kind = to_headset::server_message::kind::error,
|
||||
.msg = std::format("Headset incompatible with session: {}", *refuse_conn),
|
||||
});
|
||||
|
||||
connection->shutdown();
|
||||
throw std::runtime_error("headset config incompatible with current session");
|
||||
}
|
||||
|
||||
if (warn_conn)
|
||||
{
|
||||
send_control(to_headset::server_message{
|
||||
.kind = to_headset::server_message::kind::toast_urgent,
|
||||
.msg = "Stream resumed with outdated settings. Restart the server for settings to apply.",
|
||||
});
|
||||
|
||||
U_LOG_W("Session resumed with outdated settings. Restart the server for settings to apply.");
|
||||
}
|
||||
|
||||
// update headset info
|
||||
|
||||
headset_info.settings = info.settings;
|
||||
(*this)(headset_info.settings);
|
||||
|
||||
headset_info.language = info.language;
|
||||
headset_info.country = info.country;
|
||||
headset_info.variant = info.variant;
|
||||
|
||||
break;
|
||||
}
|
||||
if (audio_handle)
|
||||
catch (std::exception & e)
|
||||
{
|
||||
send_control(audio_handle->description());
|
||||
audio_handle->on_connect();
|
||||
}
|
||||
|
||||
event.state.visible = true;
|
||||
event.state.focused = true;
|
||||
result = push_event(event);
|
||||
if (result != XRT_SUCCESS)
|
||||
{
|
||||
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
|
||||
U_LOG_W("Exception while connecting headset: %s", e.what());
|
||||
}
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
}
|
||||
|
||||
void wivrn_session::update_client_states(bool visible, bool focused)
|
||||
{
|
||||
assert(mnd_ipc_server);
|
||||
scoped_lock lock(mnd_ipc_server->global_state.lock);
|
||||
auto locked = session_loss.lock();
|
||||
for (auto & t: mnd_ipc_server->threads)
|
||||
{
|
||||
U_LOG_E("Reconnection failed: %s", e.what());
|
||||
auto id = t.ics.client_state.id;
|
||||
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
|
||||
continue;
|
||||
bool current = t.ics.client_state.session_overlay or
|
||||
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
|
||||
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
|
||||
t.ics.client_state.info.application_name,
|
||||
visible ? "true" : "false",
|
||||
focused ? "true" : "false",
|
||||
current ? "true" : "false");
|
||||
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ class wivrn_session : public xrt_system_devices
|
||||
{
|
||||
friend wivrn_comp_target_factory;
|
||||
std::unique_ptr<wivrn_connection> connection;
|
||||
from_headset::headset_info_packet headset_info;
|
||||
pacing_app_factory app_pacers;
|
||||
|
||||
u_system & xrt_system;
|
||||
@@ -140,7 +141,7 @@ public:
|
||||
bool connected();
|
||||
const from_headset::headset_info_packet & get_info() const
|
||||
{
|
||||
return connection->info();
|
||||
return headset_info;
|
||||
};
|
||||
|
||||
locked<from_headset::settings_changed> get_settings()
|
||||
@@ -177,6 +178,7 @@ public:
|
||||
void operator()(from_headset::session_state_changed &&);
|
||||
void operator()(from_headset::user_presence_changed &&);
|
||||
void operator()(from_headset::refresh_rate_changed &&);
|
||||
void operator()(from_headset::stream_tab_changed &&);
|
||||
void operator()(from_headset::override_foveation_center &&);
|
||||
void operator()(from_headset::get_application_list &&);
|
||||
void operator()(const from_headset::start_app &);
|
||||
@@ -188,6 +190,7 @@ public:
|
||||
void operator()(to_monado::stop &&);
|
||||
void operator()(to_monado::disconnect &&);
|
||||
void operator()(to_monado::set_bitrate &&);
|
||||
void operator()(to_headset::stream_tab_change &&);
|
||||
|
||||
bool has_stream()
|
||||
{
|
||||
@@ -216,8 +219,15 @@ private:
|
||||
void run_worker(std::stop_token stop);
|
||||
void reconnect(std::stop_token stop);
|
||||
|
||||
void pause_session();
|
||||
void resume_session();
|
||||
|
||||
void update_client_states(bool visible, bool focused);
|
||||
void poll_session_loss();
|
||||
|
||||
// checks if a headset is usable with this session
|
||||
std::pair<bool, std::optional<std::string>> validate_headset_info(const from_headset::headset_info_packet & info);
|
||||
|
||||
// xrt_system implementation
|
||||
xrt_result_t get_roles(xrt_system_roles * out_roles);
|
||||
xrt_result_t feature_inc(xrt_device_feature_type type);
|
||||
|
||||
@@ -314,7 +314,7 @@ void video_encoder::SendData(std::span<uint8_t> data, bool end_of_frame, bool co
|
||||
timing_info.send_begin = clock.to_headset(os_monotonic_get_ns());
|
||||
}
|
||||
|
||||
ssize_t max_payload_size = cnx->has_stream() ? to_headset::video_stream_data_shard::max_payload_size : std::numeric_limits<uint32_t>::max();
|
||||
ssize_t max_payload_size = (cnx->has_stream() and not control) ? to_headset::video_stream_data_shard::max_payload_size : std::numeric_limits<uint32_t>::max();
|
||||
|
||||
auto begin = data.begin();
|
||||
auto end = data.end();
|
||||
|
||||
@@ -222,6 +222,26 @@ video_encoder_nvenc::video_encoder_nvenc(
|
||||
}
|
||||
}
|
||||
|
||||
const uint32_t intra_refresh_period = 100;
|
||||
const uint32_t intra_refresh_cnt = 50;
|
||||
auto set_intra_refresh = [&](auto & codec_config) {
|
||||
NV_ENC_CAPS_PARAM cap_param{
|
||||
.version = NV_ENC_CAPS_PARAM_VER,
|
||||
.capsToQuery = NV_ENC_CAPS_SUPPORT_INTRA_REFRESH,
|
||||
};
|
||||
|
||||
int res = 0;
|
||||
NVENC_CHECK(shared_state->fn.nvEncGetEncodeCaps(session_handle, encodeGUID, &cap_param, &res));
|
||||
if (res != 1)
|
||||
{
|
||||
U_LOG_W("nvenc: intra refresh not supported, disabling feature");
|
||||
return;
|
||||
}
|
||||
codec_config.enableIntraRefresh = 1;
|
||||
codec_config.intraRefreshPeriod = intra_refresh_period;
|
||||
codec_config.intraRefreshCnt = intra_refresh_cnt;
|
||||
};
|
||||
|
||||
switch (settings.codec)
|
||||
{
|
||||
case video_codec::h264:
|
||||
@@ -230,8 +250,9 @@ video_encoder_nvenc::video_encoder_nvenc(
|
||||
|
||||
config.encodeCodecConfig.h264Config.repeatSPSPPS = 1;
|
||||
config.encodeCodecConfig.h264Config.maxNumRefFrames = 0;
|
||||
config.encodeCodecConfig.h264Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
|
||||
config.encodeCodecConfig.h264Config.h264VUIParameters.videoFullRangeFlag = 1;
|
||||
config.encodeCodecConfig.h264Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
|
||||
set_intra_refresh(config.encodeCodecConfig.h264Config);
|
||||
|
||||
break;
|
||||
case video_codec::h265:
|
||||
@@ -246,8 +267,9 @@ video_encoder_nvenc::video_encoder_nvenc(
|
||||
|
||||
config.encodeCodecConfig.hevcConfig.repeatSPSPPS = 1;
|
||||
config.encodeCodecConfig.hevcConfig.maxNumRefFramesInDPB = 0;
|
||||
config.encodeCodecConfig.hevcConfig.idrPeriod = NVENC_INFINITE_GOPLENGTH;
|
||||
config.encodeCodecConfig.hevcConfig.hevcVUIParameters.videoFullRangeFlag = 1;
|
||||
config.encodeCodecConfig.hevcConfig.idrPeriod = NVENC_INFINITE_GOPLENGTH;
|
||||
set_intra_refresh(config.encodeCodecConfig.hevcConfig);
|
||||
|
||||
break;
|
||||
case video_codec::av1:
|
||||
@@ -263,6 +285,7 @@ video_encoder_nvenc::video_encoder_nvenc(
|
||||
config.encodeCodecConfig.av1Config.repeatSeqHdr = 1;
|
||||
config.encodeCodecConfig.av1Config.maxNumRefFramesInDPB = 0;
|
||||
config.encodeCodecConfig.av1Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
|
||||
set_intra_refresh(config.encodeCodecConfig.av1Config);
|
||||
|
||||
break;
|
||||
case video_codec::raw:
|
||||
|
||||
@@ -498,7 +498,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.queueFamilyIndex = vk.encode_queue_family_index,
|
||||
});
|
||||
vk.name(query_pool, "vulkan encoder video command pool");
|
||||
vk.name(video_command_pool, "vulkan encoder video command pool");
|
||||
|
||||
auto command_buffers = vk.device.allocateCommandBuffers(
|
||||
{.commandPool = *video_command_pool,
|
||||
|
||||
+44
-3
@@ -15,7 +15,6 @@
|
||||
#include "driver/configuration.h"
|
||||
#include "driver/wivrn_connection.h"
|
||||
#include "exit_codes.h"
|
||||
#include "hostname.h"
|
||||
#include "ipc_server_cb.h"
|
||||
#include "protocol_version.h"
|
||||
#include "start_application.h"
|
||||
@@ -35,6 +34,7 @@
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <libnotify/notification.h>
|
||||
#include <magic_enum.hpp>
|
||||
#include <memory>
|
||||
#include <poll.h>
|
||||
#include <random>
|
||||
@@ -315,7 +315,7 @@ void start_listening()
|
||||
|
||||
assert(listener_watch == 0);
|
||||
|
||||
listener = std::make_unique<TCPListener>(wivrn::default_port);
|
||||
listener = std::make_unique<TCPListener>(configuration().port);
|
||||
auto source_listener = g_unix_fd_source_new(listener->get_fd(), GIOCondition::G_IO_IN);
|
||||
g_source_set_callback(source_listener, G_SOURCE_FUNC(&headset_connected), nullptr, nullptr);
|
||||
listener_watch = g_source_attach(source_listener, nullptr);
|
||||
@@ -352,7 +352,8 @@ void start_publishing()
|
||||
{"version", wivrn::display_version()},
|
||||
{"cookie", server_cookie()},
|
||||
};
|
||||
publisher.emplace(poll_api, hostname(), "_wivrn._tcp", wivrn::default_port, TXT);
|
||||
auto configuration = wivrn::configuration();
|
||||
publisher.emplace(poll_api, configuration.hostname, "_wivrn._tcp", configuration.port, TXT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -537,6 +538,10 @@ gboolean control_received(gint fd, GIOCondition condition, gpointer user_data)
|
||||
start_publishing();
|
||||
inhibitor.reset();
|
||||
wivrn_server_set_headset_connected(dbus_server, false);
|
||||
wivrn_server_set_client_tab(dbus_server, "");
|
||||
},
|
||||
[&](const wivrn::from_headset::stream_tab_changed & event) {
|
||||
wivrn_server_set_client_tab(dbus_server, magic_enum::enum_name(event.tab).data());
|
||||
},
|
||||
[&](const from_monado::server_error & e) {
|
||||
wivrn_server_emit_server_error(dbus_server, e.where.c_str(), e.message.c_str());
|
||||
@@ -657,6 +662,15 @@ gboolean on_handle_rename_key(WivrnServer * skeleton, GDBusMethodInvocation * in
|
||||
|
||||
gboolean on_handle_enable_pairing(WivrnServer * skeleton, GDBusMethodInvocation * invocation, gpointer user_data)
|
||||
{
|
||||
bool server_running = server_watch != 0 or connection_thread;
|
||||
if (server_running)
|
||||
{
|
||||
std::cerr << "Cannot enable pairing while session is active." << pin << std::endl;
|
||||
g_dbus_method_invocation_return_value(invocation, g_variant_new("(s)", ""));
|
||||
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
|
||||
set_encryption_state(wivrn_connection::encryption_state::pairing);
|
||||
|
||||
if (pairing_timeout)
|
||||
@@ -685,6 +699,29 @@ gboolean on_handle_disable_pairing(WivrnServer * skeleton, GDBusMethodInvocation
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
|
||||
gboolean on_handle_set_client_tab(WivrnServer * skeleton, GDBusMethodInvocation * invocation, gpointer user_data)
|
||||
{
|
||||
GVariant * args = g_dbus_method_invocation_get_parameters(invocation);
|
||||
char * c_tab;
|
||||
g_variant_get_child(args, 0, "s", &c_tab);
|
||||
std::string tab(c_tab);
|
||||
g_free(c_tab);
|
||||
|
||||
for (auto [val, name]: magic_enum::enum_entries<stream_tab>())
|
||||
{
|
||||
if (tab == name)
|
||||
{
|
||||
wivrn_ipc_socket_main_loop->send(to_headset::stream_tab_change{.tab = val});
|
||||
g_dbus_method_invocation_return_value(invocation, nullptr);
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
}
|
||||
|
||||
std::cerr << "Invalid tab name " << tab << std::endl;
|
||||
g_dbus_method_invocation_return_dbus_error(invocation, "io.github.wivrn.Server.InvalidTab", "invalid tab");
|
||||
return G_SOURCE_CONTINUE;
|
||||
}
|
||||
|
||||
void on_bitrate(WivrnServer * server, const GParamSpec * pspec, gpointer data)
|
||||
{
|
||||
auto bitrate = wivrn_server_get_bitrate(server);
|
||||
@@ -832,6 +869,8 @@ void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer
|
||||
NULL);
|
||||
}
|
||||
|
||||
g_signal_connect(dbus_server, "handle-set-client-tab", G_CALLBACK(on_handle_set_client_tab), NULL);
|
||||
|
||||
wivrn_server_set_steam_command(dbus_server, steam_command().c_str());
|
||||
|
||||
on_headset_info_packet({});
|
||||
@@ -861,6 +900,8 @@ void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer
|
||||
set_encryption_state(wivrn_connection::encryption_state::pairing);
|
||||
else
|
||||
set_encryption_state(enc_state);
|
||||
|
||||
wivrn_server_set_client_tab(dbus_server, "");
|
||||
}
|
||||
|
||||
auto create_dbus_connection()
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
#include <cctype>
|
||||
#include <charconv>
|
||||
#include <stdint.h>
|
||||
#include <string_view>
|
||||
|
||||
namespace
|
||||
{
|
||||
uint16_t version(int digit)
|
||||
{
|
||||
std::string_view tag = "@GIT_DESC@";
|
||||
if (not tag.empty() and tag[0] == 'v')
|
||||
tag = tag.substr(1);
|
||||
for (; digit > 0; --digit)
|
||||
{
|
||||
while (not tag.empty() and std::isdigit(tag[0]))
|
||||
tag = tag.substr(1);
|
||||
if (not tag.empty() and tag[0] == '.')
|
||||
tag = tag.substr(1);
|
||||
}
|
||||
tag = tag.substr(0, tag.find('.'));
|
||||
|
||||
uint16_t val = 0;
|
||||
// We don't care if parsing fail, return 0
|
||||
std::from_chars(tag.begin(), tag.end(), val);
|
||||
return val;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
extern "C"
|
||||
{
|
||||
extern const char u_git_tag[] = "@GIT_DESC@";
|
||||
extern const uint16_t u_version_major = version(0);
|
||||
extern const uint16_t u_version_minor = version(1);
|
||||
extern const uint16_t u_version_patch = version(2);
|
||||
extern const char u_runtime_description[] = "WiVRn";
|
||||
}
|
||||
+2
-1
@@ -52,6 +52,7 @@ using packets = std::variant<
|
||||
wivrn::from_headset::headset_info_packet,
|
||||
wivrn::from_headset::settings_changed,
|
||||
wivrn::from_headset::start_app,
|
||||
wivrn::from_headset::stream_tab_changed,
|
||||
headset_connected,
|
||||
headset_disconnected,
|
||||
server_error>;
|
||||
@@ -70,7 +71,7 @@ struct set_bitrate
|
||||
uint32_t bitrate_bps;
|
||||
};
|
||||
|
||||
using packets = std::variant<stop, disconnect, set_bitrate>;
|
||||
using packets = std::variant<stop, disconnect, set_bitrate, wivrn::to_headset::stream_tab_change>;
|
||||
} // namespace to_monado
|
||||
|
||||
extern std::optional<wivrn::typed_socket<wivrn::UnixDatagram, to_monado::packets, from_monado::packets>> wivrn_ipc_socket_monado;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <chrono>
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
#include <string_view>
|
||||
#include <systemd/sd-bus.h>
|
||||
#include <type_traits>
|
||||
|
||||
@@ -88,6 +89,22 @@ sd_bus_message_ptr get_property(const sd_bus_ptr & bus, const char * member, con
|
||||
return sd_bus_message_ptr(msg);
|
||||
}
|
||||
|
||||
std::string get_property_string(const sd_bus_ptr & bus, const char * member)
|
||||
{
|
||||
sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
char * val;
|
||||
int ret = sd_bus_get_property_string(bus.get(), destination, path, interface, member, &error, &val);
|
||||
if (ret < 0)
|
||||
{
|
||||
std::runtime_error e(std::string("read property ") + member + " failed: " + error.message);
|
||||
sd_bus_error_free(&error);
|
||||
throw e;
|
||||
}
|
||||
std::string res(val);
|
||||
free(val);
|
||||
return res;
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void set_property(const sd_bus_ptr & bus, const char * member, const char * signature, Args &&... args)
|
||||
{
|
||||
@@ -196,6 +213,12 @@ void pair(int duration)
|
||||
if (ret < 0)
|
||||
throw std::system_error(-ret, std::system_category(), "Failed to read PIN");
|
||||
|
||||
if (std::string_view(pin) == "")
|
||||
{
|
||||
std::cout << "Cannot enable pairing while session is active." << pin << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
std::cout << "PIN: " << pin << std::endl;
|
||||
}
|
||||
}
|
||||
@@ -211,6 +234,23 @@ void unpair(size_t headset_id)
|
||||
call_method(bus, "RevokeKey", "s", values.at(headset_id - 1).public_key.c_str());
|
||||
}
|
||||
|
||||
void tab(std::string tab_name)
|
||||
{
|
||||
auto bus = get_user_bus();
|
||||
if (tab_name.empty())
|
||||
{
|
||||
auto val = get_property_string(bus, "ClientTab");
|
||||
if (val.empty())
|
||||
std::cout << "<No tab>" << std::endl;
|
||||
else
|
||||
std::cout << val << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
call_method(bus, "SetClientTab", "s", tab_name.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T, typename U>
|
||||
auto member(T U::* x)
|
||||
{
|
||||
@@ -333,6 +373,11 @@ int main(int argc, char ** argv)
|
||||
app.add_subcommand("disconnect", "Disconnect headset")
|
||||
->callback(disconnect);
|
||||
|
||||
std::string tab_name;
|
||||
app.add_subcommand("tab", "Show or set current tab on headset")
|
||||
->callback([&]() { return tab(tab_name); })
|
||||
->add_option("[TAB]", tab_name, "Tab to select");
|
||||
|
||||
try
|
||||
{
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user