Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Adapt HDR controls with sparse GPU statistics and reliable curve memory

Veyra Goal Agenteccb5ea07e59
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ca3abed..dedf9284 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -289,6 +289,7 @@ veyra_add_compute_shader(veyra_shader_nv12_upload Nv12Upload)
# PresentBlit: fullscreen-triangle pixel blit onto flip-model back buffers.
veyra_add_graphics_shader_pair(veyra_shader_present_blit PresentBlit)
veyra_add_compute_shader(veyra_shader_present_motion PresentMotion)
+veyra_add_compute_shader(veyra_shader_hdr_coverage HdrCurveCoverage)
# NvofDensify: SHORT2 S10.5 raw flow -> workingExtent float2 + confidence.
veyra_add_compute_shader(veyra_shader_nvof_densify NvofDensify)
veyra_add_compute_shader(veyra_shader_nr_downsample NrDownsample)
@@ -1340,7 +1341,7 @@ target_link_options(veyra_hdr_tuning_tests PRIVATE /STACK:33554432)
target_compile_options(veyra_popup_selector_tests PRIVATE /utf-8)
target_compile_definitions(veyra_popup_selector_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN UNICODE _UNICODE)
target_link_libraries(veyra_popup_selector_tests PRIVATE veyra_base comctl32)
- add_dependencies(veyra_engine veyra_shader_hdr_video_sr veyra_shader_present_motion veyra_shader_present_blit)
+ add_dependencies(veyra_engine veyra_shader_hdr_video_sr veyra_shader_present_motion veyra_shader_present_blit veyra_shader_hdr_coverage)
add_executable(veyra_hdr_color_tests tests/integration/HdrColorTests.cpp)
add_executable(veyra_hdr_output_tuning_gpu_tests tests/integration/HdrOutputTuningGpuTests.cpp)
target_compile_features(veyra_hdr_output_tuning_gpu_tests PRIVATE cxx_std_20)
diff --git a/i18n/catalog.json b/i18n/catalog.json
index a05f8ce1..c89e96b2 100644
--- a/i18n/catalog.json
+++ b/i18n/catalog.json
@@ -315,6 +315,13 @@
"en": " · Driver default",
"ja": " · ドライバーの既定値"
},
+ {
+ "zh": " → 建议 ",
+ "src": "qml/ProPage.qml",
+ "zh-TW": " → 建議 ",
+ "en": " → Suggested: ",
+ "ja": " → 推奨:"
+ },
{
"zh": " 严重级别=",
"src": "src/base/Log.cpp",
@@ -513,7 +520,7 @@
},
{
"zh": "0 = 自动使用系统报告值",
- "src": "qml/ProPage.qml",
+ "src": "qml/SettingsPage.qml",
"zh-TW": "0 = 自動使用系統報告值",
"en": "0 = use the value reported by the system",
"ja": "0 = システムが報告する値を自動使用"
@@ -541,7 +548,7 @@
},
{
"zh": "0% 关闭曲线;峰值保护与元数据独立",
- "src": "qml/ProPage.qml",
+ "src": "qml/SettingsPage.qml",
"zh-TW": "0% 關閉曲線;峰值保護與中繼資料獨立",
"en": "0% disables the curve; peak protection and metadata are independent",
"ja": "0% でカーブを無効化。ピーク保護とメタデータは独立しています"
@@ -553,6 +560,13 @@
"en": "1080p · default",
"ja": "1080p · 既定"
},
+ {
+ "zh": "2 项",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "2 項",
+ "en": "2 items",
+ "ja": "2 項目"
+ },
{
"zh": "203 = 中性;调高整体变亮,峰值不变",
"src": "qml/ProPage.qml",
@@ -567,6 +581,27 @@
"en": "2X is the native path; 3X / 4X are experimental unlocks. See diagnostics for failures",
"ja": "2X はネイティブ動作、3X / 4X は実験的なアンロックです。失敗の理由は診断を参照してください"
},
+ {
+ "zh": "4 项",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "4 項",
+ "en": "4 items",
+ "ja": "4 項目"
+ },
+ {
+ "zh": "5 项",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "5 項",
+ "en": "5 items",
+ "ja": "5 項目"
+ },
+ {
+ "zh": "6 项",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "6 項",
+ "en": "6 items",
+ "ja": "6 項目"
+ },
{
"zh": "8 位配对码",
"src": "qml/DialogHost.qml",
@@ -1897,6 +1932,13 @@
"en": "SDR → SDR (HDR display off)",
"ja": "SDR → SDR(HDR 表示オフ)"
},
+ {
+ "zh": "SDR 片源没有 HDR 亮度元数据;可手动选档,HDR 输出时生效。",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "SDR 片源沒有 HDR 亮度元資料;可手動選檔,HDR 輸出時生效。",
+ "en": "SDR sources have no HDR luminance metadata. Choose a preset manually; it applies to HDR output.",
+ "ja": "SDR ソースには HDR 輝度メタデータがありません。手動でプリセットを選ぶと HDR 出力に適用されます。"
+ },
{
"zh": "SDR显示未转换",
"src": "qml/NodePage.qml",
@@ -2317,6 +2359,13 @@
"en": "{}GPU reset {} time(s); exported in {} parts and joined without re-encoding",
"ja": "{}GPU リセット {} 回、{} 分割で書き出し再エンコードなしで結合しました"
},
+ {
+ "zh": "一键推荐",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "一鍵推薦",
+ "en": "Recommend",
+ "ja": "おすすめ"
+ },
{
"zh": "一键还原",
"src": "qml/ColourPanel.qml",
@@ -2324,6 +2373,13 @@
"en": "Reset all",
"ja": "すべて元に戻す"
},
+ {
+ "zh": "一键选档",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "一鍵選檔",
+ "en": "Quick presets",
+ "ja": "簡単プリセット"
+ },
{
"zh": "上一任务仍在回收,请等待取消完成",
"src": "src/engine/ExportJobManager.cpp",
@@ -2408,6 +2464,20 @@
"en": "The last capture device is not connected. Plug it back in and refresh, or choose another device.",
"ja": "前回のキャプチャーデバイスが接続されていません。差し直して更新するか、別のデバイスを選んでください。"
},
+ {
+ "zh": "上限 %1 nit 未被触及(滚降区 %2% · 暗部提升区 %3%)",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "上限 %1 nit 未被觸及(滾降區 %2% · 暗部提升區 %3%)",
+ "en": "Cap %1 nit not reached (highlight compression %2% · shadow lift %3%)",
+ "ja": "上限 %1 nit 未到達(ハイライト圧縮 %2% · 暗部持ち上げ %3%)"
+ },
+ {
+ "zh": "上限覆盖片源标注峰值;处理后的画面以抽样读数为准",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "上限覆蓋片源標注峰值;處理後的畫面以抽樣讀數為準",
+ "en": "The cap covers the declared source peak; check the sample reading for the processed image",
+ "ja": "上限はソースの公称ピーク以上です。処理後の映像はサンプル値で確認してください。"
+ },
{
"zh": "上面选“自动”时仍用性能最强的显卡;选一块显卡后它也负责运算",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -2506,6 +2576,13 @@
"en": "If unsure, choose Auto. To capture HDR: pick P010 as the capture format and HDR · PQ here (HDR10 from consoles and GPUs is PQ). HDR · HLG is for broadcast signals. SDR · 709 is a normal picture. Changes need a reconnect",
"ja": "わからなければ「自動」を選んでください。HDR をキャプチャーする場合:フォーマットに P010 を選び、ここでは「HDR · PQ」を選択(ゲーム機や GPU の HDR10 は PQ)。「HDR · HLG」は放送信号用、「SDR · 709」は通常の映像です。変更には再接続が必要です"
},
+ {
+ "zh": "不补偿",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "不補償",
+ "en": "No compensation",
+ "ja": "補正なし"
+ },
{
"zh": "不计时",
"src": "qml/NodePage.qml",
@@ -2555,6 +2632,13 @@
"en": "With both PCs on the same LAN, the host appears here automatically; you can also enter its IP below. Pairing is needed the first time.",
"ja": "2 台の PC が同じ LAN にあれば自動でここに表示されます。下で IP を手入力することもできます。初回はペアリングが必要です。"
},
+ {
+ "zh": "两头极端",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "兩頭極端",
+ "en": "Dark and bright",
+ "ja": "明暗が極端"
+ },
{
"zh": "两种模式的设置、预设完全分开保存,切回列表时恢复列表原来的设置。",
"src": "qml/ProPage.qml",
@@ -3003,6 +3087,13 @@
"en": "Lightness retention",
"ja": "明度を保持"
},
+ {
+ "zh": "亮度分布均衡",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "亮度分布均衡",
+ "en": "Balanced brightness",
+ "ja": "バランスのよい輝度分布"
+ },
{
"zh": "仅清空列表,不删除硬盘文件",
"src": "qml/PlaylistWindow.qml",
@@ -3059,6 +3150,13 @@
"en": "The job hit an error and stopped; see diagnostics",
"ja": "ジョブで異常が発生し停止しました。診断を確認してください"
},
+ {
+ "zh": "会压缩",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "會壓縮",
+ "en": "Compression needed",
+ "ja": "圧縮が必要"
+ },
{
"zh": "位流优先",
"src": "qml/DialogHost.qml",
@@ -3325,6 +3423,13 @@
"en": "Offset %1 ms",
"ja": "オフセット %1 ms"
},
+ {
+ "zh": "偏高",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "偏高",
+ "en": "High",
+ "ja": "高め"
+ },
{
"zh": "像素格式",
"src": "qml/DialogHost.qml",
@@ -3493,6 +3598,13 @@
"en": "Shared by the whole chain; anti-flicker still needs optical flow when on",
"ja": "チェーン全体で共有。ちらつき防止がオンのときはオプティカルフローが必要です"
},
+ {
+ "zh": "关",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "關",
+ "en": "Off",
+ "ja": "オフ"
+ },
{
"zh": "关于",
"src": "qml/SettingsPage.qml",
@@ -3599,6 +3711,13 @@
"en": "In compatible mode, turn off the mouse pointer or use Windows capture",
"ja": "互換モードではマウスポインターをオフにするか、Windows キャプチャーを使ってください"
},
+ {
+ "zh": "内容亮度远超显示设备能力",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容亮度遠超顯示裝置能力",
+ "en": "Content brightness far exceeds the display capability",
+ "ja": "コンテンツの輝度がディスプレイの能力を大幅に上回ります"
+ },
{
"zh": "内容节奏",
"src": "qml/NodePage.qml",
@@ -3606,6 +3725,48 @@
"en": "Content pacing",
"ja": "コンテンツのペーシング"
},
+ {
+ "zh": "内容:两头极端",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:兩頭極端",
+ "en": "Content: dark and bright",
+ "ja": "内容:明暗が極端"
+ },
+ {
+ "zh": "内容:暗场多",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:暗場多",
+ "en": "Content: mostly dark",
+ "ja": "内容:暗い場面が多い"
+ },
+ {
+ "zh": "内容:标准",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:標準",
+ "en": "Content: standard",
+ "ja": "内容:標準"
+ },
+ {
+ "zh": "内容:老片平淡",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:老片平淡",
+ "en": "Content: flat older transfer",
+ "ja": "内容:平坦な旧作"
+ },
+ {
+ "zh": "内容:这部片子属于哪一类",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:這部片子屬於哪一類",
+ "en": "Content: what kind of film is this?",
+ "ja": "内容:この作品はどのタイプですか?"
+ },
+ {
+ "zh": "内容:高光强",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "內容:高光強",
+ "en": "Content: strong highlights",
+ "ja": "内容:強いハイライト"
+ },
{
"zh": "内嵌",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -4152,6 +4313,13 @@
"en": "Half resolution",
"ja": "半解像度"
},
+ {
+ "zh": "单位 0.01 EV:正值提亮暗部,负值压暗",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "單位 0.01 EV:正值提亮暗部,負值壓暗",
+ "en": "Units of 0.01 EV: positive lifts shadows, negative darkens them",
+ "ja": "単位は 0.01 EV。正の値で暗部を明るく、負の値で暗くします。"
+ },
{
"zh": "单例节点或数量已达上限",
"src": "qml/NodePage.qml",
@@ -4180,6 +4348,13 @@
"en": "Click the picture",
"ja": "映像をクリック"
},
+ {
+ "zh": "压住高光",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "壓住高光",
+ "en": "Protect highlights",
+ "ja": "ハイライトを抑える"
+ },
{
"zh": "压缩采集使用码流颜色信息;手动颜色和范围请选择原生采集格式。",
"src": "src/source/CaptureCardSource.cpp",
@@ -4502,6 +4677,13 @@
"en": "Only node mode uses edit connections",
"ja": "接続の編集はノードモードでのみ使います"
},
+ {
+ "zh": "只清影片记忆,不动显示设备记忆",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "只清影片記憶,不動顯示裝置記憶",
+ "en": "Clear film memory; keep display memory",
+ "ja": "作品の記憶だけを消去し、ディスプレイの記憶は保持します"
+ },
{
"zh": "只用 DLSS / XeSS 补帧时:到 NVIDIA App 关闭 Smooth Motion。",
"src": "qml/SettingsPage.qml",
@@ -5083,6 +5265,13 @@
"en": "VSync: display queue control unavailable · ",
"ja": "垂直同期:画面キュー制御は使用できません · "
},
+ {
+ "zh": "基础设置",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "基礎設定",
+ "en": "Basic controls",
+ "ja": "基本設定"
+ },
{
"zh": "填充裁切",
"src": "qml/ProPage.qml",
@@ -5650,6 +5839,13 @@
"en": "Subtitles: on",
"ja": "字幕:オン"
},
+ {
+ "zh": "安全",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "安全",
+ "en": "Within range",
+ "ja": "範囲内"
+ },
{
"zh": "宋体",
"src": "qml/DialogHost.qml",
@@ -6315,6 +6511,13 @@
"en": "Screen capture error 0x{:08X}: {}",
"ja": "画面キャプチャーのエラー 0x{:08X}:{}"
},
+ {
+ "zh": "展开本卡片并播放 HDR 输出时测量,每秒最多 4 次",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "展開本卡片並播放 HDR 輸出時測量,每秒最多 4 次",
+ "en": "Expand this card during HDR playback to sample, up to 4 times per second",
+ "ja": "このカードを開いて HDR 再生すると、毎秒最大 4 回サンプリングします"
+ },
{
"zh": "峰值 ",
"src": "qml/DialogHost.qml",
@@ -6541,7 +6744,7 @@
},
{
"zh": "已启用",
- "src": "src/ui/QmlPlayerBridge.cpp",
+ "src": "qml/ProPage.qml",
"zh-TW": "已啟用",
"en": "Enabled",
"ja": "有効"
@@ -6574,6 +6777,20 @@
"en": "Color settings copied",
"ja": "カラー設定をコピーしました"
},
+ {
+ "zh": "已套用该显示设备的 HDR 曲线配置",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "已套用該顯示裝置的 HDR 曲線設定",
+ "en": "Restored this display's HDR curve",
+ "ja": "このディスプレイの HDR カーブを復元しました"
+ },
+ {
+ "zh": "已套用这部影片上次的曲线设置",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "已套用這部影片上次的曲線設定",
+ "en": "Restored this film's previous curve",
+ "ja": "この作品の前回のカーブを復元しました"
+ },
{
"zh": "已存在同名颜色预设",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -6658,6 +6875,13 @@
"en": "Enabled: %1",
"ja": "有効:%1"
},
+ {
+ "zh": "已按片源自动选档:%1",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "已按片源自動選檔:%1",
+ "en": "Selected from source metadata: %1",
+ "ja": "ソース情報から選択しました:%1"
+ },
{
"zh": "已接入",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -6714,6 +6938,20 @@
"en": "Added %1 items · %2 total",
"ja": "%1 件追加 · 合計 %2 件"
},
+ {
+ "zh": "已清除影片记忆",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "已清除影片記憶",
+ "en": "Film memory cleared",
+ "ja": "作品の記憶を消去しました"
+ },
+ {
+ "zh": "已清除显示设备记忆",
+ "src": "src/ui/QmlPlayerBridge.cpp",
+ "zh-TW": "已清除顯示裝置記憶",
+ "en": "Display memory cleared",
+ "ja": "ディスプレイの記憶を消去しました"
+ },
{
"zh": "已生效:%1",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -6784,6 +7022,20 @@
"en": "Fullscreen unlocked",
"ja": "全画面のロックを解除しました"
},
+ {
+ "zh": "已记住 %1 台显示设备的曲线配置,切换显示器时自动套用",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "已記住 %1 台顯示裝置的曲線設定,切換顯示器時自動套用",
+ "en": "Curves saved for %1 displays; restored when switching displays",
+ "ja": "%1 台のカーブを記憶済み。ディスプレイの切り替え時に復元します"
+ },
+ {
+ "zh": "已记住 %1 部影片,下次播放自动套用",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "已記住 %1 部影片,下次播放自動套用",
+ "en": "Curves saved for %1 films; restored on next playback",
+ "ja": "%1 本のカーブを記憶済み。次回再生時に復元します"
+ },
{
"zh": "已设为“强制硬解”,这个文件无法用硬件解码打开;可在 设置 → 播放 改回“自动”",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -7050,6 +7302,13 @@
"en": "Start capture",
"ja": "キャプチャー開始"
},
+ {
+ "zh": "开播自动选档",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "開播自動選檔",
+ "en": "Auto-select on playback",
+ "ja": "再生時に自動選択"
+ },
{
"zh": "开机",
"src": "src/ui/XboxModel.cpp",
@@ -7134,6 +7393,20 @@
"en": "The engine did not accept the default preset; the restored session is kept",
"ja": "エンジンが既定プリセットを受け付けなかったため、復元したセッションのままです"
},
+ {
+ "zh": "弱",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "弱",
+ "en": "Weak",
+ "ja": "弱"
+ },
+ {
+ "zh": "强",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "強",
+ "en": "Strong",
+ "ja": "強"
+ },
{
"zh": "强制 PCM",
"src": "qml/DialogHost.qml",
@@ -7178,7 +7451,7 @@
},
{
"zh": "强度",
- "src": "qml/ProPage.qml",
+ "src": "qml/SettingsPage.qml",
"zh-TW": "强度",
"en": "Strength",
"ja": "Strength"
@@ -7358,6 +7631,20 @@
"en": "This source has no subtitles",
"ja": "このソースには字幕がありません"
},
+ {
+ "zh": "当前生效:整档预设「%1」",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "當前生效:整檔預設「%1」",
+ "en": "Active preset: %1",
+ "ja": "適用中のプリセット:%1"
+ },
+ {
+ "zh": "当前生效:自定义微调(未匹配任何整档预设)",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "當前生效:自定義微調(未匹配任何整檔預設)",
+ "en": "Active: custom adjustments (no matching preset)",
+ "ja": "適用中:カスタム調整(一致するプリセットなし)"
+ },
{
"zh": "当前硬件或包不支持所选效果,请查看组件页",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -7365,6 +7652,13 @@
"en": "The hardware or package does not support this effect; check Components",
"ja": "選択した効果は現在の GPU またはパッケージに対応していません。コンポーネントを確認してください"
},
+ {
+ "zh": "当前组合:内容 %1 · 环境 %2",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "當前組合:內容 %1 · 環境 %2",
+ "en": "Current combination: content %1 · environment %2",
+ "ja": "現在の組み合わせ:内容 %1 · 環境 %2"
+ },
{
"zh": "当前设备不能执行所选 NR,请选择此显卡可用的 NR 运行库",
"src": "src/engine/VideoExportJob.cpp",
@@ -7449,6 +7743,13 @@
"en": "Performance",
"ja": "パフォーマンス"
},
+ {
+ "zh": "总体强度",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "總體強度",
+ "en": "Overall strength",
+ "ja": "全体の強度"
+ },
{
"zh": "总变化强度",
"src": "qml/NrLayerEditor.qml",
@@ -7477,6 +7778,13 @@
"en": "Reset to default",
"ja": "既定に戻す"
},
+ {
+ "zh": "我的屏能到多少 nit;0 = 自动",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "我的屏能到多少 nit;0 = 自動",
+ "en": "Display peak in nits; 0 = automatic",
+ "ja": "ディスプレイのピーク輝度(nit)。0 = 自動"
+ },
{
"zh": "截图",
"src": "qml/ProPage.qml",
@@ -7708,6 +8016,13 @@
"en": "Open source tracks",
"ja": "ソーストラックを開く"
},
+ {
+ "zh": "打开片子时按片源自动选一次;有影片记忆时以记忆为准",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "開啟片子時按片源自動選一次;有影片記憶時以記憶為準",
+ "en": "Select once when a film opens; remembered film settings take priority",
+ "ja": "作品を開くときに一度選択します。作品の記憶がある場合はそちらを優先します。"
+ },
{
"zh": "打开目录",
"src": "qml/SettingsPage.qml",
@@ -7848,6 +8163,13 @@
"en": "Lift range (nit)",
"ja": "持ち上げ範圍 (nit)"
},
+ {
+ "zh": "拉亮暗部",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "拉亮暗部",
+ "en": "Lift shadows",
+ "ja": "暗部を持ち上げる"
+ },
{
"zh": "拉伸铺满",
"src": "qml/ProPage.qml",
@@ -7911,6 +8233,20 @@
"en": "Hold for original",
"ja": "押してオリジナル"
},
+ {
+ "zh": "按显示设备记忆",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "按顯示裝置記憶",
+ "en": "Remember per display",
+ "ja": "ディスプレイごとに記憶"
+ },
+ {
+ "zh": "按片源自动选档",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "按片源自動選檔",
+ "en": "Select from source",
+ "ja": "ソースから自動選択"
+ },
{
"zh": "按键可在 设置 → 快捷键 里改",
"src": "qml/ProPage.qml",
@@ -8002,6 +8338,13 @@
"en": "Lifts shadows and midtones while keeping the highlight peak.",
"ja": "暗部と中間調を明るくし、ハイライトのピークを保ちます。"
},
+ {
+ "zh": "提亮补偿",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "提亮補償",
+ "en": "Bright-room compensation",
+ "ja": "明るい部屋向け補正"
+ },
{
"zh": "提示音设置保存失败",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -8192,6 +8535,20 @@
"en": "Changes show here live.",
"ja": "変更はここにリアルタイムで表示されます。"
},
+ {
+ "zh": "改动曲线后会按当前显示器记住,换设备时自动套用",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "改動曲線後會按當前顯示器記住,換裝置時自動套用",
+ "en": "Curve edits are saved for this display and restored when you switch back",
+ "ja": "カーブの変更を現在のディスプレイに保存し、戻したときに復元します"
+ },
+ {
+ "zh": "改动曲线后按影片记住,下次自动套用",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "改動曲線後按影片記住,下次自動套用",
+ "en": "Curve edits are saved for the film and restored next time",
+ "ja": "カーブの変更を作品ごとに保存し、次回復元します"
+ },
{
"zh": "改名失败:名称不能为空、超过48字或与已有预设重复",
"src": "qml/DialogHost.qml",
@@ -8241,6 +8598,27 @@
"en": "Value out of range",
"ja": "値が範囲外です"
},
+ {
+ "zh": "数值越大,高光过渡越平缓",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "數值越大,高光過渡越平緩",
+ "en": "Higher values give a gentler highlight transition",
+ "ja": "値が大きいほどハイライトの変化が緩やかになります"
+ },
+ {
+ "zh": "整体亮暗",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "整體亮暗",
+ "en": "Overall brightness",
+ "ja": "全体の明るさ"
+ },
+ {
+ "zh": "整体观感",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "整體觀感",
+ "en": "Brightness balance",
+ "ja": "明るさのバランス"
+ },
{
"zh": "整套设置无效,未应用任何字段",
"src": "src/engine/EngineController.cpp",
@@ -8248,6 +8626,27 @@
"en": "The whole set of settings is invalid; nothing was applied",
"ja": "設定一式が無効なため、何も適用していません"
},
+ {
+ "zh": "整档预设",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "整檔預設",
+ "en": "Full presets",
+ "ja": "全体プリセット"
+ },
+ {
+ "zh": "整片偏暗、只有少量亮点",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "整片偏暗、只有少量亮點",
+ "en": "Mostly dark with a few bright highlights",
+ "ja": "全体的に暗く、明るい部分が少ない作品"
+ },
+ {
+ "zh": "整片偏暗,且超出显示设备能力",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "整片偏暗,且超出顯示裝置能力",
+ "en": "Mostly dark with highlights beyond the display capability",
+ "ja": "全体的に暗く、ハイライトがディスプレイの能力を超える作品"
+ },
{
"zh": "文件",
"src": "qml/ExportPage.qml",
@@ -8892,6 +9291,13 @@
"en": "Show subtitles",
"ja": "字幕を表示"
},
+ {
+ "zh": "显示峰值",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "顯示峰值",
+ "en": "Display peak",
+ "ja": "ディスプレイのピーク"
+ },
{
"zh": "显示帧率",
"src": "qml/ProPage.qml",
@@ -8908,7 +9314,7 @@
},
{
"zh": "显示设备峰值 (nit)",
- "src": "qml/ProPage.qml",
+ "src": "qml/SettingsPage.qml",
"zh-TW": "顯示設備峰值 (nit)",
"en": "Display peak (nit)",
"ja": "ディスプレイのピーク(nit)"
@@ -8997,6 +9403,13 @@
"en": "Darkening change",
"ja": "暗くなる変化"
},
+ {
+ "zh": "暗场多",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "暗場多",
+ "en": "Mostly dark",
+ "ja": "暗い場面が多い"
+ },
{
"zh": "暗场很暗、亮场又很亮的片子:两头都照顾。",
"src": "qml/ProPage.qml",
@@ -9026,12 +9439,26 @@
"ja": "暗部保護"
},
{
- "zh": "暗部抬升 (0.01 EV)",
+ "zh": "暗部抬升",
"src": "qml/ProPage.qml",
+ "zh-TW": "暗部抬升",
+ "en": "Shadow lift",
+ "ja": "暗部持ち上げ"
+ },
+ {
+ "zh": "暗部抬升 (0.01 EV)",
+ "src": "qml/SettingsPage.qml",
"zh-TW": "暗部抬升 (0.01 EV)",
"en": "Shadow lift (0.01 EV)",
"ja": "シャドウ持ち上げ (0.01 EV)"
},
+ {
+ "zh": "暗部提亮",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "暗部提亮",
+ "en": "Shadow brightness",
+ "ja": "暗部の明るさ"
+ },
{
"zh": "曝光(EV)",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -9046,6 +9473,13 @@
"en": "Curves",
"ja": "カーブ"
},
+ {
+ "zh": "曲线作用于 HDR10 或 scRGB 输出,也适用于 RTX Video HDR 转换后的画面。低亮度画面可能不会触及高光阈值。",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線作用於 HDR10 或 scRGB 輸出,也適用於 RTX Video HDR 轉換後的畫面。低亮度畫面可能不會觸及高光閾值。",
+ "en": "Applies to HDR10 or scRGB output, including RTX Video HDR conversion. Dim images may not reach the highlight thresholds.",
+ "ja": "HDR10/scRGB 出力と RTX Video HDR の変換結果に適用されます。暗い映像ではハイライトのしきい値に届かない場合があります。"
+ },
{
"zh": "曲线保持原样,HDR10 元数据跟随片源。",
"src": "qml/ProPage.qml",
@@ -9053,6 +9487,41 @@
"en": "Keeps the original curve and follows source HDR10 metadata.",
"ja": "カーブは元のまま、HDR10 メタデータはソースに追従します。"
},
+ {
+ "zh": "曲线图、读数与提示",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線圖、讀數與提示",
+ "en": "Curve, readings and guidance",
+ "ja": "カーブ・測定値・案内"
+ },
+ {
+ "zh": "曲线未开启",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線未開啟",
+ "en": "Curve is off",
+ "ja": "カーブはオフです"
+ },
+ {
+ "zh": "曲线未设「峰值上限」,不会有像素被压平。滚降区 %1% · 暗部提升区 %2%",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線未設「峰值上限」,不會有像素被壓平。滾降區 %1% · 暗部提升區 %2%",
+ "en": "No peak cap; no hard clipping. Highlight compression %1% · shadow lift %2%",
+ "ja": "ピーク上限なし。ハードクリップなし。ハイライト圧縮 %1% · 暗部持ち上げ %2%"
+ },
+ {
+ "zh": "曲线没有设硬上限,不会裁剪片源峰值",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線沒有設硬上限,不會裁剪片源峰值",
+ "en": "No hard cap is set on the curve",
+ "ja": "カーブにハード上限が設定されていません"
+ },
+ {
+ "zh": "曲线生效时会约束内容亮度提示;SDR 输入默认不发送,手动填写除外。",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "曲線生效時會約束內容亮度提示;SDR 輸入預設不發送,手動填寫除外。",
+ "en": "The curve bounds content-light hints. SDR input sends none by default, unless entered manually.",
+ "ja": "カーブに応じてコンテンツ輝度のヒントを制限します。SDR 入力では手動指定がない限り送信しません。"
+ },
{
"zh": "更改…",
"src": "qml/SettingsPage.qml",
@@ -9368,6 +9837,20 @@
"en": "No displayable subtitles decoded",
"ja": "表示できる字幕がありません"
},
+ {
+ "zh": "未触及",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "未觸及",
+ "en": "Not reached",
+ "ja": "未到達"
+ },
+ {
+ "zh": "未设上限",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "未設上限",
+ "en": "No cap",
+ "ja": "上限なし"
+ },
{
"zh": "未读到设备上报的采集格式,或设备正被其他应用占用。",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -10201,6 +10684,13 @@
"en": "Mastering peak (nit)",
"ja": "マスタリングピーク (nit)"
},
+ {
+ "zh": "母版峰值偏低(老片 / 转制片)",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "母版峰值偏低(老片 / 轉制片)",
+ "en": "Low mastering peak (older or converted title)",
+ "ja": "マスタリングのピークが低い作品(旧作・変換版)"
+ },
{
"zh": "比较源画面与上一帧:没有明显变化的像素沿用上一帧输出,明显变化的位置直接用新结果。",
"src": "qml/ProPage.qml",
@@ -10453,6 +10943,20 @@
"en": "Clear",
"ja": "消去"
},
+ {
+ "zh": "清除影片记忆",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "清除影片記憶",
+ "en": "Clear film memory",
+ "ja": "作品の記憶を消去"
+ },
+ {
+ "zh": "清除记忆",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "清除記憶",
+ "en": "Clear memory",
+ "ja": "記憶を消去"
+ },
{
"zh": "游戏",
"src": "qml/DialogHost.qml",
@@ -10649,6 +11153,27 @@
"en": "Source",
"ja": "ソース"
},
+ {
+ "zh": "片源最亮 %1 nit,曲线硬上限 %2 nit:%3",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "片源最亮 %1 nit,曲線硬上限 %2 nit:%3",
+ "en": "Declared source peak %1 nit, curve cap %2 nit: %3",
+ "ja": "ソースの公称ピーク %1 nit、カーブ上限 %2 nit:%3"
+ },
+ {
+ "zh": "片源没有携带亮度信息",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "片源沒有攜帶亮度資訊",
+ "en": "No luminance metadata in the source",
+ "ja": "ソースに輝度情報がありません"
+ },
+ {
+ "zh": "片源没有携带亮度信息(抓屏 / 串流),无法自动选档",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "片源沒有攜帶亮度資訊(抓屏 / 串流),無法自動選檔",
+ "en": "No luminance metadata (capture/stream); automatic selection is unavailable",
+ "ja": "輝度情報がないため(キャプチャー/配信)、自動選択はできません"
+ },
{
"zh": "片源没有音轨或尚未打开",
"src": "qml/CineBar.qml",
@@ -10677,6 +11202,13 @@
"en": "Separate capture audio configuration failed; native BMD video continues.",
"ja": "独立したキャプチャ音声の設定に失敗しました。BMD ネイティブ映像は継続します。"
},
+ {
+ "zh": "环境光补偿:屋里亮(开灯/白天)就补偿一点,屋里暗(关灯)就不补偿",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "環境光補償:屋裡亮(開燈/白天)就補償一點,屋裡暗(關燈)就不補償",
+ "en": "Ambient compensation: add some in a bright room; use none in a dark room",
+ "ja": "環境光補正:明るい部屋では補正し、暗い部屋では補正しません"
+ },
{
"zh": "生效中:NVIDIA DLSS 帧生成性能模式(测试版)",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -10817,6 +11349,13 @@
"en": "The picture engine stopped responding; diagnostics were recorded. If the picture does not recover, close and reopen Veyra.",
"ja": "映像エンジンが応答しません。診断情報を記録しました。映像が回復しない場合は、ソフトを閉じて開き直してください。"
},
+ {
+ "zh": "画面抽样统计",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "畫面抽樣統計",
+ "en": "Image sample statistics",
+ "ja": "映像のサンプル統計"
+ },
{
"zh": "画面比例",
"src": "qml/ProPage.qml",
@@ -11398,6 +11937,13 @@
"en": "System report: peak %1, full frame %2, black %3 nit",
"ja": "システム報告:ピーク %1、全画面 %2、黒 %3 nit"
},
+ {
+ "zh": "系统数值不是实测;不符时可手动填写峰值",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "系統數值不是實測;不符時可手動填寫峰值",
+ "en": "System values are not measurements; enter a peak manually if needed",
+ "ja": "システム値は実測値ではありません。必要に応じてピークを手動入力してください"
+ },
{
"zh": "系统未接受设置,当前:%1",
"src": "src/ui/QmlPlayerBridge.cpp",
@@ -11615,6 +12161,13 @@
"en": "Feather (pixels)",
"ja": "ぼかし(ピクセル)"
},
+ {
+ "zh": "老片平淡",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "老片平淡",
+ "en": "Flat older transfer",
+ "ja": "平坦な旧作"
+ },
{
"zh": "肤质 · 未证实",
"src": "qml/NrLayerEditor.qml",
@@ -11930,6 +12483,13 @@
"en": "Arrange nodes freely; they run in link order",
"ja": "ノードを自由に配置し、接続順に実行"
},
+ {
+ "zh": "自由组合",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "自由組合",
+ "en": "Combine content and room",
+ "ja": "内容と環境を組み合わせる"
+ },
{
"zh": "至少选择一项内容",
"src": "qml/DialogHost.qml",
@@ -12574,6 +13134,13 @@
"en": "Decode subtitles",
"ja": "字幕のデコード"
},
+ {
+ "zh": "触及硬上限 %1% · 高光压缩区 %2% · 暗部提升区 %3%",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "觸及硬上限 %1% · 高光壓縮區 %2% · 暗部提升區 %3%",
+ "en": "At hard cap %1% · highlight compression %2% · shadow lift %3%",
+ "ja": "ハード上限 %1% · ハイライト圧縮 %2% · 暗部持ち上げ %3%"
+ },
{
"zh": "让主机切换到串流分辨率",
"src": "qml/DialogHost.qml",
@@ -12595,6 +13162,20 @@
"en": "Remember playback position",
"ja": "再生位置を記憶"
},
+ {
+ "zh": "记住每部影片",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "記住每部影片",
+ "en": "Remember each film",
+ "ja": "作品ごとに記憶"
+ },
+ {
+ "zh": "记忆与自动化",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "記憶與自動化",
+ "en": "Memory and automation",
+ "ja": "記憶と自動化"
+ },
{
"zh": "设为启动默认",
"src": "qml/DialogHost.qml",
@@ -13155,6 +13736,13 @@
"en": "Adjusting",
"ja": "調整中"
},
+ {
+ "zh": "调整力度;0% 关闭曲线",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "調整力度;0% 關閉曲線",
+ "en": "Adjustment amount; 0% disables the curve",
+ "ja": "調整の強さ。0% でカーブを無効にします"
+ },
{
"zh": "调色",
"src": "qml/ColourPanel.qml",
@@ -13295,6 +13883,13 @@
"en": "Super resolution motion source",
"ja": "超解像のモーション入力"
},
+ {
+ "zh": "超过上限的亮度需要压缩;是否触及硬上限以抽样读数为准",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "超過上限的亮度需要壓縮;是否觸及硬上限以抽樣讀數為準",
+ "en": "Brightness beyond the cap needs compression; use the sample reading to check hard clipping",
+ "ja": "上限を超える輝度は圧縮が必要です。実際のクリップはサンプル値で確認してください。"
+ },
{
"zh": "越小越敏感,越大稳得越多",
"src": "qml/ProPage.qml",
@@ -13477,6 +14072,13 @@
"en": "Light",
"ja": "弱"
},
+ {
+ "zh": "轻微",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "輕微",
+ "en": "Slight",
+ "ja": "わずか"
+ },
{
"zh": "载入片源",
"src": "qml/CineBar.qml",
@@ -13988,6 +14590,13 @@
"en": "This is a subtitle preview.",
"ja": "これは字幕のプレビューです。"
},
+ {
+ "zh": "这条曲线目前也等同于整档预设「%1」",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "這條曲線目前也等同於整檔預設「%1」",
+ "en": "This curve also matches the full preset %1",
+ "ja": "このカーブは全体プリセット %1 とも一致します"
+ },
{
"zh": "这里和 PS5 串流窗口是同一份设置,下次连接时一起保存到该主机的配对档案。",
"src": "qml/SettingsPage.qml",
@@ -13995,6 +14604,13 @@
"en": "These are the same settings as in the PS5 streaming window; they are saved to the host's pairing profile at the next connection.",
"ja": "PS5 ストリーミングのウィンドウと同じ設定です。次回接続時にそのホストのペアリング情報にまとめて保存されます。"
},
+ {
+ "zh": "这里是「基础设置」里 暗部提亮、整体观感、高光保护 这三项的精确数值版(强度与显示峰值不在此列,它们本身就是直接调节)。",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "這裡是「基礎設定」裡 暗部提亮、整體觀感、高光保護 這三項的精確數值版(強度與顯示峰值不在此列,它們本身就是直接調節)。",
+ "en": "Exact values for the three basic controls: shadows, brightness balance and highlight protection. Overall strength and display peak are already direct controls.",
+ "ja": "基本設定の暗部・明るさのバランス・ハイライト保護を数値で調整します。全体の強度とディスプレイのピークは直接調整する項目のため、ここには含まれません。"
+ },
{
"zh": "进程内待呈现",
"src": "qml/ProPage.qml",
@@ -14198,6 +14814,13 @@
"en": "Choose tracks",
"ja": "トラックを選択"
},
+ {
+ "zh": "选档方式:两种选法写的是同一条曲线,切换只影响界面上怎么叫它",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "選檔方式:兩種選法寫的是同一條曲線,切換只影響介面上怎麼叫它",
+ "en": "Both selection modes edit the same curve; switching changes only how it is shown",
+ "ja": "どちらの選択方法も同じカーブを編集します。切り替えても表示方法が変わるだけです。"
+ },
{
"zh": "选项",
"src": "qml/DialogHost.qml",
@@ -15822,6 +16445,20 @@
"en": "Highlight protection",
"ja": "ハイライト保護"
},
+ {
+ "zh": "高光又亮又多",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "高光又亮又多",
+ "en": "Many strong highlights",
+ "ja": "明るいハイライトが多い"
+ },
+ {
+ "zh": "高光强",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "高光強",
+ "en": "Strong highlights",
+ "ja": "強いハイライト"
+ },
{
"zh": "高光很亮的片子(雪景/爆炸/演唱会):压住顶部,暗部不动。",
"src": "qml/ProPage.qml",
@@ -15836,6 +16473,13 @@
"en": "Highlight start (nit)",
"ja": "ハイライト開始點 (nit)"
},
+ {
+ "zh": "高光预警",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "高光預警",
+ "en": "Highlight guidance",
+ "ja": "ハイライトの案内"
+ },
{
"zh": "高延迟·需 CPU 拆包",
"src": "include/veyra/source/CaptureFormatRank.h",
@@ -15843,6 +16487,13 @@
"en": "high latency · needs CPU unpacking",
"ja": "高遅延 · CPU での展開が必要"
},
+ {
+ "zh": "高级设置:技术参数",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "高級設定:技術參數",
+ "en": "Advanced: precise parameters",
+ "ja": "詳細設定:数値パラメーター"
+ },
{
"zh": "高质量更耗时;混合档:每对原帧的中间帧用前一档,其余用后一档",
"src": "qml/NodePage.qml",
@@ -16046,6 +16697,13 @@
"en": " (max 4 layers)",
"ja": "(最大 4 層)"
},
+ {
+ "zh": "(片源最亮 %1 nit、最亮帧平均 %2 nit)",
+ "src": "qml/ProPage.qml",
+ "zh-TW": "(片源最亮 %1 nit、最亮幀平均 %2 nit)",
+ "en": "(Source peak %1 nit, maximum frame average %2 nit)",
+ "ja": "(ソースの最大輝度 %1 nit、最大フレーム平均 %2 nit)"
+ },
{
"zh": "(终止码 {} / 错误 {})",
"src": "src/source/RemotePlaySessionSource.cpp",
@@ -16150,503 +16808,6 @@
"zh-TW": ";預設“即時”,同時執行遊戲或其他重負載程式變慢時可改為“高”或“普通”",
"en": "; Realtime by default. If a game or other heavy program running alongside slows down, choose High or Normal",
"ja": ";既定は「リアルタイム」。同時に動かすゲームや重い処理が遅くなる場合は「高」か「通常」に変更してください"
- },
- {
- "zh": " · 输出上限 {:.3f} FPS",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": " · 輸出上限 {:.3f} FPS",
- "en": " · output cap {:.3f} FPS",
- "ja": " · 出力上限 {:.3f} FPS"
- },
- {
- "zh": "AMD NR 导出只支持 1080p 以内的片源,本次导出关闭 NR",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": "AMD NR 匯出只支援 1080p 以內的片源,本次匯出關閉 NR",
- "en": "AMD NR export supports sources up to 1080p only; NR is off for this export",
- "ja": "AMD NR の書き出しは 1080p 以下のソースのみ対応のため、今回の書き出しでは NR をオフにします"
- },
- {
- "zh": "DLSS {}X 补帧初始化失败,未降低倍率;请查看任务诊断日志",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": "DLSS {}X 補幀初始化失敗,未降低倍率;請查看任務診斷日誌",
- "en": "DLSS {}X frame generation failed to initialize; the multiplier was not lowered. See the job's diagnostic log",
- "ja": "DLSS {}X フレーム生成の初期化に失敗しました。倍率は下げていません。ジョブの診断ログを確認してください"
- },
- {
- "zh": "DXGI 为显示器兼容方式,无鼠标指针",
- "src": "qml/DialogHost.qml",
- "zh-TW": "DXGI 為顯示器相容方式,無滑鼠指標",
- "en": "DXGI is the display-compatible mode, without the mouse pointer",
- "ja": "DXGI はディスプレイ互換モードで、マウスポインターは映りません"
- },
- {
- "zh": "GitHub · Likely7/Veyra-NRVideo · 发布页",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "GitHub · Likely7/Veyra-NRVideo · 發佈頁",
- "en": "GitHub · Likely7/Veyra-NRVideo · releases",
- "ja": "GitHub · Likely7/Veyra-NRVideo · リリース"
- },
- {
- "zh": "MaxCLL (nit)",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "MaxCLL (nit)",
- "en": "MaxCLL (nit)",
- "ja": "MaxCLL (nit)"
- },
- {
- "zh": "MaxFALL (nit)",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "MaxFALL (nit)",
- "en": "MaxFALL (nit)",
- "ja": "MaxFALL (nit)"
- },
- {
- "zh": "{} 补帧导出尚未验收;本次导出改用 DLSS 补帧 {}X",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": "{} 補幀匯出尚未驗收;本次匯出改用 DLSS 補幀 {}X",
- "en": "{} frame generation export is not validated yet; this export uses DLSS frame generation {}X",
- "ja": "{} フレーム生成での書き出しは未検証です。今回の書き出しは DLSS フレーム生成 {}X を使用します"
- },
- {
- "zh": "上次格式已不可用,请重新选择格式。",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "上次格式已不可用,請重新選擇格式。",
- "en": "The last format is no longer available; choose a format again.",
- "ja": "前回のフォーマットは使用できません。もう一度選んでください。"
- },
- {
- "zh": "与 OBS、监控软件(小飞机 / RTSS)同时使用时的设置;修改后需要重启。",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "與 OBS、監控軟體(小飛機 / RTSS)同時使用時的設定;修改後需要重新啟動。",
- "en": "Settings for running alongside OBS and monitoring tools (Afterburner / RTSS); changes need a restart.",
- "ja": "OBS や監視ソフト(Afterburner / RTSS)と同時に使うときの設定です。変更後は再起動が必要です。"
- },
- {
- "zh": "与帧率和像素格式一起决定采集媒体类型",
- "src": "qml/DialogHost.qml",
- "zh-TW": "與幀率和像素格式一起決定採集媒體類型",
- "en": "Together with frame rate and pixel format, this selects the capture media type",
- "ja": "フレームレートとピクセルフォーマットと合わせて、キャプチャのメディアタイプを決めます"
- },
- {
- "zh": "仅向 HDR10 交换链提交提示;系统或显示器可能忽略。亮度曲线直接调整画面。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "僅向 HDR10 交換鏈提交提示;系統或顯示器可能忽略。亮度曲線直接調整畫面。",
- "en": "Submits an HDR10 swap-chain hint; Windows or the display may ignore it. The brightness curve directly adjusts the image.",
- "ja": "HDR10 スワップチェーンへヒントを送ります。OS やディスプレイが無視する場合があります。輝度カーブは映像を直接調整します。"
- },
- {
- "zh": "低延迟队列已关闭 · ",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "低延遲佇列已關閉 · ",
- "en": "Low-latency queue off · ",
- "ja": "低遅延キューはオフ · "
- },
- {
- "zh": "低延迟队列恢复失败 · ",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "低延遲佇列恢復失敗 · ",
- "en": "Could not restore the low-latency queue · ",
- "ja": "低遅延キューを復元できませんでした · "
- },
- {
- "zh": "低延迟队列:队列深度 1",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "低延遲佇列:佇列深度 1",
- "en": "Low-latency queue: depth 1",
- "ja": "低遅延キュー:深さ 1"
- },
- {
- "zh": "低延迟队列:队列深度 1 + NVIDIA Reflex(实验)",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "低延遲佇列:佇列深度 1 + NVIDIA Reflex(實驗)",
- "en": "Low-latency queue: depth 1 + NVIDIA Reflex (experimental)",
- "ja": "低遅延キュー:深さ 1 + NVIDIA Reflex(実験的)"
- },
- {
- "zh": "保存的采集格式已不可用,请重新选择分辨率、帧率和像素格式。",
- "src": "src/source/CaptureCardSource.cpp",
- "zh-TW": "儲存的擷取格式已不可用,請重新選擇解析度、幀率和像素格式。",
- "en": "The saved capture format is no longer available; choose the resolution, frame rate and pixel format again.",
- "ja": "保存したキャプチャーフォーマットは使用できません。解像度、フレームレート、ピクセル形式を選び直してください。"
- },
- {
- "zh": "信号正常",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "信號正常",
- "en": "Signal OK",
- "ja": "信号正常"
- },
- {
- "zh": "决定输出分辨率",
- "src": "qml/NodePage.qml",
- "zh-TW": "決定輸出解析度",
- "en": "Sets the output resolution",
- "ja": "出力解像度を決めます"
- },
- {
- "zh": "减少排队;不宣称延迟下降",
- "src": "qml/NodePage.qml",
- "zh-TW": "減少排隊;不宣稱延遲下降",
- "en": "Less queuing; no claim of lower latency",
- "ja": "キューを減らします。遅延が下がるとは限りません"
- },
- {
- "zh": "减少软件排队;屏幕延迟需要实测",
- "src": "qml/ProPage.qml",
- "zh-TW": "減少軟體排隊;螢幕延遲需要實測",
- "en": "Less queuing in the app; screen latency needs to be measured",
- "ja": "アプリ内のキューを減らします。画面の遅延は実測が必要です"
- },
- {
- "zh": "原生 HDR 输入;「HDR 片源转换」未开启",
- "src": "src/engine/EngineController.cpp",
- "zh-TW": "原生 HDR 輸入;「HDR 片源轉換」未開啟",
- "en": "Native HDR input; \"Convert HDR sources too\" is off",
- "ja": "ネイティブ HDR 入力;「HDR ソースも変換」はオフです"
- },
- {
- "zh": "只清空这个列表,不会删除文件。",
- "src": "qml/HomePage.qml",
- "zh-TW": "只清空這個列表,不會刪除檔案。",
- "en": "Only clears this list; no file is deleted.",
- "ja": "このリストだけを消去します。ファイルは削除されません。"
- },
- {
- "zh": "固定亮度曲线:抬暗部、定中灰、压高光;不做逐场景曝光调整。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "固定亮度曲線:抬暗部、定中灰、壓高光;不做逐場景曝光調整。",
- "en": "A fixed brightness curve for shadows, midtones and highlights; no per-scene exposure adjustment.",
- "ja": "暗部・中間調・ハイライトの固定輝度カーブ。シーンごとの露出調整は行いません。"
- },
- {
- "zh": "垂直同步 · 队列深度 1 · ",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "垂直同步 · 佇列深度 1 · ",
- "en": "VSync · queue depth 1 · ",
- "ja": "垂直同期 · キュー深さ 1 · "
- },
- {
- "zh": "外挂 · {}",
- "src": "src/engine/Subtitles.cpp",
- "zh-TW": "外掛 · {}",
- "en": "External · {}",
- "ja": "外部 · {}"
- },
- {
- "zh": "字幕文件 (*.srt *.ass *.ssa *.vtt);;所有文件 (*.*)",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "字幕檔案 (*.srt *.ass *.ssa *.vtt);;所有檔案 (*.*)",
- "en": "Subtitle files (*.srt *.ass *.ssa *.vtt);;All files (*.*)",
- "ja": "字幕ファイル (*.srt *.ass *.ssa *.vtt);;すべてのファイル (*.*)"
- },
- {
- "zh": "字幕文件无法读取或没有字幕内容:%1",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "字幕檔案無法讀取或沒有字幕內容:%1",
- "en": "The subtitle file cannot be read or has no subtitles: %1",
- "ja": "字幕ファイルを読み込めないか、字幕がありません:%1"
- },
- {
- "zh": "对比中",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "對比中",
- "en": "Comparing",
- "ja": "比較中"
- },
- {
- "zh": "当前导出设备不能执行所请求的 DLSS 补帧,未降低倍率",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": "當前匯出裝置不能執行所請求的 DLSS 補幀,未降低倍率",
- "en": "The export device cannot run the requested DLSS frame generation; the multiplier was not lowered",
- "ja": "書き出し用デバイスでは要求された DLSS フレーム生成を実行できません。倍率は下げていません"
- },
- {
- "zh": "当前显卡不能使用 DLSS NR,本次导出自动关闭 NR",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": "當前顯示卡不能使用 DLSS NR,本次匯出自動關閉 NR",
- "en": "This GPU cannot use DLSS NR; NR is turned off for this export",
- "ja": "この GPU では DLSS NR を使えないため、今回の書き出しでは NR をオフにします"
- },
- {
- "zh": "快速调节只在专业模式的列表视图可用",
- "src": "qml/Main.qml",
- "zh-TW": "快速調節只在專業模式的列表視圖可用",
- "en": "Quick settings are available only in Pro mode's list view",
- "ja": "クイック設定はプロモードのリスト表示でのみ使えます"
- },
- {
- "zh": "显示同步:自动 · 与屏幕同步防撕裂",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "顯示同步:自動 · 與螢幕同步防撕裂",
- "en": "Display sync: auto · synchronize with the display to prevent tearing",
- "ja": "表示の同期:自動 · 画面と同期してティアリングを防止"
- },
- {
- "zh": "显示队列控制不可用 · ",
- "src": "src/engine/VideoPresenter.cpp",
- "zh-TW": "顯示佇列控制不可用 · ",
- "en": "Display queue control unavailable · ",
- "ja": "表示キューの制御を使用できません · "
- },
- {
- "zh": "显示队列等待失败;",
- "src": "src/engine/EngineController.cpp",
- "zh-TW": "顯示佇列等待失敗;",
- "en": "Display queue wait failed; ",
- "ja": "表示キューの待機に失敗しました。"
- },
- {
- "zh": "未读到有效的 4K 以内采集格式,或设备正被其他应用占用。",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "未讀到有效的 4K 以內擷取格式,或裝置正被其他應用占用。",
- "en": "No valid capture format up to 4K was read, or the device is being used by another app.",
- "ja": "4K 以下の有効なキャプチャーフォーマットを読み取れないか、デバイスが他のアプリで使用中です。"
- },
- {
- "zh": "正在查询设备…",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "正在查詢裝置…",
- "en": "Looking up devices…",
- "ja": "デバイスを確認中…"
- },
- {
- "zh": "清空最近播放记录?",
- "src": "qml/HomePage.qml",
- "zh-TW": "清空最近播放記錄?",
- "en": "Clear the recent list?",
- "ja": "最近再生した記録を消去しますか?"
- },
- {
- "zh": "自动:与屏幕同步防撕裂 · 提交帧率受屏幕刷新率限制 · 想再降延迟可选“允许撕裂”(可能撕裂)或在显卡驱动开启 G-SYNC/FreeSync,最多少等一次刷新(60Hz 约 8 ms)",
- "src": "qml/ProPage.qml",
- "zh-TW": "自動:與螢幕同步防撕裂 · 提交幀率受螢幕更新率限制 · 想再降延遲可選「允許撕裂」(可能撕裂)或在顯示卡驅動開啟 G-SYNC/FreeSync,最多少等一次更新(60Hz 約 8 ms)",
- "en": "Auto: synchronize with the display to prevent tearing; submitted FPS is limited by the refresh rate. For lower latency choose \"Allow tearing\" (may tear) or enable G-SYNC/FreeSync in the GPU driver to wait up to one refresh less (about 8 ms at 60 Hz)",
- "ja": "自動:画面と同期してティアリングを防止 · 送信 FPS はリフレッシュレートが上限 · さらに遅延を減らすには「ティアリングを許可」(ティアリングの可能性あり)を選ぶか、GPU ドライバーで G-SYNC/FreeSync を有効にすると、待ち時間が最大 1 リフレッシュ分短くなります(60Hz で約 8 ms)"
- },
- {
- "zh": "设备查询还没有完成",
- "src": "src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "裝置查詢還沒有完成",
- "en": "The device query has not finished yet",
- "ja": "デバイスの確認がまだ完了していません"
- },
- {
- "zh": "采集卡拒绝 {:.3f} FPS(0x{:08X});请改用设备支持的帧率,或填 0 恢复默认。",
- "src": "src/source/CaptureCardSource.cpp",
- "zh-TW": "擷取卡拒絕 {:.3f} FPS(0x{:08X});請改用裝置支援的幀率,或填 0 恢復預設。",
- "en": "The capture card refused {:.3f} FPS (0x{:08X}); use a frame rate the device supports, or enter 0 for the default.",
- "ja": "キャプチャーカードが {:.3f} FPS を拒否しました(0x{:08X})。デバイスが対応するフレームレートにするか、0 を入力して既定に戻してください。"
- },
- {
- "zh": "高质量需要更多处理时间",
- "src": "qml/NodePage.qml",
- "zh-TW": "高品質需要更多處理時間",
- "en": "High quality takes more processing time.",
- "ja": "高品質にはより多くの処理時間が必要です。"
- },
- {
- "zh": "原生采集跟随 Desktop Video Setup 的 HDMI/SDI 输入。支持自动检测的卡建议选择自动;信号未锁定时会明确提示。",
- "src": "qml/Veyra/DialogHost.qml;src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "原生擷取沿用 Desktop Video Setup 的 HDMI/SDI 輸入。支援自動偵測的卡建議選擇自動;訊號未鎖定時會明確提示。",
- "en": "Native capture follows the HDMI/SDI input selected in Desktop Video Setup. Choose automatic detection when supported. An unlocked signal is reported explicitly.",
- "ja": "Desktop Video Setup で選んだ HDMI/SDI 入力を使用します。対応カードは自動検出を推奨します。信号がロックされていない場合は明示します。"
- },
- {
- "zh": "原生采集先确认有效信号;支持自动检测的卡建议选择自动。HDMI/SDI 跟随 Desktop Video Setup。",
- "src": "qml/Veyra/DialogHost.qml;src/ui/QmlPlayerBridge.cpp",
- "zh-TW": "原生擷取先確認有效訊號;支援自動偵測的卡建議選擇自動。HDMI/SDI 沿用 Desktop Video Setup。",
- "en": "Native capture first verifies a valid signal. Use automatic detection when supported. HDMI/SDI follows Desktop Video Setup.",
- "ja": "有効な信号を確認してからキャプチャします。対応カードは自動検出を使用してください。HDMI/SDI は Desktop Video Setup に従います。"
- },
- {
- "zh": "BMD 原生入口跟随 Desktop Video Setup 的 HDMI/SDI 输入设置;请在该程序选择输入口,再使用自动检测或手动制式。",
- "src": "src/source/CaptureCardSource.cpp",
- "zh-TW": "BMD 原生入口沿用 Desktop Video Setup 的 HDMI/SDI 輸入設定;請在該程式選擇輸入埠,再使用自動偵測或手動制式。",
- "en": "Native BMD capture uses the HDMI/SDI input selected in Desktop Video Setup. Select the input there, then use automatic detection or a manual format.",
- "ja": "BMD ネイティブ入力は Desktop Video Setup の HDMI/SDI 設定に従います。同アプリで入力を選び、自動検出または手動形式を使用してください。"
- },
- {
- "zh": "BMD 未检测到有效输入。请关闭占用采集卡的应用,并在 Desktop Video Setup 核对 HDMI/SDI 和制式;也可选择手动制式",
- "src": "src/source/DeckLinkCapture.cpp",
- "zh-TW": "BMD 未偵測到有效輸入。請關閉占用擷取卡的應用程式,並在 Desktop Video Setup 核對 HDMI/SDI 與制式;也可選擇手動制式",
- "en": "BMD found no valid input. Close other capture apps and check HDMI/SDI and format in Desktop Video Setup. A matching manual format can also be selected.",
- "ja": "BMD の有効な入力が見つかりません。他のキャプチャアプリを終了し、Desktop Video Setup の HDMI/SDI と形式を確認してください。対応する手動形式も選択できます。"
- },
- {
- "zh": "保存的 BMD 制式已不可用,请刷新并重新选择",
- "src": "src/source/CaptureCardSource.cpp",
- "zh-TW": "儲存的 BMD 制式已無法使用,請重新整理並選擇",
- "en": "Saved BMD format is no longer available. Refresh and select a format again.",
- "ja": "保存された BMD 形式は利用できなくなりました。更新して選び直してください。"
- },
- {
- "zh": "未找到该 BMD 原生设备,请安装 Desktop Video 驱动并刷新设备列表",
- "src": "src/source/DeckLinkDriver.cpp",
- "zh-TW": "找不到該 BMD 原生裝置,請安裝 Desktop Video 驅動並重新整理裝置清單",
- "en": "Native BMD device not found. Install Desktop Video and refresh the device list.",
- "ja": "BMD ネイティブデバイスが見つかりません。Desktop Video をインストールし、デバイス一覧を更新してください。"
- },
- {
- "zh": "放大时重建细节;原尺寸时修复压缩伪影。效果取决于片源。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "放大時重建細節;原尺寸時修復壓縮瑕疵。效果取決於片源。",
- "en": "Reconstructs detail when upscaling and reduces compression artifacts at native size. Results depend on the source.",
- "ja": "拡大時は細部を再構成し、元の解像度では圧縮ノイズを低減します。効果は映像により異なります。"
- },
- {
- "zh": "当前播放器不支持",
- "src": "include/veyra/source/CaptureFormatSelection.h",
- "zh-TW": "目前播放器不支援",
- "en": "Unsupported by this player",
- "ja": "このプレイヤーでは非対応"
- },
- {
- "zh": "设备实际支持的格式",
- "src": "qml/DialogHost.qml",
- "zh-TW": "裝置實際支援的格式",
- "en": "Formats the device actually supports",
- "ja": "デバイスが実際に対応するフォーマット"
- },
- {
- "zh": "请选择格式",
- "src": "qml/DialogHost.qml",
- "zh-TW": "請選擇格式",
- "en": "Choose a format",
- "ja": "フォーマットを選んでください"
- },
- {
- "zh": "0 = 跟随片源;报低通常整体变亮",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "0 = 跟隨片源;報低通常整體變亮",
- "en": "0 = follow the source; a lower value usually brightens the picture",
- "ja": "0 = ソースに追従。低く申告すると通常は全體が明るくなる"
- },
- {
- "zh": "不做任何改动,交给显示器和片源本身。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "不做任何改动,交给显示器和片源本身。",
- "en": "Changes nothing; the display and the source decide.",
- "ja": "Changes nothing; the display and the source decide."
- },
- {
- "zh": "启动时检测到小飞机(RTSS)就改用软件绘制界面,OSD 只显示在视频上",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "啟動時偵測到小飛機(RTSS)就改用軟體繪製介面,OSD 只顯示在影片上",
- "en": "When RivaTuner (RTSS) is running at start, the interface is drawn in software and the OSD shows on the video only",
- "ja": "起動時に RivaTuner(RTSS)を検出するとインターフェースをソフトウェア描画にし、OSD は映像にだけ表示します"
- },
- {
- "zh": "小飞机在 Veyra 之后启动。为避免画面卡住,它的 OSD 暂不在 Veyra 里显示。重启后界面改用兼容绘制,OSD 只显示在视频上。现在重启吗?当前播放或串流将停止。",
- "src": "qml/Main.qml",
- "zh-TW": "小飛機在 Veyra 之後啟動。為避免畫面卡住,它的 OSD 暫不在 Veyra 中顯示。重新啟動後介面改用相容繪製,OSD 只顯示在影片上。現在重新啟動嗎?目前的播放或串流將停止。",
- "en": "RivaTuner started after Veyra. To keep the picture from freezing, its OSD is not shown in Veyra for now. After a restart the interface uses compatible drawing and the OSD shows on the video only. Restart now? Current playback or streaming will stop.",
- "ja": "RivaTuner が Veyra の後に起動しました。映像が止まらないよう、今は Veyra に OSD を表示しません。再起動するとインターフェースが互換描画になり、OSD は映像にだけ表示されます。今すぐ再起動しますか?再生中の映像やストリーミングは停止します。"
- },
- {
- "zh": "已发送给显示器",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "已傳送給顯示器",
- "en": "Sent to the display",
- "ja": "表示機器へ送信中"
- },
- {
- "zh": "已检测到小飞机(RTSS):界面软件绘制,OSD 只显示在视频上;部分阴影与模糊简化",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "已偵測到小飛機(RTSS):介面軟體繪製,OSD 只顯示在影片上;部分陰影與模糊簡化",
- "en": "RivaTuner (RTSS) detected: the interface is drawn in software and the OSD shows on the video only; some shadows and blur are simplified",
- "ja": "RivaTuner(RTSS)を検出:インターフェースはソフトウェア描画、OSD は映像にだけ表示。一部の影とぼかしは簡略化されます"
- },
- {
- "zh": "把内容峰值告诉显示器",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "把內容峰值告訴顯示器",
- "en": "Tells the display the content peak",
- "ja": "コンテンツのピークを表示機器に傳える"
- },
- {
- "zh": "把内容峰值告诉显示器,让它的动态色调映射有依据。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "把內容峰值告訴顯示器,讓它的動態色調映射有依據。",
- "en": "Tells the display what the content peak is, so its dynamic tone mapping has something to work from.",
- "ja": "コンテンツのピークを表示機器に傳え、動的トーンマッピングの判斷材料にする。"
- },
- {
- "zh": "文件播放与字幕的默认行为。",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "檔案播放與字幕的預設行為。",
- "en": "Default behavior for file playback and subtitles.",
- "ja": "ファイル再生と字幕の既定の動作。"
- },
- {
- "zh": "暗调片、夜景多的剧集:只抬暗部,亮部不受影响。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "暗调片、夜景多的剧集:只抬暗部,亮部不受影响。",
- "en": "Dark films and night-heavy series: lifts the shadows only; the highlights are untouched.",
- "ja": "Dark films and night-heavy series: lifts the shadows only; the highlights are untouched."
- },
- {
- "zh": "检测到小飞机(RTSS)",
- "src": "qml/Main.qml",
- "zh-TW": "偵測到小飛機(RTSS)",
- "en": "RivaTuner (RTSS) detected",
- "ja": "RivaTuner(RTSS)を検出"
- },
- {
- "zh": "游戏 30 帧、采集卡输出 60 帧时选“采集 60→30”",
- "src": "qml/ProPage.qml",
- "zh-TW": "遊戲 30 幀、擷取卡輸出 60 幀時選“擷取 60→30”",
- "en": "Choose \"Capture 60→30\" when the game runs at 30 fps and the capture card outputs 60",
- "ja": "ゲームが 30 fps でキャプチャーカードが 60 fps を出力する場合は「キャプチャー 60→30」を選択"
- },
- {
- "zh": "源 ",
- "src": "qml/ProPage.qml",
- "zh-TW": "源 ",
- "en": "Source ",
- "ja": "ソース "
- },
- {
- "zh": "界面始终用显卡绘制;为避免冲突,小飞机 OSD 不在 Veyra 里显示",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "介面始終用顯示卡繪製;為避免衝突,小飛機 OSD 不在 Veyra 中顯示",
- "en": "The interface always draws on the GPU; to avoid a conflict the RTSS OSD is not shown in Veyra",
- "ja": "インターフェースは常に GPU で描画します。競合を避けるため RTSS の OSD は Veyra に表示しません"
- },
- {
- "zh": "等比例缩放这一档的效果;100% = 档位原值",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "等比例缩放这一档的效果;100% = 档位原值",
- "en": "Scales the whole preset; 100% = the preset as written",
- "ja": "Scales the whole preset; 100% = the preset as written"
- },
- {
- "zh": "自动:与屏幕同步防撕裂 · 提交帧率受屏幕刷新率限制",
- "src": "qml/ProPage.qml",
- "zh-TW": "自動:與螢幕同步防撕裂 · 提交幀率受螢幕更新率限制",
- "en": "Auto: synchronize with the display to prevent tearing; submitted FPS is limited by the refresh rate",
- "ja": "自動:画面と同期してティアリングを防止 · 送信 FPS はリフレッシュレートが上限"
- },
- {
- "zh": "通用与外观",
- "src": "qml/SettingsPage.qml",
- "zh-TW": "通用與外觀",
- "en": "General and appearance",
- "ja": "全般と外観"
- },
- {
- "zh": "静态曲线:抬暗部、定中灰、压高光。不随场景变化,不会呼吸。",
- "src": "qml/Veyra/ProPage.qml",
- "zh-TW": "靜態曲線:抬暗部、定中灰、壓高光。不隨場景變化,不會呼吸。",
- "en": "Static curve: lifts the shadows, sets the mid-gray, rolls off the highlights. It never follows the scene, so the picture cannot breathe.",
- "ja": "靜的曲線:暗部を持ち上げ、中間調を決め、ハイライトを壓縮。シーンに追従しない。"
- },
- {
- "zh": ";当前显卡不能使用 DLSS NR,本次导出自动关闭 NR",
- "src": "src/engine/VideoExportJob.cpp",
- "zh-TW": ";當前顯示卡不能使用 DLSS NR,本次匯出自動關閉 NR",
- "en": "; this GPU cannot use DLSS NR, NR is turned off for this export",
- "ja": ";この GPU では DLSS NR を使えないため、今回の書き出しでは NR をオフにします"
}
]
}
diff --git a/include/veyra/engine/EngineController.h b/include/veyra/engine/EngineController.h
index 3bee6978..becb21d1 100644
--- a/include/veyra/engine/EngineController.h
+++ b/include/veyra/engine/EngineController.h
@@ -229,6 +229,7 @@ public:
void pause(bool p);
bool setPlaybackRate(double rate);
void setFullscreenMemoryProtection(bool enabled);
+ void observeHdrCoverage(bool on){hdrCoverageObserved_=on;}
void previewView(PreviewView view){if(!std::isfinite(view.zoom)||!std::isfinite(view.centerX)||!std::isfinite(view.centerY)||!std::isfinite(view.displayAspect)||view.displayAspect<0||view.mode<0||view.mode>6)return;std::lock_guard lock(mutex_);view.zoom=std::clamp(view.zoom,.05f,64.0f);if(view.displayAspect==0)view.displayAspect=previewView_.displayAspect;view.rotationDegrees=previewView_.rotationDegrees;previewView_=view;}
PreviewView previewView()const{std::lock_guard lock(mutex_);return previewView_;}
void setVolume(float gain,bool mute);
@@ -284,6 +285,7 @@ private:
std::atomic<double> seekSeconds_{-1};
std::atomic<double> requestedPlaybackRate_{1};
std::atomic<bool> fullscreenMemoryProtection_{false};
+ std::atomic<bool> hdrCoverageObserved_{false};
int pendingAudioTrack_=-1;uint64_t pendingAudioSession_=0; // mutex_
std::atomic<int> comparisonMode_{0};std::atomic<bool> comparisonBase_{false};std::atomic<float> comparisonSplit_{.5f};
// Guarded by mutex_: DLSSG MultiFrameCountMax of the active session.
diff --git a/include/veyra/engine/HdrOutputTuning.h b/include/veyra/engine/HdrOutputTuning.h
index 2bf9efc8..0e0bdff7 100644
--- a/include/veyra/engine/HdrOutputTuning.h
+++ b/include/veyra/engine/HdrOutputTuning.h
@@ -562,9 +562,17 @@ inline HdrCurveCoverage hdrCurveCoverage(const double* nits, unsigned count, con
for (unsigned i = 0; i < count; ++i) {
const double value = nits[i];
if (!std::isfinite(value) || value <= 0.0) continue;
- if (cap > 0.0 && value > cap) ++coverage.aboveCeiling;
- else if (start > 0.0 && value > start) ++coverage.inRollOff;
- if (range > 0.0 && value < range) ++coverage.inLift;
+ if (curve.shadowLiftEv100 != 0 && range > 0.0 && value < range) ++coverage.inLift;
+ // Reproduce each stage before the final hard cap. A soft knee may
+ // already bring values below the cap, so raw input > cap is not clipping.
+ double mapped=value;
+ const double w=range>0?std::clamp(1-value/range,0.0,1.0):0.0;
+ mapped*=1+w*w*(std::exp2(double(curve.shadowLiftEv100)/100)-1);
+ const double peak=cap>0?cap:1000;
+ if(curve.midGrayNits>0&&std::abs(double(curve.midGrayNits)-203)>.5&&peak>curve.midGrayNits+1)
+ mapped=peak*std::pow(std::max(mapped/peak,0.0),std::log(curve.midGrayNits/peak)/std::log(203/peak));
+ if(start>0&&mapped>start){++coverage.inRollOff;const double scale=hdrCurveRollOffScaleNits(curve);mapped=start+(mapped-start)/(1+(mapped-start)/scale);}
+ if(cap>0&&mapped>cap)++coverage.aboveCeiling;
}
return coverage;
}
diff --git a/include/veyra/engine/VideoPresenter.h b/include/veyra/engine/VideoPresenter.h
index 8df209ef..bd6189b4 100644
--- a/include/veyra/engine/VideoPresenter.h
+++ b/include/veyra/engine/VideoPresenter.h
@@ -53,10 +53,8 @@ public:
uint64_t generation()const{return generation_;}
// Explicit integration-test capture only; never called by playback/export.
bool readPresentedFrameForTest(gfx::D3D12DeviceContext&,gfx::CommandSlotRing&,sink::RgbaImage&);
- // Custom: how the curve currently treats the frame (see HdrOutputTuning.h). The
- // presenter measures it with one extra tiny draw of the present blit plus a
- // non-blocking readback, so the value is at most one probe behind and the GPU is
- // never waited for.
+ // A visible HDR panel can request sparse GPU statistics. No pixel readback.
+ void observeHdrCoverage(bool on){probeObserved_=on;if(!on)liveCoverage_={};}
const HdrCurveCoverage& liveCurveCoverage() const { return liveCoverage_; }
// Test-only buffer reference for lossless HDR readback. Drains the private
// queue; caller drains the shared queue and releases before resize/close.
@@ -96,7 +94,7 @@ void recordGpuTimings(){gpuTimer_.recordCompleted();}
private:
// Custom: HDR10 static metadata for the display (MaxCLL / MaxFALL / mastering
// peak). Sent only when it changes, and cleared when the HDR10 path stops.
- void applyHdrMetadata(pipeline::EnhanceGraph& graph,const HdrMetadataSettings& metadata,pipeline::FrameIdentity identity);
+ void applyHdrMetadata(pipeline::EnhanceGraph& graph,const HdrMetadataSettings& metadata,const HdrCurveSettings& resolvedCurve,pipeline::FrameIdentity identity);
bool metadataSent_=false,metadataDirty_=false;
// The source's mastering/CLL values are absent on many frames; holding the last
// real value keeps the reported metadata steady instead of flapping to the
@@ -126,16 +124,17 @@ private:
Microsoft::WRL::ComPtr<ID3D12Resource> compositeTarget_;
bool copyBeforePresent_=false,copyEligible_=false;
unsigned inc_=0;
- // Custom: the live coverage probe. The target uses the swapchain's own format so
- // the existing present PSO can render into it; only the 10-bit HDR10 format is
- // decoded (the scRGB half-float case is skipped rather than guessed at).
- static constexpr unsigned kProbeWidth=64,kProbeHeight=36,kProbeIntervalFrames=15;
- Microsoft::WRL::ComPtr<ID3D12Resource> probeTarget_,probeReadback_;
+ static constexpr unsigned kProbeWidth=64,kProbeHeight=36,kProbeStatsBytes=5*sizeof(uint32_t);
+ pipeline::ComputePass probePass_;
+ Microsoft::WRL::ComPtr<ID3D12Resource> probeStats_,probeReadback_;
uint64_t probeFenceValue_=0;
- bool probePending_=false,probeEnabled_=false;
- unsigned probeFrame_=0,probeBytesPerPixel_=0;
+ bool probePending_=false,probeObserved_=false,probeFailed_=false;
+ HdrCurveSettings probeCurve_{};
+ pipeline::FrameIdentity probeIdentity_{};
+ std::chrono::steady_clock::time_point probeNext_{};
HdrCurveCoverage liveCoverage_{};
- void publishLiveCoverage(const HdrCurveSettings& curve);
+ bool ensureCoverageProbe(ID3D12Device*);
+ void publishLiveCoverage(const HdrCurveSettings&,pipeline::FrameIdentity);
unsigned lastBuffer_=0;bool hasPresented_=false;
struct RetainedFrame {
ID3D12Fence* producer=nullptr;
diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.h
index 0e380e62..4b1698a5 100644
--- a/include/veyra/ui/QmlPlayerBridge.h
+++ b/include/veyra/ui/QmlPlayerBridge.h
@@ -1,1377 +1,1380 @@
-#pragma once
-// The QML front end's only view of the player.
-//
-// Design rules this file follows, all of them deliberate:
-//
-// * QML never sees EngineController, D3D12, decoded frames or the audio
-// clock. It sees plain values and calls plain commands.
-// * The video is NOT part of the QML scene graph. It stays a native child
-// HWND with its own flip-model swapchain (measured in S3: 499/499 presents
-// at 0.205 ms while the QML scene animated at full panel rate). QML is drawn
-// around and above it. Compositing video into QML would cost exactly the
-// latency that is this product's advantage over OBS and PotPlayer.
-// * One timer drives updates, and it publishes only what changed: the facade
-// hands out a revision counter, so a 60 Hz tick does not mean 60 property
-// writes. This is what keeps the UI from becoming the latency bottleneck.
-//
-// Threading: every method here is called on the UI thread. Commands go through
-// the facade, never executed inline, so a slow engine cannot block a frame of
-// QML animation.
-//
-// Scope note: this exposes what the engine can actually do today. Playback
-// speed measurement and requested file-preview rate are separate values.
-#include <QObject>
-#include <QString>
-#include <QRectF>
-#include <QUrl>
-#include <QVariantList>
-#include <QVariantMap>
-
-#include <functional>
-#include <memory>
-
-#include "veyra/engine/EffectChain.h"
-#include "veyra/engine/ExportJobManager.h"
-#include "veyra/engine/EnhancementSettings.h"
-#include "veyra/ui/PlayerUiFacade.h"
-
-class QQmlEngine;
-namespace veyra::ui {
-
-class MoonlightModel;
-class XboxModel;
-
-class QmlPlayerBridge : public QObject {
- Q_OBJECT
- // --- professional-page readouts ---------------------------------------
- // Every one of these reports an engine value. Where the engine has no
- // measurement the getter says so (e.g. displayFpsKnown stays false, because
- // a display rate is only real if the system display event can be read - the
- // design requires exactly this distinction rather than reusing submit FPS).
- Q_PROPERTY(QString outputSummary READ outputSummary NOTIFY snapshotChanged)
- Q_PROPERTY(bool fullscreenMemorySafe READ fullscreenMemorySafe NOTIFY snapshotChanged)
- Q_PROPERTY(double displayFps READ displayFps NOTIFY snapshotChanged)
- Q_PROPERTY(bool displayFpsKnown READ displayFpsKnown NOTIFY snapshotChanged)
- Q_PROPERTY(double queuedFrames READ queuedFrames NOTIFY snapshotChanged)
- Q_PROPERTY(bool queuedFramesKnown READ queuedFramesKnown NOTIFY snapshotChanged)
- Q_PROPERTY(int skippedFrames READ skippedFrames NOTIFY snapshotChanged)
- Q_PROPERTY(QString flowBackend READ flowBackend NOTIFY snapshotChanged)
- Q_PROPERTY(int opticalFlowChoice READ opticalFlowChoice NOTIFY settingsChanged)
- Q_PROPERTY(QVariantList stageTimings READ stageTimings NOTIFY snapshotChanged)
- Q_PROPERTY(QVariantMap nodeTimings READ nodeTimings NOTIFY snapshotChanged)
- Q_PROPERTY(QVariantMap nodeAnchors READ nodeAnchors NOTIFY nodeAnchorsChanged)
- Q_PROPERTY(double stageBudgetMs READ stageBudgetMs NOTIFY snapshotChanged)
- // Existing measured enhancement-interval P95, NOT full-chain latency.
- Q_PROPERTY(double chainTotalMs READ chainTotalMs NOTIFY snapshotChanged)
- Q_PROPERTY(bool chainTotalMsKnown READ chainTotalMsKnown NOTIFY snapshotChanged)
- Q_PROPERTY(double scheduleP95Ms READ scheduleP95Ms NOTIFY snapshotChanged)
-
- // --- frame generation settings ----------------------------------------
- Q_PROPERTY(QString fgBackendName READ fgBackendName WRITE setFgBackendName NOTIFY settingsChanged)
- Q_PROPERTY(int vfgQuality READ vfgQuality WRITE setVfgQuality NOTIFY settingsChanged)
- Q_PROPERTY(QVariantList fgBackendChoices READ fgBackendChoices NOTIFY effectCapabilitiesChanged)
- Q_PROPERTY(QString fgProviderText READ fgProviderText NOTIFY fgChoicesChanged)
- Q_PROPERTY(int fgMaxMultiplier READ fgMaxMultiplier NOTIFY snapshotChanged)
- Q_PROPERTY(bool fgEnabled READ fgEnabled WRITE setFgEnabled NOTIFY chainChanged)
- Q_PROPERTY(QString submitFpsLabel READ submitFpsLabel NOTIFY snapshotChanged)
- Q_PROPERTY(QVariantList fgMultiplierChoices READ fgMultiplierChoices NOTIFY fgChoicesChanged)
- Q_PROPERTY(bool fgStrict READ fgStrict WRITE setFgStrict NOTIFY settingsChanged)
- Q_PROPERTY(bool fgLowQueue READ fgLowQueue WRITE setFgLowQueue NOTIFY settingsChanged)
-
- // --- colour settings ---------------------------------------------------
- Q_PROPERTY(double colorExposure READ colorExposure WRITE setColorExposure NOTIFY settingsChanged)
- Q_PROPERTY(double colorContrast READ colorContrast WRITE setColorContrast NOTIFY settingsChanged)
- Q_PROPERTY(double colorSaturation READ colorSaturation WRITE setColorSaturation NOTIFY settingsChanged)
- Q_PROPERTY(double colorTemperature READ colorTemperature WRITE setColorTemperature NOTIFY settingsChanged)
-
- // --- shell preferences -------------------------------------------------
- // Kept by the facade so they survive a restart, and read by the shell.
- Q_PROPERTY(bool reducedMotion READ reducedMotion WRITE setReducedMotion NOTIFY settingsChanged)
- // Counts interface graphics devices recreated after a loss (a GPU reset, logs 56). VIcon
- // re-feeds its path when it changes: Qt 6.8.3's curve renderer leaves recreated nodes empty.
- Q_PROPERTY(int uiDeviceGeneration READ uiDeviceGeneration NOTIFY uiDeviceGenerationChanged)
- Q_PROPERTY(QString defaultPage READ defaultPage WRITE setDefaultPage NOTIFY settingsChanged)
- Q_PROPERTY(QString defaultPageLabel READ defaultPageLabel NOTIFY settingsChanged)
- // Used by the shell to open on the saved page. Set from the command line in
- // tests so a screenshot does not depend on clicking the dock.
- Q_PROPERTY(QString initialPage READ initialPage WRITE setInitialPage NOTIFY settingsChanged)
- // The page the shell is showing, pushed by the shell so a command can tell
- // where the user is: opening a file from home goes to the player, and
- // opening one from the professional page stays there.
- Q_PROPERTY(QString currentPage READ currentPage WRITE setCurrentPage NOTIFY settingsChanged)
-
- // --- settings-page reporting -------------------------------------------
- Q_PROPERTY(QString remotePlayState READ remotePlayState NOTIFY snapshotChanged)
- // The loaded runtime components, as the engine reports them. A hand-written
- // list here could drift from what the package actually contains.
- Q_PROPERTY(QVariantList componentList READ componentList NOTIFY componentListChanged)
- Q_PROPERTY(QObject* updates READ updates CONSTANT)
-
- // --- capture dialog ----------------------------------------------------
- // Device and format lists come from the source's own enumeration, so the UI
- // can only offer what the machine actually reports.
- Q_PROPERTY(QVariantList captureDevices READ captureDevices NOTIFY captureChanged)
- Q_PROPERTY(QString captureDeviceId READ captureDeviceId WRITE setCaptureDeviceId NOTIFY captureChanged)
- Q_PROPERTY(QString captureDeviceLabel READ captureDeviceLabel NOTIFY captureChanged)
- Q_PROPERTY(bool captureBlackmagicDevice READ captureBlackmagicDevice NOTIFY captureChanged)
- Q_PROPERTY(bool captureForceSdr READ captureForceSdr WRITE setCaptureForceSdr NOTIFY settingsChanged)
- Q_PROPERTY(bool amdNrGpu READ amdNrGpu CONSTANT)
- Q_PROPERTY(QVariantMap effectCapabilities READ effectCapabilities NOTIFY effectCapabilitiesChanged)
- Q_PROPERTY(QVariantList nrRuntimeChoices READ nrRuntimeChoices NOTIFY effectCapabilitiesChanged)
- Q_PROPERTY(QVariantList srBackendChoices READ srBackendChoices NOTIFY effectCapabilitiesChanged)
- Q_PROPERTY(bool captureFlipVertical READ captureFlipVertical WRITE setCaptureFlipVertical NOTIFY settingsChanged)
- // P4-e: the full capture connection, as the 1.4.4 panel: device details and
- // formats come from asynchronous DirectShow queries (never on the UI thread),
- // the choice is remembered in capture-preferences.v1 for "continue".
- Q_PROPERTY(QVariantList captureFormats READ captureFormats NOTIFY captureChanged)
- Q_PROPERTY(QString captureFormatKey READ captureFormatKey WRITE setCaptureFormatKey NOTIFY captureChanged)
- // The selected format's label ("" when none) and whether it gets the cost hint, so the
- // dialog never searches captureFormats itself (logs(18): 15474 formats hung it).
- Q_PROPERTY(QString captureFormatLabel READ captureFormatLabel NOTIFY captureChanged)
- Q_PROPERTY(bool captureFormatCostHint READ captureFormatCostHint NOTIFY captureChanged)
- // Resolution, frame rate and pixel format are three views of captureFormatKey.
- // Changing one retargets that key to a media type the device actually enumerated.
- Q_PROPERTY(QVariantList captureResolutionOptions READ captureResolutionOptions NOTIFY captureChanged)
- Q_PROPERTY(QString captureResolutionId READ captureResolutionId WRITE setCaptureResolutionId NOTIFY captureChanged)
- Q_PROPERTY(QVariantList captureFrameRateOptions READ captureFrameRateOptions NOTIFY captureChanged)
- // Rates the frame-rate menu leaves out unless preferences.captureShowAllFrameRates is on
- // (0: the card offers nothing beyond the common rates, so the switch is not shown).
- Q_PROPERTY(int captureHiddenFrameRates READ captureHiddenFrameRates NOTIFY captureChanged)
- Q_PROPERTY(QString captureFrameRateId READ captureFrameRateId WRITE setCaptureFrameRateId NOTIFY captureChanged)
- Q_PROPERTY(QVariantList capturePixelOptions READ capturePixelOptions NOTIFY captureChanged)
- Q_PROPERTY(QString capturePixelId READ capturePixelId WRITE setCapturePixelId NOTIFY captureChanged)
- Q_PROPERTY(QVariantList captureAudioInputs READ captureAudioInputs NOTIFY captureChanged)
- Q_PROPERTY(int captureAudioChoice READ captureAudioChoice WRITE setCaptureAudioChoice NOTIFY captureChanged)
- Q_PROPERTY(int captureColorSpace READ captureColorSpace WRITE setCaptureColorSpace NOTIFY captureChanged)
- Q_PROPERTY(int captureColorRange READ captureColorRange WRITE setCaptureColorRange NOTIFY captureChanged)
- Q_PROPERTY(double captureRequestedFps READ captureRequestedFps WRITE setCaptureRequestedFps NOTIFY captureChanged)
- Q_PROPERTY(int captureAudioIngress READ captureAudioIngress WRITE setCaptureAudioIngress NOTIFY settingsChanged)
- Q_PROPERTY(int captureBufferMode READ captureBufferMode WRITE setCaptureBufferMode NOTIFY settingsChanged)
- Q_PROPERTY(bool captureQueryBusy READ captureQueryBusy NOTIFY captureChanged)
- Q_PROPERTY(QString captureStatus READ captureStatus NOTIFY captureChanged)
- // Magewell Pro Capture low-latency mode (MagewellCapture.h): whether the selected device is
- // one, and a one-line state (active with its latency, missing runtime, or why it fell back).
- Q_PROPERTY(bool captureMagewellDevice READ captureMagewellDevice NOTIFY captureChanged)
- Q_PROPERTY(QString captureMagewellStatus READ captureMagewellStatus NOTIFY snapshotChanged)
-
- // --- screen-capture dialog ---------------------------------------------
- Q_PROPERTY(QVariantList screenTargets READ screenTargets NOTIFY captureChanged)
- Q_PROPERTY(QString screenTargetId READ screenTargetId WRITE setScreenTargetId NOTIFY captureChanged)
- Q_PROPERTY(QString screenTargetLabel READ screenTargetLabel NOTIFY captureChanged)
- // Screen capture options (ScreenCaptureOptions): kind 0 window / 1 monitor,
- // method 0 WGC / 1 DXGI (monitor only), fps cap index into {follow,30,60,120,144,240},
- // pointer, crop margins in source pixels, and "fill the window".
- Q_PROPERTY(QVariantMap screenOptions READ screenOptions NOTIFY captureChanged)
- // 游戏模式 (screen option "passthrough", ui/GamePassthrough.h): gameMode while the
- // current source is such a capture (opening or live); passthroughActive while the
- // fullscreen picture is click-through and the captured program has the input.
- Q_PROPERTY(bool gameMode READ gameMode NOTIFY gameModeChanged)
- Q_PROPERTY(bool passthroughActive READ passthroughActive NOTIFY gameModeChanged)
-
- // Subtitles (P4-c): the engine's SubtitleLoader reads the embedded tracks and
- // the same-name external file; the old shell's SubtitleOverlay draws them as a
- // layered child of the native video window, so the picture's window region
- // also clips the subtitles away from QML popups. Style lives in preferences.
- Q_PROPERTY(QVariantList subtitleTracks READ subtitleTracks NOTIFY subtitlesChanged)
- Q_PROPERTY(int subtitlePrimary READ subtitlePrimary WRITE setSubtitlePrimary NOTIFY subtitlesChanged)
- Q_PROPERTY(int subtitleSecondary READ subtitleSecondary WRITE setSubtitleSecondary NOTIFY subtitlesChanged)
- Q_PROPERTY(int subtitleOffsetMs READ subtitleOffsetMs WRITE setSubtitleOffsetMs NOTIFY subtitlesChanged)
- Q_PROPERTY(QString subtitleStatus READ subtitleStatus NOTIFY subtitlesChanged)
- Q_PROPERTY(bool subtitleAligning READ subtitleAligning NOTIFY subtitlesChanged)
- // The text the overlay is drawing now (joined lines), for tests and the a11y name.
- Q_PROPERTY(QString subtitleText READ subtitleText NOTIFY subtitleTextChanged)
- // Extra space the shell keeps free at the bottom (fullscreen controls).
- Q_PROPERTY(int subtitleBottomInset READ subtitleBottomInset WRITE setSubtitleBottomInset NOTIFY subtitlesChanged)
-
- // --- ps5 dialog --------------------------------------------------------
- Q_PROPERTY(QString remotePlayHost READ remotePlayHost WRITE setRemotePlayHost NOTIFY settingsChanged)
- Q_PROPERTY(QString remotePlayPin READ remotePlayPin WRITE setRemotePlayPin NOTIFY settingsChanged)
- // P4-e PS5 Remote Play, ported from the 1.4.4 panel: saved pairings (shared
- // %LOCALAPPDATA%\Veyra\remoteplay, encrypted), discovery, pairing, PSN login,
- // wake, stream profile, decode/sampling, view-only, login PIN, controller
- // forwarding and gyro calibration. `ps5` carries the form state.
- Q_PROPERTY(QVariantMap ps5 READ ps5 NOTIFY ps5Changed)
- Q_PROPERTY(QVariantList ps5Profiles READ ps5Profiles NOTIFY ps5Changed)
- // PS5 手柄控制 (采集卡对话框): a controller-only Remote Play session beside the
- // capture card, using the pairing selected in the PS5 dialog. {available,
- // enabled, background, state: off|starting|connected|pin|recovering|failed|
- // nopair, message, keepaliveFps (-1 = not yet), pad, gyro, touch}
- Q_PROPERTY(QVariantMap ps5Control READ ps5Control NOTIFY ps5ControlChanged)
- // PC streaming (Moonlight / Sunshine): hosts, pairing, apps and stream settings live in
- // `moonlight` (null when the build has no Moonlight); capture state and the stats overlay here.
- Q_PROPERTY(QObject* moonlight READ moonlightModel CONSTANT)
- // Xbox home streaming (unofficial): sign-in, consoles and stream state; null without Xbox support.
- Q_PROPERTY(QObject* xbox READ xboxModel CONSTANT)
- Q_PROPERTY(bool moonlightCaptured READ moonlightCaptured NOTIFY moonlightUiChanged)
- Q_PROPERTY(bool moonlightStatsVisible READ moonlightStatsVisible WRITE setMoonlightStatsVisible NOTIFY moonlightUiChanged)
-
- // Shell preferences that are not enhancement settings: screenshot folder,
- // subtitle look, audio output. Stored in <data>/qml-preferences.v1.json and
- // validated key by key in setPreference(); anything unknown is refused.
- Q_PROPERTY(QVariantMap preferences READ preferences NOTIFY preferencesChanged)
- Q_PROPERTY(QString gpuPriorityStatus READ gpuPriorityStatus NOTIFY preferencesChanged)
- Q_PROPERTY(bool enhancementPrewarmAvailable READ enhancementPrewarmAvailable CONSTANT)
- // The interface language in use (zh-CN / zh-TW / en / ja), after "auto" is resolved;
- // preferences.language holds the choice itself.
- Q_PROPERTY(QString uiLanguage READ uiLanguage NOTIFY preferencesChanged)
- Q_PROPERTY(QString screenshotDirectory READ screenshotDirectory NOTIFY preferencesChanged)
- Q_PROPERTY(QString lastScreenshot READ lastScreenshot NOTIFY preferencesChanged)
- Q_PROPERTY(QString dataDirectory READ dataDirectory CONSTANT)
- // Rebindable shortcuts: action -> key sequence text (defaults merged in).
- Q_PROPERTY(QVariantMap shortcuts READ shortcuts NOTIFY preferencesChanged)
- // The interface scale chosen for the next start (0 = follow Windows).
- Q_PROPERTY(int uiScaleActive READ uiScaleActive CONSTANT)
- Q_PROPERTY(bool obsGameCaptureActive READ obsGameCaptureActive CONSTANT)
- // This run draws the interface in software because RivaTuner (RTSS) was running at start
- // (设置 → 监控软件兼容, main.cpp): its OSD then sits on the video only.
- Q_PROPERTY(bool overlayCompatActive READ overlayCompatActive CONSTANT)
- // Audio output (P4-d): the active WASAPI render endpoints by device id, the
- // stored choice (preferences.audioDevice, empty = system default) and what
- // the renderer actually opened, including a fallback to the default.
- Q_PROPERTY(QVariantList audioDevices READ audioDevices NOTIFY audioDevicesChanged)
- // The GPU the "GPU 占用" orb measures (设置 → 通用与外观): [{id, label}], the first
- // entry ("", 自动) picks the high-performance (discrete) GPU. Field report
- // 2026-10-02: the orb used to add the integrated and the discrete GPU together.
- Q_PROPERTY(QVariantList gpuMonitorChoices READ gpuMonitorChoices CONSTANT)
- Q_PROPERTY(QString gpuMonitorName READ gpuMonitorName NOTIFY preferencesChanged)
- // 设置 -> "同时用这块显卡运算" (preference computeOnMonitorGpu): the GPU picked
- // for monitoring also runs enhancement, frame generation and export.
- Q_PROPERTY(QString computeGpuHint READ computeGpuHint NOTIFY preferencesChanged)
- Q_PROPERTY(QString audioOutputStatus READ audioOutputStatus NOTIFY audioDevicesChanged)
- Q_PROPERTY(bool audioOutputFallback READ audioOutputFallback NOTIFY audioDevicesChanged)
- Q_PROPERTY(QString logFile READ logFile CONSTANT)
-
- Q_PROPERTY(QString appName READ appName CONSTANT)
- Q_PROPERTY(QString version READ version CONSTANT)
-
- // --- playback ----------------------------------------------------------
- Q_PROPERTY(QString statusText READ statusText NOTIFY snapshotChanged)
- Q_PROPERTY(bool running READ running NOTIFY snapshotChanged)
- Q_PROPERTY(bool paused READ paused NOTIFY snapshotChanged)
- Q_PROPERTY(bool failed READ failed NOTIFY snapshotChanged)
- Q_PROPERTY(bool isImage READ isImage NOTIFY snapshotChanged)
- Q_PROPERTY(bool isCapture READ isCapture NOTIFY snapshotChanged)
- Q_PROPERTY(bool hasSource READ hasSource NOTIFY snapshotChanged)
- Q_PROPERTY(double position READ position NOTIFY snapshotChanged)
- Q_PROPERTY(double duration READ duration NOTIFY snapshotChanged)
- Q_PROPERTY(double progress READ progress NOTIFY snapshotChanged)
- Q_PROPERTY(QString positionText READ positionText NOTIFY snapshotChanged)
- Q_PROPERTY(QString durationText READ durationText NOTIFY snapshotChanged)
-
- // --- source ------------------------------------------------------------
- Q_PROPERTY(int thumbnailGeneration READ thumbnailGeneration NOTIFY thumbnailGenerationChanged)
- Q_PROPERTY(QString sourceName READ sourceName NOTIFY snapshotChanged)
- Q_PROPERTY(QString sourceSummary READ sourceSummary NOTIFY snapshotChanged)
- Q_PROPERTY(int sourceWidth READ sourceWidth NOTIFY snapshotChanged)
- Q_PROPERTY(int sourceHeight READ sourceHeight NOTIFY snapshotChanged)
- Q_PROPERTY(double sourceFps READ sourceFps NOTIFY snapshotChanged)
- Q_PROPERTY(int sourceRotation READ sourceRotation NOTIFY snapshotChanged)
- // The film's display aspect, so the window can snap to it in cinema mode
- // exactly as the prototype's fitAspect() does. 0 when nothing is open.
- Q_PROPERTY(double sourceAspect READ sourceAspect NOTIFY snapshotChanged)
- Q_PROPERTY(double previewAspect READ previewAspect NOTIFY compareChanged)
-
- // --- live performance --------------------------------------------------
- // Submit FPS only. There is deliberately no "display FPS": the user asked
- // for it to be left out (MSI Afterburner reads the real panel rate, and a
- // number we cannot measure must not be shown as if we measured it).
- Q_PROPERTY(double submitFps READ submitFps NOTIFY snapshotChanged)
- Q_PROPERTY(bool submitFpsKnown READ submitFpsKnown NOTIFY snapshotChanged)
- Q_PROPERTY(double lateMs READ lateMs NOTIFY snapshotChanged)
- Q_PROPERTY(double lateP95Ms READ lateP95Ms NOTIFY snapshotChanged)
- Q_PROPERTY(QString metricsSummary READ metricsSummary NOTIFY snapshotChanged)
- Q_PROPERTY(bool nrActive READ nrActive NOTIFY snapshotChanged)
- Q_PROPERTY(bool nrAutoActive READ nrAutoActive NOTIFY snapshotChanged)
- Q_PROPERTY(int nrAutoPercent READ nrAutoPercent NOTIFY snapshotChanged)
- Q_PROPERTY(QString nrAutoStatus READ nrAutoStatus NOTIFY snapshotChanged)
- Q_PROPERTY(bool srActive READ srActive NOTIFY snapshotChanged)
- Q_PROPERTY(bool fgActive READ fgActive NOTIFY snapshotChanged)
- Q_PROPERTY(bool captureRecovering READ captureRecovering NOTIFY snapshotChanged)
- Q_PROPERTY(double captureFps READ captureFps NOTIFY snapshotChanged)
- Q_PROPERTY(double captureDropped READ captureDropped NOTIFY snapshotChanged)
- Q_PROPERTY(QString backendWarning READ backendWarning NOTIFY snapshotChanged)
-
- // --- settings (what the UI shows) --------------------------------------
- Q_PROPERTY(bool nrEnabled READ nrEnabled WRITE setNrEnabled NOTIFY settingsChanged)
- Q_PROPERTY(int selectedNrLayer READ selectedNrLayer WRITE setSelectedNrLayer NOTIFY settingsChanged)
- Q_PROPERTY(QVariantList nrLayers READ nrLayers NOTIFY nrLayersChanged)
- // List mode's NR master switch: true while any NR layer is on.
- Q_PROPERTY(bool nrAnyEnabled READ nrAnyEnabled NOTIFY nrLayersChanged)
- Q_PROPERTY(bool srEnabled READ srEnabled WRITE setSrEnabled NOTIFY settingsChanged)
- Q_PROPERTY(int fgMultiplier READ fgMultiplier WRITE setFgMultiplier NOTIFY settingsChanged)
- Q_PROPERTY(bool lowLatency READ lowLatency WRITE setLowLatency NOTIFY settingsChanged)
- Q_PROPERTY(bool nrTemporal READ nrTemporal WRITE setNrTemporal NOTIFY settingsChanged)
- Q_PROPERTY(double nrHoldStrength READ nrHoldStrength WRITE setNrHoldStrength NOTIFY settingsChanged)
- Q_PROPERTY(double nrHoldTolerance READ nrHoldTolerance WRITE setNrHoldTolerance NOTIFY settingsChanged)
- Q_PROPERTY(bool videoHdr READ videoHdr WRITE setVideoHdr NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap videoHdrParams READ videoHdrParams NOTIFY videoHdrParamsChanged)
- // Custom: static HDR output tuning (globals, every field live).
- Q_PROPERTY(bool hdrCurve READ hdrCurve WRITE setHdrCurve NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap hdrCurveParams READ hdrCurveParams NOTIFY settingsChanged)
- Q_PROPERTY(bool hdrMetadataEnabled READ hdrMetadataEnabled WRITE setHdrMetadataEnabled NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap hdrMetadataParams READ hdrMetadataParams NOTIFY settingsChanged)
- // One-click tuning presets (see hdrTuningPresets); "custom" when the sliders
- // no longer match any of them.
- Q_PROPERTY(QString hdrTuningPreset READ hdrTuningPreset NOTIFY settingsChanged)
- // One dial for the whole curve (0..200%, 100 = the preset as written) and the
- // display's own peak brightness (0 = ask the system). Both live next to the
- // baseline, so moving them never leaves the selected preset.
- Q_PROPERTY(int hdrCurveStrength READ hdrCurveStrength WRITE setHdrCurveStrength NOTIFY settingsChanged)
- Q_PROPERTY(int hdrDisplayPeakNits READ hdrDisplayPeakNits WRITE setHdrDisplayPeakNits NOTIFY settingsChanged)
- // What the system reports about the display, for the peak field's reset button.
- Q_PROPERTY(QVariantMap hdrDisplayInfo READ hdrDisplayInfo NOTIFY snapshotChanged)
- // Custom: the source's own HDR numbers (container metadata), the one-click
- // recommendation derived from them, and the warning that compares the film's
- // peak with what the curve will actually cap.
- Q_PROPERTY(QVariantMap hdrSourceInfo READ hdrSourceInfo NOTIFY snapshotChanged)
- Q_PROPERTY(QVariantMap hdrRecommendation READ hdrRecommendation NOTIFY snapshotChanged)
- // Custom: whether the running source is SDR. Used only to word the recommendation
- // row (an SDR source has no HDR metadata, so "no metadata" would be misleading).
- Q_PROPERTY(bool sourceIsSdr READ sourceIsSdr NOTIFY snapshotChanged)
- Q_PROPERTY(QVariantMap hdrPeakWarning READ hdrPeakWarning NOTIFY snapshotChanged)
- // Custom: one remembered curve per display device, so moving the window to the
- // projector or the TV applies the settings tuned on that device.
- Q_PROPERTY(int hdrDisplayProfileCount READ hdrDisplayProfileCount NOTIFY preferencesChanged)
- // Custom: which preset system the panel shows. "legacy" is the original seven
- // presets, "axes" is content x environment. A UI choice kept in preferences:
- // both modes write the very same curve, so the saved session is unaffected.
- Q_PROPERTY(QString hdrPresetMode READ hdrPresetMode WRITE setHdrPresetMode NOTIFY preferencesChanged)
- // Which preset system established the curve in force. Kept apart from hdrPresetMode
- // on purpose: switching the panel view must not let the other system claim the curve,
- // so only an actual apply moves this.
- Q_PROPERTY(QString hdrAppliedFrom READ hdrAppliedFrom WRITE setHdrAppliedFrom NOTIFY preferencesChanged)
- Q_PROPERTY(QVariantMap hdrAxes READ hdrAxes NOTIFY preferencesChanged)
- Q_PROPERTY(QVariantMap hdrAxesMatch READ hdrAxesMatch NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap hdrDials READ hdrDials NOTIFY settingsChanged)
- // Custom: the curve sampled by the same function the shader runs, for the panel
- // graph (see hdrCurveLuminance).
- Q_PROPERTY(QVariantMap hdrCurveGraph READ hdrCurveGraph NOTIFY settingsChanged)
- // Custom: the live coverage measured by the presenter's probe (see the panel's
- // live meter). Invalid until a probe has completed.
- Q_PROPERTY(QVariantMap hdrCurveCoverage READ hdrCurveCoverage NOTIFY snapshotChanged)
- Q_PROPERTY(bool hdrTitleMemory READ hdrTitleMemory WRITE setHdrTitleMemory NOTIFY preferencesChanged)
- Q_PROPERTY(bool hdrAutoRecommend READ hdrAutoRecommend WRITE setHdrAutoRecommend NOTIFY preferencesChanged)
- Q_PROPERTY(int hdrTitleCount READ hdrTitleCount NOTIFY preferencesChanged)
- Q_PROPERTY(int nrStyle READ nrStyle WRITE setNrStyle NOTIFY settingsChanged)
- Q_PROPERTY(double nrIntensity READ nrIntensity WRITE setNrIntensity NOTIFY settingsChanged)
- Q_PROPERTY(double nrTone READ nrTone WRITE setNrTone NOTIFY settingsChanged)
- Q_PROPERTY(double nrStructure READ nrStructure WRITE setNrStructure NOTIFY settingsChanged)
- Q_PROPERTY(double nrSkin READ nrSkin WRITE setNrSkin NOTIFY settingsChanged)
- Q_PROPERTY(bool nrAutoMask READ nrAutoMask WRITE setNrAutoMask NOTIFY settingsChanged)
- Q_PROPERTY(bool nrUiCorrection READ nrUiCorrection WRITE setNrUiCorrection NOTIFY settingsChanged)
- Q_PROPERTY(int videoSrQuality READ videoSrQuality WRITE setVideoSrQuality NOTIFY settingsChanged)
- Q_PROPERTY(int dlssSrModel READ dlssSrModel WRITE setDlssSrModel NOTIFY settingsChanged)
- Q_PROPERTY(QVariantList dlssSrModelChoices READ dlssSrModelChoices CONSTANT)
- Q_PROPERTY(bool protectionEnabled READ protectionEnabled WRITE setProtectionEnabled NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap protectionState READ protectionState NOTIFY protectionChanged)
- Q_PROPERTY(bool colorEnabled READ colorEnabled WRITE setColorEnabled NOTIFY settingsChanged)
- Q_PROPERTY(int audioOffsetMs READ audioOffsetMs WRITE setAudioOffsetMs NOTIFY settingsChanged)
- // 1.4.4 声音补偿: 0 自动(软件估算) / 1 手动 / 2 关闭; live sources only.
- Q_PROPERTY(int audioSyncMode READ audioSyncMode WRITE setAudioSyncMode NOTIFY settingsChanged)
- Q_PROPERTY(bool audioSyncLive READ audioSyncLive NOTIFY snapshotChanged)
- Q_PROPERTY(double audioCompensationMs READ audioCompensationMs NOTIFY snapshotChanged)
- // Performance orbs and the status light (1.4.4 live status dashboard).
- Q_PROPERTY(double gpuUtilization READ gpuUtilization NOTIFY perfChanged)
- Q_PROPERTY(bool gpuUtilizationKnown READ gpuUtilizationKnown NOTIFY perfChanged)
- Q_PROPERTY(QString runStatus READ runStatus NOTIFY perfChanged)
- Q_PROPERTY(QString runStatusLevel READ runStatusLevel NOTIFY perfChanged)
- Q_PROPERTY(QString runStatusDetail READ runStatusDetail NOTIFY perfChanged)
- // Live FG output hint ("当前帧率…超出屏幕刷新率,建议降至…"), empty when the
- // output fits; a suggestion only, the multiplier is never changed.
- Q_PROPERTY(QString fgDisplayHint READ fgDisplayHint NOTIFY perfChanged)
- Q_PROPERTY(QStringList runOptions READ runOptions NOTIFY perfChanged)
- Q_PROPERTY(double effectiveOutputFps READ effectiveOutputFps NOTIFY perfChanged)
- // Achieved output rate / effective policy target; -1 while unknown.
- Q_PROPERTY(double outputRateRatio READ outputRateRatio NOTIFY perfChanged)
- // Frame interval history (ms, newest last) for the frame-time line.
- Q_PROPERTY(QVariantList frameTimes READ frameTimes NOTIFY perfChanged)
- // 补帧 / 光流 (design gap A1-A5): motion estimation quality 0 性能 1 平衡 2 质量,
- // AMD half-resolution flow, content cadence (engine::ContentRate order).
- Q_PROPERTY(int flowQuality READ flowQuality WRITE setFlowQuality NOTIFY settingsChanged)
- Q_PROPERTY(bool amdFlowHalf READ amdFlowHalf WRITE setAmdFlowHalf NOTIFY settingsChanged)
- // 边缘神盾: refined optical-flow motion for XeSS (EnhancementSettings::fgMotionRefine).
- Q_PROPERTY(bool edgeAegis READ edgeAegis WRITE setEdgeAegis NOTIFY settingsChanged)
- // DLSS 性能模式: NVIDIA's DLSS-G performance mode (EnhancementSettings::dlssgLite);
- // available when the package carries its runtime (runtime/experimental/dlssg-lite).
- Q_PROPERTY(bool dlssgLite READ dlssgLite WRITE setDlssgLite NOTIFY settingsChanged)
- Q_PROPERTY(bool dlssgLiteAvailable READ dlssgLiteAvailable CONSTANT)
- Q_PROPERTY(QString dlssgLiteHint READ dlssgLiteHint NOTIFY snapshotChanged)
- Q_PROPERTY(int contentRate READ contentRate WRITE setContentRate NOTIFY settingsChanged)
- Q_PROPERTY(int hdrOutputMode READ hdrOutputMode WRITE setHdrOutputMode NOTIFY settingsChanged)
- Q_PROPERTY(int fgMotionSource READ fgMotionSource WRITE setFgMotionSource NOTIFY settingsChanged)
- Q_PROPERTY(int srMotionSource READ srMotionSource WRITE setSrMotionSource NOTIFY settingsChanged)
- Q_PROPERTY(int nrMotionSource READ nrMotionSource WRITE setNrMotionSource NOTIFY settingsChanged)
- // Presentation: display sync 0 允许撕裂 1 垂直同步 2 自动; output cap 0 关闭
- // 1 跟随显示器 2 自定义 (+ fps). Owned by XeSS when presentationOwned.
- Q_PROPERTY(int displaySync READ displaySync WRITE setDisplaySync NOTIFY presentationChanged)
- // 可变刷新 switch (persisted with the presentation settings) and the
- // presenting monitor's VRR level: 0 unknown, 1 the monitor cannot do VRR
- // (switch greyed), 2 it can but the driver setting is off, 3 possible,
- // 4 active; vrrHint explains it beside the switch.
- Q_PROPERTY(bool variableRefresh READ variableRefresh WRITE setVariableRefresh NOTIFY presentationChanged)
- Q_PROPERTY(int vrrState READ vrrState NOTIFY perfChanged)
- Q_PROPERTY(QString vrrHint READ vrrHint NOTIFY perfChanged)
- Q_PROPERTY(int outputRateMode READ outputRateMode WRITE setOutputRateMode NOTIFY presentationChanged)
- Q_PROPERTY(double outputCustomFps READ outputCustomFps WRITE setOutputCustomFps NOTIFY presentationChanged)
- Q_PROPERTY(bool presentationOwned READ presentationOwned NOTIFY snapshotChanged)
- Q_PROPERTY(QString presentationStatus READ presentationStatus NOTIFY snapshotChanged)
- // 显示: compare 0 增强 1 原画 2 分屏; base false 输入原画 / true 增强前底图;
- // split 0..1 of the picture. Aspect 0 适应 1 原始 2 填充.
- Q_PROPERTY(int compareMode READ compareMode WRITE setCompareMode NOTIFY compareChanged)
- Q_PROPERTY(bool compareBase READ compareBase WRITE setCompareBase NOTIFY compareChanged)
- Q_PROPERTY(double compareSplit READ compareSplit NOTIFY compareChanged)
- Q_PROPERTY(int aspectMode READ aspectMode WRITE setAspectMode NOTIFY compareChanged)
- // Measured audio/video skew of a live source (ms); unknown otherwise.
- Q_PROPERTY(double audioSkewMs READ audioSkewMs NOTIFY snapshotChanged)
- Q_PROPERTY(bool audioSkewKnown READ audioSkewKnown NOTIFY snapshotChanged)
- // Export: an estimate of the output size ("" when there is nothing to base it on).
- Q_PROPERTY(QString exportSizeEstimate READ exportSizeEstimate NOTIFY exportChanged)
- // 继续上次: {kind: capture|ps5|screen, label, summary}; empty when none.
- Q_PROPERTY(QVariantMap lastSource READ lastSource NOTIFY preferencesChanged)
- // P5 (2026-09-29): what is playing, for the page headers.
- // sourceKind: "" | file | image | capture | ps5 | screen.
- Q_PROPERTY(QString sourceKind READ sourceKind NOTIFY snapshotChanged)
- Q_PROPERTY(QString sourceTitle READ sourceTitle NOTIFY snapshotChanged)
- // "1080p60 · YUY2 · SDR": reported values only.
- Q_PROPERTY(QString sourceFormatText READ sourceFormatText NOTIFY snapshotChanged)
- Q_PROPERTY(QString sourceRateText READ sourceRateText NOTIFY snapshotChanged)
- // 调色 undo / redo / copy / paste for the selected colour layer.
- Q_PROPERTY(bool colourCanUndo READ colourCanUndo NOTIFY settingsChanged)
- Q_PROPERTY(bool colourCanRedo READ colourCanRedo NOTIFY settingsChanged)
- Q_PROPERTY(bool colourCanPaste READ colourCanPaste NOTIFY settingsChanged)
- // Export queue rows: [{name, input, output, state, progress, note, current}].
- Q_PROPERTY(QVariantList exportItems READ exportItems NOTIFY exportChanged)
- Q_PROPERTY(QObject* exportQueueModel READ exportQueueModel CONSTANT)
- Q_PROPERTY(int exportContainer READ exportContainer WRITE setExportContainer NOTIFY exportChanged)
- Q_PROPERTY(int exportReadyCount READ exportReadyCount NOTIFY exportChanged)
- Q_PROPERTY(QVariantList exportTracks READ exportTracks NOTIFY exportChanged)
- Q_PROPERTY(int exportAudioPolicy READ exportAudioPolicy NOTIFY exportChanged)
- Q_PROPERTY(int exportSubtitlePolicy READ exportSubtitlePolicy NOTIFY exportChanged)
- Q_PROPERTY(bool exportSelectionEditable READ exportSelectionEditable NOTIFY exportChanged)
- Q_PROPERTY(bool exportCompletionSound READ exportCompletionSound WRITE setExportCompletionSound NOTIFY exportChanged)
- // Capture dialog preview: the session's poster still (the engine's own
- // first-frame poster), as a data URL; "" when the session has none. Never a
- // periodic readback: that would stall the live capture path.
- Q_PROPERTY(QString capturePreviewUrl READ capturePreviewUrl NOTIFY snapshotChanged)
- Q_PROPERTY(QString captureSignalText READ captureSignalText NOTIFY snapshotChanged)
- Q_PROPERTY(QString captureSignalLevel READ captureSignalLevel NOTIFY snapshotChanged)
- // A live source (PS5 / capture) that is still opening: what the picture area
- // says meanwhile ("" once it plays or when nothing is opening).
- Q_PROPERTY(QString liveOpeningText READ liveOpeningText NOTIFY snapshotChanged)
- // Protection regions as the engine holds them: [{left,top,right,bottom,ellipse}].
- Q_PROPERTY(QVariantList protectionRegions READ protectionRegions NOTIFY protectionChanged)
- Q_PROPERTY(QString protectionDrawShape READ protectionDrawShape NOTIFY protectionDrawChanged)
- Q_PROPERTY(double volume READ volume WRITE setVolume NOTIFY snapshotChanged)
- Q_PROPERTY(bool muted READ muted WRITE setMuted NOTIFY snapshotChanged)
- Q_PROPERTY(double playbackSpeed READ playbackSpeed NOTIFY snapshotChanged)
- Q_PROPERTY(double playbackRate READ playbackRate WRITE setPlaybackRate NOTIFY snapshotChanged)
- Q_PROPERTY(double minimumPlaybackRate READ minimumPlaybackRate CONSTANT)
- Q_PROPERTY(double maximumPlaybackRate READ maximumPlaybackRate CONSTANT)
- // True while the engine has not yet applied what the UI asked for. The UI
- // shows the pending value and marks it, rather than lying about the state.
- Q_PROPERTY(bool applying READ applying NOTIFY snapshotChanged)
-
- // --- effect chain ------------------------------------------------------
- // The chain as data. List mode renders it; node mode renders the same
- // objects with positions. Both edit one chain, so switching modes never
- // loses work.
- Q_PROPERTY(QVariantList chain READ chain NOTIFY chainChanged)
- Q_PROPERTY(QVariantList nodeConnections READ nodeConnections NOTIFY chainChanged)
- Q_PROPERTY(QVariantList effectCatalog READ effectCatalog NOTIFY chainChanged)
- Q_PROPERTY(QString chainError READ chainError NOTIFY chainChanged)
- Q_PROPERTY(bool chainValid READ chainValid NOTIFY chainChanged)
- Q_PROPERTY(int nodeMode READ nodeMode WRITE setNodeMode NOTIFY chainChanged)
-
- // --- dialogs the UI opens ----------------------------------------------
- Q_PROPERTY(QVariantList recentFiles READ recentFiles NOTIFY recentFilesChanged)
- Q_PROPERTY(QObject* playlist READ playlist CONSTANT)
- Q_PROPERTY(QVariantList presets READ presets NOTIFY presetsChanged)
- // The name of the preset currently in effect, or "自定义" when the
- // settings no longer match any stored preset. Derived, never guessed.
- Q_PROPERTY(QString currentPresetName READ currentPresetName NOTIFY settingsChanged)
- Q_PROPERTY(QVariantList audioTracks READ audioTracks NOTIFY snapshotChanged)
- Q_PROPERTY(int selectedAudioTrack READ selectedAudioTrack WRITE setSelectedAudioTrack NOTIFY snapshotChanged)
- // The last capture session the user actually ran, for the home page's
- // "continue" row. Absent until one exists: nothing is invented.
- Q_PROPERTY(bool hasCaptureSession READ hasCaptureSession NOTIFY snapshotChanged)
- Q_PROPERTY(QString captureSessionSummary READ captureSessionSummary NOTIFY snapshotChanged)
- Q_PROPERTY(QString colorStatus READ colorStatus NOTIFY snapshotChanged)
- Q_PROPERTY(QString videoHdrStatus READ videoHdrStatus NOTIFY snapshotChanged)
-
- // --- export ------------------------------------------------------------
- // Backed by the real ExportJobManager: state, progress and encoded counts come
- // from its snapshot, not from a counter this file keeps.
- Q_PROPERTY(bool exportRunning READ exportRunning NOTIFY exportChanged)
- Q_PROPERTY(bool exportPaused READ exportPaused NOTIFY exportChanged)
- Q_PROPERTY(double exportProgress READ exportProgress NOTIFY exportChanged)
- Q_PROPERTY(QString exportStatus READ exportStatus NOTIFY exportChanged)
- Q_PROPERTY(QString exportTarget READ exportTarget NOTIFY exportChanged)
- Q_PROPERTY(int exportEncoded READ exportEncoded NOTIFY exportChanged)
- Q_PROPERTY(int exportGenerated READ exportGenerated NOTIFY exportChanged)
- Q_PROPERTY(bool exportHevc READ exportHevc WRITE setExportHevc NOTIFY exportChanged)
- Q_PROPERTY(int exportBitrateMbps READ exportBitrateMbps WRITE setExportBitrateMbps NOTIFY exportChanged)
- Q_PROPERTY(int exportRateControl READ exportRateControl WRITE setExportRateControl NOTIFY exportChanged)
- Q_PROPERTY(double exportEtaSeconds READ exportEtaSeconds NOTIFY exportChanged)
- Q_PROPERTY(int exportQueueCount READ exportQueueCount NOTIFY exportChanged)
- // Queue items that could not start, and why the latest one failed.
- Q_PROPERTY(int exportQueueFailures READ exportQueueFailures NOTIFY exportChanged)
- Q_PROPERTY(QString exportQueueFailure READ exportQueueFailure NOTIFY exportChanged)
- // Image export (P4-b): each image goes through the real player chain (open,
- // first processed frame, the engine's own frame save), one after another.
- Q_PROPERTY(bool imageBatchActive READ imageBatchActive NOTIFY imageBatchChanged)
- Q_PROPERTY(int imageBatchDone READ imageBatchDone NOTIFY imageBatchChanged)
- Q_PROPERTY(int imageBatchTotal READ imageBatchTotal NOTIFY imageBatchChanged)
- Q_PROPERTY(int imageBatchFailures READ imageBatchFailures NOTIFY imageBatchChanged)
- Q_PROPERTY(QString imageBatchStatus READ imageBatchStatus NOTIFY imageBatchChanged)
- // The preset the export will use. The design requires export to select a
- // preset (list or node) rather than assembling effects separately.
- Q_PROPERTY(QString exportPresetName READ exportPresetName NOTIFY exportChanged)
- Q_PROPERTY(int exportSrTargetIndex READ exportSrTargetIndex WRITE setExportSrTargetIndex NOTIFY exportChanged)
- Q_PROPERTY(double exportTrimStart READ exportTrimStart WRITE setExportTrimStart NOTIFY exportChanged)
- Q_PROPERTY(double exportTrimEnd READ exportTrimEnd WRITE setExportTrimEnd NOTIFY exportChanged)
- // The super-resolution target, which is what actually decides the export size
- // in this engine (0 = source, then Qhd/Uhd4K/Uhd8K). A separate "export
- // resolution" field does not exist, so the UI exposes the real control instead
- // of a picker that would change nothing.
- Q_PROPERTY(int srTargetIndex READ srTargetIndex WRITE setSrTargetIndex NOTIFY settingsChanged)
- Q_PROPERTY(QString srTargetLabel READ srTargetLabel NOTIFY settingsChanged)
- // Presets as a picker model: one preset concept, list and node together.
- Q_PROPERTY(QVariantList presetChoices READ presetChoices NOTIFY presetsChanged)
- // The design's save flow lists what the preset will contain before naming it:
- // each part, its current summary, and whether it is being saved.
- Q_PROPERTY(QVariantList presetSaveParts READ presetSaveParts NOTIFY chainChanged)
- // Which preset the app opens with, as the manage page's "set default" uses.
- Q_PROPERTY(int defaultPresetIndex READ defaultPresetIndex NOTIFY presetsChanged)
-
- // --- colour page -------------------------------------------------------
- // The engine's ColorSettings carries a large parameter set. Rather than one
- // property per field, the page reads and writes them by name through one pair
- // of calls, and colourParameters() reports the catalogue the UI builds its
- // controls from - so a control can only exist for a parameter that is real.
- Q_PROPERTY(QVariantList colourParameters READ colourParameters NOTIFY colourParamsChanged)
- // The same catalogue grouped by section, so the page can nest its collapsible
- // sub-panels without re-grouping in QML.
- Q_PROPERTY(QVariantList colourGroups READ colourGroups NOTIFY colourParamsChanged)
- Q_PROPERTY(int selectedColourLayer READ selectedColourLayer WRITE setSelectedColourLayer NOTIFY settingsChanged)
- Q_PROPERTY(QVariantMap colourState READ colourState NOTIFY settingsChanged)
- // Imported .cube files (ColorLutStore, the folder the engine resolves) and
- // the saved colour looks (ColorLookStore): a colour preset is one Color
- // node's settings, separate from the whole-chain presets.
- Q_PROPERTY(QVariantList lutLibrary READ lutLibrary NOTIFY colourLibraryChanged)
- Q_PROPERTY(QVariantList colourLooks READ colourLooks NOTIFY colourLibraryChanged)
-
-public:
- QObject* playlist() const;
- Q_INVOKABLE void showPlaylist();
- Q_INVOKABLE void addPlaylistFilesDialog();
- Q_INVOKABLE void addPlaylistFolderDialog();
- Q_INVOKABLE void openDroppedUrls(const QList<QUrl>& urls);
- bool amdNrGpu() const;
- QVariantMap effectCapabilities() const;
- QVariantList nrRuntimeChoices() const;
- QVariantList srBackendChoices() const;
- Q_INVOKABLE QVariantMap effectAvailability(const QString& id) const;
- // `engine` must outlive the bridge. `dataDirectory` holds ui-session.v1 and
- // the preset library; empty means the default user data directory.
- QmlPlayerBridge(engine::EngineController& engine, std::filesystem::path dataDirectory = {},
- QObject* parent = nullptr);
- ~QmlPlayerBridge() override;
-
- QString outputSummary() const;
- double displayFps() const;
- bool displayFpsKnown() const;
- double queuedFrames() const;
- bool queuedFramesKnown() const;
- int skippedFrames() const;
- QString flowBackend() const;
- int opticalFlowChoice() const;
- Q_INVOKABLE bool setOpticalFlowChoice(int backend);
- QVariantList stageTimings() const;
- QVariantMap nodeTimings() const;
- QVariantMap nodeAnchors() const;
- Q_INVOKABLE bool setNodeAnchor(const QString& key, double x, double y);
- Q_INVOKABLE QVariantMap colourStateAt(int index) const;
- double stageBudgetMs() const;
- double chainTotalMs() const;
- bool chainTotalMsKnown() const;
- double scheduleP95Ms() const;
-
- QString fgBackendName() const;
- QVariantList fgBackendChoices() const;
- QString fgProviderText() const;
- void setFgBackendName(const QString& value);
- int vfgQuality() const;
- void setVfgQuality(int value);
- int fgMaxMultiplier() const;
- bool fgEnabled() const;
- void setFgEnabled(bool enabled);
- QString submitFpsLabel() const;
- QVariantList fgMultiplierChoices() const;
- bool fgStrict() const;
- void setFgStrict(bool value);
- bool fgLowQueue() const;
- void setFgLowQueue(bool value);
-
- double colorExposure() const;
- void setColorExposure(double v);
- double colorContrast() const;
- void setColorContrast(double v);
- double colorSaturation() const;
- void setColorSaturation(double v);
- double colorTemperature() const;
- void setColorTemperature(double v);
-
- bool reducedMotion() const;
- int uiDeviceGeneration() const;
- // main.cpp: a window's scene graph came back after its graphics device was lost.
- void noteUiDeviceRecreated(const QString& window);
- void setReducedMotion(bool value);
- QString defaultPage() const;
- void setDefaultPage(const QString& value);
- QString defaultPageLabel() const;
- QString initialPage() const;
- void setInitialPage(const QString& value);
- QString currentPage() const;
- void setCurrentPage(const QString& value);
- QString remotePlayState() const;
- QVariantList componentList() const;
- QVariantList readComponentList() const;
- QVariantList captureDevices() const;
- QString captureDeviceId() const;
- void setCaptureDeviceId(const QString& value);
- QString captureDeviceLabel() const;
- bool captureBlackmagicDevice() const;
- bool captureForceSdr() const;
- bool captureMagewellDevice() const;
- QString captureMagewellStatus() const;
- void setCaptureForceSdr(bool value);
- bool captureFlipVertical() const;
- void setCaptureFlipVertical(bool value);
- QVariantList captureFormats() const;
- QString captureFormatKey() const;
- QString captureFormatLabel() const;
- bool captureFormatCostHint() const;
- void setCaptureFormatKey(const QString& key);
- QVariantList captureResolutionOptions() const;
- QString captureResolutionId() const;
- void setCaptureResolutionId(const QString& id);
- QVariantList captureFrameRateOptions() const;
- int captureHiddenFrameRates() const;
- QString captureFrameRateId() const;
- void setCaptureFrameRateId(const QString& id);
- QVariantList capturePixelOptions() const;
- QString capturePixelId() const;
- void setCapturePixelId(const QString& id);
- QVariantList captureAudioInputs() const;
- int captureAudioChoice() const;
- void setCaptureAudioChoice(int choice);
- int captureColorSpace() const;
- void setCaptureColorSpace(int value);
- int captureColorRange() const;
- void setCaptureColorRange(int value);
- double captureRequestedFps() const;
- void setCaptureRequestedFps(double value);
- int captureAudioIngress() const;
- void setCaptureAudioIngress(int value);
- int captureBufferMode() const;
- void setCaptureBufferMode(int value);
- bool captureQueryBusy() const;
- QString captureStatus() const;
- QVariantMap screenOptions() const;
- // Declared here, in the public section: a Q_INVOKABLE above `public:` is
- // private to QML ("is not a function").
- Q_INVOKABLE void refreshCaptureTargets();
- Q_INVOKABLE void refreshCaptureDevices();
- Q_INVOKABLE bool openCaptureDriverSettings(bool inputSelector = false);
- Q_INVOKABLE bool startCaptureSession();
- Q_INVOKABLE bool setScreenOption(const QString& key, const QVariant& value);
- Q_INVOKABLE bool startScreenCapture();
- bool gameMode() const;
- bool passthroughActive() const;
- // The Home panel is open: the picture stays on top but takes the input back.
- Q_INVOKABLE void setGamePanelOpen(bool open);
- // Index into Qt.application.screens of the monitor 游戏模式 covers, or -1.
- Q_INVOKABLE int gameModeScreenIndex() const;
- // Test only (VEYRA_TEST_UI_BLOCK): blocks the GUI thread to exercise the hang release.
- Q_INVOKABLE void testBlockUi(int ms);
-
- QVariantList screenTargets() const;
- QString screenTargetId() const;
- void setScreenTargetId(const QString& value);
- QString screenTargetLabel() const;
-
- QVariantList subtitleTracks() const;
- int subtitlePrimary() const;
- void setSubtitlePrimary(int index);
- int subtitleSecondary() const;
- void setSubtitleSecondary(int index);
- int subtitleOffsetMs() const;
- void setSubtitleOffsetMs(int ms);
- QString subtitleStatus() const;
- bool subtitleAligning() const;
- QString subtitleText() const;
- int subtitleBottomInset() const;
- void setSubtitleBottomInset(int value);
- Q_INVOKABLE void loadSubtitleDialog();
- Q_INVOKABLE bool loadSubtitleFile(const QString& path);
- Q_INVOKABLE void nudgeSubtitle(int deltaMs);
- Q_INVOKABLE void cycleSubtitle(bool secondary);
- Q_INVOKABLE void toggleSubtitles();
- Q_INVOKABLE void autoAlignSubtitle();
-
- QVariantMap ps5() const;
- QVariantList ps5Profiles() const;
- QVariantMap ps5Control() const;
- QObject* moonlightModel() const;
- bool moonlightCaptured() const;
- bool moonlightStatsVisible() const;
- void setMoonlightStatsVisible(bool visible);
- Q_INVOKABLE void openMoonlightDialog();
- Q_INVOKABLE void moonlightCapture(bool on);
- Q_INVOKABLE void moonlightDisconnect();
- QObject* xboxModel() const;
- Q_INVOKABLE void openXboxDialog();
- Q_INVOKABLE void xboxDisconnect();
- Q_INVOKABLE void ps5Load();
- Q_INVOKABLE bool ps5Set(const QString& key, const QVariant& value);
- Q_INVOKABLE void ps5SelectProfile(const QString& id);
- Q_INVOKABLE void ps5Scan();
- Q_INVOKABLE void ps5Pair(const QString& pin);
- Q_INVOKABLE bool ps5Connect();
- Q_INVOKABLE void ps5Wake();
- Q_INVOKABLE void ps5Forget();
- Q_INVOKABLE void ps5PsnLogin();
- Q_INVOKABLE void ps5PsnComplete();
- Q_INVOKABLE void ps5PsnForget();
- Q_INVOKABLE void ps5SendLoginPin(const QString& pin);
- Q_INVOKABLE void ps5Cancel();
- Q_INVOKABLE void ps5Calibrate();
- // key: enabled | background (saved preferences ps5CaptureControl / ps5ControlBackground).
- Q_INVOKABLE void ps5ControlSet(const QString& key, const QVariant& value);
- Q_INVOKABLE void ps5ControlRestart();
- QString remotePlayHost() const;
- void setRemotePlayHost(const QString& value);
- QString remotePlayPin() const;
- void setRemotePlayPin(const QString& value);
-
- QVariantMap preferences() const;
- QString gpuPriorityStatus() const;
- bool enhancementPrewarmAvailable() const;
- QString uiLanguage() const;
- // main.cpp hands over the QML engine so a language change retranslates the scene.
- void setQmlEngine(QQmlEngine* engine);
- Q_INVOKABLE void rememberWindowSize(int width, int height);
- Q_INVOKABLE bool setPreference(const QString& key, const QVariant& value);
- // Available area (taskbar excluded) of the screen holding a point, or of the screen the
- // pointer is on at start. QML's Screen.desktopAvailable* span the whole virtual desktop,
- // which centred the window across two of three monitors (field report 2026-10-01).
- Q_INVOKABLE QRect screenAvailableAt(int x, int y) const;
- Q_INVOKABLE QRect launchScreenAvailable() const;
- QString screenshotDirectory() const;
- QString lastScreenshot() const;
- QString dataDirectory() const;
- QString logFile() const;
- Q_INVOKABLE void chooseScreenshotDirectory();
- QVariantMap shortcuts() const;
- Q_INVOKABLE bool setShortcut(const QString& action, const QString& sequence);
- Q_INVOKABLE void resetShortcuts();
- int uiScaleActive() const;
- bool obsGameCaptureActive() const;
- bool overlayCompatActive() const;
- // RivaTuner Statistics Server is running now (gfx::rivaTunerRunning).
- Q_INVOKABLE bool rivaTunerRunning() const;
- // An overlay that 监控软件兼容 reacts to is running now: RTSS, NVIDIA's in-game overlay
- // or GamePP (gfx/PresentationHooks.h).
- Q_INVOKABLE bool presentationOverlayRunning() const;
- Q_INVOKABLE void openFeedbackPage();
- Q_INVOKABLE void openReleasesPage();
- QObject* updates() const;
- QVariantList audioDevices() const;
- QVariantList gpuMonitorChoices() const;
- QString computeGpuHint() const;
- QString gpuMonitorName() const;
- QString audioOutputStatus() const;
- bool audioOutputFallback() const;
- Q_INVOKABLE void refreshAudioDevices();
- Q_INVOKABLE void openScreenshotDirectory();
- Q_INVOKABLE void openLogFolder();
- Q_INVOKABLE void openDataFolder();
- QString appName() const;
- QString version() const;
-
- // --- property accessors (Q_PROPERTY READ targets) -----------------------
- // Split into read-only and read-write so a reviewer can see at a glance
- // which values the UI can command and which it can only display.
- QString statusText() const;
- bool running() const;
- bool paused() const;
- bool failed() const;
- bool isImage() const;
- bool isCapture() const;
- bool hasSource() const;
- bool openingSource() const;
- double position() const;
- double duration() const;
- double progress() const;
- QString positionText() const;
- QString durationText() const;
-
- QString sourceName() const;
- int thumbnailGeneration() const;
- QString sourceSummary() const;
- int sourceWidth() const;
- int sourceHeight() const;
- double sourceFps() const;
- int sourceRotation() const;
- double sourceAspect() const;
- double previewAspect() const;
-
- double submitFps() const;
- bool submitFpsKnown() const;
- double lateMs() const;
- double lateP95Ms() const;
- QString metricsSummary() const;
- bool nrActive() const;
- bool nrAutoActive() const;
- int nrAutoPercent() const;
- QString nrAutoStatus() const;
- bool srActive() const;
- bool fgActive() const;
- bool captureRecovering() const;
- double captureFps() const;
- double captureDropped() const;
- QString backendWarning() const;
-
- bool applying() const;
- double volume() const;
- void setVolume(double value);
- bool muted() const;
- void setMuted(bool value);
- double playbackSpeed() const;
- double playbackRate() const;
- double minimumPlaybackRate() const;
- double maximumPlaybackRate() const;
- void setPlaybackRate(double rate);
-
- bool nrEnabled() const;
- int selectedNrLayer() const;
- void setSelectedNrLayer(int index);
- void setNrEnabled(bool value);
- bool srEnabled() const;
- void setSrEnabled(bool value);
- int fgMultiplier() const;
- void setFgMultiplier(int value);
- bool lowLatency() const;
- void setLowLatency(bool value);
- bool nrTemporal() const;
- void setNrTemporal(bool value);
- // Stage-5 output stabiliser (anti-flicker). Global rather than per-node:
- // it runs once, after the whole NR stack and the residual composite.
- double nrHoldStrength() const;
- void setNrHoldStrength(double value);
- double nrHoldTolerance() const;
- void setNrHoldTolerance(double value);
- bool videoHdr() const;
- void setVideoHdr(bool value);
- bool hdrCurve() const;
- void setHdrCurve(bool enabled);
- QVariantMap hdrCurveParams() const;
- Q_INVOKABLE bool setHdrCurveParameter(const QString& key, double value);
- bool hdrMetadataEnabled() const;
- void setHdrMetadataEnabled(bool enabled);
- QVariantMap hdrMetadataParams() const;
- Q_INVOKABLE bool setHdrMetadataParameter(const QString& key, double value);
- // Commit + re-assert the tuning in the places the session capture reads, so a
- // change takes effect and survives a restart (the same trap the earlier
- // per-scene brightness block hit: a plain commit left it out of the pending
- // settings the session is written from).
- bool commitHdrTuning(engine::EnhancementSettings settings);
- QString hdrTuningPreset() const;
- Q_INVOKABLE bool applyHdrTuningPreset(const QString& id);
- // Custom: apply the recommendation above in one click.
- Q_INVOKABLE bool applyRecommendedHdrTuning();
- // Custom: forget every remembered display profile (the current device is kept
- // and re-learned from the settings in use).
- Q_INVOKABLE void forgetHdrDisplayProfiles();
- Q_INVOKABLE bool applyHdrAxesPreset(const QString& content, const QString& environment);
- Q_INVOKABLE bool setHdrDial(const QString& key, int level);
- Q_INVOKABLE void forgetHdrTitles();
- // The strength dial and the display peak (stored next to the baseline).
- int hdrCurveStrength() const;
- void setHdrCurveStrength(int percent);
- int hdrDisplayPeakNits() const;
- void setHdrDisplayPeakNits(int nits);
- QVariantMap hdrDisplayInfo() const;
- // Custom: see the hdrSourceInfo/hdrRecommendation/hdrPeakWarning properties.
- QVariantMap hdrSourceInfo() const;
- QVariantMap hdrRecommendation() const;
- bool sourceIsSdr() const;
- unsigned effectiveHdrDisplayPeakNits() const;
- QVariantMap hdrPeakWarning() const;
- int hdrDisplayProfileCount() const;
+#pragma once
+// The QML front end's only view of the player.
+//
+// Design rules this file follows, all of them deliberate:
+//
+// * QML never sees EngineController, D3D12, decoded frames or the audio
+// clock. It sees plain values and calls plain commands.
+// * The video is NOT part of the QML scene graph. It stays a native child
+// HWND with its own flip-model swapchain (measured in S3: 499/499 presents
+// at 0.205 ms while the QML scene animated at full panel rate). QML is drawn
+// around and above it. Compositing video into QML would cost exactly the
+// latency that is this product's advantage over OBS and PotPlayer.
+// * One timer drives updates, and it publishes only what changed: the facade
+// hands out a revision counter, so a 60 Hz tick does not mean 60 property
+// writes. This is what keeps the UI from becoming the latency bottleneck.
+//
+// Threading: every method here is called on the UI thread. Commands go through
+// the facade, never executed inline, so a slow engine cannot block a frame of
+// QML animation.
+//
+// Scope note: this exposes what the engine can actually do today. Playback
+// speed measurement and requested file-preview rate are separate values.
+#include <QObject>
+#include <QString>
+#include <QRectF>
+#include <QUrl>
+#include <QVariantList>
+#include <QVariantMap>
+
+#include <functional>
+#include <memory>
+
+#include "veyra/engine/EffectChain.h"
+#include "veyra/engine/ExportJobManager.h"
+#include "veyra/engine/EnhancementSettings.h"
+#include "veyra/ui/PlayerUiFacade.h"
+
+class QQmlEngine;
+namespace veyra::ui {
+
+class MoonlightModel;
+class XboxModel;
+
+class QmlPlayerBridge : public QObject {
+ Q_OBJECT
+ // --- professional-page readouts ---------------------------------------
+ // Every one of these reports an engine value. Where the engine has no
+ // measurement the getter says so (e.g. displayFpsKnown stays false, because
+ // a display rate is only real if the system display event can be read - the
+ // design requires exactly this distinction rather than reusing submit FPS).
+ Q_PROPERTY(QString outputSummary READ outputSummary NOTIFY snapshotChanged)
+ Q_PROPERTY(bool fullscreenMemorySafe READ fullscreenMemorySafe NOTIFY snapshotChanged)
+ Q_PROPERTY(double displayFps READ displayFps NOTIFY snapshotChanged)
+ Q_PROPERTY(bool displayFpsKnown READ displayFpsKnown NOTIFY snapshotChanged)
+ Q_PROPERTY(double queuedFrames READ queuedFrames NOTIFY snapshotChanged)
+ Q_PROPERTY(bool queuedFramesKnown READ queuedFramesKnown NOTIFY snapshotChanged)
+ Q_PROPERTY(int skippedFrames READ skippedFrames NOTIFY snapshotChanged)
+ Q_PROPERTY(QString flowBackend READ flowBackend NOTIFY snapshotChanged)
+ Q_PROPERTY(int opticalFlowChoice READ opticalFlowChoice NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantList stageTimings READ stageTimings NOTIFY snapshotChanged)
+ Q_PROPERTY(QVariantMap nodeTimings READ nodeTimings NOTIFY snapshotChanged)
+ Q_PROPERTY(QVariantMap nodeAnchors READ nodeAnchors NOTIFY nodeAnchorsChanged)
+ Q_PROPERTY(double stageBudgetMs READ stageBudgetMs NOTIFY snapshotChanged)
+ // Existing measured enhancement-interval P95, NOT full-chain latency.
+ Q_PROPERTY(double chainTotalMs READ chainTotalMs NOTIFY snapshotChanged)
+ Q_PROPERTY(bool chainTotalMsKnown READ chainTotalMsKnown NOTIFY snapshotChanged)
+ Q_PROPERTY(double scheduleP95Ms READ scheduleP95Ms NOTIFY snapshotChanged)
+
+ // --- frame generation settings ----------------------------------------
+ Q_PROPERTY(QString fgBackendName READ fgBackendName WRITE setFgBackendName NOTIFY settingsChanged)
+ Q_PROPERTY(int vfgQuality READ vfgQuality WRITE setVfgQuality NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantList fgBackendChoices READ fgBackendChoices NOTIFY effectCapabilitiesChanged)
+ Q_PROPERTY(QString fgProviderText READ fgProviderText NOTIFY fgChoicesChanged)
+ Q_PROPERTY(int fgMaxMultiplier READ fgMaxMultiplier NOTIFY snapshotChanged)
+ Q_PROPERTY(bool fgEnabled READ fgEnabled WRITE setFgEnabled NOTIFY chainChanged)
+ Q_PROPERTY(QString submitFpsLabel READ submitFpsLabel NOTIFY snapshotChanged)
+ Q_PROPERTY(QVariantList fgMultiplierChoices READ fgMultiplierChoices NOTIFY fgChoicesChanged)
+ Q_PROPERTY(bool fgStrict READ fgStrict WRITE setFgStrict NOTIFY settingsChanged)
+ Q_PROPERTY(bool fgLowQueue READ fgLowQueue WRITE setFgLowQueue NOTIFY settingsChanged)
+
+ // --- colour settings ---------------------------------------------------
+ Q_PROPERTY(double colorExposure READ colorExposure WRITE setColorExposure NOTIFY settingsChanged)
+ Q_PROPERTY(double colorContrast READ colorContrast WRITE setColorContrast NOTIFY settingsChanged)
+ Q_PROPERTY(double colorSaturation READ colorSaturation WRITE setColorSaturation NOTIFY settingsChanged)
+ Q_PROPERTY(double colorTemperature READ colorTemperature WRITE setColorTemperature NOTIFY settingsChanged)
+
+ // --- shell preferences -------------------------------------------------
+ // Kept by the facade so they survive a restart, and read by the shell.
+ Q_PROPERTY(bool reducedMotion READ reducedMotion WRITE setReducedMotion NOTIFY settingsChanged)
+ // Counts interface graphics devices recreated after a loss (a GPU reset, logs 56). VIcon
+ // re-feeds its path when it changes: Qt 6.8.3's curve renderer leaves recreated nodes empty.
+ Q_PROPERTY(int uiDeviceGeneration READ uiDeviceGeneration NOTIFY uiDeviceGenerationChanged)
+ Q_PROPERTY(QString defaultPage READ defaultPage WRITE setDefaultPage NOTIFY settingsChanged)
+ Q_PROPERTY(QString defaultPageLabel READ defaultPageLabel NOTIFY settingsChanged)
+ // Used by the shell to open on the saved page. Set from the command line in
+ // tests so a screenshot does not depend on clicking the dock.
+ Q_PROPERTY(QString initialPage READ initialPage WRITE setInitialPage NOTIFY settingsChanged)
+ // The page the shell is showing, pushed by the shell so a command can tell
+ // where the user is: opening a file from home goes to the player, and
+ // opening one from the professional page stays there.
+ Q_PROPERTY(QString currentPage READ currentPage WRITE setCurrentPage NOTIFY settingsChanged)
+
+ // --- settings-page reporting -------------------------------------------
+ Q_PROPERTY(QString remotePlayState READ remotePlayState NOTIFY snapshotChanged)
+ // The loaded runtime components, as the engine reports them. A hand-written
+ // list here could drift from what the package actually contains.
+ Q_PROPERTY(QVariantList componentList READ componentList NOTIFY componentListChanged)
+ Q_PROPERTY(QObject* updates READ updates CONSTANT)
+
+ // --- capture dialog ----------------------------------------------------
+ // Device and format lists come from the source's own enumeration, so the UI
+ // can only offer what the machine actually reports.
+ Q_PROPERTY(QVariantList captureDevices READ captureDevices NOTIFY captureChanged)
+ Q_PROPERTY(QString captureDeviceId READ captureDeviceId WRITE setCaptureDeviceId NOTIFY captureChanged)
+ Q_PROPERTY(QString captureDeviceLabel READ captureDeviceLabel NOTIFY captureChanged)
+ Q_PROPERTY(bool captureBlackmagicDevice READ captureBlackmagicDevice NOTIFY captureChanged)
+ Q_PROPERTY(bool captureForceSdr READ captureForceSdr WRITE setCaptureForceSdr NOTIFY settingsChanged)
+ Q_PROPERTY(bool amdNrGpu READ amdNrGpu CONSTANT)
+ Q_PROPERTY(QVariantMap effectCapabilities READ effectCapabilities NOTIFY effectCapabilitiesChanged)
+ Q_PROPERTY(QVariantList nrRuntimeChoices READ nrRuntimeChoices NOTIFY effectCapabilitiesChanged)
+ Q_PROPERTY(QVariantList srBackendChoices READ srBackendChoices NOTIFY effectCapabilitiesChanged)
+ Q_PROPERTY(bool captureFlipVertical READ captureFlipVertical WRITE setCaptureFlipVertical NOTIFY settingsChanged)
+ // P4-e: the full capture connection, as the 1.4.4 panel: device details and
+ // formats come from asynchronous DirectShow queries (never on the UI thread),
+ // the choice is remembered in capture-preferences.v1 for "continue".
+ Q_PROPERTY(QVariantList captureFormats READ captureFormats NOTIFY captureChanged)
+ Q_PROPERTY(QString captureFormatKey READ captureFormatKey WRITE setCaptureFormatKey NOTIFY captureChanged)
+ // The selected format's label ("" when none) and whether it gets the cost hint, so the
+ // dialog never searches captureFormats itself (logs(18): 15474 formats hung it).
+ Q_PROPERTY(QString captureFormatLabel READ captureFormatLabel NOTIFY captureChanged)
+ Q_PROPERTY(bool captureFormatCostHint READ captureFormatCostHint NOTIFY captureChanged)
+ // Resolution, frame rate and pixel format are three views of captureFormatKey.
+ // Changing one retargets that key to a media type the device actually enumerated.
+ Q_PROPERTY(QVariantList captureResolutionOptions READ captureResolutionOptions NOTIFY captureChanged)
+ Q_PROPERTY(QString captureResolutionId READ captureResolutionId WRITE setCaptureResolutionId NOTIFY captureChanged)
+ Q_PROPERTY(QVariantList captureFrameRateOptions READ captureFrameRateOptions NOTIFY captureChanged)
+ // Rates the frame-rate menu leaves out unless preferences.captureShowAllFrameRates is on
+ // (0: the card offers nothing beyond the common rates, so the switch is not shown).
+ Q_PROPERTY(int captureHiddenFrameRates READ captureHiddenFrameRates NOTIFY captureChanged)
+ Q_PROPERTY(QString captureFrameRateId READ captureFrameRateId WRITE setCaptureFrameRateId NOTIFY captureChanged)
+ Q_PROPERTY(QVariantList capturePixelOptions READ capturePixelOptions NOTIFY captureChanged)
+ Q_PROPERTY(QString capturePixelId READ capturePixelId WRITE setCapturePixelId NOTIFY captureChanged)
+ Q_PROPERTY(QVariantList captureAudioInputs READ captureAudioInputs NOTIFY captureChanged)
+ Q_PROPERTY(int captureAudioChoice READ captureAudioChoice WRITE setCaptureAudioChoice NOTIFY captureChanged)
+ Q_PROPERTY(int captureColorSpace READ captureColorSpace WRITE setCaptureColorSpace NOTIFY captureChanged)
+ Q_PROPERTY(int captureColorRange READ captureColorRange WRITE setCaptureColorRange NOTIFY captureChanged)
+ Q_PROPERTY(double captureRequestedFps READ captureRequestedFps WRITE setCaptureRequestedFps NOTIFY captureChanged)
+ Q_PROPERTY(int captureAudioIngress READ captureAudioIngress WRITE setCaptureAudioIngress NOTIFY settingsChanged)
+ Q_PROPERTY(int captureBufferMode READ captureBufferMode WRITE setCaptureBufferMode NOTIFY settingsChanged)
+ Q_PROPERTY(bool captureQueryBusy READ captureQueryBusy NOTIFY captureChanged)
+ Q_PROPERTY(QString captureStatus READ captureStatus NOTIFY captureChanged)
+ // Magewell Pro Capture low-latency mode (MagewellCapture.h): whether the selected device is
+ // one, and a one-line state (active with its latency, missing runtime, or why it fell back).
+ Q_PROPERTY(bool captureMagewellDevice READ captureMagewellDevice NOTIFY captureChanged)
+ Q_PROPERTY(QString captureMagewellStatus READ captureMagewellStatus NOTIFY snapshotChanged)
+
+ // --- screen-capture dialog ---------------------------------------------
+ Q_PROPERTY(QVariantList screenTargets READ screenTargets NOTIFY captureChanged)
+ Q_PROPERTY(QString screenTargetId READ screenTargetId WRITE setScreenTargetId NOTIFY captureChanged)
+ Q_PROPERTY(QString screenTargetLabel READ screenTargetLabel NOTIFY captureChanged)
+ // Screen capture options (ScreenCaptureOptions): kind 0 window / 1 monitor,
+ // method 0 WGC / 1 DXGI (monitor only), fps cap index into {follow,30,60,120,144,240},
+ // pointer, crop margins in source pixels, and "fill the window".
+ Q_PROPERTY(QVariantMap screenOptions READ screenOptions NOTIFY captureChanged)
+ // 游戏模式 (screen option "passthrough", ui/GamePassthrough.h): gameMode while the
+ // current source is such a capture (opening or live); passthroughActive while the
+ // fullscreen picture is click-through and the captured program has the input.
+ Q_PROPERTY(bool gameMode READ gameMode NOTIFY gameModeChanged)
+ Q_PROPERTY(bool passthroughActive READ passthroughActive NOTIFY gameModeChanged)
+
+ // Subtitles (P4-c): the engine's SubtitleLoader reads the embedded tracks and
+ // the same-name external file; the old shell's SubtitleOverlay draws them as a
+ // layered child of the native video window, so the picture's window region
+ // also clips the subtitles away from QML popups. Style lives in preferences.
+ Q_PROPERTY(QVariantList subtitleTracks READ subtitleTracks NOTIFY subtitlesChanged)
+ Q_PROPERTY(int subtitlePrimary READ subtitlePrimary WRITE setSubtitlePrimary NOTIFY subtitlesChanged)
+ Q_PROPERTY(int subtitleSecondary READ subtitleSecondary WRITE setSubtitleSecondary NOTIFY subtitlesChanged)
+ Q_PROPERTY(int subtitleOffsetMs READ subtitleOffsetMs WRITE setSubtitleOffsetMs NOTIFY subtitlesChanged)
+ Q_PROPERTY(QString subtitleStatus READ subtitleStatus NOTIFY subtitlesChanged)
+ Q_PROPERTY(bool subtitleAligning READ subtitleAligning NOTIFY subtitlesChanged)
+ // The text the overlay is drawing now (joined lines), for tests and the a11y name.
+ Q_PROPERTY(QString subtitleText READ subtitleText NOTIFY subtitleTextChanged)
+ // Extra space the shell keeps free at the bottom (fullscreen controls).
+ Q_PROPERTY(int subtitleBottomInset READ subtitleBottomInset WRITE setSubtitleBottomInset NOTIFY subtitlesChanged)
+
+ // --- ps5 dialog --------------------------------------------------------
+ Q_PROPERTY(QString remotePlayHost READ remotePlayHost WRITE setRemotePlayHost NOTIFY settingsChanged)
+ Q_PROPERTY(QString remotePlayPin READ remotePlayPin WRITE setRemotePlayPin NOTIFY settingsChanged)
+ // P4-e PS5 Remote Play, ported from the 1.4.4 panel: saved pairings (shared
+ // %LOCALAPPDATA%\Veyra\remoteplay, encrypted), discovery, pairing, PSN login,
+ // wake, stream profile, decode/sampling, view-only, login PIN, controller
+ // forwarding and gyro calibration. `ps5` carries the form state.
+ Q_PROPERTY(QVariantMap ps5 READ ps5 NOTIFY ps5Changed)
+ Q_PROPERTY(QVariantList ps5Profiles READ ps5Profiles NOTIFY ps5Changed)
+ // PS5 手柄控制 (采集卡对话框): a controller-only Remote Play session beside the
+ // capture card, using the pairing selected in the PS5 dialog. {available,
+ // enabled, background, state: off|starting|connected|pin|recovering|failed|
+ // nopair, message, keepaliveFps (-1 = not yet), pad, gyro, touch}
+ Q_PROPERTY(QVariantMap ps5Control READ ps5Control NOTIFY ps5ControlChanged)
+ // PC streaming (Moonlight / Sunshine): hosts, pairing, apps and stream settings live in
+ // `moonlight` (null when the build has no Moonlight); capture state and the stats overlay here.
+ Q_PROPERTY(QObject* moonlight READ moonlightModel CONSTANT)
+ // Xbox home streaming (unofficial): sign-in, consoles and stream state; null without Xbox support.
+ Q_PROPERTY(QObject* xbox READ xboxModel CONSTANT)
+ Q_PROPERTY(bool moonlightCaptured READ moonlightCaptured NOTIFY moonlightUiChanged)
+ Q_PROPERTY(bool moonlightStatsVisible READ moonlightStatsVisible WRITE setMoonlightStatsVisible NOTIFY moonlightUiChanged)
+
+ // Shell preferences that are not enhancement settings: screenshot folder,
+ // subtitle look, audio output. Stored in <data>/qml-preferences.v1.json and
+ // validated key by key in setPreference(); anything unknown is refused.
+ Q_PROPERTY(QVariantMap preferences READ preferences NOTIFY preferencesChanged)
+ Q_PROPERTY(QString gpuPriorityStatus READ gpuPriorityStatus NOTIFY preferencesChanged)
+ Q_PROPERTY(bool enhancementPrewarmAvailable READ enhancementPrewarmAvailable CONSTANT)
+ // The interface language in use (zh-CN / zh-TW / en / ja), after "auto" is resolved;
+ // preferences.language holds the choice itself.
+ Q_PROPERTY(QString uiLanguage READ uiLanguage NOTIFY preferencesChanged)
+ Q_PROPERTY(QString screenshotDirectory READ screenshotDirectory NOTIFY preferencesChanged)
+ Q_PROPERTY(QString lastScreenshot READ lastScreenshot NOTIFY preferencesChanged)
+ Q_PROPERTY(QString dataDirectory READ dataDirectory CONSTANT)
+ // Rebindable shortcuts: action -> key sequence text (defaults merged in).
+ Q_PROPERTY(QVariantMap shortcuts READ shortcuts NOTIFY preferencesChanged)
+ // The interface scale chosen for the next start (0 = follow Windows).
+ Q_PROPERTY(int uiScaleActive READ uiScaleActive CONSTANT)
+ Q_PROPERTY(bool obsGameCaptureActive READ obsGameCaptureActive CONSTANT)
+ // This run draws the interface in software because RivaTuner (RTSS) was running at start
+ // (设置 → 监控软件兼容, main.cpp): its OSD then sits on the video only.
+ Q_PROPERTY(bool overlayCompatActive READ overlayCompatActive CONSTANT)
+ // Audio output (P4-d): the active WASAPI render endpoints by device id, the
+ // stored choice (preferences.audioDevice, empty = system default) and what
+ // the renderer actually opened, including a fallback to the default.
+ Q_PROPERTY(QVariantList audioDevices READ audioDevices NOTIFY audioDevicesChanged)
+ // The GPU the "GPU 占用" orb measures (设置 → 通用与外观): [{id, label}], the first
+ // entry ("", 自动) picks the high-performance (discrete) GPU. Field report
+ // 2026-10-02: the orb used to add the integrated and the discrete GPU together.
+ Q_PROPERTY(QVariantList gpuMonitorChoices READ gpuMonitorChoices CONSTANT)
+ Q_PROPERTY(QString gpuMonitorName READ gpuMonitorName NOTIFY preferencesChanged)
+ // 设置 -> "同时用这块显卡运算" (preference computeOnMonitorGpu): the GPU picked
+ // for monitoring also runs enhancement, frame generation and export.
+ Q_PROPERTY(QString computeGpuHint READ computeGpuHint NOTIFY preferencesChanged)
+ Q_PROPERTY(QString audioOutputStatus READ audioOutputStatus NOTIFY audioDevicesChanged)
+ Q_PROPERTY(bool audioOutputFallback READ audioOutputFallback NOTIFY audioDevicesChanged)
+ Q_PROPERTY(QString logFile READ logFile CONSTANT)
+
+ Q_PROPERTY(QString appName READ appName CONSTANT)
+ Q_PROPERTY(QString version READ version CONSTANT)
+
+ // --- playback ----------------------------------------------------------
+ Q_PROPERTY(QString statusText READ statusText NOTIFY snapshotChanged)
+ Q_PROPERTY(bool running READ running NOTIFY snapshotChanged)
+ Q_PROPERTY(bool paused READ paused NOTIFY snapshotChanged)
+ Q_PROPERTY(bool failed READ failed NOTIFY snapshotChanged)
+ Q_PROPERTY(bool isImage READ isImage NOTIFY snapshotChanged)
+ Q_PROPERTY(bool isCapture READ isCapture NOTIFY snapshotChanged)
+ Q_PROPERTY(bool hasSource READ hasSource NOTIFY snapshotChanged)
+ Q_PROPERTY(double position READ position NOTIFY snapshotChanged)
+ Q_PROPERTY(double duration READ duration NOTIFY snapshotChanged)
+ Q_PROPERTY(double progress READ progress NOTIFY snapshotChanged)
+ Q_PROPERTY(QString positionText READ positionText NOTIFY snapshotChanged)
+ Q_PROPERTY(QString durationText READ durationText NOTIFY snapshotChanged)
+
+ // --- source ------------------------------------------------------------
+ Q_PROPERTY(int thumbnailGeneration READ thumbnailGeneration NOTIFY thumbnailGenerationChanged)
+ Q_PROPERTY(QString sourceName READ sourceName NOTIFY snapshotChanged)
+ Q_PROPERTY(QString sourceSummary READ sourceSummary NOTIFY snapshotChanged)
+ Q_PROPERTY(int sourceWidth READ sourceWidth NOTIFY snapshotChanged)
+ Q_PROPERTY(int sourceHeight READ sourceHeight NOTIFY snapshotChanged)
+ Q_PROPERTY(double sourceFps READ sourceFps NOTIFY snapshotChanged)
+ Q_PROPERTY(int sourceRotation READ sourceRotation NOTIFY snapshotChanged)
+ // The film's display aspect, so the window can snap to it in cinema mode
+ // exactly as the prototype's fitAspect() does. 0 when nothing is open.
+ Q_PROPERTY(double sourceAspect READ sourceAspect NOTIFY snapshotChanged)
+ Q_PROPERTY(double previewAspect READ previewAspect NOTIFY compareChanged)
+
+ // --- live performance --------------------------------------------------
+ // Submit FPS only. There is deliberately no "display FPS": the user asked
+ // for it to be left out (MSI Afterburner reads the real panel rate, and a
+ // number we cannot measure must not be shown as if we measured it).
+ Q_PROPERTY(double submitFps READ submitFps NOTIFY snapshotChanged)
+ Q_PROPERTY(bool submitFpsKnown READ submitFpsKnown NOTIFY snapshotChanged)
+ Q_PROPERTY(double lateMs READ lateMs NOTIFY snapshotChanged)
+ Q_PROPERTY(double lateP95Ms READ lateP95Ms NOTIFY snapshotChanged)
+ Q_PROPERTY(QString metricsSummary READ metricsSummary NOTIFY snapshotChanged)
+ Q_PROPERTY(bool nrActive READ nrActive NOTIFY snapshotChanged)
+ Q_PROPERTY(bool nrAutoActive READ nrAutoActive NOTIFY snapshotChanged)
+ Q_PROPERTY(int nrAutoPercent READ nrAutoPercent NOTIFY snapshotChanged)
+ Q_PROPERTY(QString nrAutoStatus READ nrAutoStatus NOTIFY snapshotChanged)
+ Q_PROPERTY(bool srActive READ srActive NOTIFY snapshotChanged)
+ Q_PROPERTY(bool fgActive READ fgActive NOTIFY snapshotChanged)
+ Q_PROPERTY(bool captureRecovering READ captureRecovering NOTIFY snapshotChanged)
+ Q_PROPERTY(double captureFps READ captureFps NOTIFY snapshotChanged)
+ Q_PROPERTY(double captureDropped READ captureDropped NOTIFY snapshotChanged)
+ Q_PROPERTY(QString backendWarning READ backendWarning NOTIFY snapshotChanged)
+
+ // --- settings (what the UI shows) --------------------------------------
+ Q_PROPERTY(bool nrEnabled READ nrEnabled WRITE setNrEnabled NOTIFY settingsChanged)
+ Q_PROPERTY(int selectedNrLayer READ selectedNrLayer WRITE setSelectedNrLayer NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantList nrLayers READ nrLayers NOTIFY nrLayersChanged)
+ // List mode's NR master switch: true while any NR layer is on.
+ Q_PROPERTY(bool nrAnyEnabled READ nrAnyEnabled NOTIFY nrLayersChanged)
+ Q_PROPERTY(bool srEnabled READ srEnabled WRITE setSrEnabled NOTIFY settingsChanged)
+ Q_PROPERTY(int fgMultiplier READ fgMultiplier WRITE setFgMultiplier NOTIFY settingsChanged)
+ Q_PROPERTY(bool lowLatency READ lowLatency WRITE setLowLatency NOTIFY settingsChanged)
+ Q_PROPERTY(bool nrTemporal READ nrTemporal WRITE setNrTemporal NOTIFY settingsChanged)
+ Q_PROPERTY(double nrHoldStrength READ nrHoldStrength WRITE setNrHoldStrength NOTIFY settingsChanged)
+ Q_PROPERTY(double nrHoldTolerance READ nrHoldTolerance WRITE setNrHoldTolerance NOTIFY settingsChanged)
+ Q_PROPERTY(bool videoHdr READ videoHdr WRITE setVideoHdr NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap videoHdrParams READ videoHdrParams NOTIFY videoHdrParamsChanged)
+ // Custom: static HDR output tuning (globals, every field live).
+ Q_PROPERTY(bool hdrCurve READ hdrCurve WRITE setHdrCurve NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap hdrCurveParams READ hdrCurveParams NOTIFY settingsChanged)
+ Q_PROPERTY(bool hdrMetadataEnabled READ hdrMetadataEnabled WRITE setHdrMetadataEnabled NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap hdrMetadataParams READ hdrMetadataParams NOTIFY settingsChanged)
+ // One-click tuning presets (see hdrTuningPresets); "custom" when the sliders
+ // no longer match any of them.
+ Q_PROPERTY(QString hdrTuningPreset READ hdrTuningPreset NOTIFY settingsChanged)
+ // One dial for the whole curve (0..200%, 100 = the preset as written) and the
+ // display's own peak brightness (0 = ask the system). Both live next to the
+ // baseline, so moving them never leaves the selected preset.
+ Q_PROPERTY(int hdrCurveStrength READ hdrCurveStrength WRITE setHdrCurveStrength NOTIFY settingsChanged)
+ Q_PROPERTY(int hdrDisplayPeakNits READ hdrDisplayPeakNits WRITE setHdrDisplayPeakNits NOTIFY settingsChanged)
+ // What the system reports about the display, for the peak field's reset button.
+ Q_PROPERTY(QVariantMap hdrDisplayInfo READ hdrDisplayInfo NOTIFY snapshotChanged)
+ // Custom: the source's own HDR numbers (container metadata), the one-click
+ // recommendation derived from them, and the warning that compares the film's
+ // peak with what the curve will actually cap.
+ Q_PROPERTY(QVariantMap hdrSourceInfo READ hdrSourceInfo NOTIFY snapshotChanged)
+ Q_PROPERTY(QVariantMap hdrRecommendation READ hdrRecommendation NOTIFY snapshotChanged)
+ // Custom: whether the running source is SDR. Used only to word the recommendation
+ // row (an SDR source has no HDR metadata, so "no metadata" would be misleading).
+ Q_PROPERTY(bool sourceIsSdr READ sourceIsSdr NOTIFY snapshotChanged)
+ Q_PROPERTY(QVariantMap hdrPeakWarning READ hdrPeakWarning NOTIFY snapshotChanged)
+ // Custom: one remembered curve per display device, so moving the window to the
+ // projector or the TV applies the settings tuned on that device.
+ Q_PROPERTY(int hdrDisplayProfileCount READ hdrDisplayProfileCount NOTIFY preferencesChanged)
+ // Custom: which preset system the panel shows. "legacy" is the original seven
+ // presets, "axes" is content x environment. A UI choice kept in preferences:
+ // both modes write the very same curve, so the saved session is unaffected.
+ Q_PROPERTY(QString hdrPresetMode READ hdrPresetMode WRITE setHdrPresetMode NOTIFY preferencesChanged)
+
+ // Which preset system established the curve in force. Kept apart from hdrPresetMode
+ // on purpose: switching the panel view must not let the other system claim the curve,
+ // so only an actual apply moves this.
+ Q_PROPERTY(QString hdrAppliedFrom READ hdrAppliedFrom WRITE setHdrAppliedFrom NOTIFY preferencesChanged)
+ Q_PROPERTY(QVariantMap hdrAxes READ hdrAxes NOTIFY preferencesChanged)
+ Q_PROPERTY(QVariantMap hdrAxesMatch READ hdrAxesMatch NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap hdrDials READ hdrDials NOTIFY settingsChanged)
+ // Custom: the curve sampled by the same function the shader runs, for the panel
+ // graph (see hdrCurveLuminance).
+ Q_PROPERTY(QVariantMap hdrCurveGraph READ hdrCurveGraph NOTIFY settingsChanged)
+ // Custom: the live coverage measured by the presenter's probe (see the panel's
+ // live meter). Invalid until a probe has completed.
+ Q_PROPERTY(QVariantMap hdrCurveCoverage READ hdrCurveCoverage NOTIFY snapshotChanged)
+ Q_PROPERTY(bool hdrTitleMemory READ hdrTitleMemory WRITE setHdrTitleMemory NOTIFY preferencesChanged)
+ Q_PROPERTY(bool hdrAutoRecommend READ hdrAutoRecommend WRITE setHdrAutoRecommend NOTIFY preferencesChanged)
+ Q_PROPERTY(int hdrTitleCount READ hdrTitleCount NOTIFY preferencesChanged)
+ Q_PROPERTY(int nrStyle READ nrStyle WRITE setNrStyle NOTIFY settingsChanged)
+ Q_PROPERTY(double nrIntensity READ nrIntensity WRITE setNrIntensity NOTIFY settingsChanged)
+ Q_PROPERTY(double nrTone READ nrTone WRITE setNrTone NOTIFY settingsChanged)
+ Q_PROPERTY(double nrStructure READ nrStructure WRITE setNrStructure NOTIFY settingsChanged)
+ Q_PROPERTY(double nrSkin READ nrSkin WRITE setNrSkin NOTIFY settingsChanged)
+ Q_PROPERTY(bool nrAutoMask READ nrAutoMask WRITE setNrAutoMask NOTIFY settingsChanged)
+ Q_PROPERTY(bool nrUiCorrection READ nrUiCorrection WRITE setNrUiCorrection NOTIFY settingsChanged)
+ Q_PROPERTY(int videoSrQuality READ videoSrQuality WRITE setVideoSrQuality NOTIFY settingsChanged)
+ Q_PROPERTY(int dlssSrModel READ dlssSrModel WRITE setDlssSrModel NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantList dlssSrModelChoices READ dlssSrModelChoices CONSTANT)
+ Q_PROPERTY(bool protectionEnabled READ protectionEnabled WRITE setProtectionEnabled NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap protectionState READ protectionState NOTIFY protectionChanged)
+ Q_PROPERTY(bool colorEnabled READ colorEnabled WRITE setColorEnabled NOTIFY settingsChanged)
+ Q_PROPERTY(int audioOffsetMs READ audioOffsetMs WRITE setAudioOffsetMs NOTIFY settingsChanged)
+ // 1.4.4 声音补偿: 0 自动(软件估算) / 1 手动 / 2 关闭; live sources only.
+ Q_PROPERTY(int audioSyncMode READ audioSyncMode WRITE setAudioSyncMode NOTIFY settingsChanged)
+ Q_PROPERTY(bool audioSyncLive READ audioSyncLive NOTIFY snapshotChanged)
+ Q_PROPERTY(double audioCompensationMs READ audioCompensationMs NOTIFY snapshotChanged)
+ // Performance orbs and the status light (1.4.4 live status dashboard).
+ Q_PROPERTY(double gpuUtilization READ gpuUtilization NOTIFY perfChanged)
+ Q_PROPERTY(bool gpuUtilizationKnown READ gpuUtilizationKnown NOTIFY perfChanged)
+ Q_PROPERTY(QString runStatus READ runStatus NOTIFY perfChanged)
+ Q_PROPERTY(QString runStatusLevel READ runStatusLevel NOTIFY perfChanged)
+ Q_PROPERTY(QString runStatusDetail READ runStatusDetail NOTIFY perfChanged)
+ // Live FG output hint ("当前帧率…超出屏幕刷新率,建议降至…"), empty when the
+ // output fits; a suggestion only, the multiplier is never changed.
+ Q_PROPERTY(QString fgDisplayHint READ fgDisplayHint NOTIFY perfChanged)
+ Q_PROPERTY(QStringList runOptions READ runOptions NOTIFY perfChanged)
+ Q_PROPERTY(double effectiveOutputFps READ effectiveOutputFps NOTIFY perfChanged)
+ // Achieved output rate / effective policy target; -1 while unknown.
+ Q_PROPERTY(double outputRateRatio READ outputRateRatio NOTIFY perfChanged)
+ // Frame interval history (ms, newest last) for the frame-time line.
+ Q_PROPERTY(QVariantList frameTimes READ frameTimes NOTIFY perfChanged)
+ // 补帧 / 光流 (design gap A1-A5): motion estimation quality 0 性能 1 平衡 2 质量,
+ // AMD half-resolution flow, content cadence (engine::ContentRate order).
+ Q_PROPERTY(int flowQuality READ flowQuality WRITE setFlowQuality NOTIFY settingsChanged)
+ Q_PROPERTY(bool amdFlowHalf READ amdFlowHalf WRITE setAmdFlowHalf NOTIFY settingsChanged)
+ // 边缘神盾: refined optical-flow motion for XeSS (EnhancementSettings::fgMotionRefine).
+ Q_PROPERTY(bool edgeAegis READ edgeAegis WRITE setEdgeAegis NOTIFY settingsChanged)
+ // DLSS 性能模式: NVIDIA's DLSS-G performance mode (EnhancementSettings::dlssgLite);
+ // available when the package carries its runtime (runtime/experimental/dlssg-lite).
+ Q_PROPERTY(bool dlssgLite READ dlssgLite WRITE setDlssgLite NOTIFY settingsChanged)
+ Q_PROPERTY(bool dlssgLiteAvailable READ dlssgLiteAvailable CONSTANT)
+ Q_PROPERTY(QString dlssgLiteHint READ dlssgLiteHint NOTIFY snapshotChanged)
+ Q_PROPERTY(int contentRate READ contentRate WRITE setContentRate NOTIFY settingsChanged)
+ Q_PROPERTY(int hdrOutputMode READ hdrOutputMode WRITE setHdrOutputMode NOTIFY settingsChanged)
+ Q_PROPERTY(int fgMotionSource READ fgMotionSource WRITE setFgMotionSource NOTIFY settingsChanged)
+ Q_PROPERTY(int srMotionSource READ srMotionSource WRITE setSrMotionSource NOTIFY settingsChanged)
+ Q_PROPERTY(int nrMotionSource READ nrMotionSource WRITE setNrMotionSource NOTIFY settingsChanged)
+ // Presentation: display sync 0 允许撕裂 1 垂直同步 2 自动; output cap 0 关闭
+ // 1 跟随显示器 2 自定义 (+ fps). Owned by XeSS when presentationOwned.
+ Q_PROPERTY(int displaySync READ displaySync WRITE setDisplaySync NOTIFY presentationChanged)
+ // 可变刷新 switch (persisted with the presentation settings) and the
+ // presenting monitor's VRR level: 0 unknown, 1 the monitor cannot do VRR
+ // (switch greyed), 2 it can but the driver setting is off, 3 possible,
+ // 4 active; vrrHint explains it beside the switch.
+ Q_PROPERTY(bool variableRefresh READ variableRefresh WRITE setVariableRefresh NOTIFY presentationChanged)
+ Q_PROPERTY(int vrrState READ vrrState NOTIFY perfChanged)
+ Q_PROPERTY(QString vrrHint READ vrrHint NOTIFY perfChanged)
+ Q_PROPERTY(int outputRateMode READ outputRateMode WRITE setOutputRateMode NOTIFY presentationChanged)
+ Q_PROPERTY(double outputCustomFps READ outputCustomFps WRITE setOutputCustomFps NOTIFY presentationChanged)
+ Q_PROPERTY(bool presentationOwned READ presentationOwned NOTIFY snapshotChanged)
+ Q_PROPERTY(QString presentationStatus READ presentationStatus NOTIFY snapshotChanged)
+ // 显示: compare 0 增强 1 原画 2 分屏; base false 输入原画 / true 增强前底图;
+ // split 0..1 of the picture. Aspect 0 适应 1 原始 2 填充.
+ Q_PROPERTY(int compareMode READ compareMode WRITE setCompareMode NOTIFY compareChanged)
+ Q_PROPERTY(bool compareBase READ compareBase WRITE setCompareBase NOTIFY compareChanged)
+ Q_PROPERTY(double compareSplit READ compareSplit NOTIFY compareChanged)
+ Q_PROPERTY(int aspectMode READ aspectMode WRITE setAspectMode NOTIFY compareChanged)
+ // Measured audio/video skew of a live source (ms); unknown otherwise.
+ Q_PROPERTY(double audioSkewMs READ audioSkewMs NOTIFY snapshotChanged)
+ Q_PROPERTY(bool audioSkewKnown READ audioSkewKnown NOTIFY snapshotChanged)
+ // Export: an estimate of the output size ("" when there is nothing to base it on).
+ Q_PROPERTY(QString exportSizeEstimate READ exportSizeEstimate NOTIFY exportChanged)
+ // 继续上次: {kind: capture|ps5|screen, label, summary}; empty when none.
+ Q_PROPERTY(QVariantMap lastSource READ lastSource NOTIFY preferencesChanged)
+ // P5 (2026-09-29): what is playing, for the page headers.
+ // sourceKind: "" | file | image | capture | ps5 | screen.
+ Q_PROPERTY(QString sourceKind READ sourceKind NOTIFY snapshotChanged)
+ Q_PROPERTY(QString sourceTitle READ sourceTitle NOTIFY snapshotChanged)
+ // "1080p60 · YUY2 · SDR": reported values only.
+ Q_PROPERTY(QString sourceFormatText READ sourceFormatText NOTIFY snapshotChanged)
+ Q_PROPERTY(QString sourceRateText READ sourceRateText NOTIFY snapshotChanged)
+ // 调色 undo / redo / copy / paste for the selected colour layer.
+ Q_PROPERTY(bool colourCanUndo READ colourCanUndo NOTIFY settingsChanged)
+ Q_PROPERTY(bool colourCanRedo READ colourCanRedo NOTIFY settingsChanged)
+ Q_PROPERTY(bool colourCanPaste READ colourCanPaste NOTIFY settingsChanged)
+ // Export queue rows: [{name, input, output, state, progress, note, current}].
+ Q_PROPERTY(QVariantList exportItems READ exportItems NOTIFY exportChanged)
+ Q_PROPERTY(QObject* exportQueueModel READ exportQueueModel CONSTANT)
+ Q_PROPERTY(int exportContainer READ exportContainer WRITE setExportContainer NOTIFY exportChanged)
+ Q_PROPERTY(int exportReadyCount READ exportReadyCount NOTIFY exportChanged)
+ Q_PROPERTY(QVariantList exportTracks READ exportTracks NOTIFY exportChanged)
+ Q_PROPERTY(int exportAudioPolicy READ exportAudioPolicy NOTIFY exportChanged)
+ Q_PROPERTY(int exportSubtitlePolicy READ exportSubtitlePolicy NOTIFY exportChanged)
+ Q_PROPERTY(bool exportSelectionEditable READ exportSelectionEditable NOTIFY exportChanged)
+ Q_PROPERTY(bool exportCompletionSound READ exportCompletionSound WRITE setExportCompletionSound NOTIFY exportChanged)
+ // Capture dialog preview: the session's poster still (the engine's own
+ // first-frame poster), as a data URL; "" when the session has none. Never a
+ // periodic readback: that would stall the live capture path.
+ Q_PROPERTY(QString capturePreviewUrl READ capturePreviewUrl NOTIFY snapshotChanged)
+ Q_PROPERTY(QString captureSignalText READ captureSignalText NOTIFY snapshotChanged)
+ Q_PROPERTY(QString captureSignalLevel READ captureSignalLevel NOTIFY snapshotChanged)
+ // A live source (PS5 / capture) that is still opening: what the picture area
+ // says meanwhile ("" once it plays or when nothing is opening).
+ Q_PROPERTY(QString liveOpeningText READ liveOpeningText NOTIFY snapshotChanged)
+ // Protection regions as the engine holds them: [{left,top,right,bottom,ellipse}].
+ Q_PROPERTY(QVariantList protectionRegions READ protectionRegions NOTIFY protectionChanged)
+ Q_PROPERTY(QString protectionDrawShape READ protectionDrawShape NOTIFY protectionDrawChanged)
+ Q_PROPERTY(double volume READ volume WRITE setVolume NOTIFY snapshotChanged)
+ Q_PROPERTY(bool muted READ muted WRITE setMuted NOTIFY snapshotChanged)
+ Q_PROPERTY(double playbackSpeed READ playbackSpeed NOTIFY snapshotChanged)
+ Q_PROPERTY(double playbackRate READ playbackRate WRITE setPlaybackRate NOTIFY snapshotChanged)
+ Q_PROPERTY(double minimumPlaybackRate READ minimumPlaybackRate CONSTANT)
+ Q_PROPERTY(double maximumPlaybackRate READ maximumPlaybackRate CONSTANT)
+ // True while the engine has not yet applied what the UI asked for. The UI
+ // shows the pending value and marks it, rather than lying about the state.
+ Q_PROPERTY(bool applying READ applying NOTIFY snapshotChanged)
+
+ // --- effect chain ------------------------------------------------------
+ // The chain as data. List mode renders it; node mode renders the same
+ // objects with positions. Both edit one chain, so switching modes never
+ // loses work.
+ Q_PROPERTY(QVariantList chain READ chain NOTIFY chainChanged)
+ Q_PROPERTY(QVariantList nodeConnections READ nodeConnections NOTIFY chainChanged)
+ Q_PROPERTY(QVariantList effectCatalog READ effectCatalog NOTIFY chainChanged)
+ Q_PROPERTY(QString chainError READ chainError NOTIFY chainChanged)
+ Q_PROPERTY(bool chainValid READ chainValid NOTIFY chainChanged)
+ Q_PROPERTY(int nodeMode READ nodeMode WRITE setNodeMode NOTIFY chainChanged)
+
+ // --- dialogs the UI opens ----------------------------------------------
+ Q_PROPERTY(QVariantList recentFiles READ recentFiles NOTIFY recentFilesChanged)
+ Q_PROPERTY(QObject* playlist READ playlist CONSTANT)
+ Q_PROPERTY(QVariantList presets READ presets NOTIFY presetsChanged)
+ // The name of the preset currently in effect, or "自定义" when the
+ // settings no longer match any stored preset. Derived, never guessed.
+ Q_PROPERTY(QString currentPresetName READ currentPresetName NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantList audioTracks READ audioTracks NOTIFY snapshotChanged)
+ Q_PROPERTY(int selectedAudioTrack READ selectedAudioTrack WRITE setSelectedAudioTrack NOTIFY snapshotChanged)
+ // The last capture session the user actually ran, for the home page's
+ // "continue" row. Absent until one exists: nothing is invented.
+ Q_PROPERTY(bool hasCaptureSession READ hasCaptureSession NOTIFY snapshotChanged)
+ Q_PROPERTY(QString captureSessionSummary READ captureSessionSummary NOTIFY snapshotChanged)
+ Q_PROPERTY(QString colorStatus READ colorStatus NOTIFY snapshotChanged)
+ Q_PROPERTY(QString videoHdrStatus READ videoHdrStatus NOTIFY snapshotChanged)
+
+ // --- export ------------------------------------------------------------
+ // Backed by the real ExportJobManager: state, progress and encoded counts come
+ // from its snapshot, not from a counter this file keeps.
+ Q_PROPERTY(bool exportRunning READ exportRunning NOTIFY exportChanged)
+ Q_PROPERTY(bool exportPaused READ exportPaused NOTIFY exportChanged)
+ Q_PROPERTY(double exportProgress READ exportProgress NOTIFY exportChanged)
+ Q_PROPERTY(QString exportStatus READ exportStatus NOTIFY exportChanged)
+ Q_PROPERTY(QString exportTarget READ exportTarget NOTIFY exportChanged)
+ Q_PROPERTY(int exportEncoded READ exportEncoded NOTIFY exportChanged)
+ Q_PROPERTY(int exportGenerated READ exportGenerated NOTIFY exportChanged)
+ Q_PROPERTY(bool exportHevc READ exportHevc WRITE setExportHevc NOTIFY exportChanged)
+ Q_PROPERTY(int exportBitrateMbps READ exportBitrateMbps WRITE setExportBitrateMbps NOTIFY exportChanged)
+ Q_PROPERTY(int exportRateControl READ exportRateControl WRITE setExportRateControl NOTIFY exportChanged)
+ Q_PROPERTY(double exportEtaSeconds READ exportEtaSeconds NOTIFY exportChanged)
+ Q_PROPERTY(int exportQueueCount READ exportQueueCount NOTIFY exportChanged)
+ // Queue items that could not start, and why the latest one failed.
+ Q_PROPERTY(int exportQueueFailures READ exportQueueFailures NOTIFY exportChanged)
+ Q_PROPERTY(QString exportQueueFailure READ exportQueueFailure NOTIFY exportChanged)
+ // Image export (P4-b): each image goes through the real player chain (open,
+ // first processed frame, the engine's own frame save), one after another.
+ Q_PROPERTY(bool imageBatchActive READ imageBatchActive NOTIFY imageBatchChanged)
+ Q_PROPERTY(int imageBatchDone READ imageBatchDone NOTIFY imageBatchChanged)
+ Q_PROPERTY(int imageBatchTotal READ imageBatchTotal NOTIFY imageBatchChanged)
+ Q_PROPERTY(int imageBatchFailures READ imageBatchFailures NOTIFY imageBatchChanged)
+ Q_PROPERTY(QString imageBatchStatus READ imageBatchStatus NOTIFY imageBatchChanged)
+ // The preset the export will use. The design requires export to select a
+ // preset (list or node) rather than assembling effects separately.
+ Q_PROPERTY(QString exportPresetName READ exportPresetName NOTIFY exportChanged)
+ Q_PROPERTY(int exportSrTargetIndex READ exportSrTargetIndex WRITE setExportSrTargetIndex NOTIFY exportChanged)
+ Q_PROPERTY(double exportTrimStart READ exportTrimStart WRITE setExportTrimStart NOTIFY exportChanged)
+ Q_PROPERTY(double exportTrimEnd READ exportTrimEnd WRITE setExportTrimEnd NOTIFY exportChanged)
+ // The super-resolution target, which is what actually decides the export size
+ // in this engine (0 = source, then Qhd/Uhd4K/Uhd8K). A separate "export
+ // resolution" field does not exist, so the UI exposes the real control instead
+ // of a picker that would change nothing.
+ Q_PROPERTY(int srTargetIndex READ srTargetIndex WRITE setSrTargetIndex NOTIFY settingsChanged)
+ Q_PROPERTY(QString srTargetLabel READ srTargetLabel NOTIFY settingsChanged)
+ // Presets as a picker model: one preset concept, list and node together.
+ Q_PROPERTY(QVariantList presetChoices READ presetChoices NOTIFY presetsChanged)
+ // The design's save flow lists what the preset will contain before naming it:
+ // each part, its current summary, and whether it is being saved.
+ Q_PROPERTY(QVariantList presetSaveParts READ presetSaveParts NOTIFY chainChanged)
+ // Which preset the app opens with, as the manage page's "set default" uses.
+ Q_PROPERTY(int defaultPresetIndex READ defaultPresetIndex NOTIFY presetsChanged)
+
+ // --- colour page -------------------------------------------------------
+ // The engine's ColorSettings carries a large parameter set. Rather than one
+ // property per field, the page reads and writes them by name through one pair
+ // of calls, and colourParameters() reports the catalogue the UI builds its
+ // controls from - so a control can only exist for a parameter that is real.
+ Q_PROPERTY(QVariantList colourParameters READ colourParameters NOTIFY colourParamsChanged)
+ // The same catalogue grouped by section, so the page can nest its collapsible
+ // sub-panels without re-grouping in QML.
+ Q_PROPERTY(QVariantList colourGroups READ colourGroups NOTIFY colourParamsChanged)
+ Q_PROPERTY(int selectedColourLayer READ selectedColourLayer WRITE setSelectedColourLayer NOTIFY settingsChanged)
+ Q_PROPERTY(QVariantMap colourState READ colourState NOTIFY settingsChanged)
+ // Imported .cube files (ColorLutStore, the folder the engine resolves) and
+ // the saved colour looks (ColorLookStore): a colour preset is one Color
+ // node's settings, separate from the whole-chain presets.
+ Q_PROPERTY(QVariantList lutLibrary READ lutLibrary NOTIFY colourLibraryChanged)
+ Q_PROPERTY(QVariantList colourLooks READ colourLooks NOTIFY colourLibraryChanged)
+
+public:
+ QObject* playlist() const;
+ Q_INVOKABLE void showPlaylist();
+ Q_INVOKABLE void addPlaylistFilesDialog();
+ Q_INVOKABLE void addPlaylistFolderDialog();
+ Q_INVOKABLE void openDroppedUrls(const QList<QUrl>& urls);
+ bool amdNrGpu() const;
+ QVariantMap effectCapabilities() const;
+ QVariantList nrRuntimeChoices() const;
+ QVariantList srBackendChoices() const;
+ Q_INVOKABLE QVariantMap effectAvailability(const QString& id) const;
+ // `engine` must outlive the bridge. `dataDirectory` holds ui-session.v1 and
+ // the preset library; empty means the default user data directory.
+ QmlPlayerBridge(engine::EngineController& engine, std::filesystem::path dataDirectory = {},
+ QObject* parent = nullptr);
+ ~QmlPlayerBridge() override;
+
+ QString outputSummary() const;
+ double displayFps() const;
+ bool displayFpsKnown() const;
+ double queuedFrames() const;
+ bool queuedFramesKnown() const;
+ int skippedFrames() const;
+ QString flowBackend() const;
+ int opticalFlowChoice() const;
+ Q_INVOKABLE bool setOpticalFlowChoice(int backend);
+ QVariantList stageTimings() const;
+ QVariantMap nodeTimings() const;
+ QVariantMap nodeAnchors() const;
+ Q_INVOKABLE bool setNodeAnchor(const QString& key, double x, double y);
+ Q_INVOKABLE QVariantMap colourStateAt(int index) const;
+ double stageBudgetMs() const;
+ double chainTotalMs() const;
+ bool chainTotalMsKnown() const;
+ double scheduleP95Ms() const;
+
+ QString fgBackendName() const;
+ QVariantList fgBackendChoices() const;
+ QString fgProviderText() const;
+ void setFgBackendName(const QString& value);
+ int vfgQuality() const;
+ void setVfgQuality(int value);
+ int fgMaxMultiplier() const;
+ bool fgEnabled() const;
+ void setFgEnabled(bool enabled);
+ QString submitFpsLabel() const;
+ QVariantList fgMultiplierChoices() const;
+ bool fgStrict() const;
+ void setFgStrict(bool value);
+ bool fgLowQueue() const;
+ void setFgLowQueue(bool value);
+
+ double colorExposure() const;
+ void setColorExposure(double v);
+ double colorContrast() const;
+ void setColorContrast(double v);
+ double colorSaturation() const;
+ void setColorSaturation(double v);
+ double colorTemperature() const;
+ void setColorTemperature(double v);
+
+ bool reducedMotion() const;
+ int uiDeviceGeneration() const;
+ // main.cpp: a window's scene graph came back after its graphics device was lost.
+ void noteUiDeviceRecreated(const QString& window);
+ void setReducedMotion(bool value);
+ QString defaultPage() const;
+ void setDefaultPage(const QString& value);
+ QString defaultPageLabel() const;
+ QString initialPage() const;
+ void setInitialPage(const QString& value);
+ QString currentPage() const;
+ void setCurrentPage(const QString& value);
+ QString remotePlayState() const;
+ QVariantList componentList() const;
+ QVariantList readComponentList() const;
+ QVariantList captureDevices() const;
+ QString captureDeviceId() const;
+ void setCaptureDeviceId(const QString& value);
+ QString captureDeviceLabel() const;
+ bool captureBlackmagicDevice() const;
+ bool captureForceSdr() const;
+ bool captureMagewellDevice() const;
+ QString captureMagewellStatus() const;
+ void setCaptureForceSdr(bool value);
+ bool captureFlipVertical() const;
+ void setCaptureFlipVertical(bool value);
+ QVariantList captureFormats() const;
+ QString captureFormatKey() const;
+ QString captureFormatLabel() const;
+ bool captureFormatCostHint() const;
+ void setCaptureFormatKey(const QString& key);
+ QVariantList captureResolutionOptions() const;
+ QString captureResolutionId() const;
+ void setCaptureResolutionId(const QString& id);
+ QVariantList captureFrameRateOptions() const;
+ int captureHiddenFrameRates() const;
+ QString captureFrameRateId() const;
+ void setCaptureFrameRateId(const QString& id);
+ QVariantList capturePixelOptions() const;
+ QString capturePixelId() const;
+ void setCapturePixelId(const QString& id);
+ QVariantList captureAudioInputs() const;
+ int captureAudioChoice() const;
+ void setCaptureAudioChoice(int choice);
+ int captureColorSpace() const;
+ void setCaptureColorSpace(int value);
+ int captureColorRange() const;
+ void setCaptureColorRange(int value);
+ double captureRequestedFps() const;
+ void setCaptureRequestedFps(double value);
+ int captureAudioIngress() const;
+ void setCaptureAudioIngress(int value);
+ int captureBufferMode() const;
+ void setCaptureBufferMode(int value);
+ bool captureQueryBusy() const;
+ QString captureStatus() const;
+ QVariantMap screenOptions() const;
+ // Declared here, in the public section: a Q_INVOKABLE above `public:` is
+ // private to QML ("is not a function").
+ Q_INVOKABLE void refreshCaptureTargets();
+ Q_INVOKABLE void refreshCaptureDevices();
+ Q_INVOKABLE bool openCaptureDriverSettings(bool inputSelector = false);
+ Q_INVOKABLE bool startCaptureSession();
+ Q_INVOKABLE bool setScreenOption(const QString& key, const QVariant& value);
+ Q_INVOKABLE bool startScreenCapture();
+ bool gameMode() const;
+ bool passthroughActive() const;
+ // The Home panel is open: the picture stays on top but takes the input back.
+ Q_INVOKABLE void setGamePanelOpen(bool open);
+ // Index into Qt.application.screens of the monitor 游戏模式 covers, or -1.
+ Q_INVOKABLE int gameModeScreenIndex() const;
+ // Test only (VEYRA_TEST_UI_BLOCK): blocks the GUI thread to exercise the hang release.
+ Q_INVOKABLE void testBlockUi(int ms);
+
+ QVariantList screenTargets() const;
+ QString screenTargetId() const;
+ void setScreenTargetId(const QString& value);
+ QString screenTargetLabel() const;
+
+ QVariantList subtitleTracks() const;
+ int subtitlePrimary() const;
+ void setSubtitlePrimary(int index);
+ int subtitleSecondary() const;
+ void setSubtitleSecondary(int index);
+ int subtitleOffsetMs() const;
+ void setSubtitleOffsetMs(int ms);
+ QString subtitleStatus() const;
+ bool subtitleAligning() const;
+ QString subtitleText() const;
+ int subtitleBottomInset() const;
+ void setSubtitleBottomInset(int value);
+ Q_INVOKABLE void loadSubtitleDialog();
+ Q_INVOKABLE bool loadSubtitleFile(const QString& path);
+ Q_INVOKABLE void nudgeSubtitle(int deltaMs);
+ Q_INVOKABLE void cycleSubtitle(bool secondary);
+ Q_INVOKABLE void toggleSubtitles();
+ Q_INVOKABLE void autoAlignSubtitle();
+
+ QVariantMap ps5() const;
+ QVariantList ps5Profiles() const;
+ QVariantMap ps5Control() const;
+ QObject* moonlightModel() const;
+ bool moonlightCaptured() const;
+ bool moonlightStatsVisible() const;
+ void setMoonlightStatsVisible(bool visible);
+ Q_INVOKABLE void openMoonlightDialog();
+ Q_INVOKABLE void moonlightCapture(bool on);
+ Q_INVOKABLE void moonlightDisconnect();
+ QObject* xboxModel() const;
+ Q_INVOKABLE void openXboxDialog();
+ Q_INVOKABLE void xboxDisconnect();
+ Q_INVOKABLE void ps5Load();
+ Q_INVOKABLE bool ps5Set(const QString& key, const QVariant& value);
+ Q_INVOKABLE void ps5SelectProfile(const QString& id);
+ Q_INVOKABLE void ps5Scan();
+ Q_INVOKABLE void ps5Pair(const QString& pin);
+ Q_INVOKABLE bool ps5Connect();
+ Q_INVOKABLE void ps5Wake();
+ Q_INVOKABLE void ps5Forget();
+ Q_INVOKABLE void ps5PsnLogin();
+ Q_INVOKABLE void ps5PsnComplete();
+ Q_INVOKABLE void ps5PsnForget();
+ Q_INVOKABLE void ps5SendLoginPin(const QString& pin);
+ Q_INVOKABLE void ps5Cancel();
+ Q_INVOKABLE void ps5Calibrate();
+ // key: enabled | background (saved preferences ps5CaptureControl / ps5ControlBackground).
+ Q_INVOKABLE void ps5ControlSet(const QString& key, const QVariant& value);
+ Q_INVOKABLE void ps5ControlRestart();
+ QString remotePlayHost() const;
+ void setRemotePlayHost(const QString& value);
+ QString remotePlayPin() const;
+ void setRemotePlayPin(const QString& value);
+
+ QVariantMap preferences() const;
+ QString gpuPriorityStatus() const;
+ bool enhancementPrewarmAvailable() const;
+ QString uiLanguage() const;
+ // main.cpp hands over the QML engine so a language change retranslates the scene.
+ void setQmlEngine(QQmlEngine* engine);
+ Q_INVOKABLE void rememberWindowSize(int width, int height);
+ Q_INVOKABLE bool setPreference(const QString& key, const QVariant& value);
+ // Available area (taskbar excluded) of the screen holding a point, or of the screen the
+ // pointer is on at start. QML's Screen.desktopAvailable* span the whole virtual desktop,
+ // which centred the window across two of three monitors (field report 2026-10-01).
+ Q_INVOKABLE QRect screenAvailableAt(int x, int y) const;
+ Q_INVOKABLE QRect launchScreenAvailable() const;
+ QString screenshotDirectory() const;
+ QString lastScreenshot() const;
+ QString dataDirectory() const;
+ QString logFile() const;
+ Q_INVOKABLE void chooseScreenshotDirectory();
+ QVariantMap shortcuts() const;
+ Q_INVOKABLE bool setShortcut(const QString& action, const QString& sequence);
+ Q_INVOKABLE void resetShortcuts();
+ int uiScaleActive() const;
+ bool obsGameCaptureActive() const;
+ bool overlayCompatActive() const;
+ // RivaTuner Statistics Server is running now (gfx::rivaTunerRunning).
+ Q_INVOKABLE bool rivaTunerRunning() const;
+ // An overlay that 监控软件兼容 reacts to is running now: RTSS, NVIDIA's in-game overlay
+ // or GamePP (gfx/PresentationHooks.h).
+ Q_INVOKABLE bool presentationOverlayRunning() const;
+ Q_INVOKABLE void openFeedbackPage();
+ Q_INVOKABLE void openReleasesPage();
+ QObject* updates() const;
+ QVariantList audioDevices() const;
+ QVariantList gpuMonitorChoices() const;
+ QString computeGpuHint() const;
+ QString gpuMonitorName() const;
+ QString audioOutputStatus() const;
+ bool audioOutputFallback() const;
+ Q_INVOKABLE void refreshAudioDevices();
+ Q_INVOKABLE void openScreenshotDirectory();
+ Q_INVOKABLE void openLogFolder();
+ Q_INVOKABLE void openDataFolder();
+ QString appName() const;
+ QString version() const;
+
+ // --- property accessors (Q_PROPERTY READ targets) -----------------------
+ // Split into read-only and read-write so a reviewer can see at a glance
+ // which values the UI can command and which it can only display.
+ QString statusText() const;
+ bool running() const;
+ bool paused() const;
+ bool failed() const;
+ bool isImage() const;
+ bool isCapture() const;
+ bool hasSource() const;
+ bool openingSource() const;
+ double position() const;
+ double duration() const;
+ double progress() const;
+ QString positionText() const;
+ QString durationText() const;
+
+ QString sourceName() const;
+ int thumbnailGeneration() const;
+ QString sourceSummary() const;
+ int sourceWidth() const;
+ int sourceHeight() const;
+ double sourceFps() const;
+ int sourceRotation() const;
+ double sourceAspect() const;
+ double previewAspect() const;
+
+ double submitFps() const;
+ bool submitFpsKnown() const;
+ double lateMs() const;
+ double lateP95Ms() const;
+ QString metricsSummary() const;
+ bool nrActive() const;
+ bool nrAutoActive() const;
+ int nrAutoPercent() const;
+ QString nrAutoStatus() const;
+ bool srActive() const;
+ bool fgActive() const;
+ bool captureRecovering() const;
+ double captureFps() const;
+ double captureDropped() const;
+ QString backendWarning() const;
+
+ bool applying() const;
+ double volume() const;
+ void setVolume(double value);
+ bool muted() const;
+ void setMuted(bool value);
+ double playbackSpeed() const;
+ double playbackRate() const;
+ double minimumPlaybackRate() const;
+ double maximumPlaybackRate() const;
+ void setPlaybackRate(double rate);
+
+ bool nrEnabled() const;
+ int selectedNrLayer() const;
+ void setSelectedNrLayer(int index);
+ void setNrEnabled(bool value);
+ bool srEnabled() const;
+ void setSrEnabled(bool value);
+ int fgMultiplier() const;
+ void setFgMultiplier(int value);
+ bool lowLatency() const;
+ void setLowLatency(bool value);
+ bool nrTemporal() const;
+ void setNrTemporal(bool value);
+ // Stage-5 output stabiliser (anti-flicker). Global rather than per-node:
+ // it runs once, after the whole NR stack and the residual composite.
+ double nrHoldStrength() const;
+ void setNrHoldStrength(double value);
+ double nrHoldTolerance() const;
+ void setNrHoldTolerance(double value);
+ bool videoHdr() const;
+ void setVideoHdr(bool value);
+ bool hdrCurve() const;
+ void setHdrCurve(bool enabled);
+ QVariantMap hdrCurveParams() const;
+ Q_INVOKABLE bool setHdrCurveParameter(const QString& key, double value);
+ bool hdrMetadataEnabled() const;
+ void setHdrMetadataEnabled(bool enabled);
+ QVariantMap hdrMetadataParams() const;
+ Q_INVOKABLE bool setHdrMetadataParameter(const QString& key, double value);
+ // Commit + re-assert the tuning in the places the session capture reads, so a
+ // change takes effect and survives a restart (the same trap the earlier
+ // per-scene brightness block hit: a plain commit left it out of the pending
+ // settings the session is written from).
+ bool commitHdrTuning(engine::EnhancementSettings settings);
+ QString hdrTuningPreset() const;
+ Q_INVOKABLE bool applyHdrTuningPreset(const QString& id);
+ // Custom: apply the recommendation above in one click.
+ Q_INVOKABLE bool applyRecommendedHdrTuning();
+ // Custom: forget every remembered display profile (the current device is kept
+ // and re-learned from the settings in use).
+ Q_INVOKABLE void forgetHdrDisplayProfiles();
+ Q_INVOKABLE bool applyHdrAxesPreset(const QString& content, const QString& environment);
+ Q_INVOKABLE bool setHdrDial(const QString& key, int level);
+ Q_INVOKABLE void forgetHdrTitles();
+ // The strength dial and the display peak (stored next to the baseline).
+ int hdrCurveStrength() const;
+ void setHdrCurveStrength(int percent);
+ int hdrDisplayPeakNits() const;
+ void setHdrDisplayPeakNits(int nits);
+ QVariantMap hdrDisplayInfo() const;
+ // Custom: see the hdrSourceInfo/hdrRecommendation/hdrPeakWarning properties.
+ QVariantMap hdrSourceInfo() const;
+ QVariantMap hdrRecommendation() const;
+ bool sourceIsSdr() const;
+ unsigned effectiveHdrDisplayPeakNits() const;
+ QVariantMap hdrPeakWarning() const;
+ int hdrDisplayProfileCount() const;
QString hdrPresetMode() const;
QString hdrAppliedFrom() const;
- void setHdrAppliedFrom(const QString& from);
- void setHdrPresetMode(const QString& mode);
- QVariantMap hdrAxes() const;
- QVariantMap hdrAxesMatch() const;
- QVariantMap hdrDials() const;
- QVariantMap hdrCurveGraph() const;
- QVariantMap hdrCurveCoverage() const;
- bool hdrTitleMemory() const;
- void setHdrTitleMemory(bool on);
- bool hdrAutoRecommend() const;
- void setHdrAutoRecommend(bool on);
- int hdrTitleCount() const;
- void syncHdrTitleProfile();
- bool loadHdrTitleProfile(const QString& title);
- bool storeHdrTitleProfile(const QString& title);
- bool loadHdrProfile(const QString& id);
- bool storeHdrProfile(const QString& id);
- QString hdrDisplayProfileId() const;
- void syncHdrDisplayProfile();
- QVariantMap videoHdrParams() const;
- Q_INVOKABLE bool setVideoHdrParameter(const QString& key, double value);
- int nrStyle() const;
- void setNrStyle(int value);
- double nrIntensity() const;
- void setNrIntensity(double value);
- double nrTone() const;
- void setNrTone(double value);
- double nrStructure() const;
- void setNrStructure(double value);
- double nrSkin() const;
- void setNrSkin(double value);
- bool nrAutoMask() const;
- void setNrAutoMask(bool value);
- bool nrUiCorrection() const;
- void setNrUiCorrection(bool value);
- int videoSrQuality() const;
- void setVideoSrQuality(int value);
- int dlssSrModel() const;
- void setDlssSrModel(int value);
- QVariantList dlssSrModelChoices() const;
- bool protectionEnabled() const;
- void setProtectionEnabled(bool value);
- QVariantMap protectionState() const;
- Q_INVOKABLE bool setProtectionRegion(double left, double top, double right, double bottom, double feather);
- bool colorEnabled() const;
- void setColorEnabled(bool value);
- int audioOffsetMs() const;
- void setAudioOffsetMs(int value);
- int audioSyncMode() const;
- void setAudioSyncMode(int value);
- bool audioSyncLive() const;
- double audioCompensationMs() const;
- double gpuUtilization() const;
- bool gpuUtilizationKnown() const;
- QString runStatus() const;
- QString runStatusLevel() const;
- QString runStatusDetail() const;
- QStringList runOptions() const;
- double effectiveOutputFps() const;
- double outputRateRatio() const;
- QVariantList frameTimes() const;
- int flowQuality() const;
- int hdrOutputMode() const;
- void setHdrOutputMode(int value);
- int fgMotionSource() const;
- void setFgMotionSource(int value);
- int srMotionSource() const;
- void setSrMotionSource(int value);
- int nrMotionSource() const;
- void setNrMotionSource(int value);
- void setFlowQuality(int value);
- bool amdFlowHalf() const;
- void setAmdFlowHalf(bool value);
- bool edgeAegis() const;
- void setEdgeAegis(bool value);
- bool dlssgLite() const;
- void setDlssgLite(bool value);
- bool dlssgLiteAvailable() const;
- QString dlssgLiteHint() const;
- int contentRate() const;
- void setContentRate(int value);
- int displaySync() const;
- void setDisplaySync(int value);
- bool variableRefresh() const;
- void setVariableRefresh(bool value);
- int vrrState() const;
- QString vrrHint() const;
- QString fgDisplayHint() const;
- Q_INVOKABLE void setPresentationFullscreen(bool value);
- bool fullscreenMemorySafe() const;
- int outputRateMode() const;
- void setOutputRateMode(int value);
- double outputCustomFps() const;
- void setOutputCustomFps(double value);
- bool presentationOwned() const;
- QString presentationStatus() const;
- int compareMode() const;
- void setCompareMode(int value);
- bool compareBase() const;
- void setCompareBase(bool value);
- double compareSplit() const;
- int aspectMode() const;
- void setAspectMode(int value);
- double audioSkewMs() const;
- bool audioSkewKnown() const;
- QString exportSizeEstimate() const;
- QVariantMap lastSource() const;
- QString sourceKind() const;
- QString sourceTitle() const;
- QString sourceFormatText() const;
- QString sourceRateText() const;
- bool colourCanUndo() const;
- bool colourCanRedo() const;
- bool colourCanPaste() const;
- Q_INVOKABLE bool colourUndo();
- Q_INVOKABLE bool colourRedo();
- Q_INVOKABLE void colourCopy();
- Q_INVOKABLE bool colourPaste();
- QVariantList exportItems() const;
- QObject* exportQueueModel() const;
- int exportContainer() const;void setExportContainer(int value);
- int exportReadyCount() const;
- QVariantList exportTracks() const;
- int exportAudioPolicy() const;int exportSubtitlePolicy() const;
- bool exportSelectionEditable() const;
- bool exportCompletionSound() const;void setExportCompletionSound(bool enabled);
- Q_INVOKABLE void addExportFiles(const QStringList& paths);
- Q_INVOKABLE void addCurrentExportFile();
- Q_INVOKABLE void previewExportItem(qulonglong id);
- Q_INVOKABLE void setExportTrackPolicy(bool audio,int policy);
- Q_INVOKABLE void toggleExportTrack(bool audio,int index,bool keep);
- Q_INVOKABLE void clearFinishedExportItems();
- Q_INVOKABLE QString fileThumbnailId(const QString& path, double seconds) const;
- QString capturePreviewUrl() const;
- QString captureSignalText() const;
- QString captureSignalLevel() const;
- QString liveOpeningText() const;
- Q_INVOKABLE void importPresetDialog();
- Q_INVOKABLE bool importPreset(const QString& path);
- Q_INVOKABLE void exportPresetDialog(int index);
- Q_INVOKABLE bool exportPreset(int index, const QString& path);
- // Split position from a pointer on the picture host (fractions of the host).
- Q_INVOKABLE void setCompareSplitAt(double hostFractionX);
- Q_INVOKABLE void resumeLastSource();
- void autoResumeLastSource();
- // List mode: an NR layer's model and residual back to their defaults.
- Q_INVOKABLE bool resetNrLayer(int index);
- QVariantList protectionRegions() const;
- QString protectionDrawShape() const;
- // Drawing on the picture: arm with "rect"/"ellipse" ("" cancels), then
- // report the drag in picture-host pixels; commit adds the region.
- Q_INVOKABLE bool beginProtectionDraw(const QString& shape);
- Q_INVOKABLE void updateProtectionDraw(double x0, double y0, double x1, double y1);
- Q_INVOKABLE bool commitProtectionDraw(double x0, double y0, double x1, double y1);
- Q_INVOKABLE bool removeProtectionRegion(int index);
- Q_INVOKABLE bool clearProtectionRegions();
- Q_INVOKABLE bool setProtectionFeather(double pixels);
-
- QVariantList chain() const;
- QVariantList nodeConnections() const;
- QVariantList nrLayers() const;
- Q_INVOKABLE bool setNrLayerParameter(int index, const QString& key, double value);
- Q_INVOKABLE QString nrAutoSelectionReason(int index) const;
- QVariantList effectCatalog() const;
- QString chainError() const;
- bool chainValid() const;
- int nodeMode() const;
- void setNodeMode(int mode);
-
- QVariantList recentFiles() const;
- QVariantList presets() const;
- QString currentPresetName() const;
- QVariantList audioTracks() const;
- int selectedAudioTrack() const;
- void setSelectedAudioTrack(int index);
- bool hasCaptureSession() const;
- QString captureSessionSummary() const;
- QString colorStatus() const;
- QString videoHdrStatus() const;
-
- bool exportRunning() const;
- bool exportPaused() const;
- double exportProgress() const;
- QString exportStatus() const;
- QString exportTarget() const;
- int exportEncoded() const;
- int exportGenerated() const;
- bool exportHevc() const;
- void setExportHevc(bool value);
- int exportBitrateMbps() const;
- void setExportBitrateMbps(int value);
- int exportRateControl() const;
- void setExportRateControl(int value);
- double exportEtaSeconds() const;
- int exportQueueCount() const;
- int exportQueueFailures() const;
- bool imageBatchActive() const;
- int imageBatchDone() const;
- int imageBatchTotal() const;
- int imageBatchFailures() const;
- QString imageBatchStatus() const;
- // The processed frame on screen, saved as PNG/JPEG (JXR for HDR output).
- Q_INVOKABLE void saveFrameDialog();
- Q_INVOKABLE void exportImagesDialog();
- Q_INVOKABLE bool startImageBatch(const QStringList& files, const QString& folder);
- Q_INVOKABLE void cancelImageBatch();
- QString exportQueueFailure() const;
- QString exportPresetName() const;
- int exportSrTargetIndex() const;
- void setExportSrTargetIndex(int index);
- double exportTrimStart() const;
- void setExportTrimStart(double seconds);
- double exportTrimEnd() const;
- void setExportTrimEnd(double seconds);
- int srTargetIndex() const;
- QString srTargetLabel() const;
- void setSrTargetIndex(int index);
- QVariantList presetChoices() const;
- QVariantList presetSaveParts() const;
- int defaultPresetIndex() const;
- QVariantList colourParameters() const;
- QVariantList colourGroups() const;
- int selectedColourLayer() const;
- void setSelectedColourLayer(int index);
- QVariantMap colourState() const;
- Q_INVOKABLE double colourParameter(const QString& name) const;
- Q_INVOKABLE bool setColourParameter(const QString& name, double value);
- Q_INVOKABLE bool resetColourParameter(const QString& name);
- Q_INVOKABLE bool setColourCurve(int channel, const QVariantList& points);
- Q_INVOKABLE bool setColourWheel(int zone, double hue, double saturation, double luminance);
- Q_INVOKABLE bool setColourOption(const QString& name, int value);
- Q_INVOKABLE bool resetColourGroup(int group);
- QVariantList lutLibrary() const;
- QVariantList colourLooks() const;
- Q_INVOKABLE void importLutDialog();
- Q_INVOKABLE bool importLut(const QString& path);
- // Empty name clears the LUT from the selected Color node.
- Q_INVOKABLE bool setColourLut(const QString& name);
- Q_INVOKABLE bool saveColourLook(const QString& name, bool replace);
- Q_INVOKABLE bool applyColourLook(int index);
- Q_INVOKABLE bool deleteColourLook(int index);
- Q_INVOKABLE void importColourLookDialog();
- Q_INVOKABLE bool importColourLook(const QString& path);
- Q_INVOKABLE void exportColourLookDialog(int index);
- Q_INVOKABLE bool exportColourLook(int index, const QString& path);
-
- // The native HWND the engine presents into. The UI creates it as a child
- // window of the QML window and hands it over; the bridge never draws QML
- // into it and Qt never touches its swapchain.
- void attachVideoWindow(qulonglong nativeHandle);
- // The QML main window: 游戏模式 changes its styles and owns its hotkeys.
- void attachMainWindow(qulonglong nativeHandle);
-
- // Run immediately before the engine opens a source. The presenter reads the
- // host window's client size once, when it initialises, and builds the
- // swapchain from it; a window that is still 0x0 at that moment yields a 1x1
- // surface that never recovers. The UI supplies this hook so the geometry is
- // settled at the one moment that matters, instead of racing a timer.
- void setPreOpenHook(std::function<void()> hook);
-
- // --- commands exposed to QML -------------------------------------------
- // Every one returns immediately; none touches the GPU or waits for the
- // engine.
- Q_INVOKABLE void openFileDialog();
- Q_INVOKABLE void openPath(const QString& path);
- Q_INVOKABLE void openCaptureDialog();
- // Reopens the last capture session with the same device and format.
- Q_INVOKABLE void resumeCaptureSession();
- Q_INVOKABLE void openPs5Dialog();
- Q_INVOKABLE void openScreenCaptureDialog();
- Q_INVOKABLE void openAudioDialog();
- Q_INVOKABLE void openSubtitleDialog();
- Q_INVOKABLE void togglePlayPause();
- Q_INVOKABLE void stopPlayback();
- Q_INVOKABLE void seekTo(double seconds);
- Q_INVOKABLE void seekBy(double seconds);
- // V held down: the engine shows the unprocessed frame until release
- // (AppShell holdOriginal -> engine.comparison(1, false)).
- Q_INVOKABLE void holdOriginal(bool held);
- // A dropped file (AppShell WM_DROPFILES): a local file URL goes to openPath.
- Q_INVOKABLE void openUrl(const QUrl& url);
- // UI events the shell logs (fullscreen, lock) under the given channel.
- Q_INVOKABLE void logUi(const QString& channel, const QString& text);
- // Limits a window's pointer input to a rectangle (QWindow::setMask); the
- // fullscreen bar window uses it so only its pill takes the pointer.
- Q_INVOKABLE void setWindowMask(QObject* window, const QRectF& rect);
- Q_INVOKABLE void stepFrame(int direction);
- Q_INVOKABLE void takeScreenshot();
- Q_INVOKABLE void chooseExportPath();
- // The export target without the dialog (the dialog's result, or --export-out in a test).
- void setExportPath(const QString& path);
- Q_INVOKABLE void startExport();
- Q_INVOKABLE void enqueueExportFile(const QString& input, const QString& output);
- Q_INVOKABLE void addExportFilesDialog();
- Q_INVOKABLE void cancelExport();
- Q_INVOKABLE void pauseExport(bool paused);
- Q_INVOKABLE void quit();
- Q_INVOKABLE void restartApplication();
- Q_INVOKABLE void restartForOverlayCompatibility();
- // Returns this page's controls to the engine defaults (the design's
- // "重置本页"); it does not touch presets or other pages.
- Q_INVOKABLE void resetCurrentPage();
-
- // Chain editing. The validator decides whether an edit is allowed where it
- // was asked (frame generation is pinned last, RTX Video HDR immediately
- // before it) and reports why when it is not.
- Q_INVOKABLE int addEffect(const QString& type);
- Q_INVOKABLE int duplicateNrLayer(int index);
- Q_INVOKABLE int nodeIndexForId(uint id) const;
- Q_INVOKABLE int duplicateNode(uint id);
- Q_INVOKABLE bool resetNode(uint id);
- Q_INVOKABLE bool connectNodes(uint from, uint to);
- Q_INVOKABLE bool disconnectNode(uint from);
- Q_INVOKABLE bool insertNodeAfter(uint id, uint after);
- Q_INVOKABLE bool removeEffect(int index);
- Q_INVOKABLE bool moveEffect(int from, int to);
- Q_INVOKABLE bool setEffectEnabled(int index, bool enabled);
- // Every NR layer off at once; on again restores the layers that were on.
- Q_INVOKABLE bool setAllNrEnabled(bool enabled);
- bool nrAnyEnabled() const;
- // Node-mode positions are UI state and persist with the chain.
- Q_INVOKABLE bool setEffectPosition(int index, double x, double y);
- Q_INVOKABLE QVariantMap effectDescriptor(const QString& type) const;
-
- // Presets. A preset carries selected parts, so there is one preset concept,
- // not several.
- Q_INVOKABLE bool applyPresetIndex(int index);
- Q_INVOKABLE bool selectExportPreset(int index);
- Q_INVOKABLE bool savePresetAs(const QString& name, int contentsMask, bool nodeMode);
- Q_INVOKABLE bool deletePreset(int index);
- Q_INVOKABLE bool renamePreset(int index, const QString& name);
- Q_INVOKABLE bool duplicatePreset(int index);
- Q_INVOKABLE bool setDefaultPreset(int index);
-
- Q_INVOKABLE void refreshRecentFiles();
- Q_INVOKABLE void clearRecentFiles();
- Q_INVOKABLE QString formatTime(double seconds) const;
-
- // Diagnostics for the settings page: what the engine actually reports,
- // never a summary written by hand.
- Q_INVOKABLE QString diagnosticsReport() const;
- Q_INVOKABLE void openProjectPage();
- Q_INVOKABLE void copyDiagnostics();
- // Re-reads the runtime manifest (Settings → 组件与许可 calls it when shown).
- Q_INVOKABLE void refreshComponentList();
-
-signals:
- void playlistRequested();
- void nodeAnchorsChanged();
- void ps5Changed();
- void ps5ControlChanged();
- void moonlightUiChanged();
- void imageBatchChanged();
- void audioDevicesChanged();
- void subtitlesChanged();
- void subtitleTextChanged();
- void preferencesChanged();
- void colourLibraryChanged();
- // Emitted only when the underlying snapshot actually changed, so QML
- // bindings do not re-evaluate 60 times a second for nothing.
- void snapshotChanged();
- void componentListChanged();
- void perfChanged();
- void protectionDrawChanged();
- void presentationChanged();
- void compareChanged();
- void thumbnailGenerationChanged();
- void thumbnailSourceChanged(const QString& path);
- void settingsChanged();
- void fgChoicesChanged();
- void effectCapabilitiesChanged();
- void chainChanged();
- // A slider edits one group's values without touching the chain's structure,
- // labels or positions; only that group notifies (audit 2026-10-15 B1).
- void nrLayersChanged();
- void videoHdrParamsChanged();
- void colourParamsChanged();
- void protectionChanged();
- void recentFilesChanged();
- void presetsChanged();
- void exportChanged();
- // Emitted when the capture device or screen-target lists are re-enumerated.
- void captureChanged();
- void uiDeviceGenerationChanged();
- // User-facing notices the UI shows as a transient message: a rejected
- // chain edit, an export that finished, a failed open.
- void notice(const QString& text, bool isError);
- // A presentation-hooking overlay appeared in a run whose interface draws on the GPU
- // ("rtss": its OSD is kept out of this process; "nvidia": NVIDIA's in-game overlay and
- // "gamepp": GamePP, which cannot be kept out); a restart draws the interface in software.
- void overlayRestartSuggested(const QString& kind);
- // The UI moves to a page by name when a command implies it.
- void navigate(const QString& page);
- void gameModeChanged();
- // 游戏模式 hotkeys: 0 = Home (adjust panel), 1 = Ctrl+Alt+Home (leave).
- void gameHotkey(int which);
- // The game-mode capture ended or failed, or the GUI hung, while the picture was in
- // front: the UI leaves fullscreen and shows the reason.
- void gameModeStopped(const QString& reason);
-
-private:
- // Structural change: every chain-derived property notifies.
- void emitChainChanged();
- // Value edit of one group; a change of the chain's validity notifies everything.
- void emitParameterChanged(void (QmlPlayerBridge::*group)(), bool wasValid);
- void updateGameMode();
- // 抖音直播伴侣 running (gfx/PresentationHooks.h): Realtime GPU priority is capped at
- // High while it runs and restored when it exits; 监控软件兼容 "off" leaves it alone.
- void updateLiveCompanionCompat();
- // The settings the UI is showing: the facade's pending copy, which the
- // engine has been asked to apply. Every settings property reads this, so
- // they can never disagree with each other.
- engine::EnhancementSettings settings() const;
- void startGpuSampler();
- void requestApplicationRestart(bool overlayCompatibility);
- void updateRunStatus();
- void applyPresentation();
- void applyAspect(bool force);
- // Live sources started from the start page: switch to 极简 first, show the
- // connecting note, and start the engine once the page and window have settled.
- void openAfterCinema(const QString& pending, std::function<void()> open);
- void rememberSource(const QString& kind, const QString& label);
- // Edits the list chain's protection node; rolls back when refused.
- bool editProtection(const std::function<bool(engine::ChainNode&)>& edit);
- engine::ColorSettings selectedColourSettings() const;
- bool commitColour(const engine::ColorSettings& colour);
- // Reads the export job's snapshot and emits exportChanged.
- void pollExport();
- // Pushes a stored preference to whatever consumes it (subtitle overlay,
- // audio endpoint). Called after load and after every accepted change.
- void applyPreference(const QString& key);
- void scheduleEnhancementPrewarm();
- // Hold-to-compare key (press/release), handled for the whole application.
- bool eventFilter(QObject* watched, QEvent* event) override;
- void rememberPosition(bool flush);
- void refreshSubtitles(const std::wstring& media);
- void tickSubtitles();
- void tickImageBatch();
- void tickCapture();
- void tickPs5();
- void tickPs5Control(bool force = false);
- // restart: replace a running session (another pairing, or the user asked).
- void startPs5Control(bool restart);
- void stopPs5Control();
- bool captureCardLive() const;
- void tickMoonlight();
- void tickXbox();
- void tickPlaylist();
-#ifdef VEYRA_ENABLE_XBOX
- void setupXbox();
-#endif
-#ifdef VEYRA_ENABLE_MOONLIGHT
- void setupMoonlight();
-#endif
- void queryCapture(int kind, std::wstring device);
- // Opens a device/stream URI (capture, screen) the way openPath opens a file.
- void openSourceUri(const std::wstring& uri, const std::wstring& label);
-
- struct Impl;
- std::unique_ptr<Impl> impl_;
- QObject* updates_ = nullptr;
-};
-
-} // namespace veyra::ui
+ void setHdrAppliedFrom(const QString& from);
+ void setHdrPresetMode(const QString& mode);
+ QVariantMap hdrAxes() const;
+ QVariantMap hdrAxesMatch() const;
+ QVariantMap hdrDials() const;
+ QVariantMap hdrCurveGraph() const;
+ QVariantMap hdrCurveCoverage() const;
+ Q_INVOKABLE void observeHdrCoverage(bool on);
+ bool hdrTitleMemory() const;
+ void setHdrTitleMemory(bool on);
+ bool hdrAutoRecommend() const;
+ void setHdrAutoRecommend(bool on);
+ int hdrTitleCount() const;
+ void syncHdrTitleProfile();
+ void flushHdrMemory();
+ bool loadHdrTitleProfile(const QString& title);
+ bool storeHdrTitleProfile(const QString& title);
+ bool loadHdrProfile(const QString& id);
+ bool storeHdrProfile(const QString& id);
+ QString hdrDisplayProfileId() const;
+ void syncHdrDisplayProfile();
+ QVariantMap videoHdrParams() const;
+ Q_INVOKABLE bool setVideoHdrParameter(const QString& key, double value);
+ int nrStyle() const;
+ void setNrStyle(int value);
+ double nrIntensity() const;
+ void setNrIntensity(double value);
+ double nrTone() const;
+ void setNrTone(double value);
+ double nrStructure() const;
+ void setNrStructure(double value);
+ double nrSkin() const;
+ void setNrSkin(double value);
+ bool nrAutoMask() const;
+ void setNrAutoMask(bool value);
+ bool nrUiCorrection() const;
+ void setNrUiCorrection(bool value);
+ int videoSrQuality() const;
+ void setVideoSrQuality(int value);
+ int dlssSrModel() const;
+ void setDlssSrModel(int value);
+ QVariantList dlssSrModelChoices() const;
+ bool protectionEnabled() const;
+ void setProtectionEnabled(bool value);
+ QVariantMap protectionState() const;
+ Q_INVOKABLE bool setProtectionRegion(double left, double top, double right, double bottom, double feather);
+ bool colorEnabled() const;
+ void setColorEnabled(bool value);
+ int audioOffsetMs() const;
+ void setAudioOffsetMs(int value);
+ int audioSyncMode() const;
+ void setAudioSyncMode(int value);
+ bool audioSyncLive() const;
+ double audioCompensationMs() const;
+ double gpuUtilization() const;
+ bool gpuUtilizationKnown() const;
+ QString runStatus() const;
+ QString runStatusLevel() const;
+ QString runStatusDetail() const;
+ QStringList runOptions() const;
+ double effectiveOutputFps() const;
+ double outputRateRatio() const;
+ QVariantList frameTimes() const;
+ int flowQuality() const;
+ int hdrOutputMode() const;
+ void setHdrOutputMode(int value);
+ int fgMotionSource() const;
+ void setFgMotionSource(int value);
+ int srMotionSource() const;
+ void setSrMotionSource(int value);
+ int nrMotionSource() const;
+ void setNrMotionSource(int value);
+ void setFlowQuality(int value);
+ bool amdFlowHalf() const;
+ void setAmdFlowHalf(bool value);
+ bool edgeAegis() const;
+ void setEdgeAegis(bool value);
+ bool dlssgLite() const;
+ void setDlssgLite(bool value);
+ bool dlssgLiteAvailable() const;
+ QString dlssgLiteHint() const;
+ int contentRate() const;
+ void setContentRate(int value);
+ int displaySync() const;
+ void setDisplaySync(int value);
+ bool variableRefresh() const;
+ void setVariableRefresh(bool value);
+ int vrrState() const;
+ QString vrrHint() const;
+ QString fgDisplayHint() const;
+ Q_INVOKABLE void setPresentationFullscreen(bool value);
+ bool fullscreenMemorySafe() const;
+ int outputRateMode() const;
+ void setOutputRateMode(int value);
+ double outputCustomFps() const;
+ void setOutputCustomFps(double value);
+ bool presentationOwned() const;
+ QString presentationStatus() const;
+ int compareMode() const;
+ void setCompareMode(int value);
+ bool compareBase() const;
+ void setCompareBase(bool value);
+ double compareSplit() const;
+ int aspectMode() const;
+ void setAspectMode(int value);
+ double audioSkewMs() const;
+ bool audioSkewKnown() const;
+ QString exportSizeEstimate() const;
+ QVariantMap lastSource() const;
+ QString sourceKind() const;
+ QString sourceTitle() const;
+ QString sourceFormatText() const;
+ QString sourceRateText() const;
+ bool colourCanUndo() const;
+ bool colourCanRedo() const;
+ bool colourCanPaste() const;
+ Q_INVOKABLE bool colourUndo();
+ Q_INVOKABLE bool colourRedo();
+ Q_INVOKABLE void colourCopy();
+ Q_INVOKABLE bool colourPaste();
+ QVariantList exportItems() const;
+ QObject* exportQueueModel() const;
+ int exportContainer() const;void setExportContainer(int value);
+ int exportReadyCount() const;
+ QVariantList exportTracks() const;
+ int exportAudioPolicy() const;int exportSubtitlePolicy() const;
+ bool exportSelectionEditable() const;
+ bool exportCompletionSound() const;void setExportCompletionSound(bool enabled);
+ Q_INVOKABLE void addExportFiles(const QStringList& paths);
+ Q_INVOKABLE void addCurrentExportFile();
+ Q_INVOKABLE void previewExportItem(qulonglong id);
+ Q_INVOKABLE void setExportTrackPolicy(bool audio,int policy);
+ Q_INVOKABLE void toggleExportTrack(bool audio,int index,bool keep);
+ Q_INVOKABLE void clearFinishedExportItems();
+ Q_INVOKABLE QString fileThumbnailId(const QString& path, double seconds) const;
+ QString capturePreviewUrl() const;
+ QString captureSignalText() const;
+ QString captureSignalLevel() const;
+ QString liveOpeningText() const;
+ Q_INVOKABLE void importPresetDialog();
+ Q_INVOKABLE bool importPreset(const QString& path);
+ Q_INVOKABLE void exportPresetDialog(int index);
+ Q_INVOKABLE bool exportPreset(int index, const QString& path);
+ // Split position from a pointer on the picture host (fractions of the host).
+ Q_INVOKABLE void setCompareSplitAt(double hostFractionX);
+ Q_INVOKABLE void resumeLastSource();
+ void autoResumeLastSource();
+ // List mode: an NR layer's model and residual back to their defaults.
+ Q_INVOKABLE bool resetNrLayer(int index);
+ QVariantList protectionRegions() const;
+ QString protectionDrawShape() const;
+ // Drawing on the picture: arm with "rect"/"ellipse" ("" cancels), then
+ // report the drag in picture-host pixels; commit adds the region.
+ Q_INVOKABLE bool beginProtectionDraw(const QString& shape);
+ Q_INVOKABLE void updateProtectionDraw(double x0, double y0, double x1, double y1);
+ Q_INVOKABLE bool commitProtectionDraw(double x0, double y0, double x1, double y1);
+ Q_INVOKABLE bool removeProtectionRegion(int index);
+ Q_INVOKABLE bool clearProtectionRegions();
+ Q_INVOKABLE bool setProtectionFeather(double pixels);
+
+ QVariantList chain() const;
+ QVariantList nodeConnections() const;
+ QVariantList nrLayers() const;
+ Q_INVOKABLE bool setNrLayerParameter(int index, const QString& key, double value);
+ Q_INVOKABLE QString nrAutoSelectionReason(int index) const;
+ QVariantList effectCatalog() const;
+ QString chainError() const;
+ bool chainValid() const;
+ int nodeMode() const;
+ void setNodeMode(int mode);
+
+ QVariantList recentFiles() const;
+ QVariantList presets() const;
+ QString currentPresetName() const;
+ QVariantList audioTracks() const;
+ int selectedAudioTrack() const;
+ void setSelectedAudioTrack(int index);
+ bool hasCaptureSession() const;
+ QString captureSessionSummary() const;
+ QString colorStatus() const;
+ QString videoHdrStatus() const;
+
+ bool exportRunning() const;
+ bool exportPaused() const;
+ double exportProgress() const;
+ QString exportStatus() const;
+ QString exportTarget() const;
+ int exportEncoded() const;
+ int exportGenerated() const;
+ bool exportHevc() const;
+ void setExportHevc(bool value);
+ int exportBitrateMbps() const;
+ void setExportBitrateMbps(int value);
+ int exportRateControl() const;
+ void setExportRateControl(int value);
+ double exportEtaSeconds() const;
+ int exportQueueCount() const;
+ int exportQueueFailures() const;
+ bool imageBatchActive() const;
+ int imageBatchDone() const;
+ int imageBatchTotal() const;
+ int imageBatchFailures() const;
+ QString imageBatchStatus() const;
+ // The processed frame on screen, saved as PNG/JPEG (JXR for HDR output).
+ Q_INVOKABLE void saveFrameDialog();
+ Q_INVOKABLE void exportImagesDialog();
+ Q_INVOKABLE bool startImageBatch(const QStringList& files, const QString& folder);
+ Q_INVOKABLE void cancelImageBatch();
+ QString exportQueueFailure() const;
+ QString exportPresetName() const;
+ int exportSrTargetIndex() const;
+ void setExportSrTargetIndex(int index);
+ double exportTrimStart() const;
+ void setExportTrimStart(double seconds);
+ double exportTrimEnd() const;
+ void setExportTrimEnd(double seconds);
+ int srTargetIndex() const;
+ QString srTargetLabel() const;
+ void setSrTargetIndex(int index);
+ QVariantList presetChoices() const;
+ QVariantList presetSaveParts() const;
+ int defaultPresetIndex() const;
+ QVariantList colourParameters() const;
+ QVariantList colourGroups() const;
+ int selectedColourLayer() const;
+ void setSelectedColourLayer(int index);
+ QVariantMap colourState() const;
+ Q_INVOKABLE double colourParameter(const QString& name) const;
+ Q_INVOKABLE bool setColourParameter(const QString& name, double value);
+ Q_INVOKABLE bool resetColourParameter(const QString& name);
+ Q_INVOKABLE bool setColourCurve(int channel, const QVariantList& points);
+ Q_INVOKABLE bool setColourWheel(int zone, double hue, double saturation, double luminance);
+ Q_INVOKABLE bool setColourOption(const QString& name, int value);
+ Q_INVOKABLE bool resetColourGroup(int group);
+ QVariantList lutLibrary() const;
+ QVariantList colourLooks() const;
+ Q_INVOKABLE void importLutDialog();
+ Q_INVOKABLE bool importLut(const QString& path);
+ // Empty name clears the LUT from the selected Color node.
+ Q_INVOKABLE bool setColourLut(const QString& name);
+ Q_INVOKABLE bool saveColourLook(const QString& name, bool replace);
+ Q_INVOKABLE bool applyColourLook(int index);
+ Q_INVOKABLE bool deleteColourLook(int index);
+ Q_INVOKABLE void importColourLookDialog();
+ Q_INVOKABLE bool importColourLook(const QString& path);
+ Q_INVOKABLE void exportColourLookDialog(int index);
+ Q_INVOKABLE bool exportColourLook(int index, const QString& path);
+
+ // The native HWND the engine presents into. The UI creates it as a child
+ // window of the QML window and hands it over; the bridge never draws QML
+ // into it and Qt never touches its swapchain.
+ void attachVideoWindow(qulonglong nativeHandle);
+ // The QML main window: 游戏模式 changes its styles and owns its hotkeys.
+ void attachMainWindow(qulonglong nativeHandle);
+
+ // Run immediately before the engine opens a source. The presenter reads the
+ // host window's client size once, when it initialises, and builds the
+ // swapchain from it; a window that is still 0x0 at that moment yields a 1x1
+ // surface that never recovers. The UI supplies this hook so the geometry is
+ // settled at the one moment that matters, instead of racing a timer.
+ void setPreOpenHook(std::function<void()> hook);
+
+ // --- commands exposed to QML -------------------------------------------
+ // Every one returns immediately; none touches the GPU or waits for the
+ // engine.
+ Q_INVOKABLE void openFileDialog();
+ Q_INVOKABLE void openPath(const QString& path);
+ Q_INVOKABLE void openCaptureDialog();
+ // Reopens the last capture session with the same device and format.
+ Q_INVOKABLE void resumeCaptureSession();
+ Q_INVOKABLE void openPs5Dialog();
+ Q_INVOKABLE void openScreenCaptureDialog();
+ Q_INVOKABLE void openAudioDialog();
+ Q_INVOKABLE void openSubtitleDialog();
+ Q_INVOKABLE void togglePlayPause();
+ Q_INVOKABLE void stopPlayback();
+ Q_INVOKABLE void seekTo(double seconds);
+ Q_INVOKABLE void seekBy(double seconds);
+ // V held down: the engine shows the unprocessed frame until release
+ // (AppShell holdOriginal -> engine.comparison(1, false)).
+ Q_INVOKABLE void holdOriginal(bool held);
+ // A dropped file (AppShell WM_DROPFILES): a local file URL goes to openPath.
+ Q_INVOKABLE void openUrl(const QUrl& url);
+ // UI events the shell logs (fullscreen, lock) under the given channel.
+ Q_INVOKABLE void logUi(const QString& channel, const QString& text);
+ // Limits a window's pointer input to a rectangle (QWindow::setMask); the
+ // fullscreen bar window uses it so only its pill takes the pointer.
+ Q_INVOKABLE void setWindowMask(QObject* window, const QRectF& rect);
+ Q_INVOKABLE void stepFrame(int direction);
+ Q_INVOKABLE void takeScreenshot();
+ Q_INVOKABLE void chooseExportPath();
+ // The export target without the dialog (the dialog's result, or --export-out in a test).
+ void setExportPath(const QString& path);
+ Q_INVOKABLE void startExport();
+ Q_INVOKABLE void enqueueExportFile(const QString& input, const QString& output);
+ Q_INVOKABLE void addExportFilesDialog();
+ Q_INVOKABLE void cancelExport();
+ Q_INVOKABLE void pauseExport(bool paused);
+ Q_INVOKABLE void quit();
+ Q_INVOKABLE void restartApplication();
+ Q_INVOKABLE void restartForOverlayCompatibility();
+ // Returns this page's controls to the engine defaults (the design's
+ // "重置本页"); it does not touch presets or other pages.
+ Q_INVOKABLE void resetCurrentPage();
+
+ // Chain editing. The validator decides whether an edit is allowed where it
+ // was asked (frame generation is pinned last, RTX Video HDR immediately
+ // before it) and reports why when it is not.
+ Q_INVOKABLE int addEffect(const QString& type);
+ Q_INVOKABLE int duplicateNrLayer(int index);
+ Q_INVOKABLE int nodeIndexForId(uint id) const;
+ Q_INVOKABLE int duplicateNode(uint id);
+ Q_INVOKABLE bool resetNode(uint id);
+ Q_INVOKABLE bool connectNodes(uint from, uint to);
+ Q_INVOKABLE bool disconnectNode(uint from);
+ Q_INVOKABLE bool insertNodeAfter(uint id, uint after);
+ Q_INVOKABLE bool removeEffect(int index);
+ Q_INVOKABLE bool moveEffect(int from, int to);
+ Q_INVOKABLE bool setEffectEnabled(int index, bool enabled);
+ // Every NR layer off at once; on again restores the layers that were on.
+ Q_INVOKABLE bool setAllNrEnabled(bool enabled);
+ bool nrAnyEnabled() const;
+ // Node-mode positions are UI state and persist with the chain.
+ Q_INVOKABLE bool setEffectPosition(int index, double x, double y);
+ Q_INVOKABLE QVariantMap effectDescriptor(const QString& type) const;
+
+ // Presets. A preset carries selected parts, so there is one preset concept,
+ // not several.
+ Q_INVOKABLE bool applyPresetIndex(int index);
+ Q_INVOKABLE bool selectExportPreset(int index);
+ Q_INVOKABLE bool savePresetAs(const QString& name, int contentsMask, bool nodeMode);
+ Q_INVOKABLE bool deletePreset(int index);
+ Q_INVOKABLE bool renamePreset(int index, const QString& name);
+ Q_INVOKABLE bool duplicatePreset(int index);
+ Q_INVOKABLE bool setDefaultPreset(int index);
+
+ Q_INVOKABLE void refreshRecentFiles();
+ Q_INVOKABLE void clearRecentFiles();
+ Q_INVOKABLE QString formatTime(double seconds) const;
+
+ // Diagnostics for the settings page: what the engine actually reports,
+ // never a summary written by hand.
+ Q_INVOKABLE QString diagnosticsReport() const;
+ Q_INVOKABLE void openProjectPage();
+ Q_INVOKABLE void copyDiagnostics();
+ // Re-reads the runtime manifest (Settings → 组件与许可 calls it when shown).
+ Q_INVOKABLE void refreshComponentList();
+
+signals:
+ void playlistRequested();
+ void nodeAnchorsChanged();
+ void ps5Changed();
+ void ps5ControlChanged();
+ void moonlightUiChanged();
+ void imageBatchChanged();
+ void audioDevicesChanged();
+ void subtitlesChanged();
+ void subtitleTextChanged();
+ void preferencesChanged();
+ void colourLibraryChanged();
+ // Emitted only when the underlying snapshot actually changed, so QML
+ // bindings do not re-evaluate 60 times a second for nothing.
+ void snapshotChanged();
+ void componentListChanged();
+ void perfChanged();
+ void protectionDrawChanged();
+ void presentationChanged();
+ void compareChanged();
+ void thumbnailGenerationChanged();
+ void thumbnailSourceChanged(const QString& path);
+ void settingsChanged();
+ void fgChoicesChanged();
+ void effectCapabilitiesChanged();
+ void chainChanged();
+ // A slider edits one group's values without touching the chain's structure,
+ // labels or positions; only that group notifies (audit 2026-10-15 B1).
+ void nrLayersChanged();
+ void videoHdrParamsChanged();
+ void colourParamsChanged();
+ void protectionChanged();
+ void recentFilesChanged();
+ void presetsChanged();
+ void exportChanged();
+ // Emitted when the capture device or screen-target lists are re-enumerated.
+ void captureChanged();
+ void uiDeviceGenerationChanged();
+ // User-facing notices the UI shows as a transient message: a rejected
+ // chain edit, an export that finished, a failed open.
+ void notice(const QString& text, bool isError);
+ // A presentation-hooking overlay appeared in a run whose interface draws on the GPU
+ // ("rtss": its OSD is kept out of this process; "nvidia": NVIDIA's in-game overlay and
+ // "gamepp": GamePP, which cannot be kept out); a restart draws the interface in software.
+ void overlayRestartSuggested(const QString& kind);
+ // The UI moves to a page by name when a command implies it.
+ void navigate(const QString& page);
+ void gameModeChanged();
+ // 游戏模式 hotkeys: 0 = Home (adjust panel), 1 = Ctrl+Alt+Home (leave).
+ void gameHotkey(int which);
+ // The game-mode capture ended or failed, or the GUI hung, while the picture was in
+ // front: the UI leaves fullscreen and shows the reason.
+ void gameModeStopped(const QString& reason);
+
+private:
+ // Structural change: every chain-derived property notifies.
+ void emitChainChanged();
+ // Value edit of one group; a change of the chain's validity notifies everything.
+ void emitParameterChanged(void (QmlPlayerBridge::*group)(), bool wasValid);
+ void updateGameMode();
+ // 抖音直播伴侣 running (gfx/PresentationHooks.h): Realtime GPU priority is capped at
+ // High while it runs and restored when it exits; 监控软件兼容 "off" leaves it alone.
+ void updateLiveCompanionCompat();
+ // The settings the UI is showing: the facade's pending copy, which the
+ // engine has been asked to apply. Every settings property reads this, so
+ // they can never disagree with each other.
+ engine::EnhancementSettings settings() const;
+ void startGpuSampler();
+ void requestApplicationRestart(bool overlayCompatibility);
+ void updateRunStatus();
+ void applyPresentation();
+ void applyAspect(bool force);
+ // Live sources started from the start page: switch to 极简 first, show the
+ // connecting note, and start the engine once the page and window have settled.
+ void openAfterCinema(const QString& pending, std::function<void()> open);
+ void rememberSource(const QString& kind, const QString& label);
+ // Edits the list chain's protection node; rolls back when refused.
+ bool editProtection(const std::function<bool(engine::ChainNode&)>& edit);
+ engine::ColorSettings selectedColourSettings() const;
+ bool commitColour(const engine::ColorSettings& colour);
+ // Reads the export job's snapshot and emits exportChanged.
+ void pollExport();
+ // Pushes a stored preference to whatever consumes it (subtitle overlay,
+ // audio endpoint). Called after load and after every accepted change.
+ void applyPreference(const QString& key);
+ void scheduleEnhancementPrewarm();
+ // Hold-to-compare key (press/release), handled for the whole application.
+ bool eventFilter(QObject* watched, QEvent* event) override;
+ void rememberPosition(bool flush);
+ void refreshSubtitles(const std::wstring& media);
+ void tickSubtitles();
+ void tickImageBatch();
+ void tickCapture();
+ void tickPs5();
+ void tickPs5Control(bool force = false);
+ // restart: replace a running session (another pairing, or the user asked).
+ void startPs5Control(bool restart);
+ void stopPs5Control();
+ bool captureCardLive() const;
+ void tickMoonlight();
+ void tickXbox();
+ void tickPlaylist();
+#ifdef VEYRA_ENABLE_XBOX
+ void setupXbox();
+#endif
+#ifdef VEYRA_ENABLE_MOONLIGHT
+ void setupMoonlight();
+#endif
+ void queryCapture(int kind, std::wstring device);
+ // Opens a device/stream URI (capture, screen) the way openPath opens a file.
+ void openSourceUri(const std::wstring& uri, const std::wstring& label);
+
+ struct Impl;
+ std::unique_ptr<Impl> impl_;
+ QObject* updates_ = nullptr;
+};
+
+} // namespace veyra::ui
diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qml
index ee20a5ab..2f13e066 100644
--- a/qml/Veyra/ProPage.qml
+++ b/qml/Veyra/ProPage.qml
@@ -25,6 +25,8 @@ VPage {
// to the left of the picture, with the performance orbs beside it. Both are cut
// out of the native video window like any other cover.
property bool overlay: false
+ readonly property bool hdrMeterObserved: visible && tab === "display" && hdrCurveAccordion.open && hdrReadAccordion.open && veyra.hdrCurve
+ onHdrMeterObservedChanged: veyra.observeHdrCoverage(hdrMeterObserved)
function overlayContains(x, y) {
const hit = item => x >= item.x && x <= item.x + item.width && y >= item.y && y <= item.y + item.height
return overlay && (hit(insp) || hit(quickOrbs))
@@ -2021,6 +2023,7 @@ VPage {
// HDR 亮度曲线: a static curve. Unlike a plain exposure the
// highlights are protected by construction.
VAccordion {
+ id: hdrCurveAccordion
objectName: "list-hdr-curve"
Layout.fillWidth: true
glyph: "sun"
@@ -2033,6 +2036,7 @@ VPage {
// 虚线是"不做任何处理"的参考线,橙线是当前曲线。
VAccordion {
+ id: hdrReadAccordion
objectName: "list-hdr-readgroup"
Layout.fillWidth: true
glyph: "activity"
@@ -2047,9 +2051,9 @@ VPage {
VRow {
hintBelow: true
objectName: "list-hdrcurve-live"
- label: qsTr("实时裁剪")
+ label: qsTr("画面抽样统计")
hint: !veyra.hdrCurveCoverage.valid
- ? qsTr("播放中且曲线开启时才会测量")
+ ? qsTr("展开本卡片并播放 HDR 输出时测量,每秒最多 4 次")
: veyra.hdrPeakWarning.capNits === 0
? qsTr("曲线未设「峰值上限」,不会有像素被压平。滚降区 %1% · 暗部提升区 %2%")
.arg(Number(veyra.hdrCurveCoverage.rollOff).toFixed(1))
@@ -2059,7 +2063,7 @@ VPage {
.arg(veyra.hdrPeakWarning.capNits)
.arg(Number(veyra.hdrCurveCoverage.rollOff).toFixed(1))
.arg(Number(veyra.hdrCurveCoverage.lift).toFixed(1))
- : qsTr("高光被压 %1% · 滚降区 %2% · 暗部提升区 %3%")
+ : qsTr("触及硬上限 %1% · 高光压缩区 %2% · 暗部提升区 %3%")
.arg(Number(veyra.hdrCurveCoverage.aboveCeiling).toFixed(1))
.arg(Number(veyra.hdrCurveCoverage.rollOff).toFixed(1))
.arg(Number(veyra.hdrCurveCoverage.lift).toFixed(1))
@@ -2078,8 +2082,8 @@ VPage {
.arg(veyra.hdrPeakWarning.sourcePeakNits)
.arg(veyra.hdrPeakWarning.capNits)
.arg(veyra.hdrPeakWarning.clipped
- ? qsTr("上限以上的高光会被压平")
- : qsTr("上限已覆盖片源峰值,不会裁剪"))
+ ? qsTr("超过上限的亮度需要压缩;是否触及硬上限以抽样读数为准")
+ : qsTr("上限覆盖片源标注峰值;处理后的画面以抽样读数为准"))
value: veyra.hdrPeakWarning.clipped ? qsTr("会压缩") : qsTr("安全")
}
Canvas {
@@ -2124,7 +2128,7 @@ VPage {
// 决定档位与强度,界面只解释理由,不做测量。
Text {
Layout.fillWidth: true
- text: qsTr("曲线只在 HDR 片源 + HDR10 输出下生效。SDR 片源不使用曲线:请改用「色彩」页的曝光 / 阴影 / 高光(作用于处理链前端),或开启 RTX Video HDR 做 SDR→HDR 转换。")
+ text: qsTr("曲线作用于 HDR10 或 scRGB 输出,也适用于 RTX Video HDR 转换后的画面。低亮度画面可能不会触及高光阈值。")
wrapMode: Text.WordWrap
color: Theme.t3
font.family: Theme.fontUi; font.pixelSize: 11
@@ -2148,7 +2152,7 @@ VPage {
hint: {
if (!veyra.hdrRecommendation.available)
return veyra.sourceIsSdr
- ? qsTr("SDR 片源不使用曲线,无需选档(请用「色彩」页的曝光/阴影,或 RTX Video HDR)")
+ ? qsTr("SDR 片源没有 HDR 亮度元数据;可手动选档,HDR 输出时生效。")
: qsTr("片源没有携带亮度信息(抓屏 / 串流),无法自动选档");
var r = veyra.hdrRecommendation.reason;
var why = r === "dark-content" ? qsTr("整片偏暗、只有少量亮点")
@@ -2454,13 +2458,11 @@ VPage {
Text {
Layout.fillWidth: true
visible: veyra.hdrDisplayInfo.valid
- text: veyra.hdrDisplayInfo.plausible
- ? qsTr("系统报告:峰值 %1、全屏 %2、黑位 %3 nit")
+ text: qsTr("系统报告:峰值 %1、全屏 %2、黑位 %3 nit")
.arg(veyra.hdrDisplayInfo.peakNits)
.arg(veyra.hdrDisplayInfo.fullFrameNits)
.arg(Number(veyra.hdrDisplayInfo.minNits).toFixed(3))
- : qsTr("系统报告不可信(报 %1 nit 且黑位 0.000):已按 1000 nit 参考值计算,可手动拖动或填真实值")
- .arg(veyra.hdrDisplayInfo.peakNits)
+ + " · " + qsTr("系统数值不是实测;不符时可手动填写峰值")
wrapMode: Text.WordWrap
color: Theme.t3
font.family: Theme.fontUi; font.pixelSize: 11
@@ -2597,7 +2599,7 @@ VPage {
Text {
Layout.fillWidth: true
text: qsTr("HDR10 提示;系统或显示器可能忽略,让它的动态色调映射有依据。")
- + qsTr("曲线生效时会按曲线后的输出上报(不会虚报更高的峰值);SDR 片源不发送。")
+ + qsTr("曲线生效时会约束内容亮度提示;SDR 输入默认不发送,手动填写除外。")
wrapMode: Text.WordWrap
color: Theme.t3
font.family: Theme.fontUi; font.pixelSize: 11
diff --git a/shaders/HdrCurveCoverage.hlsl b/shaders/HdrCurveCoverage.hlsl
new file mode 100644
index 00000000..83856938
--- /dev/null
+++ b/shaders/HdrCurveCoverage.hlsl
@@ -0,0 +1,38 @@
+// Sparse display statistics only: no pixel buffer ever leaves the GPU.
+#include "HdrColor.hlsli"
+#include "PresentationRotation.hlsli"
+Texture2D<float4> sourceTex : register(t0);
+RWStructuredBuffer<uint> stats : register(u0);
+cbuffer Params : register(b0) { float4 srcDims; float4 dstDims; float4 curve0; float4 curve1; };
+[numthreads(8,8,1)]
+void main(uint3 id : SV_DispatchThreadID) {
+ if (id.x>=64 || id.y>=36) return;
+ float2 uv=(float2(id.xy)+0.5)/float2(64,36);
+ if(srcDims.w>0){
+ float fit=min(dstDims.x/srcDims.x,dstDims.y/srcDims.y)*srcDims.w;
+ uv=(uv-.5)*dstDims.xy/(srcDims.xy*fit)+dstDims.zw;
+ }
+ uint flags=uint(srcDims.z+0.5);
+ float3 rgb=0;
+ if(all(uv>=0)&&all(uv<=1)){
+ uv=PresentationSourceUv(uv,(flags>>6)&3);
+ uint width,height;sourceTex.GetDimensions(width,height);
+ rgb=sourceTex.Load(int3(min(uint2(uv*float2(width,height)),uint2(width-1,height-1)),0)).rgb;
+ if(flags&32)rgb=HdrDecodePq(rgb);
+ }
+ float3 nits=rgb*80.0;
+ float y=dot(nits,float3(.212639,.715169,.072192));
+ InterlockedAdd(stats[0],1);
+ if(!isfinite(y)||y<=1e-6)return;
+ InterlockedMax(stats[4],asuint(y));
+ if(curve0.x!=0&&curve0.y>0&&y<curve0.y)InterlockedAdd(stats[3],1);
+ float before=y;
+ if(curve0.x!=0&&curve0.y>0){float w=saturate(1-y/curve0.y);y*=1+w*w*(exp2(curve0.x)-1);}
+ float peak=curve1.y>0?curve1.y:1000;
+ if(curve0.z>0&&abs(curve0.z-203)>.5&&peak>curve0.z+1)y=peak*pow(max(y/peak,0),log(curve0.z/peak)/log(203/peak));
+ if(curve0.w>0&&curve1.x>0&&y>curve0.w){InterlockedAdd(stats[2],1);y=curve0.w+(y-curve0.w)/(1+(y-curve0.w)/curve1.x);}
+ bool clipped=curve1.y>0&&y>curve1.y;
+ // PresentBlit also caps the brightest BT.2020 channel to preserve hue.
+ if(curve1.y>0&&max(max(HdrTo2020(nits*y/before).r,HdrTo2020(nits*y/before).g),HdrTo2020(nits*y/before).b)>curve1.y)clipped=true;
+ if(clipped)InterlockedAdd(stats[1],1);
+}
diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cpp
index c3d3b6fe..8e9faaff 100644
--- a/src/engine/EngineController.cpp
+++ b/src/engine/EngineController.cpp
@@ -2491,6 +2491,7 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s
const auto presentBeginHost=host100ns();
const auto begin=Clock::now();const auto before=presenter.submittedCount();
presenter.reflexFrame(watch->reflexFrame);
+ presenter.observeHdrCoverage(hdrCoverageObserved_.load());
if(!presenter.present(ctx,ring,*graph,item.lease->slot,generated,item.lease->referencesValid,comparisonMode_,comparisonBase_,comparisonSplit_,item.identity,previewView(),item.pts100ns))return {State::Failed};
const auto presentEndHost=host100ns();
// Custom: publish the live curve coverage the presenter just collected.
diff --git a/src/engine/VideoPresenter.cpp b/src/engine/VideoPresenter.cpp
index b6c452ed..638a4546 100644
--- a/src/engine/VideoPresenter.cpp
+++ b/src/engine/VideoPresenter.cpp
@@ -105,7 +105,7 @@ bool VideoPresenter::open(gfx::D3D12DeviceContext& ctx,HWND window,pipeline::Enh
// Opening a source never opts the user in or allocates the copy surface.
// configurePresentation applies the saved global choice on the GPU owner.
copyBeforePresent_=false;
- D3D12_DESCRIPTOR_HEAP_DESC hd{};hd.Type=D3D12_DESCRIPTOR_HEAP_TYPE_RTV;hd.NumDescriptors=5;
+ D3D12_DESCRIPTOR_HEAP_DESC hd{};hd.Type=D3D12_DESCRIPTOR_HEAP_TYPE_RTV;hd.NumDescriptors=4;
if(FAILED(ctx.device()->CreateDescriptorHeap(&hd,IID_PPV_ARGS(&rtvs_))))return false;
inc_=ctx.device()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV);if(!refresh(ctx.device()))return false;
veyra::log::info("present-copy",std::format("enabled={} format={} extent={}x{} (GPU-only final composition; no pixel readback)",copyBeforePresent_,unsigned(graph.outputFormat()),sink_.bufferWidth(),sink_.bufferHeight()));
@@ -153,46 +153,6 @@ bool VideoPresenter::refresh(ID3D12Device* device){
}
if(compositeTarget_)device->CreateRenderTargetView(compositeTarget_.Get(),nullptr,{rtvs_->GetCPUDescriptorHandleForHeapStart().ptr+size_t(3)*inc_});
}
- // Custom: the coverage probe target. Its format follows the swapchain so the
- // existing present PSO is valid for it. Created once; the readback buffer is
- // sized for the widest case and never resized.
- if(!probeTarget_){
- const auto targetDesc=bb->GetDesc();
- probeEnabled_=targetDesc.Format==DXGI_FORMAT_R10G10B10A2_UNORM;
- probeBytesPerPixel_=4;
- if(probeEnabled_){
- D3D12_HEAP_PROPERTIES heap{};heap.Type=D3D12_HEAP_TYPE_DEFAULT;
- D3D12_RESOURCE_DESC desc{};desc.Dimension=D3D12_RESOURCE_DIMENSION_TEXTURE2D;
- desc.Width=kProbeWidth;desc.Height=kProbeHeight;desc.DepthOrArraySize=1;desc.MipLevels=1;
- desc.Format=targetDesc.Format;desc.SampleDesc.Count=1;
- desc.Flags=D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET;
- D3D12_CLEAR_VALUE clear{};clear.Format=desc.Format;clear.Color[3]=1;
- Microsoft::WRL::ComPtr<ID3D12Resource> probe;
- if(SUCCEEDED(device->CreateCommittedResource(&heap,D3D12_HEAP_FLAG_NONE,&desc,
- D3D12_RESOURCE_STATE_COMMON,&clear,IID_PPV_ARGS(&probe)))){
- probe->SetName(L"Veyra curve coverage probe");probeTarget_=std::move(probe);
- device->CreateRenderTargetView(probeTarget_.Get(),nullptr,
- {rtvs_->GetCPUDescriptorHandleForHeapStart().ptr+size_t(4)*inc_});
- D3D12_HEAP_PROPERTIES readHeap{};readHeap.Type=D3D12_HEAP_TYPE_READBACK;
- D3D12_RESOURCE_DESC readDesc{};readDesc.Dimension=D3D12_RESOURCE_DIMENSION_BUFFER;
- readDesc.Width=uint64_t(kProbeWidth)*kProbeHeight*8;readDesc.Height=1;
- readDesc.DepthOrArraySize=1;readDesc.MipLevels=1;readDesc.SampleDesc.Count=1;
- readDesc.Layout=D3D12_TEXTURE_LAYOUT_ROW_MAJOR;
- if(SUCCEEDED(device->CreateCommittedResource(&readHeap,D3D12_HEAP_FLAG_NONE,&readDesc,
- D3D12_RESOURCE_STATE_COPY_DEST,nullptr,IID_PPV_ARGS(&probeReadback_)))){
- probeReadback_->SetName(L"Veyra curve coverage readback");
- veyra::log::info("present-probe",std::format("coverage probe {}x{} format={} interval={} frames",
- kProbeWidth,kProbeHeight,unsigned(targetDesc.Format),kProbeIntervalFrames));
- }else probeTarget_.Reset();
- }
- }
- if(!probeTarget_)veyra::log::info("present-probe","coverage probe unavailable; the live meter stays silent");
- }
- // Audit fix: the RTV heap can be recreated without close() (a setup path resets
- // rtvs_), so slot 4 must be rewritten on every refresh like slots 0..3 - otherwise
- // the probe would bind a descriptor from the freed heap.
- if(probeTarget_)device->CreateRenderTargetView(probeTarget_.Get(),nullptr,
- {rtvs_->GetCPUDescriptorHandleForHeapStart().ptr+size_t(4)*inc_});
return true;
}
bool VideoPresenter::present(gfx::D3D12DeviceContext& ctx,gfx::CommandSlotRing& sharedRing,pipeline::EnhanceGraph& graph,unsigned slot,bool generated,bool referencesValid,int comparison,bool baseReference,float split,pipeline::FrameIdentity identity,PreviewView view,int64_t sourcePts100ns,bool retainUnchanged) {
@@ -236,17 +196,11 @@ bool VideoPresenter::present(gfx::D3D12DeviceContext& ctx,gfx::CommandSlotRing&
hdrPeakInfo_=gfx::PresentSink::queryDisplayPeak(window_);hdrPeakMonitor_=monitor;hdrPeakQuery_=now;
if(previous.valid!=hdrPeakInfo_.valid||previous.peakNits!=hdrPeakInfo_.peakNits)retainedFrame_.reset();
}
- // Field report 2026-10-13: a projector reported peak=10000 and black=0.000.
-// That is the EDID ceiling, not a measurement, and feeding it to the preset
-// rescale multiplied every authored highlight number by ten - the highlight
-// protection silently did nothing. Only a plausible report is used; otherwise
-// the baseline stays untouched (0 = the presets' own 1000 nit reference).
-const bool implausiblePeak=hdrPeakInfo_.peakNits>=4000u&&hdrPeakInfo_.minNits<=0.001;
-if(hdrPeakInfo_.valid&&!implausiblePeak)hdrBaseline.displayPeakNits=std::clamp(hdrPeakInfo_.peakNits,100u,10000u);
+ if(hdrPeakInfo_.valid)hdrBaseline.displayPeakNits=std::clamp(hdrPeakInfo_.peakNits,100u,10000u);
}
HdrCurveSettings hdrCurve;HdrMetadataSettings hdrMetadata;
resolveHdrTuning(hdrBaseline,graph.hdrMetadata(),hdrCurve,hdrMetadata);
- applyHdrMetadata(graph,hdrMetadata,identity);
+ applyHdrMetadata(graph,hdrMetadata,hdrCurve,identity);
const RetainedFrame retained{graph.presentationReadyFenceObject(slot,generated),graph.presentationReadyFence(slot,generated),
slot,unsigned(rc.right),unsigned(rc.bottom),generated,referencesValid,baseReference,IsWindowVisible(window_)!=FALSE,
comparison,split,view,identity,MonitorFromWindow(window_,MONITOR_DEFAULTTONEAREST),graph.hdrOutput()?hdrCurve:HdrCurveSettings{}};
@@ -307,10 +261,8 @@ if(hdrPeakInfo_.valid&&!implausiblePeak)hdrBaseline.displayPeakNits=std::clamp(h
// before the PQ encode, so it never touches the exported or the graded frame.
// Main HDR10/FG surfaces already contain PQ BT.2020. Decode only when
// tuning, then encode back; disabled tuning keeps the original exact blit.
- // The curve is for HDR sources only (see EnhanceGraph::hdrInput): an SDR source's
- // peak sits far below the roll-off start, so applying it there would only change
- // the shadow/mid values while making the highlight controls look broken.
- const float curveFlag=(hdrCurve.enabled&&graph.hdrInput()&&graph.hdrOutput())?16.0f:0.0f;
+ // Display tuning also applies after RTX Video HDR converted an SDR source.
+ const float curveFlag=(hdrCurve.enabled&&graph.hdrOutput())?16.0f:0.0f;
const float mainFlags=samplingFlags+curveFlag+(curveFlag&&graph.hdr10Output()?36.0f:0.0f);
float dims[16]={renderW,renderH,mainFlags,inverseFit,float(rc.right),float(rc.bottom),view.centerX,view.centerY};
dims[8]=float(hdrCurve.shadowLiftEv100)/100.0f;
@@ -327,50 +279,35 @@ if(hdrPeakInfo_.valid&&!implausiblePeak)hdrBaseline.displayPeakNits=std::clamp(h
list->SetGraphicsRoot32BitConstants(0,16,dims,0);
list->SetGraphicsRootDescriptorTable(1,{pass_.heap->GetGPUDescriptorHandleForHeapStart().ptr+size_t(slot+(generated?2:0))*pass_.increment});
list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);list->DrawInstanced(3,1,0,0);
- // Custom: live coverage probe - the same blit drawn once more into a 64x36 target,
- // with the curve and the re-encode off (the PQ decode stays on), so the result is
- // linear where 1.0 = 80 nits. Every piece of state this changes is restored right
- // after, and nothing here waits for the GPU.
bool probeIssued=false;
- if(probeTarget_&&probeReadback_&&curveFlag!=0.0f&&!probePending_&&(++probeFrame_%kProbeIntervalFrames)==0){
- float probeDims[16];std::memcpy(probeDims,dims,sizeof(probeDims));
- // Keep the PQ encode: the 10-bit UNORM target can only carry PQ code values,
- // so linear output would be clamped at 1.0 (= 80 nits) and every highlight
- // bucket would read zero. Same flag combination as the main blit, minus the
- // curve: decode (32) + encode (4).
- probeDims[2]=samplingFlags+(graph.hdr10Output()?36.0f:0.0f);
- D3D12_RESOURCE_BARRIER probe{};probe.Type=D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
- probe.Transition.pResource=probeTarget_.Get();
- probe.Transition.Subresource=D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES;
- probe.Transition.StateBefore=D3D12_RESOURCE_STATE_COMMON;
- probe.Transition.StateAfter=D3D12_RESOURCE_STATE_RENDER_TARGET;list->ResourceBarrier(1,&probe);
- D3D12_CPU_DESCRIPTOR_HANDLE probeRtv{rtvs_->GetCPUDescriptorHandleForHeapStart().ptr+size_t(4)*inc_};
- list->OMSetRenderTargets(1,&probeRtv,FALSE,nullptr);
- D3D12_VIEWPORT probeViewport{0,0,float(kProbeWidth),float(kProbeHeight),0,1};
- D3D12_RECT probeRect{0,0,LONG(kProbeWidth),LONG(kProbeHeight)};
- list->RSSetViewports(1,&probeViewport);list->RSSetScissorRects(1,&probeRect);
- list->SetGraphicsRoot32BitConstants(0,16,probeDims,0);
- list->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);list->DrawInstanced(3,1,0,0);
- probe.Transition.StateBefore=D3D12_RESOURCE_STATE_RENDER_TARGET;
- probe.Transition.StateAfter=D3D12_RESOURCE_STATE_COPY_SOURCE;list->ResourceBarrier(1,&probe);
- // A texture cannot be copied into a buffer with CopyResource (both sides must be the
- // same type); the placed-footprint form is the legal one. RowPitch 64*4 = 256 is
- // already D3D12_TEXTURE_DATA_PITCH_ALIGNMENT, so the CPU side stays tightly packed.
- D3D12_TEXTURE_COPY_LOCATION probeSource{};probeSource.pResource=probeTarget_.Get();
- probeSource.Type=D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;probeSource.SubresourceIndex=0;
- D3D12_TEXTURE_COPY_LOCATION probeDestination{};probeDestination.pResource=probeReadback_.Get();
- probeDestination.Type=D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;
- probeDestination.PlacedFootprint.Footprint.Format=DXGI_FORMAT_R10G10B10A2_UNORM;
- probeDestination.PlacedFootprint.Footprint.Width=kProbeWidth;
- probeDestination.PlacedFootprint.Footprint.Height=kProbeHeight;
- probeDestination.PlacedFootprint.Footprint.Depth=1;
- probeDestination.PlacedFootprint.Footprint.RowPitch=kProbeWidth*4;
- list->CopyTextureRegion(&probeDestination,0,0,0,&probeSource,nullptr);
- // put the main pass exactly back the way it was
- list->OMSetRenderTargets(1,&rtv,FALSE,nullptr);
- list->RSSetViewports(1,&viewport);list->RSSetScissorRects(1,&rect);
+ const bool observe=probeObserved_&&curveFlag!=0.0f;
+ const bool sameScope=probeCurve_==hdrCurve&&probeIdentity_.epoch==identity.epoch&&probeIdentity_.settingsRevision==identity.settingsRevision;
+ if(!observe||!sameScope)liveCoverage_={};
+ if(probePending_&&pipeline::fenceComplete(fence,probeFenceValue_))publishLiveCoverage(hdrCurve,identity);
+ if(!observe)liveCoverage_={};
+ const auto probeNow=std::chrono::steady_clock::now();
+ if(observe&&!probePending_&&probeNow>=probeNext_&&!probeFailed_&&ensureCoverageProbe(ctx.device())){
+ probeNext_=probeNow+std::chrono::milliseconds(250);
+ // One descriptor per outstanding probe; never rewrite it while in flight.
+ ctx.device()->CopyDescriptorsSimple(1,probePass_.heap->GetCPUDescriptorHandleForHeapStart(),
+ {pass_.heap->GetCPUDescriptorHandleForHeapStart().ptr+size_t(slot+(generated?2:0))*pass_.increment},D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
+ pipeline::StateTracker state;state.set(source,D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
+ state.transition(list,source,D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+ state.transition(list,probeStats_.Get(),D3D12_RESOURCE_STATE_UNORDERED_ACCESS);
+ const auto gpu=probePass_.heap->GetGPUDescriptorHandleForHeapStart();
+ const auto cpu=probePass_.heap->GetCPUDescriptorHandleForHeapStart();
+ probePass_.bind(list,dims,gpu.ptr,gpu.ptr+probePass_.increment);
+ const UINT zero[4]{};list->ClearUnorderedAccessViewUint({gpu.ptr+probePass_.increment},{cpu.ptr+probePass_.increment},probeStats_.Get(),zero,0,nullptr);
+ state.uavBarrier(list,probeStats_.Get());list->Dispatch(8,5,1);
+ state.transition(list,probeStats_.Get(),D3D12_RESOURCE_STATE_COPY_SOURCE);
+ list->CopyBufferRegion(probeReadback_.Get(),0,probeStats_.Get(),0,kProbeStatsBytes);
+ state.transition(list,probeStats_.Get(),D3D12_RESOURCE_STATE_COMMON);
+ state.transition(list,source,D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
+ // Restore the present state for comparisons, subtitles and provider work.
+ list->SetDescriptorHeaps(1,heaps);list->SetGraphicsRootSignature(pass_.rootSig.Get());list->SetPipelineState(pass_.pso.Get());
list->SetGraphicsRoot32BitConstants(0,16,dims,0);
- probeIssued=true;
+ list->SetGraphicsRootDescriptorTable(1,{pass_.heap->GetGPUDescriptorHandleForHeapStart().ptr+size_t(slot+(generated?2:0))*pass_.increment});
+ probeCurve_=hdrCurve;probeIdentity_=identity;probeIssued=true;
}
if(comparison&&!generated&&referencesValid){
auto* reference=baseReference?graph.baseReference(slot):graph.sourceReference(slot);
@@ -476,7 +413,7 @@ if(hdrPeakInfo_.valid&&!implausiblePeak)hdrBaseline.displayPeakNits=std::clamp(h
// Custom: collect the previous probe as soon as the GPU reports it complete.
// GetCompletedValue is a plain read, so presentation never waits here.
if(probePending_&&probeReadback_&&fence->GetCompletedValue()>=probeFenceValue_)
- publishLiveCoverage(hdrCurve);lastBuffer_=backBufferIndex;hasPresented_=true;
+ publishLiveCoverage(hdrCurve,identity);lastBuffer_=backBufferIndex;hasPresented_=true;
if(presentationQueue_)graph.presentationSubmitted(slot,fence,ring.lastSignaledValue());
const auto dxgiStart=std::chrono::steady_clock::now();
reflex_.mark(reflexFrame_,3);reflex_.mark(reflexFrame_,4);
@@ -510,46 +447,31 @@ bool VideoPresenter::readPresentedFrameForTest(gfx::D3D12DeviceContext& ctx,gfx:
Microsoft::WRL::ComPtr<ID3D12Resource> buffer;
return SUCCEEDED(sink_.swapChain()->GetBuffer(lastBuffer_,IID_PPV_ARGS(&buffer)))&&sink::readRgba8(ctx,ring,buffer.Get(),image);
}
-void VideoPresenter::publishLiveCoverage(const HdrCurveSettings& curve){
+bool VideoPresenter::ensureCoverageProbe(ID3D12Device* device){
+ if(probeStats_)return true;
+ std::vector<uint8_t> cs;
+ if(!pipeline::loadShaderBytes("HdrCurveCoverage.dxil",cs)||!probePass_.create(device,cs,2,1,1,16)){probeFailed_=true;return false;}
+ D3D12_RESOURCE_DESC desc{};desc.Dimension=D3D12_RESOURCE_DIMENSION_BUFFER;desc.Width=kProbeStatsBytes;
+ desc.Height=1;desc.DepthOrArraySize=desc.MipLevels=1;desc.SampleDesc.Count=1;desc.Layout=D3D12_TEXTURE_LAYOUT_ROW_MAJOR;
+ desc.Flags=D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS;
+ D3D12_HEAP_PROPERTIES heap{};heap.Type=D3D12_HEAP_TYPE_DEFAULT;
+ HRESULT hr=device->CreateCommittedResource(&heap,D3D12_HEAP_FLAG_NONE,&desc,D3D12_RESOURCE_STATE_COMMON,nullptr,IID_PPV_ARGS(&probeStats_));
+ if(SUCCEEDED(hr)){heap.Type=D3D12_HEAP_TYPE_READBACK;desc.Flags=D3D12_RESOURCE_FLAG_NONE;hr=device->CreateCommittedResource(&heap,D3D12_HEAP_FLAG_NONE,&desc,D3D12_RESOURCE_STATE_COPY_DEST,nullptr,IID_PPV_ARGS(&probeReadback_));}
+ if(FAILED(hr)){log::warn("present-probe",std::format("statistics unavailable hr=0x{:X}",unsigned(hr)));probeStats_.Reset();probeReadback_.Reset();probeFailed_=true;return false;}
+ D3D12_UNORDERED_ACCESS_VIEW_DESC uav{};uav.ViewDimension=D3D12_UAV_DIMENSION_BUFFER;uav.Buffer.NumElements=5;uav.Buffer.StructureByteStride=sizeof(uint32_t);
+ device->CreateUnorderedAccessView(probeStats_.Get(),nullptr,&uav,{probePass_.heap->GetCPUDescriptorHandleForHeapStart().ptr+probePass_.increment});
+ log::info("present-probe","GPU statistics 64x36; readback=20 bytes, interval>=250ms, pixelReadbacks=0, additionalSubmits=0");
+ return true;
+}
+void VideoPresenter::publishLiveCoverage(const HdrCurveSettings& curve,pipeline::FrameIdentity identity){
probePending_=false;
- if(!probeReadback_||probeBytesPerPixel_!=4)return;
- const uint64_t bytes=uint64_t(kProbeWidth)*kProbeHeight*probeBytesPerPixel_;
- void* mapped=nullptr;
- const D3D12_RANGE readRange{0,bytes};
- if(FAILED(probeReadback_->Map(0,&readRange,&mapped))||!mapped)return;
- const auto* pixels=static_cast<const uint32_t*>(mapped);
- // The probe holds the frame before the curve, in the swapchain's 10-bit format:
- // three 10-bit linear channels, 1.0 = 80 nits. One luminance per pixel, Rec.2020.
- double nits[kProbeWidth*kProbeHeight];
- unsigned count=0;
- for(unsigned y=0;y<kProbeHeight;++y)for(unsigned x=0;x<kProbeWidth;++x){
- const uint32_t value=pixels[y*kProbeWidth+x];
- const double r=pqCodeToNits(double(value&0x3FFu)/1023.0);
- const double g=pqCodeToNits(double((value>>10)&0x3FFu)/1023.0);
- const double b=pqCodeToNits(double((value>>20)&0x3FFu)/1023.0);
- nits[count++]=0.2627*r+0.6780*g+0.0593*b;
- }
- probeReadback_->Unmap(0,nullptr);
- // A frame whose probe reads back as nothing but zero is a copy failure, not a black
- // picture: say so instead of reporting honest-looking 0% coverage.
- double brightest=0.0;
- for(unsigned i=0;i<count;++i)brightest=std::max(brightest,nits[i]);
- if(brightest<=0.0){
- veyra::log::warn("present-probe","coverage probe read back all zeroes; the copy did not land");
- liveCoverage_={};
- return;
- }
- liveCoverage_=hdrCurveCoverage(nits,count,curve);
- // Diagnostic (throttled): the brightest sample and the thresholds the
- // buckets used, so "0% above the ceiling" can be told apart from "no ceiling
- // set" and from a decode-scale mistake.
- if(liveCoverage_.valid&&(probeFrame_/kProbeIntervalFrames)%5==0)
- veyra::log::info("present-probe",std::format(
- "coverage aboveCap={:.2f}%({}) rollOff={:.2f}%({}) lift={:.2f}%({}) samples={} brightestNits={:.1f} cap={} start={} range={}",
- liveCoverage_.aboveCeilingPercent(),liveCoverage_.aboveCeiling,
- liveCoverage_.inRollOffPercent(),liveCoverage_.inRollOff,
- liveCoverage_.inLiftPercent(),liveCoverage_.inLift,liveCoverage_.samples,brightest,
- curve.peakCapNits,curve.highlightStartNits,curve.shadowRangeNits));
+ if(!probeObserved_||!probeReadback_||probeCurve_!=curve||probeIdentity_.epoch!=identity.epoch||probeIdentity_.settingsRevision!=identity.settingsRevision){liveCoverage_={};return;}
+ void* mapped=nullptr;const D3D12_RANGE read{0,kProbeStatsBytes};
+ const HRESULT hr=probeReadback_->Map(0,&read,&mapped);
+ if(FAILED(hr)||!mapped){log::warn("present-probe",std::format("statistics Map failed hr=0x{:X}",unsigned(hr)));liveCoverage_={};return;}
+ uint32_t counts[5]{};std::memcpy(counts,mapped,sizeof(counts));const D3D12_RANGE written{};probeReadback_->Unmap(0,&written);
+ liveCoverage_={counts[0],counts[1],counts[2],counts[3],counts[0]==kProbeWidth*kProbeHeight};
+ // A real black frame has samples with zero events and is valid.
}
void VideoPresenter::close(){
@@ -561,7 +483,7 @@ void VideoPresenter::close(){
reflex_.close();reflexFrame_=0;
if(presentationRing_.initialized())presentationRing_.drainQueue();
hasPresented_=false;gpuTimer_.close();compositeTarget_.Reset();copyBeforePresent_=copyEligible_=false;rtvs_.Reset();
- probeTarget_.Reset();probeReadback_.Reset();probePending_=false;probeEnabled_=false;probeBytesPerPixel_=0;liveCoverage_={};pass_={};sink_.shutdown();
+ probeStats_.Reset();probeReadback_.Reset();probePass_={};probePending_=false;probeFailed_=false;probeNext_={};probeCurve_={};probeIdentity_={};liveCoverage_={};pass_={};sink_.shutdown();
presentMotionPass_={};presentMotion_={};previousXessWidth_=previousXessHeight_=0;
presentationRing_.shutdown();presentationFence_.Reset();presentationQueue_.Reset();
if(presentationEvent_){CloseHandle(presentationEvent_);presentationEvent_=nullptr;}
@@ -681,7 +603,7 @@ Microsoft::WRL::ComPtr<ID3D12Resource> VideoPresenter::presentedResourceForTest(
// Optional HDR10 metadata hint. Windows/monitors may ignore it; the curve itself
// is applied to pixels independently. Cache only accepted swapchain state.
-void VideoPresenter::applyHdrMetadata(pipeline::EnhanceGraph& graph,const HdrMetadataSettings& m,pipeline::FrameIdentity identity) {
+void VideoPresenter::applyHdrMetadata(pipeline::EnhanceGraph& graph,const HdrMetadataSettings& m,const HdrCurveSettings& resolvedCurve,pipeline::FrameIdentity identity) {
const auto& src=graph.sourceColor();
sourceMetadata_.observe(identity.epoch,src.isHdrPath(),src.hdrMasteringPeakNits,src.hdrMaxCllNits,src.hdrMaxFallNits);
// An SDR clip carries no HDR metadata, so resolving it would report the generic
@@ -709,8 +631,8 @@ void VideoPresenter::applyHdrMetadata(pipeline::EnhanceGraph& graph,const HdrMet
md.BluePrimary[0]=6550;md.BluePrimary[1]=2300;
md.WhitePoint[0]=15635;md.WhitePoint[1]=16450;
// ① Output-aware: describe what the curve actually produces, not the source.
- const auto light=clampMetadataToCurve(resolveHdrMetadataLuminance(m,sourceMetadata_),
- graph.hdrCurve(),graph.hdrMetadata());
+ auto light=resolveHdrMetadataLuminance(m,sourceMetadata_);
+ if(resolvedCurve.enabled&&resolvedCurve.peakCapNits){light.cll=std::min(light.cll,resolvedCurve.peakCapNits);light.fall=std::min(light.fall,light.cll);}
md.MaxMasteringLuminance=light.peak;md.MinMasteringLuminance=light.minX10000;
md.MaxContentLightLevel=uint16_t(light.cll);md.MaxFrameAverageLightLevel=uint16_t(light.fall);
if(metadataSent_&&!metadataDirty_&&std::memcmp(&lastMetadata_,&md,sizeof(md))==0)return;
diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cpp
index 3f172e3c..75c4a80d 100644
--- a/src/ui/QmlPlayerBridge.cpp
+++ b/src/ui/QmlPlayerBridge.cpp
@@ -9,6 +9,7 @@
#include <QtGui/qscreen_platform.h>
#include <shellapi.h>
#include <QElapsedTimer>
+#include <QScopedValueRollback>
#include "veyra/ui/EffectAvailability.h"
#include "veyra/engine/FrameGenerationSelection.h"
#include "veyra/ui/QmlExportQueueModel.h"
@@ -340,6 +341,10 @@ struct QmlPlayerBridge::Impl {
QString hdrProfileDisplay;
// Custom: the title whose curve is currently applied (see syncHdrTitleProfile).
QString hdrTitleApplied;
+ HMONITOR hdrIdentityMonitor=nullptr;
+ QString hdrIdentityKey;
+ bool hdrRestoring=false,hdrCoverageObserved=false,hdrMemoryDirty=false;
+ QTimer* hdrMemorySaveTimer=nullptr;
// Custom: how many remembered titles survive; the oldest fall off first.
int kHdrTitleProfileLimit = 60;
QString lastScreenshot;
@@ -1400,6 +1405,9 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesyst
}
});
// 60 Hz ceiling, and it does nothing at all when the snapshot is unchanged.
+ impl_->hdrMemorySaveTimer=new QTimer(this);
+ impl_->hdrMemorySaveTimer->setSingleShot(true);impl_->hdrMemorySaveTimer->setInterval(400);
+ connect(impl_->hdrMemorySaveTimer,&QTimer::timeout,this,[this]{flushHdrMemory();});
impl_->timer = new QTimer(this);
connect(impl_->timer, &QTimer::timeout, this, [this] {
const bool had = impl_->haveSnapshot;
@@ -1661,6 +1669,7 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesyst
}
QmlPlayerBridge::~QmlPlayerBridge() {
+ flushHdrMemory();
if (qApp) qApp->removeEventFilter(this);
rememberPosition(true);
if (impl_->sessionSaveTimer) impl_->sessionSaveTimer->stop();
@@ -4703,7 +4712,7 @@ QVariantMap QmlPlayerBridge::hdrDisplayInfo()const{
cached=gfx::PresentSink::queryDisplayPeak(window);cachedMonitor=monitor;
cacheTimer.restart();
}
- return {{"valid",cached.valid},{"plausible",cached.valid&&!(cached.peakNits>=4000u&&cached.minNits<=0.001)},{"peakNits",int(cached.peakNits)},
+ return {{"valid",cached.valid},{"plausible",cached.valid},{"peakNits",int(cached.peakNits)},
{"fullFrameNits",int(cached.fullFrameNits)},{"minNits",cached.minNits}};
}
bool QmlPlayerBridge::hdrCurve()const{return settings().hdrCurve.enabled;}
@@ -4744,6 +4753,7 @@ bool QmlPlayerBridge::commitHdrTuning(engine::EnhancementSettings settings){
impl_->facade.setPending(after);
impl_->draftGlobals.hdrCurve=curve;impl_->draftGlobals.hdrMetadata=metadata;
impl_->persistSession();
+ if(!impl_->hdrRestoring&&impl_->hdrMemorySaveTimer){impl_->hdrMemoryDirty=true;impl_->hdrMemorySaveTimer->start();}
emit settingsChanged();
if(chainValid()!=wasValid)emitChainChanged();
return true;
@@ -4805,19 +4815,22 @@ QVariantMap QmlPlayerBridge::hdrAxesMatch() const {
QVariantMap QmlPlayerBridge::hdrCurveCoverage() const {
const auto& snap=impl_->snapshot;
- return {{"valid",snap.hdrCoverageValid},
+ return {{"valid",impl_->hdrCoverageObserved&&hdrCurve()&&snap.hdrCoverageValid},
{"aboveCeiling",snap.hdrAboveCeilingPercent},
{"rollOff",snap.hdrInRollOffPercent},
{"lift",snap.hdrInLiftPercent}};
}
+void QmlPlayerBridge::observeHdrCoverage(bool on){impl_->hdrCoverageObserved=on;impl_->engine.observeHdrCoverage(on);}
QVariantMap QmlPlayerBridge::hdrCurveGraph() const {
- const auto& c=settings().hdrCurve;
+ auto base=settings().hdrCurve;if(!base.displayPeakNits)base.displayPeakNits=effectiveHdrDisplayPeakNits();
+ engine::HdrCurveSettings c;engine::HdrMetadataSettings metadata;
+ engine::resolveHdrTuning(base,settings().hdrMetadata,c,metadata);
QVariantList inputs,outputs;
for(unsigned i=0;i<engine::kHdrCurveGraphPoints;++i){
const double x=engine::hdrCurveGraphInputNits(i);
inputs.append(x);
- outputs.append(engine::hdrCurveLuminance(c,x));
+ outputs.append(c.enabled?engine::hdrCurveLuminance(c,x):x);
}
return {{"inputs",inputs},{"outputs",outputs},
{"minNits",engine::kHdrCurveGraphMinNits},{"maxNits",engine::kHdrCurveGraphMaxNits},
@@ -4839,8 +4852,7 @@ bool QmlPlayerBridge::setHdrDial(const QString& key,int level){
else if(key==QLatin1String("brightness"))engine::setHdrBrightnessLevel(s.hdrCurve,value);
else if(key==QLatin1String("highlight"))engine::setHdrHighlightLevel(s.hdrCurve,value);
else return false;
- commitHdrTuning(std::move(s));
- return true;
+ return commitHdrTuning(std::move(s));
}
bool QmlPlayerBridge::applyHdrAxesPreset(const QString& content,const QString& environment){
@@ -4855,7 +4867,7 @@ bool QmlPlayerBridge::applyHdrAxesPreset(const QString& content,const QString& e
s.hdrCurve=curve;
s.hdrCurve.strengthPercent=strength;
s.hdrCurve.displayPeakNits=displayPeak;
- commitHdrTuning(std::move(s));
+ if(!commitHdrTuning(std::move(s)))return false;
impl_->prefs[QStringLiteral("hdrAxesContent")]=content;
impl_->prefs[QStringLiteral("hdrAxesEnvironment")]=environment;
if(!impl_->savePrefs())veyra::log::warn("ui-prefs","hdr axes choice not saved");
@@ -4864,7 +4876,7 @@ bool QmlPlayerBridge::applyHdrAxesPreset(const QString& content,const QString& e
}
bool QmlPlayerBridge::hdrTitleMemory() const { return impl_->prefBool("hdrTitleMemory",true); }
-bool QmlPlayerBridge::hdrAutoRecommend() const { return impl_->prefBool("hdrAutoRecommend",true); }
+bool QmlPlayerBridge::hdrAutoRecommend() const { return impl_->prefBool("hdrAutoRecommend",false); }
int QmlPlayerBridge::hdrTitleCount() const {
return impl_->prefs.value(QStringLiteral("hdrTitles")).toList().size();
}
@@ -4877,36 +4889,39 @@ void QmlPlayerBridge::setHdrTitleMemory(bool on){
}
void QmlPlayerBridge::setHdrAutoRecommend(bool on){
- if(impl_->prefBool("hdrAutoRecommend",true)==on)return;
+ if(impl_->prefBool("hdrAutoRecommend",false)==on)return;
impl_->prefs[QStringLiteral("hdrAutoRecommend")]=on;
if(!impl_->savePrefs())veyra::log::warn("ui-prefs","hdr auto recommend flag not saved");
emit preferencesChanged();
}
void QmlPlayerBridge::forgetHdrTitles(){
+ flushHdrMemory();
impl_->prefs[QStringLiteral("hdrTitles")]=QVariantList{};
- impl_->hdrTitleApplied=QString();
if(!impl_->savePrefs())veyra::log::warn("ui-prefs","hdr title profiles not cleared");
emit preferencesChanged();
emit notice(tr("已清除影片记忆"),false);
}
+void QmlPlayerBridge::flushHdrMemory(){
+ if(impl_->hdrMemorySaveTimer)impl_->hdrMemorySaveTimer->stop();
+ if(impl_->hdrRestoring||!impl_->hdrMemoryDirty)return;
+ impl_->hdrMemoryDirty=false;
+ if(!impl_->hdrProfileDisplay.isEmpty())storeHdrProfile(impl_->hdrProfileDisplay);
+ if(hdrTitleMemory()&&!impl_->hdrTitleApplied.isEmpty())storeHdrTitleProfile(impl_->hdrTitleApplied);
+}
void QmlPlayerBridge::syncHdrTitleProfile(){
auto& i=*impl_;
- // A playlist advancing to the next episode changes the label, which is exactly the
- // moment a new title starts.
- const QString title=QString::fromStdWString(i.sourceLabel);
+ if(!i.snapshot.running||i.openingSource)return;
+ const QFileInfo file(QString::fromStdWString(i.sourceLabel));
+ if(!file.isFile())return; // Capture/stream labels are not film identities.
+ const QString title=file.canonicalFilePath();
if(title.isEmpty()||title==i.hdrTitleApplied)return;
- // Leaving a title: remember the curve the user ended up with on it.
- if(!i.hdrTitleApplied.isEmpty())storeHdrTitleProfile(i.hdrTitleApplied);
- i.hdrTitleApplied=title;
- if(!i.snapshot.running)return; // an opened but never started source has nothing to apply
+ flushHdrMemory();i.hdrTitleApplied=title;
if(hdrTitleMemory()&&loadHdrTitleProfile(title)){
- emit notice(tr("已套用这部影片上次的曲线设置"),false);
- return;
+ emit notice(tr("已套用这部影片上次的曲线设置"),false);return;
}
- // Never switch the feature on by itself, and never overrule a remembered choice.
- if(hdrAutoRecommend()&&settings().hdrCurve.enabled)applyRecommendedHdrTuning();
+ if(hdrAutoRecommend()&&settings().hdrCurve.enabled){QScopedValueRollback<bool> restoring(i.hdrRestoring,true);applyRecommendedHdrTuning();}
}
bool QmlPlayerBridge::loadHdrTitleProfile(const QString& title){
@@ -4925,14 +4940,14 @@ bool QmlPlayerBridge::loadHdrTitleProfile(const QString& title){
s.hdrCurve.rollOffPercent=unsigned(std::clamp(number("rollOffPercent",int(s.hdrCurve.rollOffPercent)),10,200));
s.hdrCurve.peakCapNits=unsigned(std::clamp(number("peakCapNits",int(s.hdrCurve.peakCapNits)),0,4000));
s.hdrCurve.strengthPercent=unsigned(std::clamp(number("strengthPercent",int(s.hdrCurve.strengthPercent)),0,200));
- commitHdrTuning(std::move(s));
- return true;
+ QScopedValueRollback<bool> restoring(impl_->hdrRestoring,true);
+ return commitHdrTuning(std::move(s));
}
return false;
}
bool QmlPlayerBridge::storeHdrTitleProfile(const QString& title){
- if(title.isEmpty())return false;
+ if(title.isEmpty()||!hdrTitleMemory())return false;
auto& i=*impl_;
const auto& c=settings().hdrCurve;
QVariantMap entry;
@@ -4946,6 +4961,7 @@ bool QmlPlayerBridge::storeHdrTitleProfile(const QString& title){
entry[QStringLiteral("peakCapNits")]=int(c.peakCapNits);
entry[QStringLiteral("strengthPercent")]=int(c.strengthPercent);
auto list=i.prefs.value(QStringLiteral("hdrTitles")).toList();
+ for(const auto& item:list)if(item.toMap().value(QStringLiteral("key")).toString()==title&&item.toMap()==entry)return false;
for(int n=list.size()-1;n>=0;--n)
if(list[n].toMap().value(QStringLiteral("key")).toString()==title)list.removeAt(n);
list.append(entry);
@@ -4953,7 +4969,7 @@ bool QmlPlayerBridge::storeHdrTitleProfile(const QString& title){
while(list.size()>i.kHdrTitleProfileLimit)list.removeFirst();
i.prefs[QStringLiteral("hdrTitles")]=list;
if(!i.savePrefs())veyra::log::warn("ui-prefs","hdr title profile not saved");
- return true;
+ emit preferencesChanged();return true;
}
int QmlPlayerBridge::hdrDisplayProfileCount() const {
@@ -4972,22 +4988,24 @@ QString QmlPlayerBridge::hdrDisplayProfileId() const {
const HMONITOR monitor=window?MonitorFromWindow(window,MONITOR_DEFAULTTONEAREST)
:MonitorFromPoint(POINT{0,0},MONITOR_DEFAULTTOPRIMARY);
if(!monitor)return QString();
+ if(monitor==impl_->hdrIdentityMonitor&&!impl_->hdrIdentityKey.isEmpty())return impl_->hdrIdentityKey;
+ impl_->hdrIdentityMonitor=monitor;
MONITORINFOEXW info{};info.cbSize=sizeof(info);
if(!GetMonitorInfoW(monitor,reinterpret_cast<MONITORINFO*>(&info)))return QString();
DISPLAY_DEVICEW device{};device.cb=sizeof(device);
if(EnumDisplayDevicesW(info.szDevice,0,&device,0)&&device.DeviceID[0])
- return QString::fromWCharArray(device.DeviceID);
- return QString::fromWCharArray(info.szDevice);
+ impl_->hdrIdentityKey=QString::fromWCharArray(device.DeviceID);
+ else impl_->hdrIdentityKey=QString::fromWCharArray(info.szDevice);
+ return impl_->hdrIdentityKey;
}
void QmlPlayerBridge::forgetHdrDisplayProfiles(){
+ flushHdrMemory();
auto& i=*impl_;
i.prefs[QStringLiteral("hdrProfiles")]=QVariantMap{};
- i.hdrProfileDisplay=QString();
if(!i.savePrefs())veyra::log::warn("ui-prefs","hdr display profiles not cleared");
emit preferencesChanged();
emit notice(tr("已清除显示设备记忆"),false);
- syncHdrDisplayProfile();
}
void QmlPlayerBridge::syncHdrDisplayProfile(){
@@ -4995,8 +5013,9 @@ void QmlPlayerBridge::syncHdrDisplayProfile(){
const QString id=hdrDisplayProfileId();
if(id.isEmpty()||id==i.hdrProfileDisplay)return; // the common path: nothing changed
// Leaving a display: remember what the curve looks like on it.
- if(!i.hdrProfileDisplay.isEmpty())storeHdrProfile(i.hdrProfileDisplay);
+ flushHdrMemory();
i.hdrProfileDisplay=id;
+ emit settingsChanged();
if(loadHdrProfile(id)){
emit preferencesChanged();
emit notice(tr("已套用该显示设备的 HDR 曲线配置"),false);
@@ -5020,8 +5039,8 @@ bool QmlPlayerBridge::loadHdrProfile(const QString& id){
s.hdrCurve.peakCapNits=unsigned(std::clamp(number("peakCapNits",int(s.hdrCurve.peakCapNits)),0,4000));
s.hdrCurve.strengthPercent=unsigned(std::clamp(number("strengthPercent",int(s.hdrCurve.strengthPercent)),0,200));
s.hdrCurve.displayPeakNits=unsigned(std::clamp(number("displayPeakNits",int(s.hdrCurve.displayPeakNits)),0,10000));
- commitHdrTuning(std::move(s));
- return true;
+ QScopedValueRollback<bool> restoring(i.hdrRestoring,true);
+ return commitHdrTuning(std::move(s));
}
bool QmlPlayerBridge::storeHdrProfile(const QString& id){
@@ -5040,9 +5059,10 @@ bool QmlPlayerBridge::storeHdrProfile(const QString& id){
auto profiles=i.prefs.value(QStringLiteral("hdrProfiles")).toMap();
if(profiles.value(id).toMap()==entry)return false; // nothing new to remember
profiles[id]=entry;
+ while(profiles.size()>32)profiles.erase(profiles.begin());
i.prefs[QStringLiteral("hdrProfiles")]=profiles;
if(!i.savePrefs())veyra::log::warn("ui-prefs","hdr display profile not saved");
- return true;
+ emit preferencesChanged();return true;
}
QVariantMap QmlPlayerBridge::hdrSourceInfo() const {
@@ -5087,7 +5107,8 @@ QVariantMap QmlPlayerBridge::hdrPeakWarning() const {
// The arithmetic (including the divide-by-zero guard) lives in the header so the
// unit tests cover it; this only marshals it to QML.
const unsigned sourcePeak=snap.sourceMaxCllNits?snap.sourceMaxCllNits:snap.sourceMasteringPeakNits;
- const auto w=engine::hdrPeakWarning(sourcePeak,snap.sourceHdr,s.hdrCurve.enabled,s.hdrCurve,s.hdrMetadata);
+ auto baseline=s.hdrCurve;if(!baseline.displayPeakNits)baseline.displayPeakNits=effectiveHdrDisplayPeakNits();
+ const auto w=engine::hdrPeakWarning(sourcePeak,snap.sourceHdr,baseline.enabled,baseline,s.hdrMetadata);
return {{"valid",w.valid},{"sourcePeakNits",int(w.sourcePeakNits)},{"capNits",int(w.capNits)},
{"keptPercent",int(w.keptPercent)},{"clipped",w.clipped}};
}
@@ -5984,6 +6005,7 @@ void QmlPlayerBridge::tickPlaylist() {
void QmlPlayerBridge::openPath(const QString& path) {
if (path.isEmpty()) return;
+ flushHdrMemory();impl_->hdrTitleApplied.clear();
if (QFileInfo(path).isDir()) {
impl_->playlist->addPaths({path}); emit playlistRequested(); return;
}
@@ -6059,6 +6081,7 @@ void QmlPlayerBridge::togglePlayPause() {
veyra::log::info("ui-transport", pause ? "pause" : "resume");
}
void QmlPlayerBridge::stopPlayback() {
+ flushHdrMemory();
impl_->playlistSession = 0;
impl_->playlist->setPlayback(impl_->playlistPath, QStringLiteral("stopped"));
rememberPosition(true);
diff --git a/tests/integration/HdrOutputTuningGpuTests.cpp b/tests/integration/HdrOutputTuningGpuTests.cpp
index 25961160..d982c642 100644
--- a/tests/integration/HdrOutputTuningGpuTests.cpp
+++ b/tests/integration/HdrOutputTuningGpuTests.cpp
@@ -8,6 +8,8 @@
#include <DirectXPackedVector.h>
#include <iostream>
#include <array>
+#include <thread>
+#include <d3d12sdklayers.h>
#include <cmath>
extern "C" {
#include <libavutil/frame.h>
@@ -56,6 +58,14 @@ int wmain(){
settings.hdrCurve.highlightStartNits=200;settings.hdrCurve.peakCapNits=400;
ready=ready&&graph.applySettings(settings)&&present(0,true);
check(ready&&presenter.submittedCount()>idleCount,"HDR uniform edits invalidate the paused display cache");
+ check(!presenter.liveCurveCoverage().valid,"HDR coverage is silent before a panel requests it");
+ presenter.observeHdrCoverage(true);
+ check(present(),"visible HDR panel records a statistics probe");
+ check(present(),"statistics collect without a CPU fence wait");
+ const auto coverage=presenter.liveCurveCoverage();
+ check(coverage.valid&&coverage.samples==2304&&coverage.inRollOff>0,"HDR10/scRGB statistics report a completed sparse sample");
+ check(coverage.aboveCeiling==0,"soft highlight knee is not misreported as hard clipping");
+ presenter.observeHdrCoverage(false);check(!presenter.liveCurveCoverage().valid,"hiding HDR panel clears its statistics");
double maxRelative=0;bool monotonic=true;double previous=0;
if(ready)for(unsigned i=0;i<patches.size();++i){
const auto at=size_t(i*4+2)*3;
@@ -138,6 +148,10 @@ int wmain(){
}
}
av_frame_free(&frame);ring.drainQueue();
+ Microsoft::WRL::ComPtr<ID3D12InfoQueue> messages;
+ if(SUCCEEDED(ctx.device()->QueryInterface(IID_PPV_ARGS(&messages)))){
+ for(UINT64 i=0;i<messages->GetNumStoredMessages();++i){SIZE_T bytes=0;messages->GetMessage(i,nullptr,&bytes);std::vector<uint8_t> storage(bytes);auto* message=reinterpret_cast<D3D12_MESSAGE*>(storage.data());if(SUCCEEDED(messages->GetMessage(i,message,&bytes))&&message->Severity<=D3D12_MESSAGE_SEVERITY_ERROR){++failures;std::cout<<"GPU_VALIDATION "<<message->pDescription<<std::endl;}}
+ }
std::cout<<"HDR output integration failures="<<failures<<" (GPU/DXGI pixels only; physical monitor unmeasured)"<<std::endl;
return failures?1:0;
}
diff --git a/tests/qml/QuickSmokeTests.cpp b/tests/qml/QuickSmokeTests.cpp
index 9a14ba7e..db013c32 100644
--- a/tests/qml/QuickSmokeTests.cpp
+++ b/tests/qml/QuickSmokeTests.cpp
@@ -39,6 +39,7 @@ QtObject {
function nrAutoSelectionReason(index) { return "Auto is unavailable in this four-layer UI fixture" }
function resetNrLayer(index) {}
function logUi(category, text) {}
+ function observeHdrCoverage(on) {}
})qml", QUrl());
auto* model = snapshot.create(engine->rootContext());
if (!model) qFatal("Cannot create explicit component snapshot: %s", qPrintable(snapshot.errorString()));
diff --git a/tests/unit/HdrOutputTuningTests.cpp b/tests/unit/HdrOutputTuningTests.cpp
index 62f6a07f..84a3806e 100644
--- a/tests/unit/HdrOutputTuningTests.cpp
+++ b/tests/unit/HdrOutputTuningTests.cpp
@@ -340,7 +340,7 @@ int main() {
// The live meter's numbers must be defined by tests, not by the render loop.
{
HdrCurveSettings curve;curve.enabled=true;curve.peakCapNits=1000;
- curve.highlightStartNits=450;curve.shadowRangeNits=35;
+ curve.highlightStartNits=450;curve.shadowRangeNits=35;curve.shadowLiftEv100=50;
const double frame[]={10.0,20.0,30.0,100.0,500.0,900.0,2000.0};
const auto coverage=hdrCurveCoverage(frame,7,curve);
check(coverage.valid&&coverage.samples==7,
@@ -362,10 +362,10 @@ int main() {
}
check(rising,"pq: the decode is monotonic");
}
- check(coverage.aboveCeiling==1&&std::abs(coverage.aboveCeilingPercent()-100.0/7.0)<1e-9,
- "coverage: only the sample above the ceiling is reported as crushed");
- check(coverage.inRollOff==2,
- "coverage: samples between the highlight start and the ceiling are roll-off");
+ check(coverage.aboveCeiling==0&&coverage.aboveCeilingPercent()==0,
+ "coverage: the soft knee prevents false hard-clipping reports");
+ check(coverage.inRollOff==3,
+ "coverage: every value entering the highlight knee is counted");
check(coverage.inLift==3,
"coverage: samples below the lift range are counted as being raised");
const auto disabled=hdrCurveCoverage(frame,7,HdrCurveSettings{});