Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-08-08 17:12:50 +00:00
18 changed files with 670 additions and 306 deletions
+6 -6
View File
@@ -59,6 +59,12 @@ Kirigami.ApplicationWindow {
// Set the visible property here because dismissing the message removes the binding
if (value == WivrnServer.FailedToStart)
message_failed_to_start.visible = true;
if (root.first_run && started) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
}
function onPairingEnabledChanged(value) {
@@ -84,12 +90,6 @@ Kirigami.ApplicationWindow {
if (WivrnServer.serverStatus == WivrnServer.Stopped)
WivrnServer.start_server();
if (root.first_run) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
if (root.last_run_version != ApkInstaller.currentVersion) {
root.last_run_version = ApkInstaller.currentVersion;
}
+14 -6
View File
@@ -506,29 +506,37 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
void wivrn_server::setJsonConfiguration(QString new_configuration)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
if (server_interface)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
}
void wivrn_server::revoke_key(QString public_key)
{
server_interface->RevokeKey(public_key);
if (server_interface)
server_interface->RevokeKey(public_key);
}
void wivrn_server::rename_key(QString public_key, QString name)
{
server_interface->RenameKey(public_key, name);
if (server_interface)
server_interface->RenameKey(public_key, name);
}
QString wivrn_server::enable_pairing(int timeout_secs)
{
qDebug() << "Enabling pairing for" << timeout_secs << "seconds";
return server_interface->EnablePairing(timeout_secs).value();
if (server_interface)
return server_interface->EnablePairing(timeout_secs).value();
return "";
}
void wivrn_server::disable_pairing()
{
server_interface->DisablePairing();
if (server_interface)
server_interface->DisablePairing();
}
QString wivrn_server::hostname()
+2
View File
@@ -5,6 +5,8 @@ The headset application and the server dashboard are translated, contributions a
# Required software
You only need `gettext` and a text editor, you can optionally use a graphical editor such as [GNOME Translation Editor](https://wiki.gnome.org/Apps/Gtranslator/) or [Lokalize](https://apps.kde.org/lokalize/).
If using Lokalize, make sure to erase the "Default mailing list" in the settings, or it will write a KDE mailing list in the translation file and you will to manually remove it.
# Adding a new language
* Run `tools/update_messages.sh LANG` where LANG is the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request.
+41 -31
View File
@@ -4,20 +4,20 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi 63
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-21 21:55-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-08-04 04:40-0300\n"
"PO-Revision-Date: 2025-08-08 11:56-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gtranslator 48.0\n"
"X-Generator: Lokalize 25.04.3\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
@@ -85,8 +85,8 @@ msgstr "Verificando a última versão..."
msgid "No precompiled APK is available for this version."
msgstr "Nenhum APK pré-compilado está disponível para esta versão."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "ADB is not installed."
msgstr "ADB não está instalado."
@@ -135,7 +135,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -231,40 +231,40 @@ msgstr "Parear um novo headset"
msgid "Headset statistics"
msgstr "Estatísticas do headset"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "O servidor não tem capabilities CAP_SYS_NICE."
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "Conserte"
#: dashboard/qml/Main.qml:119
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "A capability CAP_SYS_NICE será usada quando o servidor for reiniciado."
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar agora"
#: dashboard/qml/Main.qml:136
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "Mais informações"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -273,76 +273,86 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Nenhuma compatibilidade com OpenVR foi detectada. Os jogos do Steam não conseg"
"uirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "Servidor falhou em iniciar"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Abrir logs do servidor"
#: dashboard/qml/Main.qml:202
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Rodando"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Pareando"
#: dashboard/qml/Main.qml:230
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "Conectar pela USB"
#: dashboard/qml/Main.qml:249
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor."
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplicativo"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:325
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:332
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Resolver problemas"
@@ -353,13 +363,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Nenhum"
#: dashboard/qml/SelectGame.qml:21
#: dashboard/qml/SelectGame.qml:20
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SelectGame.qml:79
#: dashboard/qml/SelectGame.qml:76
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+272 -154
View File
@@ -4,134 +4,140 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-23 05:42-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"POT-Creation-Date: 2025-08-04 10:49-0300\n"
"PO-Revision-Date: 2025-08-08 11:55-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 48.0\n"
"X-Generator: Lokalize 25.04.3\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: client/scenes/lobby.cpp:148
#: client/scene.cpp:74
msgid "No supported swapchain format"
msgstr "Sem formato de cadeia de troca suportado"
#: client/scenes/lobby.cpp:228
#: client/scenes/lobby.cpp:185
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT"
#: client/scenes/lobby.cpp:231
#: client/scenes/lobby.cpp:188
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})"
#: client/scenes/lobby.cpp:246
#: client/scenes/lobby.cpp:203
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Incapaz de resolver hostname: {}"
#: client/scenes/lobby.cpp:333 client/scenes/lobby.cpp:339
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Incapaz de conectar a {} ({}): {}"
#: client/scenes/lobby.cpp:453
#: client/scenes/lobby.cpp:379
msgid "Waiting for connection"
msgstr "Aguardando conexão"
#: client/scenes/lobby_gui.cpp:132
#: client/scenes/lobby_gui.cpp:229
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:135
#: client/scenes/lobby_gui.cpp:232
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualidade"
#: client/scenes/lobby_gui.cpp:137
#: client/scenes/lobby_gui.cpp:234
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:198
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "Fluxo de vídeo interrompido"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR no seu computador"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR em {}"
#: client/scenes/lobby_gui.cpp:221
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
msgid "Close"
msgstr "Fechar"
#: client/scenes/lobby_gui.cpp:227
#: client/scenes/lobby_gui.cpp:268
msgid "Connection"
msgstr "Conexão"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:270
#, c++-format
msgid "Connection to {}"
msgstr "Conexão a {}"
#: client/scenes/lobby_gui.cpp:259
#: client/scenes/lobby_gui.cpp:300
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:281
#: client/scenes/lobby_gui.cpp:322
msgid "Input the PIN displayed on the dashboard"
msgstr "Entre o PIN mostrado no painel"
#: client/scenes/lobby_gui.cpp:356
#: client/scenes/lobby_gui.cpp:393
msgid "Connected to WiVRn server"
msgstr "Conectado ao servidor WiVRn"
#: client/scenes/lobby_gui.cpp:395
#, c++-format
msgid "Connected to {}"
msgstr "Conectado a {}"
#: client/scenes/lobby_gui.cpp:405
msgid "Start an application on the server to start streaming."
msgstr "Abra um aplicativo no servidor para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:414
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Abra um aplicativo no seu computador ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:416
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:522
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:367
#: client/scenes/lobby_gui.cpp:533
msgid "Address"
msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:376
#: client/scenes/lobby_gui.cpp:542
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:550
msgid "TCP only"
msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:391
#: client/scenes/lobby_gui.cpp:557
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:405
#: client/scenes/lobby_gui.cpp:571
msgid "Save"
msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:458
#: client/scenes/lobby_gui.cpp:624
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -139,32 +145,32 @@ msgstr ""
"Inicie um servidor WiVRn em sua\n"
"rede local"
#: client/scenes/lobby_gui.cpp:490
#: client/scenes/lobby_gui.cpp:656
msgid "Autoconnect"
msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:516
#: client/scenes/lobby_gui.cpp:682
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versão de servidor incompatível"
#: client/scenes/lobby_gui.cpp:528
#: client/scenes/lobby_gui.cpp:694
msgid "Server not available"
msgstr "Servidor não disponível"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:780
msgid "Refresh rate"
msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automático"
#: client/scenes/lobby_gui.cpp:623
#: client/scenes/lobby_gui.cpp:789
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -172,60 +178,60 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:640
#: client/scenes/lobby_gui.cpp:806
msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima"
#: client/scenes/lobby_gui.cpp:663
#: client/scenes/lobby_gui.cpp:829
msgid "Resolution scale"
msgstr "Escala de resolução"
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por olho"
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:850
msgid "Enable microphone"
msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:859
msgid "Unprocessed Microphone Audio"
msgstr "Áudio Não-processado de Microfone"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:865
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Força a desativação de filtros de áudio tais como cancelamento de ruído"
#: client/scenes/lobby_gui.cpp:707
#: client/scenes/lobby_gui.cpp:872
msgid "Enable hand tracking"
msgstr "Ativar rastreamento de mãos"
#: client/scenes/lobby_gui.cpp:714 client/scenes/lobby_gui.cpp:727
#: client/scenes/lobby_gui.cpp:740 client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
msgid "This feature is not supported by your headset"
msgstr "Este recurso não é suportado pelo seu headset"
#: client/scenes/lobby_gui.cpp:720
#: client/scenes/lobby_gui.cpp:884
msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:733
#: client/scenes/lobby_gui.cpp:896
msgid "Enable face tracking"
msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:747
#: client/scenes/lobby_gui.cpp:909
msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:764
#: client/scenes/lobby_gui.cpp:925
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -237,11 +243,11 @@ msgstr ""
"estimados\n"
"com base nas posições do controle e do headset."
#: client/scenes/lobby_gui.cpp:777
#: client/scenes/lobby_gui.cpp:938
msgid "Enable lower body tracking"
msgstr "Ativar rastreamento corporal inferior"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:944
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -252,11 +258,11 @@ msgstr ""
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
"configurações de Rastreamento de Movimento do Quest"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:947
msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:953
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -264,45 +270,19 @@ msgstr ""
"Só tem efeito com o rastreamento corporal inferior ativado\n"
"Pode ser desejado ao usar outra fonte de rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:800
#: client/scenes/lobby_gui.cpp:961
msgid "Enable video passthrough in lobby"
msgstr "Habilitar repassagem de vídeo no lobby"
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "Mostrar métricas de desempenho"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:858 client/scenes/lobby_gui.cpp:866
#: client/scenes/stream_stats.cpp:161
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:881
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:885
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -310,11 +290,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:910
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
msgid "Sharpening"
msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:930
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -322,11 +302,11 @@ msgstr ""
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:939
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:1048
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
@@ -336,184 +316,288 @@ msgstr ""
"aumento de nitidez acima.\n"
"Somente habilite se souber o que está fazendo."
#: client/scenes/lobby_gui.cpp:949
#: client/scenes/lobby_gui.cpp:1050
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
"desempenho no headset"
#: client/scenes/lobby_gui.cpp:967
#: client/scenes/lobby_gui.cpp:1068
msgid "Upscaling factor"
msgstr "Fator de upscaling"
#: client/scenes/lobby_gui.cpp:986
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "Usar direção da aresta"
#: client/scenes/lobby_gui.cpp:992
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "Acrescenta um custo de desempenho"
#: client/scenes/lobby_gui.cpp:997
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "Limite da aresta"
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomenadado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1007
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "Nitidez da aresta"
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:1214
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:1228
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1271
msgid "Enable the microphone?"
msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:1276
msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:1281
msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1286
msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1294
msgid "Welcome to WiVRn"
msgstr "Bem vindo ao WiVRn"
#: client/scenes/lobby_gui.cpp:1318
msgid "Yes"
msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1325
msgid "No"
msgstr "Não"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
msgid "Licenses"
msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1440
#: client/scenes/lobby_gui.cpp:1658
msgid "Microphone is enabled"
msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1441
#: client/scenes/lobby_gui.cpp:1659
msgid "Microphone is disabled"
msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1450
#: client/scenes/lobby_gui.cpp:1668
msgid "Hand tracking is enabled"
msgstr "O rastreamento de mãos está ativado"
#: client/scenes/lobby_gui.cpp:1451
#: client/scenes/lobby_gui.cpp:1669
msgid "Hand tracking is disabled"
msgstr "O rastreamento de mãos está desativado"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1678
msgid "Eye tracking is enabled"
msgstr "O rastreamento ocular está ativado"
#: client/scenes/lobby_gui.cpp:1461
#: client/scenes/lobby_gui.cpp:1679
msgid "Eye tracking is disabled"
msgstr "O rastreamento ocular está desativado"
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
#: client/scenes/lobby_gui.cpp:1692
msgid "Face tracking is enabled"
msgstr "O rastreamento facial está ativado"
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
#: client/scenes/lobby_gui.cpp:1693
msgid "Face tracking is disabled"
msgstr "O rastreamento facial está desativado"
#: client/scenes/lobby_gui.cpp:1493
#: client/scenes/lobby_gui.cpp:1703
msgid "Body tracking is enabled"
msgstr "O rastreamento corporal está ativado"
#: client/scenes/lobby_gui.cpp:1494
#: client/scenes/lobby_gui.cpp:1704
msgid "Body tracking is disabled"
msgstr "O rastreamento corporal está desativado"
#: client/scenes/lobby_gui.cpp:1510
#: client/scenes/lobby_gui.cpp:1720
msgid "Add server"
msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1739
#: client/scenes/lobby_gui.cpp:1965
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1742
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
msgid "Settings"
msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1745
#: client/scenes/lobby_gui.cpp:1971
msgid "Post-processing"
msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1749
#: client/scenes/lobby_gui.cpp:1975
msgid "Debug"
msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1754
#: client/scenes/lobby_gui.cpp:1980
msgid "About"
msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:1760
#: client/scenes/lobby_gui.cpp:1986
msgid "Exit"
msgstr "Sair"
#: client/scenes/lobby_gui.cpp:1774
#: client/scenes/lobby_gui.cpp:2003
msgid ""
"Press A or X or put your palm up\n"
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Pressione A ou X ou coloque a palma da mão pra cima\n"
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
"para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "Pressione A ou X para mover a janela principal"
#: client/scenes/lobby_gui.cpp:2005
msgid "Press the grip button to move the main window"
msgstr "Pressione o botão de aderência para mover a janela principal"
#: client/scenes/stream_stats.cpp:161
#: client/scenes/stream_gui.cpp:224
msgid "Reproject"
msgstr "Reprojetar"
#: client/scenes/stream_stats.cpp:162
#: client/scenes/stream_gui.cpp:225
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227
msgid "Network"
msgstr "Rede"
#: client/scenes/stream_stats.cpp:164
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
msgid "Download"
msgstr "Baixar"
#: client/scenes/stream_stats.cpp:165
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
msgid "Upload"
msgstr "Enviar"
#: client/scenes/stream_stats.cpp:234
#: client/scenes/stream_gui.cpp:297
#, c++-format
msgid "Decoder {}"
msgstr "Decodificador {}"
#: client/scenes/stream_stats.cpp:246
#: client/scenes/stream_gui.cpp:309
msgid "Timings [ms]"
msgstr "Tempos [ms]"
#: client/scenes/stream_stats.cpp:306
#: client/scenes/stream_gui.cpp:369
msgid "Encode"
msgstr "Codificar"
#: client/scenes/stream_stats.cpp:307
#: client/scenes/stream_gui.cpp:370
msgid "Send"
msgstr "Enviar"
#: client/scenes/stream_stats.cpp:308
#: client/scenes/stream_gui.cpp:371
msgid "Receive"
msgstr "Receber"
#: client/scenes/stream_stats.cpp:309
#: client/scenes/stream_gui.cpp:372
msgid "Decode"
msgstr "Decodificar"
#: client/scenes/stream_stats.cpp:310
#: client/scenes/stream_gui.cpp:373
msgid "Blitted"
msgstr "Blitado"
#: client/scenes/stream_stats.cpp:311
#: client/scenes/stream_gui.cpp:374
msgid "Displayed"
msgstr "Mostrado"
#: client/scenes/stream_stats.cpp:312
#: client/scenes/stream_gui.cpp:375
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_stats.cpp:330
#: client/scenes/stream_gui.cpp:393
#, 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:396
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:398 client/scenes/stream_gui.cpp:750
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:420
msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)"
#: client/scenes/stream_gui.cpp:492
msgid "Foveation center override"
msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:495
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:505
msgid "Default"
msgstr "Padrão"
#: client/scenes/stream_gui.cpp:516
msgid "Change"
msgstr "Modificar"
#: client/scenes/stream_gui.cpp:548
msgid "Use the thumbsticks to move the foveation center"
msgstr "Use os thumbsticks para mover o centro da foveação"
#: client/scenes/stream_gui.cpp:549
msgid "Press A to save or B to cancel"
msgstr "Pressione A para salvar ou B para cancelar"
#: client/scenes/stream_gui.cpp:793
msgid "Stats"
msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:802
msgid "Statistics overlay"
msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:805
msgid "Compact view"
msgstr "Visualização compacta"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Tempo esgotado"
@@ -529,3 +613,37 @@ msgstr "Incapaz de verificar PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Pareamento está desabilitado no servidor"
#~ msgid "Video stream interrupted"
#~ msgstr "Fluxo de vídeo interrompido"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR no seu computador"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR em {}"
#~ msgid "Show performance metrics"
#~ msgstr "Mostrar métricas de desempenho"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "Pressione A ou X ou coloque a palma da mão pra cima\n"
#~ "para mover a janela principal"
#~ msgid "Press A or X to move the main window"
#~ msgstr "Pressione A ou X para mover a janela principal"
+16 -7
View File
@@ -20,12 +20,12 @@ msgstr ""
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "Sťahujem APK: %1 MB / %2 MB"
msgstr "Sťahuje sa APK: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "Sťahujem APK: %1 MB"
msgstr "Sťahuje sa APK: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
@@ -35,12 +35,12 @@ msgstr "Sťahovanie zrušené"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK sa nedá stiahnuť: %1"
msgstr "APK sa nedá stiahnúť: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "Inštalujem APK"
msgstr "Inštaluje sa APK"
#: dashboard/apk_installer.cpp:221
#, kde-format
@@ -76,7 +76,7 @@ msgstr "Nainštaluj si aplikáciu WiVRn do headsetu"
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "Kontrolujem najnovšiu verziu…"
msgstr "Kontroluje sa najnovšia verzia…"
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
@@ -369,12 +369,12 @@ msgstr "Prehľadať"
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "Manuálna foveation"
msgstr "Manuálne foveovanie"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Foveation sila"
msgstr "Sila foveovania"
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
@@ -927,3 +927,12 @@ msgstr "xrizer"
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Žiadna OpenVR kompatibilita nebola nájdená, Hry na steame nebude možné načítať do VRka.\n"
"Nainštalujte xrizer alebo OpenComposite."
+1 -1
View File
@@ -108,7 +108,7 @@ msgstr ""
#: client/scenes/lobby_gui.cpp:335
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Spustite aplikáciu na {} alebo vyberte jednu na začatie streamovania."
msgstr "Spustite aplikáciu na {} alebo jednu vyberte pre začatie streamovania."
#: client/scenes/lobby_gui.cpp:383
msgid "Name"
+5
View File
@@ -9,6 +9,11 @@ if [ -d ".git" ] ; then
exec git am --committer-date-is-author-date "$@"
fi
if ! type patch 2> /dev/null ; then
echo "patch command not found" >&1
exit 1
fi
# There is no reliable way to apply a patch and succeed if it was
# already applied. Just ignore errors...
for f in "$@" ; do
@@ -0,0 +1,64 @@
From 4905a1bd2a32d0cef4ade575021b17cf453632f0 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 15:51:48 +0200
Subject: [PATCH 1/3] a/vk: Track VK_KHR_video_maintenance1
---
scripts/generate_vk_helpers.py | 1 +
src/xrt/auxiliary/vk/vk_bundle_init.c | 8 ++++++++
src/xrt/auxiliary/vk/vk_helpers.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py
index 330b1b05e..80902193a 100755
--- a/scripts/generate_vk_helpers.py
+++ b/scripts/generate_vk_helpers.py
@@ -307,6 +307,7 @@ DEVICE_EXTENSIONS_TO_CHECK = [
"VK_KHR_present_wait",
"VK_KHR_synchronization2",
"VK_KHR_timeline_semaphore",
+ "VK_KHR_video_maintenance1",
"VK_EXT_calibrated_timestamps",
"VK_EXT_display_control",
"VK_EXT_external_memory_dma_buf",
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
index f28f7591f..b435d73dd 100644
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
@@ -754,6 +754,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
vk->has_KHR_present_wait = false;
vk->has_KHR_synchronization2 = false;
vk->has_KHR_timeline_semaphore = false;
+ vk->has_KHR_video_maintenance1 = false;
vk->has_EXT_calibrated_timestamps = false;
vk->has_EXT_display_control = false;
vk->has_EXT_external_memory_dma_buf = false;
@@ -868,6 +869,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
}
#endif // defined(VK_KHR_timeline_semaphore)
+#if defined(VK_KHR_video_maintenance1)
+ if (strcmp(ext, VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME) == 0) {
+ vk->has_KHR_video_maintenance1 = true;
+ continue;
+ }
+#endif // defined(VK_KHR_video_maintenance1)
+
#if defined(VK_EXT_calibrated_timestamps)
if (strcmp(ext, VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME) == 0) {
vk->has_EXT_calibrated_timestamps = true;
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
index 896b597d4..3b5cbb9c8 100644
--- a/src/xrt/auxiliary/vk/vk_helpers.h
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
@@ -142,6 +142,7 @@ struct vk_bundle
bool has_KHR_present_wait;
bool has_KHR_synchronization2;
bool has_KHR_timeline_semaphore;
+ bool has_KHR_video_maintenance1;
bool has_EXT_calibrated_timestamps;
bool has_EXT_display_control;
bool has_EXT_external_memory_dma_buf;
--
2.50.1
@@ -0,0 +1,134 @@
From 26d9345724a868304b9d3ca5b58fecef02493df3 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 16:00:59 +0200
Subject: [PATCH 2/3] a/vk: Expose video_maintenance_1 device feature
---
src/xrt/auxiliary/vk/vk_bundle_init.c | 40 +++++++++++++++++++++++++--
src/xrt/auxiliary/vk/vk_helpers.h | 4 +++
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
index b435d73dd..501cd6f3c 100644
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
@@ -1098,6 +1098,13 @@ filter_device_features(struct vk_bundle *vk,
};
#endif
+#ifdef VK_KHR_video_maintenance1
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
+ .pNext = NULL,
+ };
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
@@ -1148,6 +1155,13 @@ filter_device_features(struct vk_bundle *vk,
}
#endif
+#ifdef VK_KHR_video_maintenance1
+ if (vk->has_KHR_video_maintenance1) {
+ vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
+ (VkBaseInStructure *)&video_maintenance_1_info);
+ }
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
if (vk->has_ANDROID_external_format_resolve) {
vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
@@ -1187,6 +1201,10 @@ filter_device_features(struct vk_bundle *vk,
CHECK(synchronization_2, synchronization_2_info.synchronization2);
#endif
+#ifdef VK_KHR_video_maintenance1
+ CHECK(video_maintenance_1, video_maintenance_1_info.videoMaintenance1);
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
CHECK(ext_fmt_resolve, ext_fmt_resolve_info.externalFormatResolve);
#endif
@@ -1207,14 +1225,16 @@ filter_device_features(struct vk_bundle *vk,
"\n\tshader_storage_image_write_without_format: %i"
"\n\tstorage_buffer_8bit_access: %i"
"\n\tsynchronization_2: %i"
- "\n\ttimeline_semaphore: %i", //
+ "\n\ttimeline_semaphore: %i"
+ "\n\tvideo_maintenance_1: %i", //
device_features->ext_fmt_resolve, //
device_features->null_descriptor, //
device_features->shader_image_gather_extended, //
device_features->shader_storage_image_write_without_format, //
device_features->storage_buffer_8bit_access, //
device_features->synchronization_2, //
- device_features->timeline_semaphore); //
+ device_features->timeline_semaphore, //
+ device_features->video_maintenance_1); //
}
@@ -1262,6 +1282,7 @@ vk_create_device(struct vk_bundle *vk,
vk->features.timeline_semaphore = device_features.timeline_semaphore;
vk->features.synchronization_2 = device_features.synchronization_2;
vk->features.present_wait = device_features.present_wait;
+ vk->features.video_maintenance_1 = device_features.video_maintenance_1;
/*
@@ -1384,6 +1405,14 @@ vk_create_device(struct vk_bundle *vk,
};
#endif
+#ifdef VK_KHR_video_maintenance1
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
+ .pNext = NULL,
+ .videoMaintenance1 = device_features.video_maintenance_1,
+ };
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
@@ -1444,6 +1473,13 @@ vk_create_device(struct vk_bundle *vk,
}
#endif
+#ifdef VK_KHR_video_maintenance1
+ if (vk->has_KHR_video_maintenance1) {
+ vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
+ (VkBaseInStructure *)&video_maintenance_1_info);
+ }
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
if (vk->has_ANDROID_external_format_resolve) {
vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
index 3b5cbb9c8..748c06dac 100644
--- a/src/xrt/auxiliary/vk/vk_helpers.h
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
@@ -179,6 +179,9 @@ struct vk_bundle
//! Was KHR_present_wait requested, available, and enabled?
bool present_wait;
+
+ //! Was KHR_video_maintenance1 requested, available, and enabled?
+ bool video_maintenance_1;
} features;
//! Is the GPU a tegra device.
@@ -1030,6 +1033,7 @@ struct vk_device_features
bool ext_fmt_resolve;
bool storage_buffer_8bit_access;
bool present_wait;
+ bool video_maintenance_1;
};
/*!
--
2.50.1
@@ -0,0 +1,26 @@
From b8e23426ec5ac97efdceaf2a319b9d5921e7b412 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 16:01:59 +0200
Subject: [PATCH 3/3] c/util: Request video_maintenance_1 feature
This will only be enabled if the VK_KHR_maintenance1 extension was
requested.
---
src/xrt/compositor/util/comp_vulkan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xrt/compositor/util/comp_vulkan.c b/src/xrt/compositor/util/comp_vulkan.c
index 5618f4f78..9c719275c 100644
--- a/src/xrt/compositor/util/comp_vulkan.c
+++ b/src/xrt/compositor/util/comp_vulkan.c
@@ -282,6 +282,7 @@ create_device(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_args)
.timeline_semaphore = vk_args->timeline_semaphore,
.synchronization_2 = true,
.present_wait = true,
+ .video_maintenance_1 = true,
};
ret = vk_init_mutex(vk);
--
2.50.1
+38 -41
View File
@@ -23,12 +23,14 @@
#include "encoder/video_encoder.h"
#include "util/u_logging.h"
#include "utils/scoped_lock.h"
#include "wivrn_config.h"
#include "wivrn_foveation.h"
#include "main/comp_compositor.h"
#include "math/m_space.h"
#include "xrt_cast.h"
#include <algorithm>
#include <vector>
#include <vulkan/vulkan.hpp>
#include <vulkan/vulkan_core.h>
@@ -58,6 +60,9 @@ std::vector<const char *> wivrn_comp_target::wanted_device_extensions = {
#ifdef VK_KHR_video_encode_queue
VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_maintenance1
VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_encode_h264
VK_KHR_VIDEO_ENCODE_H264_EXTENSION_NAME,
#endif
@@ -188,54 +193,46 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
cn->images = U_TYPED_ARRAY_CALLOC(struct comp_target_image, cn->image_count);
#if WIVRN_USE_VULKAN_ENCODE
auto [video_profiles, encoder_flags] = video_encoder::get_create_image_info(cn->settings);
vk::VideoProfileListInfoKHR video_profile_list{
.profileCount = uint32_t(video_profiles.size()),
.pProfiles = video_profiles.data(),
vk::StructureChain image_info{
vk::ImageCreateInfo{
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = format,
.extent = {
.width = cn->width,
.height = cn->height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 2, // colour then alpha
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = flags | vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
.sharingMode = vk::SharingMode::eExclusive,
},
vk::ImageFormatListCreateInfo{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
},
};
#if WIVRN_USE_VULKAN_ENCODE
if (
vk->features.video_maintenance_1 and
std::ranges::any_of(
cn->settings,
[](const auto & item) { return item.encoder_name == encoder_vulkan //
and item.offset_x == 0 and item.offset_y == 0; }))
{
image_info.get().flags |= vk::ImageCreateFlagBits::eVideoProfileIndependentKHR;
image_info.get().usage |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
}
#endif
cn->psc.images.resize(cn->image_count);
for (uint32_t i = 0; i < cn->image_count; i++)
{
vk::ImageFormatListCreateInfo formats_info{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
};
#if WIVRN_USE_VULKAN_ENCODE
if (video_profile_list.profileCount)
formats_info.pNext = &video_profile_list;
#endif
auto & image = cn->psc.images[i].image;
image = image_allocation(
device, {
.pNext = &formats_info,
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = format,
.extent = {
.width = cn->width,
.height = cn->height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 2, // colour then alpha
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = flags
#if WIVRN_USE_VULKAN_ENCODE
| encoder_flags
#endif
| vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
.sharingMode = vk::SharingMode::eExclusive,
},
{
.usage = VMA_MEMORY_USAGE_AUTO,
});
image = image_allocation(device, image_info.get(), {.usage = VMA_MEMORY_USAGE_AUTO});
cn->images[i].handle = image;
cn->wivrn_bundle->name(vk::Image(image), "comp target image");
}
-26
View File
@@ -180,32 +180,6 @@ std::unique_ptr<video_encoder> video_encoder::create(
return res;
}
#if WIVRN_USE_VULKAN_ENCODE
std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> video_encoder::get_create_image_info(const std::vector<encoder_settings> & settings)
{
std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> result;
for (const auto & item: settings)
{
if (item.encoder_name == encoder_vulkan)
{
result.second |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
switch (item.codec)
{
case h264:
result.first.push_back(video_encoder_vulkan_h264::video_profile_info.get());
break;
case h265:
// result.first.push_back(video_encoder_vulkan_h265::video_profile_info.get());
break;
case av1:
throw std::runtime_error("av1 not supported for vulkan video encode");
}
}
}
return result;
}
#endif
static const uint64_t idr_throttle = 100;
video_encoder::video_encoder(uint8_t stream_idx, to_headset::video_stream_description::channels_t channels, double bitrate_multiplier, bool async_send) :
-5
View File
@@ -20,7 +20,6 @@
#pragma once
#include "driver/clock_offset.h"
#include "wivrn_config.h"
#include "wivrn_packets.h"
#include <atomic>
@@ -114,10 +113,6 @@ public:
int input_height,
float fps);
#if WIVRN_USE_VULKAN_ENCODE
static std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> get_create_image_info(const std::vector<encoder_settings> &);
#endif
video_encoder(uint8_t stream_idx, to_headset::video_stream_description::channels_t channels, double bitrate_multiplier, bool async_send);
virtual ~video_encoder();
+4 -2
View File
@@ -15,6 +15,8 @@
* 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 "vk/vk_helpers.h"
#include "video_encoder_vulkan.h"
#include "encoder/encoder_settings.h"
@@ -266,7 +268,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca
.layerCount = 1},
};
if (rect.offset != vk::Offset2D{0, 0})
if (rect.offset != vk::Offset2D{0, 0} or not vk.vk.features.video_maintenance_1)
{
image_view_template.subresourceRange.baseArrayLayer = 0;
for (size_t i = 0; i < num_slots; ++i)
@@ -478,7 +480,7 @@ std::pair<bool, vk::Semaphore> wivrn::video_encoder_vulkan::present_image(vk::Im
video_cmd_buf.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit});
// If we encode from top left corner, encode from the source image directly
bool encode_direct = rect.offset == vk::Offset2D{0, 0};
bool encode_direct = not slot_item.tmp_image;
vk::ImageView image_view;
+1 -2
View File
@@ -80,10 +80,9 @@ class video_encoder_vulkan : public video_encoder
bool session_initialized = false;
const vk::Rect2D rect;
vk::VideoEncodeRateControlLayerInfoKHR rate_control_layer;
protected:
const uint8_t num_dpb_slots;
vk::VideoEncodeRateControlLayerInfoKHR rate_control_layer;
std::optional<vk::VideoEncodeRateControlInfoKHR> rate_control;
video_encoder_vulkan(wivrn_vk_bundle & vk,
+45 -23
View File
@@ -169,6 +169,47 @@ std::vector<void *> wivrn::video_encoder_vulkan_h264::setup_slot_info(size_t dpb
return res;
}
auto get_video_caps(vk::raii::PhysicalDevice & phys_dev)
{
vk::StructureChain video_profile_info{
vk::VideoProfileInfoKHR{
.videoCodecOperation =
vk::VideoCodecOperationFlagBitsKHR::eEncodeH264,
.chromaSubsampling = vk::VideoChromaSubsamplingFlagBitsKHR::e420,
.lumaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
.chromaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
},
vk::VideoEncodeH264ProfileInfoKHR{
.stdProfileIdc = STD_VIDEO_H264_PROFILE_IDC_BASELINE,
},
vk::VideoEncodeUsageInfoKHR{
.videoUsageHints = vk::VideoEncodeUsageFlagBitsKHR::eStreaming,
.videoContentHints = vk::VideoEncodeContentFlagBitsKHR::eRendered,
.tuningMode = vk::VideoEncodeTuningModeKHR::eUltraLowLatency,
}};
try
{
auto [video_caps, encode_caps, encode_h264_caps] =
phys_dev.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
return std::make_tuple(video_caps, encode_caps, encode_h264_caps, video_profile_info);
}
catch (...)
{}
// NVIDIA fails if the structure is there
video_profile_info.unlink<vk::VideoEncodeUsageInfoKHR>();
auto [video_caps, encode_caps, encode_h264_caps] =
phys_dev.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
return std::make_tuple(video_caps, encode_caps, encode_h264_caps, video_profile_info);
}
std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h264::create(
wivrn_vk_bundle & vk,
encoder_settings & settings,
@@ -186,15 +227,11 @@ std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h2
},
};
auto [video_caps, encode_caps, encode_h264_caps] =
vk.physical_device.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
if (settings.bit_depth != 8)
throw std::runtime_error("h264 codec only supports 8-bit encoding");
auto [video_caps, encode_caps, encode_h264_caps, video_profile_info] = get_video_caps(vk.physical_device);
std::unique_ptr<video_encoder_vulkan_h264> self(new video_encoder_vulkan_h264(vk, rect, video_caps, encode_caps, fps, stream_idx, settings));
vk::VideoEncodeH264SessionParametersAddInfoKHR h264_add_info{};
@@ -227,6 +264,8 @@ std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h2
self->rate_control->pNext = &self->rate_control_h264;
}
self->rate_control_layer.pNext = &self->rate_control_layer_h264;
self->init(video_caps, video_profile_info.get(), &session_create_info, &h264_session_params);
return self;
@@ -359,20 +398,3 @@ vk::ExtensionProperties wivrn::video_encoder_vulkan_h264::std_header_version()
VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_EXTENSION_NAME);
return std_header_version;
}
decltype(wivrn::video_encoder_vulkan_h264::video_profile_info) wivrn::video_encoder_vulkan_h264::video_profile_info = vk::StructureChain{
vk::VideoProfileInfoKHR{
.videoCodecOperation =
vk::VideoCodecOperationFlagBitsKHR::eEncodeH264,
.chromaSubsampling = vk::VideoChromaSubsamplingFlagBitsKHR::e420,
.lumaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
.chromaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
},
vk::VideoEncodeH264ProfileInfoKHR{
.stdProfileIdc = STD_VIDEO_H264_PROFILE_IDC_BASELINE,
},
vk::VideoEncodeUsageInfoKHR{
.videoUsageHints = vk::VideoEncodeUsageFlagBitsKHR::eStreaming,
.videoContentHints = vk::VideoEncodeContentFlagBitsKHR::eRendered,
.tuningMode = vk::VideoEncodeTuningModeKHR::eUltraLowLatency,
}};
+1 -2
View File
@@ -46,6 +46,7 @@ class video_encoder_vulkan_h264 : public video_encoder_vulkan
vk::VideoEncodeH264GopRemainingFrameInfoKHR gop_info;
vk::VideoEncodeH264RateControlInfoKHR rate_control_h264;
vk::VideoEncodeH264RateControlLayerInfoKHR rate_control_layer_h264;
video_encoder_vulkan_h264(wivrn_vk_bundle & vk,
vk::Rect2D rect,
@@ -70,7 +71,5 @@ public:
uint8_t stream_idx);
std::vector<uint8_t> get_sps_pps();
static const vk::StructureChain<vk::VideoProfileInfoKHR, vk::VideoEncodeH264ProfileInfoKHR, vk::VideoEncodeUsageInfoKHR> video_profile_info;
};
} // namespace wivrn