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++
Release 2.0.3 with GPU packages and unified effect availability
Veyra Goal Agentf1fd408098de
diff --git a/AGENTS.md b/AGENTS.mdindex 6d016623..9c38e7be 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,5 +1,16 @@# Veyra 项目 Agent 执行规则+> **2026-10-04 2.0.3 发布授权**:用户明确要求将当前 Xbox/导出码率/RTSS 背景/NVIDIA 插件误判/极简像素缺口修复、AMD NR 与全档 VFG 整合到 `main` 并发布 GitHub `Likely7/Veyra-NRVideo` 2.0.3;另将便携包拆成 NVIDIA / AMD 两份,软件内不支持的功能保留显示并置灰。按 `docs/RELEASE_2.0.3_PLAN_2026-10-04.md` 在现有 E 盘隔离工作树的 `codex/release-2.0.3-20261004` 执行,允许必要能力判断/QML/打包/版本/验收接点和本轮 commit、tag、merge、push、Release 及已审计运行组件上传。本条覆盖此前本轮仅本地候选的限制;HDR/Dolby Vision PR #13/#14 用户明确暂缓,不适配、不并入。本次没有新的关机要求;不派 Agent、不改桌面旧工作树或用户配置。仍禁止 SDK/运行库/模型进源码 Git。++## 显卡分包规则(2026-10-04 起)++- 每个正式版本分别发布 `Veyra-<版本>-NVIDIA-win64-portable` 和 `Veyra-<版本>-AMD-win64-portable`,从同一源码/生产构建生成。各包包含完整基础播放器、采集、串流、音频、导出、Qt、patched FFmpeg 与必要公共组件,无运行时联网补齐。+- **按实际硬件支持分包,不按品牌名字盲删。** NVIDIA 包保留已审计 NVIDIA NR/DLSS/RTX SR/HDR/NVOF/VFG 与跨厂商可用的 FSR 3.1、XeSS 等,不包含 AMD RX9000 NR 的模型/HIP/runtime。AMD 包保留 AMD NR、FSR3.1/适用 FSR4 和跨厂商可用的 XeSS 等,不携带 NVIDIA NR/DLSS/RTX SR/HDR/NVOF/VFG/CUDA 等 AMD 无法使用的组件。共享依赖只保留必要闭包;显卡驱动文件不随包复制。+- **FSR 例外(用户本轮追加:“FSR3.1和4分开太麻烦了,就留着吧”)**:两包都保留现有已核验 FidelityFX SDK 2.3.0 的 loader/upscaler/framegeneration 三组件,不拆分 FSR3.1/4、不替换为旧 SDK、不添加旧 API 兼容路径。NVIDIA 只开放实际可用的 FSR3.1;FSR4 ML 入口仍可见并置灰。此决定覆盖前面“NV 包不带 FSR4 内容”的要求,仅针对共用 FidelityFX 组件,不能扩大到 AMD NR 或 NVIDIA 专用组件。+- 软件内全部功能入口保持可见。不支持的显卡、该包未包含组件或运行库缺失时置灰,并提供真实原因;列表、节点、版本/算法选择和预设加载统一消费硬件/运行组件能力,不让禁用项偷偷生效。初始化失败必须报告实际错误,不得宣称已生效;保留用户设置,不用删除 UI 或伪造支持掩盖缺口。+- 每包有独立 `package-manifest.json` 和运行组件来源/版本/大小/SHA256/签名/许可证记录,标明目标显卡与包含/排除组件;源码/依赖源码单独提供。打包前审计 imports/delay-imports,打包后校验全部文件、干净解压启动和缺失组件回退,确保被排除 DLL 不成为启动的强制依赖。+- 不为瘦身修改 DLL/模型字节、量化或删除未经证实无用的权重/内核,不移除已支持档位。分包大小和实测显卡分别报告;本机 RTX 测试不冒充 AMD 实卡推理或主机长稳验收。压缩格式须说明解压方法。+> **2026-10-04 追加授权**:用户要求VFG(消息写VSF,按前文VFG理解)和AMD NR尽量瘦身,稳定性优先,再构建新的完整本地测试包、汇报HDR PR合并计划、保存完成后关机。在 `codex/runtime-size-20261004` 按 `docs/RUNTIME_SIZE_PLAN_2026-10-04.md` 执行,基线fc2ca716,tag `checkpoint/pre-runtime-size-20261004`、bundle在E盘archives/runtime-size-20261004。只授权必要依赖加载/打包/定向验证接点;不修改proprietary DLL/模型、不牺牲功能档位或未经实测移除必要文件。HDR仍只方案等审批,无merge/push/Release授权,不派Agent。所有产物E盘;测试每进程≤300秒、构建≤900秒;完成包/报告/源码存档和停止本轮子进程后,按用户明确要求关机。> **2026-10-04 当前授权**:立即修复极简窗口右侧像素缺口;HDR/Dolby Vision PR #13/#14 只做研究、静态审查和适配/UI方案,待用户审批才修复并入。在 `codex/minimal-edge-hdr-review-20261004` / 当前E盘隔离工作树按 `docs/MINIMAL_EDGE_HDR_REVIEW_PLAN_2026-10-04.md` 执行。黑边所需QML原生宿主窗口几何/裁切、默认极简窗口取整的最小显示几何接点及定向验收获本轮授权,覆盖对应历史冻结;HDR算法/UI/PR合并未授权。复现证据与新增PresentationGeometry/VideoPresenter范围先记录在方案,不改增强/颜色链。保留已验VFG/现场修复、main、桌面、候选和用户配置;不派Agent、不merge/push/Release,所有产物在E盘,测试≤300秒、构建≤900秒。diff --git a/CMakeLists.txt b/CMakeLists.txtindex 1756892a..947e549d 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -1,9 +1,9 @@cmake_minimum_required(VERSION 3.24)-project(veyra VERSION 2.0.2 LANGUAGES CXX RC)+project(veyra VERSION 2.0.3 LANGUAGES CXX RC)# Shown in the EXE's version resource and in the package name. CMake versions# must be numeric, so the beta marker lives here instead.-set(VEYRA_DISPLAY_VERSION "2.0.2" CACHE STRING "Human-readable version string")+set(VEYRA_DISPLAY_VERSION "2.0.3" CACHE STRING "Human-readable version string")# The cache keeps the first value it ever saw, so a release that bumps# project(VERSION) used to ship an EXE still stamped with the previous display# string. Re-align it whenever the cached label does not start with the project@@ -1043,6 +1043,9 @@ add_executable(veyra_sr_reconstruction_tests tests/integration/SrReconstructionTtarget_compile_definitions(veyra_vfg_settings_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN)target_include_directories(veyra_vfg_settings_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)target_link_libraries(veyra_vfg_settings_tests PRIVATE veyra_base)+ add_executable(veyra_effect_availability_tests tests/unit/EffectAvailabilityTests.cpp)+ target_compile_features(veyra_effect_availability_tests PRIVATE cxx_std_20)+ target_include_directories(veyra_effect_availability_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)add_executable(veyra_effect_chain_tests tests/unit/EffectChainTests.cpp src/engine/EffectChain.cpp)target_compile_features(veyra_effect_chain_tests PRIVATE cxx_std_20)diff --git a/README.md b/README.mdindex d165f645..a5b4251c 100644--- a/README.md+++ b/README.md@@ -16,7 +16,7 @@ English | [简体中文](README_CN.md)A Windows enhancement player for videos, images, capture cards and streaming. Super-resolution, NR, colour grading, RTX Video HDR and frame generation share one engine. Community enhancements remain experimental.-[Download 2.0.2 portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.2) · [Full changelog: English / 中文](docs/RELEASE_NOTES_2.0.2.md) · [Issues](https://github.com/Likely7/Veyra-NRVideo/issues)+[Download 2.0.3 portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.3) · [Full changelog: English / 中文](docs/RELEASE_NOTES_2.0.3.md) · [Issues](https://github.com/Likely7/Veyra-NRVideo/issues)## Highlights@@ -24,9 +24,14 @@ A Windows enhancement player for videos, images, capture cards and streaming. Su- **Node editing and layered NR:** executable connections, independent NR/colour parameters, separate List/Node configurations, sessions and presets.- **PC / Xbox streaming:** Moonlight/Sunshine-compatible PC streaming and unofficial experimental Xbox support, alongside PS5, capture cards and screen capture.- **New export workflow:** editable ordered queue, trimming, MP4/MKV, multiple audio/embedded subtitle tracks, cancellation/retry and completion sound.-- **Enhancement and compatibility:** three NR runtime choices (NVIDIA original for RTX 50, Lecram and SF-v2), DLSS/XeSS/FSR options, capture improvements and a persistent OBS Game Capture switch with restart confirmation. Full details are in the Release.+- **Enhancement and compatibility:** four NR runtime choices (NVIDIA original for RTX 50, Lecram, SF-v2 and AMD lmxxf), DLSS/XeSS/FSR options, capture improvements and a persistent OBS Game Capture switch with restart confirmation. Full details are in the Release.++## New in 2.0.3++- **GPU packages:** choose NVIDIA or AMD. AMD NR assets and NVIDIA-only NR/NGX/VFG/CUDA components are separated. Both keep the existing shared FidelityFX 2.3.0 components and cross-vendor FSR3.1/XeSS; FSR4 stays gray on NVIDIA.+- **Visible compatibility:** four NR versions, SR backends, FG backends, RTX HDR and optical flow retain unsupported entries with a disabled reason in List/Node mode. Restoring old configurations disables unavailable stages and preserves their parameters.+- **VFG and field fixes:** all 2–8X multipliers and Low/Medium/High; Xbox audio startup and bounded recovery; bitrate draft/validation/frozen exports; opaque RTSS-compatible UI; removed false NVIDIA App crash detection; fixed the minimal window's right-edge gap. Nine unrelated VFG NPP libraries are omitted. RX9000 inference and Xbox hardware long sessions remain unverified; HDR/Dolby PRs are deferred.-## New in 2.0.2- Restore NVIDIA original NR as a third choice; existing Lecram/SF-v2 settings remain valid.- Optional startup resume reopens the last movie at its saved position or starts the saved capture card configuration. Choose Cinema or Professional as your startup page.@@ -35,7 +40,7 @@ A Windows enhancement player for videos, images, capture cards and streaming. Su## Install and upgrade-Download **Veyra-2.0.2-win64-portable.zip**, extract into a new writable folder and run **veyra_qml_ui.exe**. This is the only release asset you need to run the application. Windows 11 x64 and DirectX 12 are required; Qt and approved runtimes are included, while GPU/capture drivers are installed separately. Backend hardware requirements vary; most local tests used an RTX 5070.+Download **Veyra-2.0.3-NVIDIA-win64-portable.7z** or **Veyra-2.0.3-AMD-win64-portable.7z** for Veyra's active GPU. Extract with 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding. Windows 11 x64 and DirectX 12 are required; Qt and approved runtimes are included, while GPU/capture drivers are installed separately. Backend hardware requirements vary; most local tests used an RTX 5070.Start with effects off, check picture/sound, then enable effects individually. High resolution, layered NR and frame generation increase GPU/VRAM requirements.@@ -54,7 +59,7 @@ Home offers files, capture card, PS5, PC, Xbox and screen capture. Files/images### List mode-The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram and RTX 20–50 · SF-v2 in both List and Node mode. It switches the entire NR chain, retaining the existing default. See [runtime identities](docs/RUNTIME_COMPONENTS_2.0.2.md).+The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram, RTX 20–50 · SF-v2 and RX9000 · lmxxf (experimental) in both List and Node mode. Unsupported versions remain visible but gray; switching supported versions updates the entire NR chain. AMD NR requires driver HIP 7 and is limited to its 1080p pixel budget; HDR/native 1440p or 4K NR export is unavailable. See [runtime identities](docs/RUNTIME_COMPONENTS_2.0.3.md).Select List at the top of Professional. Enable SR, NR or RTX Video HDR as needed. Up to four NR layers have independent internal resolution, strength and parameters. The master switch disables all layers and restores their previous enabled states.@@ -73,7 +78,7 @@ Select Nodes at the top of Professional. This is an executable chain editor:5. Optical flow is shared after input; SR is a single instance. RTX Video HDR stays before final FG; select one DLSS/XeSS/FSR backend. This is not an arbitrary branching/mixing graph.6. List and Node settings, presets and sessions are separate. Returning to List restores its settings and retains the node graph. Switching rebuilds processing and may briefly pause the picture.-**2.0.2 Node mode does not support offline export or List mode's global NR protection region.** Switch to List and verify its effects before exporting; graphs are not silently converted.+**2.0.3 Node mode does not support offline export or List mode's global NR protection region.** Switch to List and verify its effects before exporting; graphs are not silently converted.### Capture and streaming@@ -128,7 +133,7 @@ QML renders UI; native D3D12 renders video. List/Nodes share the engine, disconn## Source and build-Original code: GPL-3.0. The combined Chiaki streaming application is also subject to AGPL-3.0 and its OpenSSL exception (licenses/remoteplay). [Third-party notices](THIRD_PARTY_NOTICES.md), [2.0.2 build/source](docs/BUILD_2.0.2.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.+Original code: GPL-3.0. The combined Chiaki streaming application is also subject to AGPL-3.0 and its OpenSSL exception (licenses/remoteplay). [Third-party notices](THIRD_PARTY_NOTICES.md), [2.0.3 build/source](docs/BUILD_2.0.3.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.## Supportdiff --git a/README_CN.md b/README_CN.mdindex dd88900e..b49bc351 100644--- a/README_CN.md+++ b/README_CN.md@@ -14,7 +14,7 @@Windows 视频、图片、采集卡与串流增强工具。在同一处理链组合超分辨率、NR 画面增强、调色、RTX Video HDR 与补帧。社区增强能力保留实验性质。-[下载 2.0.2 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.2) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.2.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)+[下载 2.0.3 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.3) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.3.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)## 2.0.0 重点@@ -24,7 +24,12 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组- **导出页重做**:可编辑顺序队列、剪辑、MP4/MKV、多音轨/内嵌字幕、取消重试和完成提示音。- **增强与兼容**:NR 三版本(50 系 NVIDIA 原版、Lecram、SF-v2)、DLSS/XeSS/FSR 补帧入口、采集优化及带重启确认的 OBS 游戏采集开关。详细新功能与修复见 Release。-## 2.0.2 新增与修复+## 2.0.3 新增与修复++- **显卡分包**:NVIDIA 包不带 AMD NR;AMD 包不带 NVIDIA NR/NGX/VFG/CUDA。按用户追加决定,两包都保留原有 FidelityFX 2.3.0 共用组件,FSR3.1/XeSS 可用,NVIDIA 的 FSR4 入口置灰。+- **功能可见但禁用**:NR 四版本、超分、补帧、RTX HDR、光流与节点添加统一判断硬件/组件,并显示禁用原因。恢复旧配置关闭不可用效果,保留参数。+- **VFG 与现场修复**:VFG 全部 2–8X、低/中/高;Xbox 音频启动与有界恢复;导出码率草稿/验证/worker 冻结;小飞机兼容背景不透明;移除 NVIDIA App 插件误判;修复极简右侧像素黑边。删除九个 VFG 不使用的 NPP 库。RX9000 推理和 Xbox 真机长稳仍待验,HDR/杜比 PR 暂缓。+- 恢复 50 系 NVIDIA 原版 NR,与 Lecram、SF-v2 共三版切换,已有设置保留。- 设置可开启启动自动继续上次视频及进度,或按已保存的采集卡配置直接开始;启动页可选极简或专业。@@ -33,7 +38,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组## 下载、启动与升级-1. 下载 **Veyra-2.0.2-win64-portable.zip**,完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需这一个下载包。+1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.3-NVIDIA-win64-portable.7z** 或 **Veyra-2.0.3-AMD-win64-portable.7z**,用 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。2. Windows 11 x64、DirectX 12;无需安装 Qt、Python 或开发 SDK。显卡/采集卡驱动仍需安装。后端各有硬件要求,主要实测显卡为 RTX 5070。3. 先关闭效果确认基础画面和声音,再逐项开启。8K、多层 NR 和补帧会增加显存与处理时间,不保证所有组合实时运行。4. **1.4.4 教程不再适用。** 2.0 使用独立配置目录,保留旧版用于回退;不要直接复制旧 `veyra.ini`、整个 `runtime_local` 或混装 DLL 覆盖新版。@@ -51,7 +56,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组### 列表模式-列表与节点的 **NR 版本** 均可选 RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2,切换时全 NR 链同步,原有默认选择保留。[运行组件身份](docs/RUNTIME_COMPONENTS_2.0.2.md)。+列表与节点的 **NR 版本** 均可选四项:RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2、RX9000 · lmxxf(实验)。不支持的版本保留置灰,支持的版本切换时全 NR 链同步。AMD NR 需要驱动 HIP 7,内部最高 1080p 像素预算,HDR/原生 1440p/4K NR 导出不支持。[运行组件身份](docs/RUNTIME_COMPONENTS_2.0.3.md)。顶部选 **列表**,按需开启超分、NR、RTX Video HDR。NR 最多四层,独立调整内部尺寸、强度等参数;总开关关闭全部 NR,重开恢复各层原状态。@@ -70,7 +75,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组5. 光流在输入后计算并共享,超分为单实例;RTX Video HDR 在补帧前,补帧固定末端,DLSS/XeSS/FSR 选一个后端。不是任意分支混合图。6. 列表和节点分别保存参数、预设、会话。切回列表恢复原列表配置,节点链保留;切换重建处理链,可能短暂停顿。-**2.0.2 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。+**2.0.3 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。### 采集与串流@@ -125,7 +130,7 @@ QML 管界面,视频由原生 D3D12 呈现。列表/节点共用引擎,未## 开源与构建-Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.2 构建与对应源码](docs/BUILD_2.0.2.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。+Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.3 构建与对应源码](docs/BUILD_2.0.3.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。## 支持与反馈diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 14a9742c..53afc764 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -21,11 +21,12 @@ borrowed pixel ownership; no proprietary SDK struct or header is copied into GitThe local runtime is the unmodified official `nvidia-vfx` 0.2.0.0 Windows wheel,`nvidia_vfx-0.2.0.0-cp311-cp311-win_amd64.whl`, 435809365 bytes, SHA-256`5aaf6a42bc6b6dbbf52fcb714194c994a6893cbbf7ada38bc2165a1f83e4a6fc`.-Only the fourteen native VFG dependencies are used; Python and its extension+Only the five VFG-required native dependencies are used; nine unrelated NPP libraries are omitted; Python and its extensionare not a product dependency. This proprietary runtime is **not MIT**.-The local candidate carries its NVIDIA software/AI/model terms and third-party-notices with a separate `vfg-runtime-manifest.json`; public redistribution has-not been authorized or established by this integration. CUDA driver headers+The 2.0.3 NVIDIA package carries its NVIDIA software/AI/model terms and third-party+notices with a separate `vfg-runtime-manifest.json`. The user explicitly authorized+this experimental Release distribution; this is not vendor certification or a general+redistribution grant, and the integration is not an independent legal audit. CUDA driver headersare an external build dependency only; the system `nvcuda.dll` is never bundled.DLLs remain unmodified, separately identified and outside source control;manifest identity does not lock user replacements. Hardware/format support and@@ -260,7 +261,7 @@ Remote Play also depends on **OpenSSL, Opus, json-c, libevent, miniupnpc, curl,<details><summary>Deferred AMD NR research references</summary>-[DLSS-NR-on-AMD](https://github.com/danielblnc/DLSS-NR-on-AMD), [dlss5-on-amd-9070xt-porting](https://github.com/lmxxf/dlss5-on-amd-9070xt-porting), [dlss5-image-enhancer-zluda](https://github.com/RedDukeDev/dlss5-image-enhancer-zluda) and its [ZLUDA fork](https://github.com/RedDukeDev/ZLUDA), [dlss5-neural-amd](https://github.com/zmodelerlover/dlss5-neural-amd), and [DLSS5-AMD-Video](https://github.com/eikkapine/DLSS5-AMD-Video). These informed feasibility and performance research. AMD NR is not available in the current release.+[DLSS-NR-on-AMD](https://github.com/danielblnc/DLSS-NR-on-AMD), [dlss5-on-amd-9070xt-porting](https://github.com/lmxxf/dlss5-on-amd-9070xt-porting), [dlss5-image-enhancer-zluda](https://github.com/RedDukeDev/dlss5-image-enhancer-zluda) and its [ZLUDA fork](https://github.com/RedDukeDev/ZLUDA), [dlss5-neural-amd](https://github.com/zmodelerlover/dlss5-neural-amd), and [DLSS5-AMD-Video](https://github.com/eikkapine/DLSS5-AMD-Video). These informed feasibility and performance research. The 2.0.3 AMD package includes the lmxxf runtime and user-supplied 0.39 assets; actual RX9000 inference remains unverified.</details>@@ -703,7 +704,7 @@ The user supplied `Magpie-DLSS5-AMD-0.39.zip` (SHA256`9ea84c665d270cd45e24184729b8272c152485df462a1528539ed778d41849f5`).Its NVIDIA-derived model weights are **not** MIT-licensed code. All weights,compiled HIP modules and runtime DLLs stay outside source Git; their use in this-local candidate does not authorize a public release. HIP API license and the+2.0.3 AMD package follows the user's explicit experimental distribution authorization; open-source code does not relicense these models. HIP API license and theruntime MIT notice accompany the local asset directory. No AMD driver DLL iscopied from that package; an RX 9000 driver must provide `amdhip64_7.dll`.Hardware inference, image quality and stability remain unverified on RX 9000.diff --git a/docs/BUILD_2.0.3.md b/docs/BUILD_2.0.3.mdnew file mode 100644index 00000000..12e380fb--- /dev/null+++ b/docs/BUILD_2.0.3.md@@ -0,0 +1,22 @@+# Veyra 2.0.3 corresponding source and build++Download the [v2.0.3 application source](https://github.com/Likely7/Veyra-NRVideo/archive/refs/tags/v2.0.3.zip) and [2.0.3 dependency source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.3/Veyra-2.0.3-dependency-source.zip). Source downloads are for rebuilding; select the NVIDIA or AMD portable package to run the application.++The dependency bundle contains the byte-identical `Veyra-2.0.0-dependency-source.zip` (538838710 bytes, SHA256 `a293552434381a71169c1c27658f07202d67243ca82e748936b9db15077ce0de`) under `unchanged/`. Extract it for the existing Qt 6.8.3, patched FFmpeg/dav1d, Chiaki, Moonlight, Xbox/WebRTC, OpenSSL and FidelityFX 2.3.0 sources, ports, patches and SBOM. Follow [BUILD_2.0.0.md](BUILD_2.0.0.md) for these unchanged components. Preserve FFmpeg's PS5 H.264 32→256 slice patch and `veyra-local-build.json`. SoundTouch 2.4.1 and its static integration remain in the tagged application source; modifying it and rebuilding relinks the player.++New source materials include:++- Unmodified MIT lmxxf source from commit `78f548749e74824327b8458c57be31a1df78376a`. The actual build uses `src/LmxxfNrRuntime.cpp`, the public C ABI and upstream HIP/codec code. Veyra's `scripts/amd-nr/build-lmxxf-runtime.py`, `msvc-compat.h` and staging recipe accompany it. The build script accepts either the pinned Git checkout or the supplied `lmxxf-78f5487` source directory with its adjacent `source-manifest.json`; both are identity-checked. Compile with MSVC C++17 x64 `/O2 /LD /MD`, forced compatibility include, `NOMINMAX`, Windows 10 definitions and D3D12/DXGI/D3DCompiler/DXGUID/user32 libraries. Captured test images, measurement CSVs, weights and compiled kernels are excluded from the source archive. Model assets and HIP code objects are separate runtime payloads and retain their own terms. The RX9000 driver must provide HIP 7; no driver DLL is shipped.+- Both GPU packages retain the exact existing FidelityFX SDK 2.3.0 loader, upscaler and framegeneration components, at the user's explicit request to keep FSR3.1/4 together. Corresponding 2.3.0 sources are in the unchanged dependency archive. NVIDIA only exposes FSR3.1; FSR4 remains disabled there. No legacy SDK replacement or ABI compatibility change is shipped.++- MIT VFG sample reference `NVIDIA-Maxine/VFX-SDK-Samples` commit `52011f89c1741d06b40ea312af1f20be8be9ec62`, its notice, README and VideoFrameGenerationEffectApp.cpp. Veyra's own native loader, D3D12/CUDA shared buffers/fences, graph/worker integration and diagnostics are in the application source. Obtain the CUDA driver development headers from NVIDIA and point `VEYRA_CUDA_DRIVER_INCLUDE_DIR` at them. Proprietary NVIDIA SDKs, runtimes and models are excluded from source archives.++Use Visual Studio 2022 C++20 x64, Windows SDK, CMake/Ninja, Python 3.11 and Qt 6.8.3 MSVC2022 x64. Configure `x64-release` with QML, Remote Play, Moonlight and Xbox enabled and explicit external dependency paths as documented in BUILD_2.0.0. The display/project version is 2.0.3. Build `veyra_qml_ui` and the relevant acceptance targets; the source contains the executed tests/scripts and their bounded subprocess timeouts.++Both GPU packages use **the same executable, QML and shaders**. Run `package-qml-release.py --label 2.0.3 --no-archive` with explicit build/runtime/Qt/license/output paths to assemble fresh production assets. Then run `package-vendor-release.py stage` with `--common-stage`, `--runtime-source`, `--amd-source` and `--output`. After validation and committing the final source, use `refresh`, `finalize` and `archive` with explicit `--build` and `--seven-zip`. Publisher locks/manifests verify identities, signatures and source provenance; they do not prevent user DLL replacements. The script excludes opposite-vendor-only runtime files, driver DLLs, SDK development files, test executables and profiles, and checks every shipped runtime against its manifest. `package-2.0.3-dependency-source.py` generates the matching dependency source asset with a per-file hash manifest.++Veyra's original code is GPL-3.0; the combined Chiaki application is also subject to AGPL-3.0 and its documented OpenSSL exception. Qt remains dynamically linked and replaceable. See `THIRD_PARTY_NOTICES.md`, the source manifests and the packaged licenses for exact component terms. NR models and NVIDIA VFG runtimes are not made MIT by their open-source host/sample code. No claim of independent legal review or vendor certification is made.++## 中文++重编译需同时下载上面的 **v2.0.3 应用源码** 和 **2.0.3 依赖源码包**。后者内嵌原样核验的 2.0.0 依赖包,并增加实际使用的 lmxxf MIT 源码/编译适配(FSR 2.3.0 对应源码沿用)和 MIT VFG 参考代码。Qt、patched FFmpeg、串流与 SoundTouch 构建材料保持完整;必须保留 PS5 slice 补丁。模型、HIP 内核和专有运行库与源码分开。AMD 推理仍需 RX9000 实卡验收;NVIDIA 的本机测试不能替代它。diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.mdindex f2fe706f..f58eace9 100644--- a/docs/CURRENT_STATUS.md+++ b/docs/CURRENT_STATUS.md@@ -1,5 +1,13 @@# 当前项目状态 / Current Status+## 2026-10-04 2.0.3 显卡分包发布施工++当前用户授权合并已完成修复到main并发布2.0.3;HDR/Dolby PR13/14暂缓。先存档/方案/新分支,桌面原修改保持。+NVIDIA/AMD两个完整包使用同EXE;分别排除AMD NR和NV专用库。按用户追加决定,两包保留原FSR3.1/4共用2.3组件,NV只开放FSR3.1,FSR4可见置灰。+四NR/三SR/五FG入口、列表/节点菜单及直接设置统一硬件/组件能力;旧不可用配置禁用效果并保留参数。+实际FSR/VFG/bitrate导出/RTSS透明背景/极简DPI/软件UI和AMD宿主布局、源码独立重建通过,详细证据见 RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md。+当前仍在最终合并、压缩和上传阶段;本机5070/616.56不能替代RX9000、RTX40、616.92或Xbox真实长稳验收。最终回执完成后追加本文件/WORKLOG。+## 2026-10-04 VFG / AMD NR 瘦身候选`codex/runtime-size-20261004` 以黑边已验修复fc2ca716为基线,先存档/写方案。diff --git a/docs/RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md b/docs/RELEASE_2.0.3_ACCEPTANCE_2026-10-04.mdnew file mode 100644index 00000000..267d7dc2--- /dev/null+++ b/docs/RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md@@ -0,0 +1,43 @@+# 2.0.3 显卡分包与现场修复验收++用户授权分别发布 NVIDIA/AMD 包、保留不可用功能的灰色入口、写入 AGENTS.md、合并当前已完成修复到 main 并发布 GitHub 2.0.3。追加决定保留现有 FSR3.1/4 共用组件;旧 SDK 分离试改已撤下。HDR/Dolby Vision PR #13/#14 不在本版施工范围。本轮不重复此前已经执行的关机。++## 源码与分包++先存档 `checkpoint/pre-release-2.0.3-20261004` 和已核验 Git bundle,再在 `codex/release-2.0.3-20261004` 修改。保留远端 main 的 README 提交 `712daf3`,不覆盖桌面原 checkout 的用户改动。产品构建在 `E:/项目/Veyra/build/release-2.0.3-20261004`;所有测试、日志、临时文件、归档和发布包均在同一 E 盘任务目录。++两个包使用同一 EXE/QML/shaders。NVIDIA 不含 AMD NR/HIP 模型和内核;AMD 不含 NVIDIA NR/DLSS/RTX SR/HDR/VFG/CUDA 专用库。两包保留原 FidelityFX SDK 2.3.0 loader/upscaler/framegeneration 和跨厂商 XeSS;NVIDIA 的 FSR4 ML 入口置灰。不复制显卡驱动 DLL。发布者按固定身份审计组件,软件仍允许用户替换运行库。++NR 保留四个版本入口,SR 保留三个算法入口,FG 保留五个后端入口。统一按实际主适配器与包内文件判断;列表、节点和菜单显示灰色及原因,直接设置也拒绝不可用请求。旧 session/preset 关闭不可用阶段,保留版本、倍率和质量参数;受支持的 FSR3.1 可在 AMD 包内正常使用。未拿模拟 GPU 测试冒充实卡推理。++## 本轮实际证据++以下路径均相对 `E:/项目/Veyra/logs/release-2.0.3-20261004/`。硬件为 RTX5070 / 驱动 616.56,测试子进程均不超过 300 秒;压缩和构建另设上限。++| 检查 | 结果与日志 |+|---|---|+| 产品构建 | fresh 构建及最终增量通过,最终 `build-v8.log`;生产 EXE SHA256 `998d42617e0455523b6f39741ec82206c4685f043794a5235c2853f8c5a98154`。 |+| 硬件规则与 UI 基础 | 56 硬件矩阵检查、331 VFG 设置检查、39 Qt Quick 测试、多语言与 NR preset 持久化通过,见 `unit-v1` 的成功项与 `unit-v2` 修复后结果。 |+| Xbox | 本地 WebRTC/ICE/DTLS/SCTP/RTP 90 checks;48k stereo float WASAPI 输出启动;AMD ABI GPU-copy 62 checks,见 `unit-v1`。音频测试 gain=0,不证明真主机有声。 |+| 原 FSR2.3 组件 | 独立 FSR 39 samples/39 中间帧,meanError=0、GPU debug errors=0;18 次 DLSS/XeSS/FSR 热切换、774 生成帧、0 debug error,见 `shared-native-v1`。这些是保留原组件后的结果,旧 SDK 试验不算本版证据。 |+| VFG | 本轮原生 720p 463 checks/0 failures;真实包内 GUI 所有 2–8X/三质量、DLSS6↔VFG8、seek/pause/resize、列表/节点预设与重启恢复通过;独立 worker 冻结 High 8X,输出 64 帧 HEVC/240fps,见 `shared-native-v1`、`vfg-ui-v1`。上一已存档瘦身阶段还验证过原生 4K,不能将本轮 720p 记作重复 4K 验收。 |+| 灰色入口与兼容 | `policy-nv-v3`、`policy-amd-v2`:真实两份包、同一 RTX5070;四 NR/三 SR/五 FG 可见且状态正确,拒绝 FSR4 请求。AMD 包加载原 VFG 列表8X Medium/节点8X High配置,禁用 FG 并保留参数;两包实际 FSR SR 播放成功,0 provider failure。 |+| 导出码率与 RTSS | `production-rtss-v1`:真实 RTSS7.3.7/RTSSHooks64 注入;2K30 MPEG-4 AVI→NR+最高 RTX SR→4K HEVC;18 Mbps VBR 后改其他选项、24 Mbps CBR 直接开始,两份均 24/24 帧。worker 使用冻结码率;输入值不是保证短片平均码率逐位相同。背景取样 alpha255,旧 NVIDIA marker 不触发误判。只关闭本轮启动的 RTSS,未改其配置。 |+| 极简右边缺口 | `edge-v1`:六个整数/分数 DPI 与软件绘制实际窗口测量,rightGap=0、bottomGap=0;没有用容器比例黑边冒充缺口。 |+| AMD NR | `amd-runtime-audit.json`:528 份实际分发文件逐 SHA,186 权重/62 HIP 模块,真实 ABI1/144 bytes 与模块布局通过;caps.hip=0。没有运行 HIP 推理。 |+| 对应源码可重建 | 源码包保留 byte-identical 2.0.0 依赖包,新增 lmxxf 源码和实际 recipe;排除权重/编译模块/截图/CSV/对话。从独立解压源码和 manifest 重建真实 AMD 宿主 DLL 成功,`amd-source-rebuild.log`;发布仍携带原已核验 DLL,不替换为重建件。 |+| 依赖与身份 | `stage-nv-v2.json` / `stage-amd-v1.json`:完整 payload SHA、厂商边界、每 runtime 的来源身份和 PE imports/delay imports 闭包通过,无 NPP、驱动或开发文件。封包前 NVIDIA1531/AMD2010 payload,最终说明文件更新后数量以各包最终 manifest 为准。 |++独立 staging 副本还以 Windows-only PATH、无 SDK/runtime override,在 GPU D3D12 和软件绘制各打开 home/pro/node/exp/set/min 六页;日志 `clean-smoke-pre-NVIDIA` / `clean-smoke-pre-AMD`,每包12张截图与运行前后全文件 SHA 校验。最终归档的解压/CRC/SHA 和远端资产校验按下节继续记录,不提前声明完成。++## 失败、修复与界限++构建初次有测试目标名、ChainValidation 字符串类型和变量重名问题,修正后通过。旧 SDK 试改有弃用 ABI/版本判定问题;该试改已整体撤下,不依靠它发布。测试 harness 的 argv/offscreen plugin、清理后旧 profile 路径、VFG DLL 文件名假设分别修正后通过。真实节点补帧子菜单漏传 disabled/note,在本轮检查发现并修复,随后两个包真实 UI 均通过。第一次依赖包误带上游测试截图和二进制模型,未发布,剔除后逐文件核验并独立编译通过。所有失败日志保留,不将首次失败记成通过。++没有 RX9000、RTX40、用户616.92驱动、实体 Xbox 音频/长会话、物理屏幕延迟的验收。本版 Xbox 自动重连不能阻止服务端 KickForServerShutdown 或根治 Wi-Fi 丢包。AMD NR 为 1080p 像素预算,不支持 HDR/原生1440p或4K NR导出。VFG8X High 不保证实时240fps;提交 FPS 不是物理屏幕刷新率。旧 `delivery.ps1` 只支持 legacy Win32,本轮用上述 QML/实际生产定向验收,不将旧 gate 记作通过。++## 最终交付的执行与回执++合并后先核对最终 main 与已测构建的产品源树,finalize 写入干净源码 commit/版本/逐文件身份,生成两个7z、应用源码和依赖源码;独立新目录解压后再核对全部 payload/CRC/版本/厂商闭包。归档只做无损压缩,不改 DLL 或模型字节。++发布资产清单与 SHA256 在 `E:/项目/Veyra/releases/release-2.0.3-20261004/SHA256SUMS.txt`;最终本机及远端回执在 `E:/项目/Veyra/logs/release-2.0.3-20261004/`,发布完成后追加 WORKLOG。Release 正文保留赞助与交流群图各 width220;本轮 HEAD 请求两个固定图片均 HTTP200,远端正文上传后再核对。只有完成实际上传和远端 digest/大小检查才报告发布完成。diff --git a/docs/RELEASE_2.0.3_PLAN_2026-10-04.md b/docs/RELEASE_2.0.3_PLAN_2026-10-04.mdnew file mode 100644index 00000000..6d12cc41--- /dev/null+++ b/docs/RELEASE_2.0.3_PLAN_2026-10-04.md@@ -0,0 +1,24 @@+# 2.0.3 显卡分包、现场修复合并与发布方案++用户本轮明确授权:分别打 AMD/NVIDIA 包,排除对该显卡无效的运行内容;软件功能保留并置灰;规则写入 AGENTS.md;将此前完成的几项修复合并 main 并发布 Likely7/Veyra-NRVideo 2.0.3。HDR/Dolby Vision PR #13/#14 明确暂缓,既有静态研究文档不是施工授权。此前关机请求已经执行,本次不重复关机。++## 基线与存档++- 开工产品/文档基线 cb9b89e4259d1c430f40f976997f6155886bff46,包含 Xbox、导出码率、RTSS、不再误判 NVIDIA App 插件、AMD NR、VFG 全倍率/质量、极简像素缺口及依赖瘦身。+- 分支 codex/release-2.0.3-20261004;沿用 E:/项目/Veyra/worktrees/field-upgrade-20261003。桌面旧工作树仍有用户改动,禁止切分支或覆盖。+- 开工 tag checkpoint/pre-release-2.0.3-20261004;完整 bundle E:/项目/Veyra/archives/release-2.0.3-20261004/source-before.bundle,verify 成功,SHA256 06A8A2EBCD2F8580E7583342696986EAADA80C3B244400213C3E23461BFB0E93;桌面 working patch/status 和本地 main status 同目录保存。+- 本地 main 66cd3e5;远端 main 712daf3 只调整 README 语言链接位置,已 fetch 并在发布分支保留该提交,不能覆盖其改动。后续 push 使用常规快进,不 force。+- 产物统一 E:/项目/Veyra/{build,tests,logs,tmp,releases,verify,archives}/release-2.0.3-20261004;每测试子进程最多 300 秒,每构建最多 900 秒,TEMP/TMP 只设子进程。++## 修改与验证++1. 审计现有 runtime 锁、AMD/VFG manifest、PE imports/delay imports 和动态加载路径,建立 NVIDIA/AMD/公共依赖清单。两份包使用同一生产构建,包含公共文件/Qt/完整基础功能;拒绝另一厂商专用内容。NVIDIA 不带 AMD NR/HIP,AMD 不带 DLSS/NGX/NVOF/VFG/CUDA。用户追加决定保留现有 FSR3.1/4 共用组件,两包均使用已核验 SDK 2.3.0 三 DLL;NVIDIA 的 FSR4 ML 仍可见置灰。旧 SDK 独立 FSR3.1 研究与兼容试改已撤下,不进入最终产品。FSR3.1/XeSS 等跨厂商支持按实际契约保留,不因品牌名删除。+2. 修复列表/节点/NR/SR/FG/Video HDR/光流选择的隐藏行为,使缺失库或不支持硬件的功能可见且置灰,说明真实原因。复用统一能力判断,保留 settings/preset/session;直接接口也拒绝不支持的请求,不将 UI 灰色当后端保护证明。+3. 建立可复用分包脚本/每包清单与运行身份记录,并将长期规则写入 AGENTS.md。更新 2.0.3 版本、双语 README、Release notes、组件说明、实际构建/对应源码指南;继续携带 fixed runtime identities、patched FFmpeg 及许可。AMD/VFG 的新运行内容只作 Release 资产,绝不进 Git。+4. 编译当前生产目标及相关能力/设置/Qt/Xbox/音频回归。实际 NVIDIA 包测试 NR+SR+VFG 2–8X/三质量/worker 冻结、旧码率交互、极简边缘和软件 UI 不透明。AMD 包在本机验证无 NVIDIA 文件的干净启动与能力禁用、宿主 ABI/模型内核身份;没有 RX9000,不宣称 AMD 推理通过。+5. 提交后在干净 main 工作树合并当前发布分支,检查源码差异和 no-HDR-PR 范围;用最终 main 构建或验证产品源树与实跑构建一致,生成两份最终包、项目源码及最新依赖对应源码,压缩/解压校验、可启动、版本和 manifest 全部核对。+6. push main 和 v2.0.3 到 nrvideo,创建 Release 并上传已核验资产与 SHA256。Release 保留微信赞助/交流群两图各 width=220,验证远端正文/图片可访问、所有资产大小/digest。记录准确测试和未测边界;不把自动重连宣传成网络根治,不把 8X High 宣传成实时 240fps,不借本机 RTX 测试冒称 RX9000/RTX40 或用户 616.92 已验。++## 当前状态++开工存档、新分支、能力 UI、显卡分包脚本、构建与本机定向回归已完成;FSR 原共用组件按追加决定保留。实际证据与首次失败修正见 RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md。当前进入最终 main 合并、无损归档及 GitHub 上传,最终状态以 WORKLOG 发布回执为准,不能用方案推断尚未执行的上传已通过。diff --git a/docs/RELEASE_2.0.3_RUNTIME_LOCK.json b/docs/RELEASE_2.0.3_RUNTIME_LOCK.jsonnew file mode 100644index 00000000..fd3c1eec--- /dev/null+++ b/docs/RELEASE_2.0.3_RUNTIME_LOCK.json@@ -0,0 +1,536 @@+{+ "schema": 1,+ "enforcedAtRuntime": false,+ "provenance": "2.0.3 common publisher identities unchanged from 2.0.2; vendor additions are separately audited by scripts/package-vendor-release.py. Source Git contains no runtimes.",+ "files": [+ {+ "name": "nvngx_dlss.dll",+ "path": "runtime/experimental/nvngx_dlss.dll",+ "size": 58977904,+ "sha256": "BE6E434A94CA32499515EB62CA0E6C274526055D568D0426E4C652DCDFB6EE6E",+ "fileVersion": "310.7.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-dlss-sdk-310.7.0-rel",+ "experimental": false,+ "removable": true,+ "source": "official-dlss-sdk-310.7.0-rel",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssg.dll",+ "path": "runtime/experimental/nvngx_dlssg.dll",+ "size": 7460976,+ "sha256": "FF6E90EB78B827927DFF5B4ECC6B1C870C2E9BCA29ED9F48C7D348CC9E170B82",+ "fileVersion": "310.9.1.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-dlss-sdk-310.9.1-rel",+ "experimental": true,+ "removable": true,+ "source": "official-dlss-sdk-310.9.1-rel",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssnr.dll",+ "path": "runtime/experimental/nvngx_dlssnr.dll",+ "size": 165840496,+ "sha256": "F95FEB54137EA11979F9B4EC4F00AFD84B5C98A5624D3388FBF6A87714A39FCC",+ "fileVersion": "310.8.3.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "user-approved-community-Lecram-310.8.3-RTX50-runtime",+ "experimental": true,+ "removable": true,+ "source": "community Lecram 310.8.3 (RankFTW/rhi-repo dlssnr-310.8.Lecram)",+ "authenticode": "HashMismatch"+ },+ {+ "name": "nvngx_vsr.dll",+ "path": "runtime/experimental/nvngx_vsr.dll",+ "size": 19140144,+ "sha256": "C3D88EEA5FF7A548EDEFA66414CF6E77464D0947277C904F324DD23ABF58A1ED",+ "fileVersion": "1.6.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1-G, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-rtx-video-sdk-1.1.0",+ "experimental": false,+ "removable": true,+ "source": "official-rtx-video-sdk-1.1.0",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssnr.dll",+ "path": "runtime/experimental/nr-ampere/nvngx_dlssnr.dll",+ "size": 165830144,+ "sha256": "6EB209E764F39872625DEBD6ABAF45E2BB6322F6F270F781F70C059AE30B3927",+ "fileVersion": "310.8.2.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "user-approved-community-SF-v2-310.8.2-RTX20-RTX50-compatible-runtime",+ "experimental": true,+ "removable": true,+ "source": "community SF-v2 310.8.2 (RankFTW/rhi-repo dlssnr-310.8.SF-v2)",+ "authenticode": "NotSigned"+ },+ {+ "name": "nvngx_truehdr.dll",+ "path": "runtime/experimental/nvngx_truehdr.dll",+ "size": 3955752,+ "sha256": "9A80575F247190C05FE80EAC0C4BAA1D0D4D932348F26808310B5EC4BF9EEB4B",+ "fileVersion": "1.1.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1-G, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-rtx-video-sdk-1.1.0",+ "experimental": true,+ "removable": true,+ "source": "official-rtx-video-sdk-1.1.0",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssg.dll",+ "path": "runtime/experimental/fallback-dlssg-310.7/nvngx_dlssg.dll",+ "size": 7519856,+ "sha256": "135EAF0733C1E37381A8C28ABCF7A862404A54132B81787C04E35D09EFC5E36F",+ "fileVersion": "310.7.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "fallback-official-dlss-sdk-310.7.0-rel",+ "experimental": true,+ "removable": true,+ "source": "official-dlss-sdk-310.7.0-rel (manual fallback, not loaded)",+ "authenticode": "Valid"+ },+ {+ "name": "k4000.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4000.ptx",+ "size": 71483,+ "sha256": "A58AD1C5F8AB5E82EFD2E15AAEB178113C1720C3EBD8164CA10474B50E1D342A",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4002.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4002.ptx",+ "size": 89932,+ "sha256": "78CDADD921AFB74B78B1A2B2798FAE069577AA94931DBCC15C34F1ADBB6AF1FB",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4004.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4004.ptx",+ "size": 48446,+ "sha256": "E23F640D68ECAF1FB417BAEFB18D11A90185B4E6E692467177ED4420B6BD3B35",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4006.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4006.ptx",+ "size": 98810,+ "sha256": "599EC85597282CFA04F3EA88F727D11D9A1ECA0B508E6CEC2A90750B6798FA29",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4008.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4008.ptx",+ "size": 17301,+ "sha256": "8B9F317546591EF6EF13909EDB8C551304ADE391129E9FA8D7ABD73ED63F0D51",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4010.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4010.ptx",+ "size": 25248,+ "sha256": "F721C9D6B1970E3FEDA8663364F7E17BB4DE4E6BF280A3742E43420D8764463B",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4012.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4012.ptx",+ "size": 51047,+ "sha256": "70666762066C77B0458A4A551DB4F590664B51F164F5ED372A69FA0EDDB72C52",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4014.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4014.ptx",+ "size": 25546,+ "sha256": "673FD239C9F6D5614CC1E4A3E4FCCC2A816AD691812741B91E4259E64C052406",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4016.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4016.ptx",+ "size": 23534,+ "sha256": "03B91710C6B11DD9DEF1E988474A1EE2FCAD11C6AF73E90B220EB62A098B8563",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4018.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4018.ptx",+ "size": 23550,+ "sha256": "DB1BE36D8786F255920754EA484B48F5FA1D7C1DCC3B69CFD5467850674768E2",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4020.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4020.ptx",+ "size": 19689,+ "sha256": "7710B2556F76CD501F578D0E1C4FB5039E7E18D94EFBAEB568011C74E93E2243",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4022.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4022.ptx",+ "size": 14510,+ "sha256": "3216F263AEB8C4AC2A1565FDC95D99A371DE6718015EDCB42E753CDF1307268E",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4024.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4024.ptx",+ "size": 54172,+ "sha256": "C3973E1A88E48471ABEA699433E6097287E800B65467258EA4FECBD9D4CC0293",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4026.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4026.ptx",+ "size": 29428,+ "sha256": "B02762FB2452BFDB979AE7987B60176B67249CC762CDDC4F498FAAFBF78FF676",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4028.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4028.ptx",+ "size": 29428,+ "sha256": "26C0CF15C83CC36A651AB68FE2C85E03F7C0092594ED03A765C8C66347622C31",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4030.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4030.ptx",+ "size": 25258,+ "sha256": "BB110524EDE676DD0093B5E59AB0F2F8A15E27D19DEF02660B03E2A4F23E1572",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4032.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4032.ptx",+ "size": 25161,+ "sha256": "047B040D832ABE919AA268DF27E38A149D6B91016266FB240B9E54C53355D57A",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4039.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4039.ptx",+ "size": 9753,+ "sha256": "9F14F5C67B9ABF2CA9B17B415072D540CAFCFBC682CBA8BA5C2F4D2A308A8F75",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4042.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4042.ptx",+ "size": 43249,+ "sha256": "5E2D0C7E1A9F208624FDDA3B8A529979142FD1C3CD746964F7F755F13E587286",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4044.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4044.ptx",+ "size": 76235,+ "sha256": "13B50F00F512B91BDF90AD9F273F5CB8DFE4366ADEB9EA7FDA073F528C694FD2",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4046.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4046.ptx",+ "size": 76639,+ "sha256": "81045733D05A039EB34930C5EF96182125A2BB9CAB1DDAA4ADB874C364D8CAB4",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4048.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4048.ptx",+ "size": 44469,+ "sha256": "AB908E60BF574E301129A9689E78AD458EF9E90F4B430AF5E50FC400FABF3D74",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4050.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4050.ptx",+ "size": 79988,+ "sha256": "988373CF94A46BC2E04B0C161FF336C4D59CCC016CEE4270B27626A611B49F53",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4058.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4058.ptx",+ "size": 49154,+ "sha256": "6845C21149ABE8D8E05755765C224DB2970D5F444A113FD8F390775EB1CF2900",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4059.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4059.ptx",+ "size": 16879,+ "sha256": "338A1DEB8D7FAA21553214C9F071906CE6BB85946E27A78C7D75C5CFF1E1A989",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4060.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4060.ptx",+ "size": 55507,+ "sha256": "8A7B13C21931EE40647D8D177FFCCE9629588569C40DF5345E424C32E42AFB61",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4062.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4062.ptx",+ "size": 53773,+ "sha256": "564DDD342268739E0447AE711A2B21EAA5135F4069D063C25EA516145DE1EE4D",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "OutputPull.ptx",+ "path": "runtime/experimental/dlssg-kernels/OutputPull.ptx",+ "size": 22605,+ "sha256": "C7C1951069FECC2A5D37D899FAD1F487FEEB616922E30B411A737DD17227249E",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "OutputPushFine.ptx",+ "path": "runtime/experimental/dlssg-kernels/OutputPushFine.ptx",+ "size": 20733,+ "sha256": "F8D9777F2ADA7D3959DCE515510CA7CBD2194A13AC721EBEDF52ED0F019523BF",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "amd_fidelityfx_loader_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_loader_dx12.dll",+ "size": 26376,+ "sha256": "E2D85AA05A9BD9ED8B38935FDF5199372CCA6F74C12015143BB6F945EE1608AA",+ "fileVersion": "2.3.0.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-loader",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-loader",+ "authenticode": "Valid"+ },+ {+ "name": "amd_fidelityfx_framegeneration_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_framegeneration_dx12.dll",+ "size": 40085776,+ "sha256": "02297BEEDD285E822D3A64F314CF00FAF378DCEC0EDC47FF0C4DD71B3A8C2F18",+ "fileVersion": "4.0.1.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-framegeneration",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-framegeneration",+ "authenticode": "Valid"+ },+ {+ "name": "amd_fidelityfx_upscaler_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_upscaler_dx12.dll",+ "size": 28761864,+ "sha256": "D0DCCCC74A43C44BA435B7A369B456E0970D8A4464E4BD683119B374F2C9FB46",+ "fileVersion": "4.1.1.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-upscaler",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-upscaler",+ "authenticode": "Valid"+ },+ {+ "name": "libxell.dll",+ "path": "runtime_local/intel/experimental/libxell.dll",+ "size": 415368,+ "sha256": "D2030DCD694FDA8F2EC7E044B13E6DB8F0B56D4BA9113A5EFAD334E3F3DED8C7",+ "fileVersion": "1.3.2.10",+ "signer": "CN=Intel Corporation, O=Intel Corporation, S=California, C=US",+ "classification": "official-intel-xess-sdk-3.0.2",+ "experimental": true,+ "removable": true,+ "source": "official-intel-xess-sdk-3.0.2",+ "authenticode": "Valid"+ },+ {+ "name": "libxess_fg.dll",+ "path": "runtime_local/intel/experimental/libxess_fg.dll",+ "size": 22957432,+ "sha256": "EC5E0C65E075570C6EDE72618BB666D0BE0C2E10B2EA9762C0FE8CB8E375AB27",+ "fileVersion": "1.3.1.78",+ "signer": "CN=Intel Corporation, O=Intel Corporation, S=California, C=US",+ "classification": "official-intel-xess-sdk-3.0.2",+ "experimental": true,+ "removable": true,+ "source": "official-intel-xess-sdk-3.0.2",+ "authenticode": "Valid"+ },+ {+ "name": "LibMWCapture.dll",+ "path": "runtime/magewell/LibMWCapture.dll",+ "size": 241664,+ "sha256": "360259C46A0F62713EF9FCAD2B403596EF007AC04D9B37A1E9C949C8459B92F9",+ "fileVersion": "3.3.1.1596",+ "classification": "official-Magewell-Capture-SDK-3.3.1.1596",+ "source": "Magewell Capture SDK Windows 3.3.1.1596",+ "experimental": true,+ "removable": true,+ "authenticode": "NotSigned"+ },+ {+ "name": "nvngx_dlssnr.dll",+ "path": "runtime/experimental/nr-original/nvngx_dlssnr.dll",+ "size": 165840496,+ "sha256": "E16BCF15E16E13F527491CDF7845B2FE6521A738D8F7C9C721866A8496E1FC8E",+ "fileVersion": "310.8.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "user-approved-NVIDIA-original-RTX50-experimental-runtime",+ "experimental": true,+ "removable": true,+ "source": "Preserved local NVIDIA-signed original; restored by user request 2026-10-03",+ "authenticode": "Valid"+ }+ ]+}diff --git a/docs/RELEASE_NOTES_2.0.3.md b/docs/RELEASE_NOTES_2.0.3.mdnew file mode 100644index 00000000..18183edb--- /dev/null+++ b/docs/RELEASE_NOTES_2.0.3.md@@ -0,0 +1,42 @@+# Veyra 2.0.3++## 中文++运行包按显卡分为 **NVIDIA** 和 **AMD**。选 Veyra 实际使用的显卡对应包,完整解压后运行 `veyra_qml_ui.exe`。两包使用同一程序,播放器、采集、串流、图片/视频导出完整保留。运行只需下载一个显卡包;源码包仅供重编译。++- **NVIDIA 包**:保留三版 NVIDIA NR、DLSS/RTX 超分、RTX Video HDR、DLSS 补帧、NVIDIA VFG、FSR3.1 和 XeSS;不携带 AMD NR。按用户追加决定保留原有 FSR3.1/4 共用组件,NVIDIA 的 FSR4 选项仍置灰。+- **AMD 包**:保留 lmxxf AMD NR、FSR4/FSR3.1 兼容和 XeSS;不携带 NVIDIA NR、NGX、VFG 或 CUDA 运行库。AMD NR 需要 RX9000 与驱动 HIP 7,已携带完整 0.39 模型/内核。+- **不可用功能保留并置灰**:NR 四版本、超分算法、补帧后端、RTX HDR、光流选择与节点添加使用统一能力判断并显示原因。恢复旧预设/会话会关闭不可用效果,保留参数;直接设置和导出预设也检查能力。+- **NVIDIA VFG**:2X/3X/4X/5X/6X/7X/8X 全倍率及低/中/高三档,接入预览、预设、重启保存与独立视频导出 worker。裁掉九个未使用的 NPP 库,减少约 274 MiB 解压体积。High 8X 运算成本高,不能保证实时 240fps;离线导出保持完整处理。+- **Xbox**:补齐音频配置后的 WASAPI 启动,增加有界重连恢复与诊断。用户日志里的服务器关闭/会话断开仍可能发生;本轮没有 Xbox 真机长测,不宣称网络根因已消除。+- **视频导出码率**:编辑有效码率立即提交,修改其他选项保留草稿,开始导出前完整验证并冻结 worker 设置,修复自动跳回默认及直接导出被误拒绝。+- **小飞机兼容**:修复软件绘制界面的透明背景;保留兼容绘制与不透明背景。不再把 NVIDIA App 图画插件注入直接判断为崩溃原因并拦截;真正 GPU/运行错误继续记录。+- **极简模式**:修复非整数缩放时原生视频窗口右侧少像素造成的黑边,按实际客户区覆盖和边缘裁剪处理。++NR/补帧仍是带明确边界的实验能力。AMD NR 内部最高 1080p 像素预算,HDR、原生 1440p/4K NR 导出尚不支持。实际 NVIDIA 测试机为 RTX5070 / 驱动616.56;AMD RX9000 推理、RTX40、用户616.92、Xbox真机有声/长期稳定和屏幕端到端延迟未获实机验收。软件提交帧率不等于物理显示帧率。HDR/Dolby Vision PR #13/#14 本轮暂缓。++## English++Choose the **NVIDIA** or **AMD** portable package for Veyra's active GPU, extract with 7-Zip and run `veyra_qml_ui.exe`. Both use the same full player; download one GPU package to run, source assets only to rebuild.++- NVIDIA keeps its three NR runtimes, DLSS/RTX SR, RTX Video HDR, DLSS FG, native VFG, FSR3.1 and XeSS; AMD NR assets are excluded. The existing shared FidelityFX 2.3.0 runtime is retained by explicit user choice; FSR4 ML remains disabled on NVIDIA.+- AMD keeps lmxxf NR 0.39, FSR4/3.1 compatibility and XeSS; NVIDIA NR/NGX/VFG/CUDA files are excluded. AMD NR requires RX9000 and driver HIP 7. Its complete weights/kernels are retained.+- Unsupported choices stay visible and disabled with an actual hardware/component reason in List/Node mode. Restored configurations retain their parameters but disable unavailable stages. Direct settings and export presets also enforce availability.+- VFG supports every 2–8X multiplier and Low/Medium/High, including preview, persistence, presets and isolated NVENC export workers. Nine unrelated NPP libraries are omitted (about 274 MiB unpacked). High 8X is expensive and does not promise real-time 240fps; offline export keeps all source frames.+- Fix Xbox audio startup and bounded session recovery; bitrate edits/reset/validation and frozen export settings; transparent RTSS-compatible UI backgrounds; and the minimal window's right-edge gap at fractional DPI. NVIDIA App injections no longer trigger the removed false crash check; actual GPU failures are still logged.++RTX5070/616.56 was tested. RX9000 inference, RTX40, the reported 616.92 driver, physical Xbox audio/long sessions and physical display latency remain unverified. AMD NR is limited to its 1080p pixel budget and does not support HDR or native 1440p/4K NR export. Submitted FPS is not measured physical display FPS. HDR/Dolby Vision PRs #13/#14 are deferred.++Both packages carry separate identities, licenses and matching [application source](https://github.com/Likely7/Veyra-NRVideo/archive/refs/tags/v2.0.3.zip), [dependency source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.3/Veyra-2.0.3-dependency-source.zip) and [rebuild instructions](https://github.com/Likely7/Veyra-NRVideo/blob/v2.0.3/docs/BUILD_2.0.3.md). Source Git excludes proprietary SDKs/models/runtimes. Experimental runtime distribution is user-authorized, not vendor endorsement/certification. Publisher manifests do not hash-lock user DLL replacements.++## 支持与反馈 / Support & feedback++<p align="center">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220">+ + <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220">+</p>++左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。++Left: optional donation; right: community group. QR valid before 2026-10-09.diff --git a/docs/RUNTIME_COMPONENTS_2.0.3.md b/docs/RUNTIME_COMPONENTS_2.0.3.mdnew file mode 100644index 00000000..2de42255--- /dev/null+++ b/docs/RUNTIME_COMPONENTS_2.0.3.md@@ -0,0 +1,27 @@+# Veyra 2.0.3 GPU packages++Choose the package for the GPU Veyra uses (the high-performance DirectX 12 adapter on a hybrid PC). Both contain the same player executable/QML/shaders, Qt, patched FFmpeg, capture/Magewell, PS5, Xbox, Moonlight, image/video export and common notices. Extract into a new writable folder with 7-Zip and run `veyra_qml_ui.exe`. GPU/capture drivers are installed separately.++| Component | NVIDIA package | AMD package |+| --- | --- | --- |+| Lecram / SF-v2 / NVIDIA original NR | Included; gray when the GPU does not qualify | Gray; no NR NVIDIA DLLs |+| AMD lmxxf NR 0.39 assets + host runtime | Gray; no weights/HIP/runtime | Included; RX9000 + driver HIP 7 required |+| DLSS SR / RTX Video SR / RTX Video HDR / DLSS FG | Included; hardware and initialization limits apply | Gray; no NGX runtime |+| NVIDIA VFG 2–8X, Low/Medium/High | Five original native DLLs; RTX40/50 required | Gray; no VFG/CUDA runtime |+| FSR 3.1 SR/FG | Existing SDK 2.3.0 compatibility provider | Included in SDK 2.3.0's compatibility path |+| FSR4 ML SR/FG | Gray; shared FidelityFX components retained by explicit user choice | Included; RX9000 required; fallback SR follows existing provider compatibility |+| XeSS FG + XeLL / AMD compute optical flow | Common cross-vendor paths retained | Common cross-vendor paths retained |++The NR version list has four entries in List and Node mode, including RX9000 · lmxxf. Unsupported entries remain visible with a disabled reason. AMD NR's NVIDIA-only parameters and unsupported internal resolutions remain visible but gray. NR 0.39 retains the exact complete weight/kernel set; height ≤1080, pixels ≤1920×1080 and width ≤2560 are its API budget. Preview may downsample to that budget; image/video NR export requires a native size inside the budget. HDR AMD NR and native 1440p/4K AMD NR export are unavailable. No model is quantized or rewritten for packaging.++NVIDIA VFG uses official `nvidia-vfx` 0.2.0.0 / Video Effects SDK 1.3.0. The original wheel SHA256 is `5aaf6a42bc6b6dbbf52fcb714194c994a6893cbbf7ada38bc2165a1f83e4a6fc`. Its VFG-only dependency set is `NVVideoEffects.dll`, `NVCVImage.dll`, `nvVFXVideoFrameGeneration.dll`, `nvngxruntime.dll` and `cudart64_12.dll`: 210788400 bytes, without the nine unrelated NPP DLLs (287106032 bytes). No Python, OpenCV, SDK samples or system `nvcuda.dll` is needed in the portable runtime. Native calls still use the installed NVIDIA driver. VFG High 8X can be expensive; preview may fall behind or shed enhancement opportunities, while offline export processes every source frame. Submitted FPS is not measured physical display FPS or end-to-end latency.++Both packages retain the existing signed SDK 2.3.0 loader, FSR4.1.1 SR provider and FSR4.0.1 FG provider, including FSR3.1 compatibility. The user explicitly requested keeping FSR3.1/4 together instead of splitting the runtime. NVIDIA exposes FSR3.1 and keeps FSR4 ML disabled; AMD exposes the ML paths only for qualifying RX9000 hardware. Each DLL keeps its existing approved identity. No old SDK replacement, DLL patch or new ABI compatibility branch is shipped.++AMD NR source is lmxxf commit `78f548749e74824327b8458c57be31a1df78376a`; its MIT host DLL is built from the actual published source with the documented MSVC shim (1082368 bytes, SHA256 `2693cdb760db564ec6f34b39b8a7e554d35cbab5df2366bff030e1611756e3d8`, NotSigned). User-supplied `Magpie-DLSS5-AMD-0.39.zip` is 340434944 bytes, SHA256 `9ea84c665d270cd45e24184729b8272c152485df462a1528539ed778d41849f5`. All 739 supplied checksum entries matched; 186 weights, two maps and 62 gfx1200/gfx1201 HIP modules remain intact. Model weights are not MIT. No Magpie executable, ReShade/RenoDX add-on or AMD driver DLL is distributed. No RX9000 inference has been verified on this RTX5070 machine.++Each package has its own `package-manifest.json`, top-level `release-runtime-manifest.json`, matching component-page manifest and appropriate VFG/AMD NR manifest, licenses and corresponding-source links. The source publisher lock retains existing runtime identities and separately audits vendor additions. All proprietary SDK/runtime/model assets are excluded from source Git. Runtime loading still uses absolute paths, API/initialization checks and error logging; hashes are publisher audit data and do not lock user replacements. Experimental distribution is user-authorized for 2.0.3, not vendor partnership/certification or a general redistribution grant.++## 中文++分包只减少运行资源,基础功能完整,两包程序相同。NVIDIA 包不带 AMD NR;两包保留原有 FSR3.1/4 共用组件,NVIDIA 的 FSR4 ML 仍禁用;AMD 包不带 NVIDIA NR/DLSS/VFG/CUDA。FSR3.1、XeSS 等实际跨显卡能力保留。换包/恢复旧配置时关闭不可用效果并保留参数,界面入口显示灰色原因。AMD NR 的真实推理、画质与长期稳定,Xbox 真机有声/长期稳定,RTX40 和用户驱动 616.92 仍待实机验收。HDR/Dolby Vision PR #13/#14 本轮未适配或合并。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex af758eaf..cd5123b5 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,5 +1,16 @@# Veyra 工作记录+## 2026-10-04 2.0.3 分包、灰色入口与正式发布施工++- 用户明确授权 NVIDIA/AMD 分包、AGENTS 长期规则、合并当前修复到 main 和 GitHub2.0.3;追加要求 FSR3.1/4 保留原共用组件。HDR/Dolby PR13/14仍暂缓,旧关机已执行,本轮不再关机,不派 Agent。+- 先存档 checkpoint/pre-release-2.0.3-20261004、bundle verify(06A8A2EC…B0E93)、桌面 working patch/status;从cb9b89e开codex/release-2.0.3-20261004,沿用E盘field-upgrade worktree,保留远端712daf3 README变更,桌面用户修改不动。方案 RELEASE_2.0.3_PLAN_2026-10-04.md。+- 建立实际高性能D3D12适配器+文件存在能力表,NR/SR/FG/HDR/flow列表节点与菜单一致置灰并给原因;设置和导出同样拒绝不支持请求;旧配置禁用效果但保留参数。新增FSR算法选择,AMD包无需NVIDIA库可运行FSR;发现Node补帧子菜单未复制disabled/note,已修复并实跑确认。+- 新package-vendor-release.py按完整manifest分包和厂商边界审计,两包同EXE/QML/shaders;NV不含AMD NR,AMD不含NV专用库;FSR恢复原2.3 loader/upscaler/FG三文件,两包保留,NV的FSR4仍灰。原SDK/backend试改已撤下。逐运行文件来源/SHA/签名和许可在各包;不带驱动/SDK/日志/测试程序。+- build-v8最终产品成功,EXE SHA998d4261…98154;unit-v1成功项+unit-v2修正harness后56硬件矩阵、331设置、QtQuick39、Xbox90、WASAPI float启动、AMD ABI GPU-copy62、多语言/preset通过。shared-native-v1原FSR39中间帧/18热切换774帧/debug0、VFG463/0;vfg-ui-v1包内2–8×三档/预设/worker High8冻结64帧240fps通过。+- policy-nv-v3/policy-amd-v2真实灰色菜单、旧VFG会话恢复、实际FSR SR播放通过;AMD物理推理未测。production-rtss-v1真实RTSSHooks64注入,18VBR改选项/24CBR直接开始两份4K HEVC均24/24帧,背景alpha255,旧NVIDIA marker无误判;只关闭本轮自启RTSS。edge-v1六种DPI/软件实测rightGap=0。+- AMD528身份/186weights/62kernels/ABI1布局审计通过;对应源码剔除上游测试截图/CSV/编译模型后6131记录约550MB,内嵌原依赖包byte-identical。archive source manifest允许直接从提供源码重建,amd-source-rebuild成功,发行DLL仍为原身份,未替换。stage-nv-v2/stage-amd-v1完整SHA与PE imports/delay闭包通过;支持二维码HEAD两图200。+- 全部产物 E:/项目/Veyra/{build,tests,logs,tmp,releases,verify,archives}/release-2.0.3-20261004。具体命令、首次失败及修正、未测边界在 RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md;本段写于最终合并/上传前,后续按实际回执另记完成,不能提前称发布。+## 2026-10-04 瘦身完整候选最终验收与关机准备- 当前产品commit2df6dd7 / checkpoint/runtime-size-code-20261004不变;随后只更新报告、修build脚本EOF空行、增加无损比较/独立CRC/最终索引验收recipe,不改产品源码、不重写模型。`git diff --check`与最终scope guard通过。diff --git a/i18n/catalog.json b/i18n/catalog.jsonindex 17d3f710..cfe857db 100644--- a/i18n/catalog.json+++ b/i18n/catalog.json@@ -462,6 +462,13 @@"en": "AMD FSR frame generation is limited to 2X; request not applied","ja": "AMD FSR のフレーム生成は最大 2X です。要求は適用されていません"},+ {+ "zh": "AMD NR 最高 1080p 像素预算",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "AMD NR 最高 1080p 像素預算",+ "en": "AMD NR has a maximum 1080p pixel budget",+ "ja": "AMD NR の上限は 1080p の画素数です"+ },{"zh": "AMD NR(实验):需要 RX 9000 驱动及 lmxxf 运行组件,内部最高 1080p 像素预算。支持模型强度、残差与保护;风格使用运行时配置。HDR 尚未验收。","src": "qml/NrLayerEditor.qml",@@ -602,6 +609,13 @@"en": "F11 / Alt+Enter work too","ja": "F11 / Alt+Enter でも可"},+ {+ "zh": "FSR 3.1 / 4 · 自动兼容",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "FSR 3.1 / 4 · 自動相容",+ "en": "FSR 3.1 / 4 · Automatic compatibility",+ "ja": "FSR 3.1 / 4 · 自動互換"+ },{"zh": "FSR 3.1 帧生成未能启用,已恢复上一套参数","src": "src/engine/EngineController.cpp",@@ -5314,6 +5328,13 @@"en": "Off · settings kept but not applied","ja": "オフ · 設定は保持されますが適用されません"},+ {+ "zh": "已关闭当前硬件或包不支持的效果,参数仍保留:",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "已關閉目前硬體或套件不支援的效果,參數仍保留:",+ "en": "Unavailable effects have been disabled; their parameters are preserved: ",+ "ja": "非対応の効果を無効にしました。設定値は保持されています:"+ },{"zh": "已关闭正在播放的内容,显卡全部留给导出","src": "src/ui/QmlPlayerBridge.cpp",@@ -6000,6 +6021,13 @@"en": "Current offset","ja": "現在のずれ"},+ {+ "zh": "当前包缺少此功能的运行组件",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "目前套件缺少此功能的執行元件",+ "en": "This package lacks the runtime components for this feature",+ "ja": "このパッケージに必要なランタイムがありません"+ },{"zh": "当前导出设备不能执行所请求的 DLSS 补帧,未降低倍率","src": "src/engine/VideoExportJob.cpp",@@ -6056,6 +6084,13 @@"en": "This source has no subtitles","ja": "このソースには字幕がありません"},+ {+ "zh": "当前硬件或包不支持所选效果,请查看组件页",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "目前硬體或套件不支援所選效果,請查看元件頁",+ "en": "The hardware or package does not support this effect; check Components",+ "ja": "選択した効果は現在の GPU またはパッケージに対応していません。コンポーネントを確認してください"+ },{"zh": "当前非 NVIDIA 适配器:NR、NVIDIA 超分与 DLSS 已禁用;可使用 XeSS 预览和 AMD 光流","src": "src/engine/EngineController.cpp",@@ -10978,6 +11013,13 @@"en": "SR 4K · NR 1 layer · FG 2X","ja": "超解像 4K · NR 1 層 · フレーム生成 2X"},+ {+ "zh": "超分算法",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "超解析演算法",+ "en": "Upscaling algorithm",+ "ja": "アップスケーリング方式"+ },{"zh": "超分辨率","src": "qml/ProPage.qml",@@ -12287,6 +12329,48 @@"en": "needs system decoding · higher latency","ja": "システムデコードが必要 · 遅延がやや大きい"},+ {+ "zh": "需要 AMD HIP 7 驱动运行组件",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 AMD HIP 7 驅動執行元件",+ "en": "Requires the AMD HIP 7 driver runtime",+ "ja": "AMD HIP 7 ドライバーランタイムが必要です"+ },+ {+ "zh": "需要 AMD RX 9000",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 AMD RX 9000",+ "en": "Requires AMD RX 9000",+ "ja": "AMD RX 9000 が必要です"+ },+ {+ "zh": "需要 NVIDIA RTX 40 / 50(Ada / Blackwell)",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 NVIDIA RTX 40 / 50(Ada / Blackwell)",+ "en": "Requires NVIDIA RTX 40 / 50 (Ada / Blackwell)",+ "ja": "NVIDIA RTX 40 / 50(Ada / Blackwell)が必要です"+ },+ {+ "zh": "需要 NVIDIA RTX 50 / Blackwell",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 NVIDIA RTX 50 / Blackwell",+ "en": "Requires NVIDIA RTX 50 / Blackwell",+ "ja": "NVIDIA RTX 50 / Blackwell が必要です"+ },+ {+ "zh": "需要 NVIDIA RTX 显卡",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 NVIDIA RTX 顯示卡",+ "en": "Requires an NVIDIA RTX GPU",+ "ja": "NVIDIA RTX GPU が必要です"+ },+ {+ "zh": "需要 NVIDIA RTX 显卡及 NVOF 驱动",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要 NVIDIA RTX 顯示卡及 NVOF 驅動",+ "en": "Requires an NVIDIA RTX GPU and the NVOF driver",+ "ja": "NVIDIA RTX GPU と NVOF ドライバーが必要です"+ },{"zh": "需要主机显示器开启 HDR,且编码选 HEVC 或 AV1;本机需要硬件解码","src": "qml/DialogHost.qml",@@ -12308,6 +12392,13 @@"en": "Needs optical flow; when off there is no temporal accumulation","ja": "オプティカルフローが必要です。オフにすると時間方向の累積を行いません"},+ {+ "zh": "需要支持 DirectX 12 的硬件显卡",+ "src": "src/ui/QmlPlayerBridge.cpp; qml/Veyra",+ "zh-TW": "需要支援 DirectX 12 的硬體顯示卡",+ "en": "Requires a hardware GPU with DirectX 12 support",+ "ja": "DirectX 12 対応のハードウェア GPU が必要です"+ },{"zh": "需要系统显示事件才能测得真实值;取不到时显示未测","src": "qml/ProPage.qml",diff --git a/include/veyra/ui/EffectAvailability.h b/include/veyra/ui/EffectAvailability.hnew file mode 100644index 00000000..a0c2d982--- /dev/null+++ b/include/veyra/ui/EffectAvailability.h@@ -0,0 +1,24 @@+// SPDX-License-Identifier: GPL-3.0-only+#pragma once+#include <cstdint>++namespace veyra::ui {+// Hardware gates are independent of packaging and runtime initialization. A+// qualifying adapter still needs the component files and a successful backend.+enum class HardwareEffect { Nvidia, NvidiaNr50, NvidiaNrSf, Vfg, AmdNr, Fsr4, CrossVendor };+struct EffectGpu {+ uint32_t vendor = 0;+ bool rtx = false, blackwell = false, ada = false, rx9000 = false;+};+constexpr bool hardwareSupports(HardwareEffect effect, EffectGpu gpu) {+ switch (effect) {+ case HardwareEffect::Nvidia: return gpu.vendor == 0x10DE && gpu.rtx;+ case HardwareEffect::NvidiaNr50: return gpu.vendor == 0x10DE && gpu.blackwell;+ case HardwareEffect::NvidiaNrSf: return gpu.vendor == 0x10DE && gpu.rtx;+ case HardwareEffect::Vfg: return gpu.vendor == 0x10DE && (gpu.ada || gpu.blackwell);+ case HardwareEffect::AmdNr: case HardwareEffect::Fsr4: return gpu.vendor == 0x1002 && gpu.rx9000;+ case HardwareEffect::CrossVendor: return gpu.vendor == 0x10DE || gpu.vendor == 0x1002 || gpu.vendor == 0x8086;+ }+ return false;+}+}diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.hindex e5020d58..c867f884 100644--- a/include/veyra/ui/QmlPlayerBridge.h+++ b/include/veyra/ui/QmlPlayerBridge.h@@ -111,6 +111,9 @@ class QmlPlayerBridge : public QObject {Q_PROPERTY(QString captureDeviceLabel READ captureDeviceLabel 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 fgChoicesChanged)+ Q_PROPERTY(QVariantList nrRuntimeChoices READ nrRuntimeChoices NOTIFY fgChoicesChanged)+ Q_PROPERTY(QVariantList srBackendChoices READ srBackendChoices NOTIFY fgChoicesChanged)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),@@ -450,6 +453,10 @@ class QmlPlayerBridge : public QObject {public: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 = {},diff --git a/qml/Veyra/EffectSupport.js b/qml/Veyra/EffectSupport.jsnew file mode 100644index 00000000..00c7c400--- /dev/null+++ b/qml/Veyra/EffectSupport.js@@ -0,0 +1,15 @@+.pragma library++function status(api, id) {+ // Reading the notifying property also invalidates bindings after settings,+ // adapter/runtime status or a rejected backend request changes.+ var caps = api.effectCapabilities+ return typeof api.effectAvailability === "function"+ ? api.effectAvailability(id) : {available: true, reason: ""}+}+function available(api, id) { return status(api, id).available }+function reason(api, id) { return status(api, id).reason }+function option(api, id, label, key) {+ var cap = (api.effectCapabilities || {})[key] || {available: true, reason: ""}+ return {id: id, label: label, disabled: !cap.available, note: cap.reason}+}diff --git a/qml/Veyra/NodePage.qml b/qml/Veyra/NodePage.qmlindex 3c28446e..05fb9b72 100644--- a/qml/Veyra/NodePage.qml+++ b/qml/Veyra/NodePage.qml@@ -11,6 +11,7 @@import QtQuickimport QtQuick.Controlsimport QtQuick.Layouts+import "EffectSupport.js" as Supportimport QtQuick.ShapesVPage {@@ -604,7 +605,7 @@ VPage {objectName: "node-flow-choice"Layout.fillWidth: truetitle: qsTr("光流算法")- options: [{id:"0",label:"NVIDIA NVOF"},{id:"1",label:"AMD FidelityFX"}]+ options: [Support.option(veyra,"0","NVIDIA NVOF","flow0"),Support.option(veyra,"1","AMD FidelityFX","flow1")]value: options[veyra.opticalFlowChoice]?.label ?? (veyra.opticalFlowChoice === 2 ? qsTr("GPU DIS 已移除,请重选") : qsTr("未知配置"))onPicked: id => veyra.setOpticalFlowChoice(Number(id))}@@ -1309,6 +1310,8 @@ VPage {VSwitch {objectName: "node-enable-" + card.node.idchecked: card.node.enabled === true+ enabled: card.node.enabled === true || Support.available(veyra, card.node.type)+ opacity: enabled ? 1 : 0.4onToggled: checked => veyra.setEffectEnabled(card.node.index, checked)}VButton {@@ -1354,6 +1357,15 @@ VPage {ColumnLayout {objectName: "node-sr-editor-" + card.node.idspacing: 6+ VRow {+ label: qsTr("超分算法")+ VSelect {+ objectName: "node-sr-backend"+ options: veyra.srBackendChoices || []+ value: options.find(o => o.id === String(veyra.videoSrQuality === 0 || veyra.videoSrQuality === 5 ? veyra.videoSrQuality : 4))?.label || ""+ onPicked: id => veyra.videoSrQuality = Number(id)+ }+ }VRow {label: qsTr("目标尺寸")hint: qsTr("决定输出分辨率")@@ -1371,6 +1383,8 @@ VPage {VRow {label: qsTr("质量")hint: qsTr("RTX 视频超分档位")+ enabled: veyra.videoSrQuality >= 1 && veyra.videoSrQuality <= 4 && Support.available(veyra, "sr")+ opacity: enabled ? 1 : 0.4VSeg {options: [{ id: "1", label: "1" }, { id: "2", label: "2" }, { id: "3", label: "3" }, { id: "4", label: "4" }]current: String(veyra.videoSrQuality)@@ -1384,6 +1398,8 @@ VPage {ColumnLayout {objectName: "node-hdr-editor-" + card.node.idspacing: 4+ enabled: Support.available(veyra, "video-hdr")+ opacity: enabled ? 1 : 0.4Text {Layout.fillWidth: truetext: veyra.videoHdrStatus.length > 0 ? veyra.videoHdrStatus : qsTr("SDR → HDR,在补帧之前")@@ -1563,7 +1579,7 @@ VPage {id: addMenuobjectName: "node-add-menu"title: qsTr("添加节点")- items: veyra.effectCatalog.map(e => ({ label: e.label, id: e.id, tag: e.experimental ? qsTr("实验") : "", tagKind: e.experimental ? "warn" : "" }))+ items: veyra.effectCatalog.map(e => ({ label: e.label, id: e.id, disabled: e.disabled === true, note: e.note || "", tag: e.experimental ? qsTr("实验") : "", tagKind: e.experimental ? "warn" : "" }))onPicked: (i, o) => {// The new card's id is only known after it exists; the next id the// chain will hand out is one past the largest.diff --git a/qml/Veyra/NrLayerEditor.qml b/qml/Veyra/NrLayerEditor.qmlindex 0e5b8fec..7aa3e096 100644--- a/qml/Veyra/NrLayerEditor.qml+++ b/qml/Veyra/NrLayerEditor.qml@@ -3,6 +3,7 @@// bridge calls (user decision 2026-09-28: node parameters equal to the list).import QtQuickimport QtQuick.Layouts+import "EffectSupport.js" as SupportColumnLayout {id: editor@@ -16,12 +17,10 @@ ColumnLayout {signal duplicateRequested(int nodeIndex)signal removeRequested(int nodeIndex)signal orderEdited(bool enabled)- readonly property bool amdNr: (typeof veyra !== "undefined" && veyra.amdNrGpu) || layerData.runtime === 4- readonly property var sizeChoices: amdNr ? [- {id:"2",label:"480p"}, {id:"3",label:"720p"}, {id:"4",label:"900p"}, {id:"0",label:qsTr("1080p · 默认")}- ] : [+ readonly property bool amdNr: layerData.runtime === 4+ readonly property var sizeChoices: [{id:"2",label:"480p"}, {id:"3",label:"720p"}, {id:"4",label:"900p"},- {id:"0",label:qsTr("1080p · 默认")}, {id:"5",label:"1440p"}, {id:"1",label:qsTr("原生")}+ {id:"0",label:qsTr("1080p · 默认")}, {id:"5",label:"1440p",disabled:amdNr,note:amdNr ? qsTr("AMD NR 最高 1080p 像素预算") : ""}, {id:"1",label:qsTr("原生"),disabled:amdNr,note:amdNr ? qsTr("AMD NR 最高 1080p 像素预算") : ""}]readonly property string sizeLabel: sizeChoices.find(o => Number(o.id) === layerData.sizePolicy)?.label ?? qsTr("未知")spacing: 6@@ -68,16 +67,17 @@ ColumnLayout {hint: qsTr("全链共享 · 切换会重建 NR 管线")VSelect {objectName: "nr-runtime"- value: (typeof veyra !== "undefined" && veyra.amdNrGpu) || editor.layerData.runtime === 4 ? qsTr("RX 9000 · lmxxf(实验)")+ value: editor.layerData.runtime === 4 ? qsTr("RX 9000 · lmxxf(实验)"): editor.layerData.runtime === 3 ? qsTr("RTX 50 · NVIDIA 原版"): editor.layerData.runtime === 2 ? "RTX 20–50 · SF-v2" : "RTX 50 · Lecram"- options: typeof veyra !== "undefined" && veyra.amdNrGpu ? [{id:"4",label:qsTr("RX 9000 · lmxxf(实验)")}] : [{id:"0",label:"RTX 50 · Lecram"},{id:"2",label:"RTX 20–50 · SF-v2"},- {id:"3",label:qsTr("RTX 50 · NVIDIA 原版")}]+ options: veyra.nrRuntimeChoices || [{id:"0",label:"RTX 50 · Lecram"},{id:"2",label:"RTX 20–50 · SF-v2"},{id:"3",label:qsTr("RTX 50 · NVIDIA 原版")},{id:"4",label:qsTr("RX 9000 · lmxxf(实验)")}]onPicked: id => editor.edited(editor.layerData.index, "runtime", Number(id))}}VRow {label: qsTr("NR 运动来源")+ enabled: Support.available(veyra, "nr" + editor.layerData.runtime)+ opacity: enabled ? 1 : 0.4hint: qsTr("全链共享;抗闪烁开启时仍需估算光流")VSeg {objectName: "nr-motion-source"@@ -88,6 +88,8 @@ ColumnLayout {}VRow {label: qsTr("内部处理分辨率")+ enabled: Support.available(veyra, "nr" + editor.layerData.runtime)+ opacity: enabled ? 1 : 0.4hint: qsTr("内部降采样 · 不改变输出尺寸")VSelect {objectName: "nr-resolution"@@ -104,18 +106,21 @@ ColumnLayout {}NrValueRow {spec: ({key:"intensity",label:qsTr("模型强度"),min:0,max:1})+ enabled: Support.available(veyra, "nr" + editor.layerData.runtime)+ opacity: enabled ? 1 : 0.4amount: editor.layerData.intensityonEdited: amount => editor.edited(editor.layerData.index, "intensity", amount)}Text {Layout.fillWidth: true- visible: (typeof veyra !== "undefined" && veyra.amdNrGpu) || editor.layerData.runtime === 4- text: qsTr("AMD NR(实验):需要 RX 9000 驱动及 lmxxf 运行组件,内部最高 1080p 像素预算。支持模型强度、残差与保护;风格使用运行时配置。HDR 尚未验收。")+ visible: editor.amdNr || !Support.available(veyra, "nr" + editor.layerData.runtime)+ text: !Support.available(veyra, "nr" + editor.layerData.runtime) ? Support.reason(veyra, "nr" + editor.layerData.runtime) : qsTr("AMD NR(实验):需要 RX 9000 驱动及 lmxxf 运行组件,内部最高 1080p 像素预算。支持模型强度、残差与保护;风格使用运行时配置。HDR 尚未验收。")color: Theme.t3; font.pixelSize: 11; wrapMode: Text.WordWrap}VSubGroup {objectName: "nr-model-group"- visible: !(typeof veyra !== "undefined" && veyra.amdNrGpu) && editor.layerData.runtime !== 4+ enabled: !editor.amdNr && Support.available(veyra, "nr" + editor.layerData.runtime)+ opacity: enabled ? 1 : 0.4Layout.fillWidth: truelabel: qsTr("模型参数"); count: 6Repeater {diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qmlindex c34d3ec6..a18e4809 100644--- a/qml/Veyra/ProPage.qml+++ b/qml/Veyra/ProPage.qml@@ -12,6 +12,7 @@ import QtQuickimport QtQuick.Controlsimport QtQuick.Controls.Basic as Basicimport QtQuick.Layouts+import "EffectSupport.js" as Supportimport QtQuick.Shapesimport QtQuick.Effects@@ -1132,13 +1133,23 @@ VPage {glyph: "sparkles"hue: "#4F7BFF"title: qsTr("超分辨率")- summary: (veyra.srEnabled ? qsTr("RTX 视频超分") : qsTr("已关闭"))+ switchAvailable: Support.available(veyra, "sr")+ summary: !switchAvailable ? Support.reason(veyra, "sr") : (veyra.srEnabled ? (veyra.srBackendChoices?.find(o => o.id === String(veyra.videoSrQuality === 0 || veyra.videoSrQuality === 5 ? veyra.videoSrQuality : 4))?.label || qsTr("RTX 视频超分")) : qsTr("已关闭"))+ " · " + veyra.srTargetLabel+ (veyra.videoSrQuality > 0 ? qsTr(" · 质量 ") + veyra.videoSrQuality : "")on: veyra.srEnabledopen: trueonToggled: on => veyra.srEnabled = on+ VRow {+ label: qsTr("超分算法")+ VSelect {+ objectName: "list-sr-backend"+ options: veyra.srBackendChoices || []+ value: options.find(o => o.id === String(veyra.videoSrQuality === 0 || veyra.videoSrQuality === 5 ? veyra.videoSrQuality : 4))?.label || ""+ onPicked: id => veyra.videoSrQuality = Number(id)+ }+ }VRow {label: qsTr("目标尺寸")hint: qsTr("决定输出分辨率")@@ -1163,6 +1174,8 @@ VPage {VRow {label: qsTr("质量")hint: qsTr("RTX 视频超分档位")+ enabled: veyra.videoSrQuality >= 1 && veyra.videoSrQuality <= 4 && Support.available(veyra, "sr")+ opacity: enabled ? 1 : 0.4VSeg {options: [{ id: "1", label: "1" },@@ -1184,7 +1197,8 @@ VPage {glyph: "sun"hue: "#E58BD9"title: "RTX Video HDR"- summary: veyra.videoHdr ? (veyra.videoHdrStatus.length > 0 ? veyra.videoHdrStatus : qsTr("已开启")) : qsTr("已关闭")+ switchAvailable: Support.available(veyra, "video-hdr")+ summary: !switchAvailable ? Support.reason(veyra, "video-hdr") : veyra.videoHdr ? (veyra.videoHdrStatus.length > 0 ? veyra.videoHdrStatus : qsTr("已开启")) : qsTr("已关闭")on: veyra.videoHdronToggled: on => veyra.videoHdr = onRepeater {@@ -1194,6 +1208,8 @@ VPage {{key:"peakNits",label:qsTr("峰值亮度 (nit)"),from:400,to:2000,def:1000}]delegate: VRow {required property var modelData+ enabled: Support.available(veyra, "video-hdr")+ opacity: enabled ? 1 : 0.4label: modelData.labelvalue: String(veyra.videoHdrParams[modelData.key] ?? "—")VSlider {@@ -1223,6 +1239,7 @@ VPage {// Master switch (field request 2026-10-02): every layer off// at once; on again brings back the layers that were on.enabledSwitch: veyra.nrLayers.length > 0+ switchAvailable: Support.available(veyra, "nr")switchObjectName: "list-nr-master"on: veyra.nrAnyEnabledbypassed: veyra.nrLayers.length > 0 && !veyra.nrAnyEnabled@@ -1466,6 +1483,7 @@ VPage {? " · " + veyra.fgMultiplier + "X " + (veyra.fgBackendChoices.find(o => o.id === veyra.fgBackendName) || {}).label: qsTr(" · 已关闭"))switchObjectName: "list-fg-enabled"+ switchAvailable: Support.available(veyra, "frame-generation")on: veyra.fgEnabledonToggled: on => veyra.fgEnabled = onopen: true@@ -1536,7 +1554,7 @@ VPage {hint: qsTr("补帧与 NR 共用 · 输入后计算一次")VSelect {objectName: "list-flow-choice"- options: [{id:"0",label:"NVIDIA NVOF"},{id:"1",label:"AMD FidelityFX"}]+ options: [Support.option(veyra,"0","NVIDIA NVOF","flow0"),Support.option(veyra,"1","AMD FidelityFX","flow1")]value: options[veyra.opticalFlowChoice]?.label ?? (veyra.opticalFlowChoice === 2 ? qsTr("GPU DIS 已移除,请重选") : qsTr("未知配置"))onPicked: id => veyra.setOpticalFlowChoice(Number(id))}diff --git a/qml/Veyra/VAccordion.qml b/qml/Veyra/VAccordion.qmlindex d877a2c5..5385ae70 100644--- a/qml/Veyra/VAccordion.qml+++ b/qml/Veyra/VAccordion.qml@@ -18,6 +18,7 @@ Rectangle {property string glyph: ""property color hue: Theme.accentproperty bool enabledSwitch: true+ property bool switchAvailable: trueproperty string switchObjectName: ""property bool on: trueproperty bool open: false@@ -165,6 +166,8 @@ Rectangle {VSwitch {objectName: acc.switchObjectNamevisible: acc.enabledSwitch+ enabled: acc.switchAvailable || acc.on+ opacity: enabled ? 1 : 0.4checked: acc.ononToggled: checked => acc.toggled(checked)}diff --git a/qml/Veyra/VSeg.qml b/qml/Veyra/VSeg.qmlindex d123a9f0..92a085a3 100644--- a/qml/Veyra/VSeg.qml+++ b/qml/Veyra/VSeg.qml@@ -73,6 +73,8 @@ Rectangle {model: seg.optionsdelegate: Item {required property var modelData+ enabled: modelData.disabled !== true+ opacity: enabled ? 1 : 0.4implicitWidth: segContent.implicitWidth + 20implicitHeight: 24// { id, label, icon? }: the design's 列表 / 节点 toggle carries icons.@@ -99,7 +101,7 @@ Rectangle {}}HoverHandler { cursorShape: Qt.PointingHandCursor }- TapHandler { gesturePolicy: TapHandler.WithinBounds; onTapped: seg.picked(modelData.id) }+ TapHandler { enabled: parent.enabled; gesturePolicy: TapHandler.WithinBounds; onTapped: seg.picked(modelData.id) }}}}diff --git a/qml/Veyra/VSelect.qml b/qml/Veyra/VSelect.qmlindex 14831df6..fe137769 100644--- a/qml/Veyra/VSelect.qml+++ b/qml/Veyra/VSelect.qml@@ -43,7 +43,7 @@ Rectangle {if (p instanceof VRow) return p.labelreturn ""}- items: sel.options.map(o => ({ label: o.label, checked: o.label === sel.value, disabled: o.disabled === true }))+ items: sel.options.map(o => ({ label: o.label, checked: o.label === sel.value, disabled: o.disabled === true, note: o.note || "" }))onPicked: (i, o) => sel.picked(sel.options[i].id)}}diff --git a/scripts/acceptance/release-2.0.3-amd-audit.py b/scripts/acceptance/release-2.0.3-amd-audit.pynew file mode 100644index 00000000..74e7faa3--- /dev/null+++ b/scripts/acceptance/release-2.0.3-amd-audit.py@@ -0,0 +1,31 @@+"""Real AMD ABI/layout validation only; no HIP inference on our NVIDIA card."""+import ctypes, hashlib, json, sys+from pathlib import Path+BASE=Path('E:/项目/Veyra');TASK='release-2.0.3-20261004'+app=Path(sys.argv[1]).resolve();assert app.is_relative_to(BASE.resolve())+amd=app/'runtime/amd-nr'+manifest=json.loads((amd/'runtime-manifest.json').read_text(encoding='utf8'))+assert manifest['upstream']=='78f548749e74824327b8458c57be31a1df78376a'+for row in manifest['files']:+ p=app/row['path'];assert p.stat().st_size==row['size'] and hashlib.sha256(p.read_bytes()).hexdigest()==row['sha256'],p+weights=[p for p in (amd/'assets').rglob('*') if p.suffix in ('.f16','.f32')]+kernels=list((amd/'assets/HIP').rglob('*.hsaco'));assert len(weights)==186 and len(kernels)==62+class Api(ctypes.Structure):+ _fields_=[('size',ctypes.c_uint32),('abi',ctypes.c_uint32)]+[(n,ctypes.c_void_p) for n in ['QueryCapabilities','Create','Destroy','PrepareSession','PrepareFrame','RecordInputs','EnqueueHip','RecordOutputs','ExecuteAfterProducer','CancelUnsubmitted','Poll','Retire','ResetHistory','Drain','GetStatus','GetLastError','GetTimings']]+class Caps(ctypes.Structure):+ _fields_=[(n,ctypes.c_uint32) for n in ['size','abi','width','height','history','overlap','graph','hip','gfx1201']]+class CreateInfo(ctypes.Structure):+ _fields_=[('size',ctypes.c_uint32),('device',ctypes.c_void_p),('queue',ctypes.c_void_p),('assets',ctypes.c_wchar_p),('flags',ctypes.c_uint32)]+dll=ctypes.WinDLL(str((amd/'LmxxfNrRuntime.dll').resolve()),winmode=0x1100)+api=Api();api.size=ctypes.sizeof(api);get=dll.LmxxfNrGetApi;get.argtypes=[ctypes.c_uint32,ctypes.POINTER(Api)];get.restype=ctypes.c_int32+assert get(1,ctypes.byref(api))==0 and api.abi==1+caps=Caps();caps.size=ctypes.sizeof(caps);assert ctypes.CFUNCTYPE(ctypes.c_int32,ctypes.POINTER(Caps))(api.QueryCapabilities)(ctypes.byref(caps))==0+info=CreateInfo();info.size=ctypes.sizeof(info)+# The upstream Create function validates assets but does not dereference the+# device/queue until PrepareSession. Do not call PrepareSession or execute HIP.+info.device=info.queue=1;info.assets=str((amd/'assets').resolve());ctx=ctypes.c_void_p()+assert ctypes.CFUNCTYPE(ctypes.c_int32,ctypes.POINTER(CreateInfo),ctypes.POINTER(ctypes.c_void_p))(api.Create)(ctypes.byref(info),ctypes.byref(ctx))==0 and ctx.value+assert ctypes.CFUNCTYPE(ctypes.c_int32,ctypes.c_void_p)(api.Destroy)(ctx)==0+result={'filesVerified':len(manifest['files']),'weights':len(weights),'hipModules':len(kernels),'apiBytes':api.size,'abi':api.abi,'caps':{n:getattr(caps,n) for n,_ in caps._fields_},'moduleLayoutPassed':True,'inferenceVerified':False,'runtime':str(amd)}+(BASE/'logs'/TASK/'amd-runtime-audit.json').write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')+print('AMD ABI/LAYOUT PASS',json.dumps(result,ensure_ascii=False))diff --git a/scripts/acceptance/release-2.0.3-build.py b/scripts/acceptance/release-2.0.3-build.pynew file mode 100644index 00000000..4c0a964a--- /dev/null+++ b/scripts/acceptance/release-2.0.3-build.py@@ -0,0 +1,47 @@+"""Fresh isolated build, using only the existing product dependency paths."""+import os+import subprocess+import sys+from pathlib import Path++ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra')+TASK = 'release-2.0.3-20261004'+BUILD, TMP, LOGS = (BASE / part / TASK for part in ('build', 'tmp', 'logs'))+CONTROL = ROOT / 'scripts/acceptance/release-2.0.3-control.py'+subprocess.run([sys.executable, '-B', str(CONTROL)], check=True)+for p in (BUILD, TMP, LOGS):+ p.mkdir(parents=True, exist_ok=True)+settings = []+for line in (BASE / 'build/release-2.0.2-20261003/CMakeCache.txt').read_text(encoding='utf8').splitlines():+ if ':' not in line or '=' not in line or line.startswith(('#', '//')):+ continue+ keytype, value = line.split('=', 1)+ key, kind = keytype.split(':', 1)+ if kind in ('INTERNAL', 'STATIC'):+ continue+ if key == 'VEYRA_DISPLAY_VERSION': continue+ if key.startswith('VEYRA_') or key in ('CMAKE_PREFIX_PATH', 'CMAKE_MAKE_PROGRAM', 'PROTOC', 'PKG_CONFIG_EXECUTABLE'):+ settings.append(f'set({key} [[{value}]] CACHE {kind} "Existing dependency" FORCE)')+settings.append('set(VEYRA_CUDA_DRIVER_INCLUDE_DIR [[E:/项目/Veyra/deps/nvidia-vfx-audit-20260921/nvidia/cuda_runtime/include]] CACHE PATH "External CUDA driver headers" FORCE)')+(TMP / 'dependencies.cmake').write_text('\n'.join(settings), encoding='utf8')+targets = sys.argv[2:] or ['veyra_qml_ui', 'veyra_vfg_gpu_tests', 'veyra_vfg_export_probe', 'veyra_vfg_settings_tests']+if any(not t.replace('_', '').isalnum() for t in targets):+ raise SystemExit('Invalid target')+cmd = TMP / 'build.cmd'+cmd.write_text('@echo off\nchcp 65001 >nul\ncall "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" >nul 2>&1\nif errorlevel 1 exit /b 4\n"%TASK_CMAKE%" --preset x64-release -S "%TASK_ROOT%" -B "%TASK_BUILD%" -C "%TASK_TMP%\\dependencies.cmake"\nif errorlevel 1 exit /b 5\n"%TASK_CMAKE%" --build "%TASK_BUILD%" --parallel 6 --target ' + ' '.join(targets) + '\nexit /b %errorlevel%\n', encoding='ascii')+env = os.environ.copy()+env.update(VSLANG='1033', TASK_ROOT=str(ROOT), TASK_BUILD=str(BUILD), TASK_TMP=str(TMP),+ TEMP=str(TMP), TMP=str(TMP),+ TASK_CMAKE='C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe')+log = LOGS / sys.argv[1]+with log.open('x', encoding='utf8') as output:+ try:+ code = subprocess.run(['cmd.exe', '/d', '/c', str(cmd)], cwd=ROOT, env=env,+ stdout=output, stderr=subprocess.STDOUT, timeout=890).returncode+ except subprocess.TimeoutExpired:+ code = 124+print('BUILD', code, log)+print('\n'.join(log.read_text(encoding='utf8', errors='replace').splitlines()[-25:]))+subprocess.run([sys.executable, '-B', str(CONTROL)], check=True)+raise SystemExit(code)diff --git a/scripts/acceptance/release-2.0.3-clean-smoke.py b/scripts/acceptance/release-2.0.3-clean-smoke.pynew file mode 100644index 00000000..daa06c6a--- /dev/null+++ b/scripts/acceptance/release-2.0.3-clean-smoke.py@@ -0,0 +1,64 @@+"""Final 7z extraction identity, native VFG, and six pages in both renderers."""+import hashlib, json, os, subprocess, sys+from pathlib import Path+from PIL import Image+BASE=Path('E:/项目/Veyra');TASK='release-2.0.3-20261004';ROOT=Path(__file__).resolve().parents[2]+app=Path(sys.argv[1]).resolve();flavor=sys.argv[2];app.relative_to((BASE/'verify'/TASK).resolve());assert app.is_dir()+archive=BASE/'releases'/TASK/(app.name+'.7z')+verify=app.parent;logs=BASE/'logs'/TASK/('clean-smoke-'+flavor);tmp=BASE/'tmp'/TASK/('clean-smoke-'+flavor)+for p in (logs,tmp):p.mkdir(parents=True,exist_ok=False)+manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))+def verifyFiles():+ for row in manifest['files']:+ f=app/row['path'];assert f.stat().st_size==row['size'] and hashlib.sha256(f.read_bytes()).hexdigest()==row['sha256'],row['path']+verifyFiles()+assert not any(f.suffix in ('.pyd','.addon64','.pdb','.lib','.whl') for f in app.rglob('*') if f.is_file())+source='''import QtQuick+Item {+ id: test+ property var appWindow: Window.window+ property string evidence: ""+ property bool expectSoftware: false+ property int step: 0+ property bool waiting: false+ property int ticks: 0+ property var pages: ["home","pro","node","exp","set","min"]+ Timer { id: timer; interval: 250; repeat: true; running: true+ onTriggered: {+ if(++test.ticks>100){console.error("CLEAN_SMOKE_FAIL timeout");Qt.quit();return}+ if(!test.evidence.length||test.ticks<8||test.waiting)return+ if(vySoftwareUi!==test.expectSoftware){console.error("CLEAN_SMOKE_FAIL renderer mismatch");Qt.quit();return}+ if(test.step>=test.pages.length){console.log("CLEAN_SMOKE_PASS",test.expectSoftware);timer.stop();Qt.quit();return}+ test.appWindow.page=test.pages[test.step];test.waiting=true;shot.restart()+ }+ }+ Timer { id: shot; interval: 350; onTriggered: {+ test.appWindow.contentItem.grabToImage(result=>{+ if(!result.saveToFile(test.evidence+"/"+test.pages[test.step]+".png")){console.error("CLEAN_SMOKE_FAIL screenshot");Qt.quit();return}+ test.step++;test.waiting=false+ })+ } }+}'''+qml=tmp/'pages.qml';qml.write_text(source,encoding='utf8');main=app/'qml/Veyra/Main.qml';original=main.read_bytes();results=[]+try:+ for mode in ('gpu','software'):+ evidence=verify/(mode+'-evidence');evidence.mkdir();text=original.decode('utf8');at=text.rfind('}')+ loader='\nLoader { source: '+json.dumps(qml.as_uri())+'; onLoaded: { item.evidence='+json.dumps(str(evidence))+'; item.expectSoftware='+str(mode=='software').lower()+' } }\n'+ main.write_text(text[:at]+loader+text[at:],encoding='utf8')+ env=os.environ.copy();env.update(TEMP=str(tmp),TMP=str(tmp),VEYRA_LOG_FILE=str(logs/(mode+'-app.log')),QT_FORCE_STDERR_LOGGING='1',QML_DISABLE_DISK_CACHE='1')+ for key in ('QT_QPA_PLATFORM','QT_QUICK_BACKEND','VEYRA_UI_RHI','VEYRA_VFG_RUNTIME'):env.pop(key,None)+ env['PATH']=os.pathsep.join((env['WINDIR']+'/System32',env['WINDIR'],env['WINDIR']+'/System32/Wbem'))+ if mode=='gpu':env['VEYRA_UI_RHI']='d3d12'+ args=['.\\veyra_qml_ui.exe','--size','1280x720','--reduced-motion','--data-dir',str(verify/(mode+'-profile')),'--exit-after','27000']+ if mode=='software':args.append('--obs-game-capture')+ with (logs/(mode+'-console.log')).open('xb') as log:code=subprocess.run(args,executable=str(app/'veyra_qml_ui.exe'),cwd=app,env=env,stdout=log,stderr=subprocess.STDOUT,timeout=40).returncode+ console=(logs/(mode+'-console.log')).read_text(encoding='utf8',errors='replace');assert code==0 and 'CLEAN_SMOKE_PASS' in console and 'CLEAN_SMOKE_FAIL' not in console,console[-3000:]+ files=sorted(evidence.glob('*.png'));assert len(files)==6;pixels=[]+ for file in files:+ im=Image.open(file).convert('RGBA');pixel=im.getpixel((15,80));assert pixel[3]==255 and max(pixel[:3])<160,(file,pixel)+ pixels.append({'page':file.stem,'pixel':pixel,'size':im.size})+ results.append({'renderer':mode,'exit':code,'pages':pixels});print('CLEAN SMOKE PASS',mode,flush=True)+finally:main.write_bytes(original)+verifyFiles()+(logs/'summary.json').write_text(json.dumps({'archive':str(archive),'filesVerified':len(manifest['files']),'flavor':flavor,'results':results},indent=2),encoding='utf8')+print('CLEAN PACKAGE PASS',len(manifest['files']),verify,flush=True)diff --git a/scripts/acceptance/release-2.0.3-control.py b/scripts/acceptance/release-2.0.3-control.pynew file mode 100644index 00000000..949d1a58--- /dev/null+++ b/scripts/acceptance/release-2.0.3-control.py@@ -0,0 +1,17 @@+"""Scope and source/binary separation for the authorized 2.0.3 release."""+import subprocess+from pathlib import Path+ROOT = Path(__file__).resolve().parents[2]+BASE = 'cb9b89e4259d1c430f40f976997f6155886bff46'+allowed = {'AGENTS.md', 'CMakeLists.txt', 'README.md', 'README_EN.md', 'README_CN.md', 'THIRD_PARTY_NOTICES.md',+ 'src/ui/QmlPlayerBridge.cpp', 'include/veyra/ui/QmlPlayerBridge.h',+ 'include/veyra/ui/EffectAvailability.h', 'src/gfx/FsrSrBackend.cpp', 'src/gfx/FsrFgPresenter.cpp',+ 'tests/unit/EffectAvailabilityTests.cpp', 'scripts/package-qml-release.py', 'scripts/amd-nr/build-lmxxf-runtime.py',+ 'scripts/package-vendor-release.py', 'scripts/package-2.0.3-dependency-source.py'}+paths = set(subprocess.check_output(['git', 'diff', '--name-only', BASE], cwd=ROOT).decode().splitlines())+paths.update(subprocess.check_output(['git','ls-files','--others','--exclude-standard'],cwd=ROOT).decode().splitlines())+bad = [p for p in paths if p not in allowed and not p.startswith(('docs/','qml/Veyra/','i18n/','scripts/acceptance/release-2.0.3-'))]+assert not bad, bad+assets = [p for p in paths if Path(p).suffix.lower() in {'.dll','.exe','.lib','.pdb','.onnx','.f16','.f32','.i32','.hsaco','.ptx','.whl','.addon64'}]+assert not assets, assets+print('2.0.3 scope PASS:',len(paths),'paths; no SDK/runtime/model assets')diff --git a/scripts/acceptance/release-2.0.3-docs.py b/scripts/acceptance/release-2.0.3-docs.pynew file mode 100644index 00000000..50e0f110--- /dev/null+++ b/scripts/acceptance/release-2.0.3-docs.py@@ -0,0 +1,87 @@+"""Versioned docs and UI translations, including the user's shared-FSR exception."""+import json+from pathlib import Path+ROOT = Path(__file__).resolve().parents[2]+def edit(name, transform):+ p = ROOT / name; old = p.read_text(encoding='utf8'); new = transform(old)+ assert old != new, name+ p.write_text(new, encoding='utf8')++def english(t):+ t = t.replace('2.0.2', '2.0.3')+ t = t.replace('## New in 2.0.3\n', '''## New in 2.0.3++- **GPU packages:** choose NVIDIA or AMD. AMD NR assets and NVIDIA-only NR/NGX/VFG/CUDA components are separated. Both keep the existing shared FidelityFX 2.3.0 components and cross-vendor FSR3.1/XeSS; FSR4 stays gray on NVIDIA.+- **Visible compatibility:** four NR versions, SR backends, FG backends, RTX HDR and optical flow retain unsupported entries with a disabled reason in List/Node mode. Restoring old configurations disables unavailable stages and preserves their parameters.+- **VFG and field fixes:** all 2–8X multipliers and Low/Medium/High; Xbox audio startup and bounded recovery; bitrate draft/validation/frozen exports; opaque RTSS-compatible UI; removed false NVIDIA App crash detection; fixed the minimal window's right-edge gap. Nine unrelated VFG NPP libraries are omitted. RX9000 inference and Xbox hardware long sessions remain unverified; HDR/Dolby PRs are deferred.++''')+ t = t.replace('Download **Veyra-2.0.3-win64-portable.zip**, extract into a new writable folder and run **veyra_qml_ui.exe**. This is the only release asset you need to run the application.', 'Download **Veyra-2.0.3-NVIDIA-win64-portable.7z** or **Veyra-2.0.3-AMD-win64-portable.7z** for Veyra\'s active GPU. Extract with 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding.')+ t = t.replace('The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram and RTX 20–50 · SF-v2 in both List and Node mode. It switches the entire NR chain, retaining the existing default.', 'The NR version selector offers RTX 50 · NVIDIA original, RTX 50 · Lecram, RTX 20–50 · SF-v2 and RX9000 · lmxxf (experimental) in both List and Node mode. Unsupported versions remain visible but gray; switching supported versions updates the entire NR chain. AMD NR requires driver HIP 7 and is limited to its 1080p pixel budget; HDR/native 1440p or 4K NR export is unavailable.')+ t = t.replace('three NR runtime choices (NVIDIA original for RTX 50, Lecram and SF-v2)', 'four NR runtime choices (NVIDIA original for RTX 50, Lecram, SF-v2 and AMD lmxxf)')+ return t+edit('README.md', english)++def chinese(t):+ t = t.replace('2.0.2', '2.0.3')+ t = t.replace('## 2.0.3 新增与修复\n', '''## 2.0.3 新增与修复++- **显卡分包**:NVIDIA 包不带 AMD NR;AMD 包不带 NVIDIA NR/NGX/VFG/CUDA。按用户追加决定,两包都保留原有 FidelityFX 2.3.0 共用组件,FSR3.1/XeSS 可用,NVIDIA 的 FSR4 入口置灰。+- **功能可见但禁用**:NR 四版本、超分、补帧、RTX HDR、光流与节点添加统一判断硬件/组件,并显示禁用原因。恢复旧配置关闭不可用效果,保留参数。+- **VFG 与现场修复**:VFG 全部 2–8X、低/中/高;Xbox 音频启动与有界恢复;导出码率草稿/验证/worker 冻结;小飞机兼容背景不透明;移除 NVIDIA App 插件误判;修复极简右侧像素黑边。删除九个 VFG 不使用的 NPP 库。RX9000 推理和 Xbox 真机长稳仍待验,HDR/杜比 PR 暂缓。++''')+ t = t.replace('下载 **Veyra-2.0.3-win64-portable.zip**,完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需这一个下载包。', '按 Veyra 实际使用的显卡下载 **Veyra-2.0.3-NVIDIA-win64-portable.7z** 或 **Veyra-2.0.3-AMD-win64-portable.7z**,用 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。')+ t = t.replace('列表与节点的 **NR 版本** 均可选 RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2,切换时全 NR 链同步,原有默认选择保留。', '列表与节点的 **NR 版本** 均可选四项:RTX 50 · NVIDIA 原版、RTX 50 · Lecram、RTX 20–50 · SF-v2、RX9000 · lmxxf(实验)。不支持的版本保留置灰,支持的版本切换时全 NR 链同步。AMD NR 需要驱动 HIP 7,内部最高 1080p 像素预算,HDR/原生 1440p/4K NR 导出不支持。')+ return t+edit('README_CN.md', chinese)++def build(t):+ a = t.index('\n- Official FidelityFX SDK 1.1.4'); b = t.index('\n- MIT VFG sample reference', a)+ t = t[:a] + '\n- Both GPU packages retain the exact existing FidelityFX SDK 2.3.0 loader, upscaler and framegeneration components, at the user\'s explicit request to keep FSR3.1/4 together. Corresponding 2.3.0 sources are in the unchanged dependency archive. NVIDIA only exposes FSR3.1; FSR4 remains disabled there. No legacy SDK replacement or ABI compatibility change is shipped.\n' + t[b:]+ return t.replace(', `--fsr31`', '').replace('、官方 FSR 3.1 源码', '(FSR 2.3.0 对应源码沿用)')+edit('docs/BUILD_2.0.3.md', build)++def components(t):+ t = t.replace('Official SDK 1.1.4 signed 3.1-only DLL', 'Existing SDK 2.3.0 compatibility provider')+ t = t.replace('Gray; no FSR4 ML DLL/model payload', 'Gray; shared FidelityFX components retained by explicit user choice')+ a = t.index('NVIDIA FSR 3.1 uses'); b = t.index('\n\nAMD NR source', a)+ t = t[:a] + 'Both packages retain the existing signed SDK 2.3.0 loader, FSR4.1.1 SR provider and FSR4.0.1 FG provider, including FSR3.1 compatibility. The user explicitly requested keeping FSR3.1/4 together instead of splitting the runtime. NVIDIA exposes FSR3.1 and keeps FSR4 ML disabled; AMD exposes the ML paths only for qualifying RX9000 hardware. Each DLL keeps its existing approved identity. No old SDK replacement, DLL patch or new ABI compatibility branch is shipped.' + t[b:]+ return t.replace('NVIDIA 包不带 AMD NR 与 FSR4 ML;', 'NVIDIA 包不带 AMD NR;两包保留原有 FSR3.1/4 共用组件,NVIDIA 的 FSR4 ML 仍禁用;')+edit('docs/RUNTIME_COMPONENTS_2.0.3.md', components)++def notes(t):+ t = t.replace('不携带 AMD NR 或 FSR4 ML。FSR3.1 换为官方独立原件,约 6.4 MiB。', '不携带 AMD NR。按用户追加决定保留原有 FSR3.1/4 共用组件,NVIDIA 的 FSR4 选项仍置灰。')+ return t.replace('AMD NR and FSR4 ML assets are excluded. The standalone official FSR3.1 runtime is about 6.4 MiB.', 'AMD NR assets are excluded. The existing shared FidelityFX 2.3.0 runtime is retained by explicit user choice; FSR4 ML remains disabled on NVIDIA.')+edit('docs/RELEASE_NOTES_2.0.3.md', notes)+edit('docs/RELEASE_2.0.3_PLAN_2026-10-04.md', lambda t: t.replace('NVIDIA 不带 AMD NR/HIP 或 FSR4 ML,AMD 不带 DLSS/NGX/NVOF/VFG/CUDA。', 'NVIDIA 不带 AMD NR/HIP,AMD 不带 DLSS/NGX/NVOF/VFG/CUDA。用户追加决定保留现有 FSR3.1/4 共用组件,两包均使用已核验 SDK 2.3.0 三 DLL;NVIDIA 的 FSR4 ML 仍可见置灰。旧 SDK 独立 FSR3.1 研究与兼容试改已撤下,不进入最终产品。'))++def notices(t):+ t = t.replace('Only the fourteen native VFG dependencies are used;', 'Only the five VFG-required native dependencies are used; nine unrelated NPP libraries are omitted;')+ t = t.replace('The local candidate carries its NVIDIA software/AI/model terms and third-party\nnotices with a separate `vfg-runtime-manifest.json`; public redistribution has\nnot been authorized or established by this integration.', 'The 2.0.3 NVIDIA package carries its NVIDIA software/AI/model terms and third-party\nnotices with a separate `vfg-runtime-manifest.json`. The user explicitly authorized\nthis experimental Release distribution; this is not vendor certification or a general\nredistribution grant, and the integration is not an independent legal audit.')+ t = t.replace('AMD NR is not available in the current release.', 'The 2.0.3 AMD package includes the lmxxf runtime and user-supplied 0.39 assets; actual RX9000 inference remains unverified.')+ return t.replace('local candidate does not authorize a public release.', '2.0.3 AMD package follows the user\'s explicit experimental distribution authorization; open-source code does not relicense these models.')+edit('THIRD_PARTY_NOTICES.md', notices)++entries = [+ ('当前包缺少此功能的运行组件','目前套件缺少此功能的執行元件','This package lacks the runtime components for this feature','このパッケージに必要なランタイムがありません'),+ ('需要 NVIDIA RTX 50 / Blackwell','需要 NVIDIA RTX 50 / Blackwell','Requires NVIDIA RTX 50 / Blackwell','NVIDIA RTX 50 / Blackwell が必要です'),+ ('需要 NVIDIA RTX 显卡','需要 NVIDIA RTX 顯示卡','Requires an NVIDIA RTX GPU','NVIDIA RTX GPU が必要です'),+ ('需要 AMD RX 9000','需要 AMD RX 9000','Requires AMD RX 9000','AMD RX 9000 が必要です'),+ ('需要 AMD HIP 7 驱动运行组件','需要 AMD HIP 7 驅動執行元件','Requires the AMD HIP 7 driver runtime','AMD HIP 7 ドライバーランタイムが必要です'),+ ('需要支持 DirectX 12 的硬件显卡','需要支援 DirectX 12 的硬體顯示卡','Requires a hardware GPU with DirectX 12 support','DirectX 12 対応のハードウェア GPU が必要です'),+ ('需要 NVIDIA RTX 40 / 50(Ada / Blackwell)','需要 NVIDIA RTX 40 / 50(Ada / Blackwell)','Requires NVIDIA RTX 40 / 50 (Ada / Blackwell)','NVIDIA RTX 40 / 50(Ada / Blackwell)が必要です'),+ ('需要 NVIDIA RTX 显卡及 NVOF 驱动','需要 NVIDIA RTX 顯示卡及 NVOF 驅動','Requires an NVIDIA RTX GPU and the NVOF driver','NVIDIA RTX GPU と NVOF ドライバーが必要です'),+ ('FSR 3.1 / 4 · 自动兼容','FSR 3.1 / 4 · 自動相容','FSR 3.1 / 4 · Automatic compatibility','FSR 3.1 / 4 · 自動互換'),+ ('超分算法','超解析演算法','Upscaling algorithm','アップスケーリング方式'),+ ('AMD NR 最高 1080p 像素预算','AMD NR 最高 1080p 像素預算','AMD NR has a maximum 1080p pixel budget','AMD NR の上限は 1080p の画素数です'),+ ('当前硬件或包不支持所选效果,请查看组件页','目前硬體或套件不支援所選效果,請查看元件頁','The hardware or package does not support this effect; check Components','選択した効果は現在の GPU またはパッケージに対応していません。コンポーネントを確認してください'),+ ('已关闭当前硬件或包不支持的效果,参数仍保留:','已關閉目前硬體或套件不支援的效果,參數仍保留:','Unavailable effects have been disabled; their parameters are preserved: ','非対応の効果を無効にしました。設定値は保持されています:')]+p = ROOT / 'i18n/catalog.json'; catalog = json.loads(p.read_text(encoding='utf8'))+known = {e['zh'] for e in catalog['entries']}+for zh, tw, en, ja in entries:+ if zh not in known:+ catalog['entries'].append(dict(zh=zh, src='src/ui/QmlPlayerBridge.cpp; qml/Veyra', **{'zh-TW':tw,'en':en,'ja':ja}))+catalog['entries'].sort(key=lambda e:e['zh'])+p.write_text(json.dumps(catalog, ensure_ascii=False, indent=1) + '\n', encoding='utf8')+print('2.0.3 docs and translations updated; FSR exception retained')diff --git a/scripts/acceptance/release-2.0.3-edge-tests.py b/scripts/acceptance/release-2.0.3-edge-tests.pynew file mode 100644index 00000000..682f92c9--- /dev/null+++ b/scripts/acceptance/release-2.0.3-edge-tests.py@@ -0,0 +1,160 @@+"""Measure actual native-window coverage and composed edge pixels at fractional DPI."""+import ctypes+from ctypes import wintypes+import json+import os+from pathlib import Path+import shutil+import statistics+import subprocess+import sys+import time+from PIL import ImageGrab++ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra')+TASK = 'release-2.0.3-20261004'+APP = BASE/'tests'/TASK/'app-NVIDIA-shared-fsr'+REFERENCE = BASE/'test-packages/runtime-size-20261004/Veyra-2.0.2-slim-20261004-win64-portable'+BUILD = BASE/'build'/TASK+label = sys.argv[1]+phase = sys.argv[2] if len(sys.argv)>2 else 'before'+out, logs, tmp = (BASE/k/TASK/label for k in ('tests','logs','tmp'))+for p in (out,logs,tmp): p.mkdir(parents=True,exist_ok=False)+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/release-2.0.3-control.py')],check=True)+if not APP.exists():+ APP.mkdir()+ for path in REFERENCE.rglob('*'):+ if not path.is_file():continue+ rel=path.relative_to(REFERENCE); dst=APP/rel+ dst.parent.mkdir(parents=True,exist_ok=True)+ if path.suffix.lower() in {'.exe','.qml','.js','.json','.log'} or rel.parts[0] in {'qml','shaders'}:+ shutil.copy2(path,dst)+ else:os.link(path,dst)+shutil.copy2((REFERENCE if phase=='before' else BUILD)/'veyra_qml_ui.exe',APP/'veyra_qml_ui.exe')+media = BASE/'tests'/TASK/'edge-cyan.mp4'+env=os.environ.copy();env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),QML_DISABLE_DISK_CACHE='1',QT_FORCE_STDERR_LOGGING='1')+if not media.exists():+ with (logs/'fixture.log').open('xb') as log:+ subprocess.run(['ffmpeg','-v','warning','-n','-f','lavfi','-i','color=c=cyan:size=1280x720:rate=30','-t','8','-c:v','libx264','-pix_fmt','yuv420p','-crf','12',str(media)],env=env,stdout=log,stderr=subprocess.STDOUT,timeout=45,check=True)+user32=ctypes.WinDLL('user32',use_last_error=True)+callback_type=ctypes.WINFUNCTYPE(wintypes.BOOL,wintypes.HWND,wintypes.LPARAM)+user32.EnumWindows.argtypes=[callback_type,wintypes.LPARAM]+user32.EnumChildWindows.argtypes=[wintypes.HWND,callback_type,wintypes.LPARAM]+user32.GetWindowThreadProcessId.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.DWORD)]+user32.GetClientRect.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.RECT)]+user32.ClientToScreen.argtypes=[wintypes.HWND,ctypes.POINTER(wintypes.POINT)]+user32.GetClassNameW.argtypes=[wintypes.HWND,wintypes.LPWSTR,ctypes.c_int]+user32.SetForegroundWindow.argtypes=[wintypes.HWND]+user32.SetWindowPos.argtypes=[wintypes.HWND,wintypes.HWND,ctypes.c_int,ctypes.c_int,ctypes.c_int,ctypes.c_int,wintypes.UINT]+user32.WindowFromPoint.argtypes=[wintypes.POINT]+user32.WindowFromPoint.restype=wintypes.HWND+user32.SetProcessDpiAwarenessContext.argtypes=[wintypes.HANDLE]+user32.SetProcessDpiAwarenessContext(ctypes.c_void_p(-4))+def windows(pid,parent=None):+ found=[]+ @callback_type+ def collect(hwnd,_):+ actual=wintypes.DWORD();user32.GetWindowThreadProcessId(hwnd,ctypes.byref(actual))+ cls=ctypes.create_unicode_buffer(256);user32.GetClassNameW(hwnd,cls,256)+ if actual.value==pid:found.append((hwnd,cls.value))+ return True+ if parent:user32.EnumChildWindows(parent,collect,0)+ else:user32.EnumWindows(collect,0)+ return found+def rect(hwnd):+ client=wintypes.RECT(); assert user32.GetClientRect(hwnd,ctypes.byref(client))+ origin=wintypes.POINT(); assert user32.ClientToScreen(hwnd,ctypes.byref(origin))+ return (origin.x,origin.y,client.right,client.bottom)++cases=[(1,642,'gpu'),(1.25,642,'gpu'),(1.5,643,'gpu'),(1.75,641,'gpu'),(2,643,'gpu'),(1.25,642,'software')]+behaviors=[]+if len(sys.argv)>3 and sys.argv[3]=='full':+ cases=[(scale,width,mode) for mode in ('gpu','software') for scale in (1,1.25,1.5,1.75,2) for width in (641,642,643)]+if len(sys.argv)>3 and sys.argv[3]=='behaviors':+ behaviors=['resize','page-cycle','menu','native-pixels','fullscreen','pro']*2+ cases=[(2 if behavior=='native-pixels' else 1.25,643 if behavior=='native-pixels' else 642,mode)+ for mode in ('gpu','software') for behavior in behaviors[:6]]+if len(sys.argv)>3 and sys.argv[3]=='page-cycle':+ behaviors=['page-cycle','page-cycle']+ cases=[(1.25,642,mode) for mode in ('gpu','software')]+results=[]+main_path=APP/'qml/Veyra/Main.qml'+main_source=(ROOT/'qml/Veyra/Main.qml').read_bytes()+for index,(scale,width,mode) in enumerate(cases):+ behavior=behaviors[index] if behaviors else 'fit'+ name=f'{index}-{mode}-dpr{scale}-w{width}-{behavior}'+ child=env.copy()+ for key in ('QT_QPA_PLATFORM','QT_QUICK_BACKEND','VEYRA_UI_RHI','QT_SCALE_FACTOR','VEYRA_VFG_RUNTIME'):child.pop(key,None)+ child.update(QT_SCALE_FACTOR=str(scale),VEYRA_LOG_FILE=str(logs/(name+'-engine.log')))+ if mode=='gpu':child['VEYRA_UI_RHI']='d3d12'+ # The C++ --size override runs after QML startup and can overwrite the+ # cinema height. Drive the real QML fit after the source has opened instead.+ qml_text=main_source.decode('utf-8'); at=qml_text.rfind('}')+ fixture='\nTimer { interval: 1300; running: true; onTriggered: { root.page="min"; root.widthBeforeNarrow=0; root.width='+str(width)+'; root.fitToFilm(16/9); root.height=Math.round(root.width/(16/9)); root.x=Math.max(0, root.screenArea.x+40); root.y=Math.max(0, root.screenArea.y+40); veyra.logUi("edge-test", "settled="+root.width+"x"+root.height) } }\n'+ def timer(interval,statement):return '\nTimer { interval: '+str(interval)+'; running: true; onTriggered: { '+statement+' } }\n'+ if behavior=='resize':+ fixture+=timer(1700,'root.width=641;')+timer(2100,'root.width=643;')+timer(2500,'root.width=642;')+ elif behavior=='page-cycle':+ fixture+=timer(1700,'root.page="pro";')+timer(2300,'root.page="min"; Qt.callLater(function() { root.widthBeforeNarrow=0; root.width=642; root.fitToFilm(16/9); root.height=Math.round(root.width/(16/9)); });')+ elif behavior=='menu':fixture+=timer(1800,'minPage.openSourceMenuForTest(); veyra.logUi("edge-test", "source-menu="+minPage.sourceMenuOpen);')+ elif behavior=='native-pixels':fixture+=timer(1800,'veyra.aspectMode=1;')+ elif behavior=='fullscreen':fixture+=timer(1800,'root.toggleFullscreen(); veyra.aspectMode=5;')+ elif behavior=='pro':fixture+=timer(1800,'root.page="pro"; root.height=700;')+ main_path.write_text(qml_text[:at]+fixture+qml_text[at:],encoding='utf-8')+ args=[str(APP/'veyra_qml_ui.exe'),'--page','min','--reduced-motion','--data-dir',str(out/(name+'-profile')),'--exit-after','7000' if behaviors else '5000',str(media)]+ if mode=='software':args.append('--obs-game-capture')+ with (logs/(name+'.log')).open('xb') as log:+ proc=subprocess.Popen(args,cwd=APP,env=child,stdout=log,stderr=subprocess.STDOUT)+ deadline=time.monotonic()+3+ root=video=None+ while time.monotonic()<deadline:+ for hwnd,cls in windows(proc.pid):+ if cls.startswith('Qt') and not cls.endswith('ToolSaveBits'):+ children=windows(proc.pid,hwnd)+ candidate=next((h for h,c in children if c=='VeyraQmlVideoHost'),None)+ if candidate:root,video=hwnd,candidate;break+ if video:break+ time.sleep(.08)+ # Raise only our transient test HWND, without activating another app.+ # Foreground-lock restrictions otherwise let unrelated user windows+ # occlude its pixels. Never capture an occluded client.+ if root:assert user32.SetWindowPos(root,ctypes.c_void_p(-1),0,0,0,0,0x13)+ time.sleep(4.2 if behaviors else 2.0)+ assert root and video, name+' missing native windows'+ root_rect,video_rect=rect(root),rect(video)+ x,y,w,h=video_rect if behavior=='pro' else root_rect+ for px,py in ((x+4,y+4),(x+w-5,y+4),(x+4,y+h-5),(x+w-5,y+h-5),(x+w//2,y+h//2)):+ owner=wintypes.DWORD()+ user32.GetWindowThreadProcessId(user32.WindowFromPoint(wintypes.POINT(px,py)),ctypes.byref(owner))+ assert owner.value==proc.pid,name+' test client is occluded; capture skipped'+ # Only the test process's own client, never the user's full desktop.+ image=ImageGrab.grab(bbox=(x,y,x+w,y+h),all_screens=True).convert('RGB')+ image.save(out/(name+'.png'))+ # The cinema pill and restart dialog may cover the middle/lower picture.+ # Sample a vertical run above them, away from rounded top corners.+ # Central rows avoid the top dock. All sample columns are in the test+ # HWND; a native picture at the centre proves the capture is meaningful.+ rows=range(max(96,h//3),min(h-80,h//3+96))+ edges={side: [int(statistics.median(image.getpixel((col,row))[channel] for row in rows)) for channel in range(3)] for side,col in [('left',0),('right',w-1),('rightInner',w-3),('center',w//2)]}+ edges['top']=list(image.getpixel((w//2,3)))+ edges['bottom']=list(image.getpixel((w//2,h-4)))+ code=proc.wait(timeout=12)+ main_path.write_bytes(main_source)+ item={'case':name,'scaleFactor':scale,'mode':mode,'behavior':behavior,'rootClient':root_rect,'videoClient':video_rect,'rightGap':root_rect[0]+root_rect[2]-video_rect[0]-video_rect[2],'bottomGap':root_rect[1]+root_rect[3]-video_rect[1]-video_rect[3],'edges':edges,'exit':code}+ results.append(item)+ (logs/'summary.json').write_text(json.dumps(results,indent=2),encoding='utf-8')+ print(json.dumps(item),flush=True)+ assert code==0,name+' abnormal exit'+ picture=edges['rightInner'] if behavior=='menu' else edges['center']+ # In pro, contain places the image in the vertical centre of the viewport.+ if behavior=='pro':picture=list(image.getpixel((w//2,h//2)))+ assert picture[1]>120 and picture[2]>120,name+' native picture was not captured'+ if phase!='before':+ if behavior=='page-cycle':assert root_rect[2:]==(803,451),name+' cinema transition not settled'+ if behavior!='pro':assert item['rightGap']==0 and item['bottomGap']==0,name+' uncovered client edge'+ if behavior in ('native-pixels','fullscreen'):+ assert max(edges['right'])<20,name+' intentional side bar lost'+ elif behavior=='pro':assert max(edges['top'])<20 and max(edges['bottom'])<20,name+' intentional letterbox lost'+ else:assert edges['right'][1]>120 and edges['right'][2]>120,name+' black content at client edge'+print('MINIMAL EDGE MEASUREMENTS COMPLETE',phase,len(results),flush=True)diff --git a/scripts/acceptance/release-2.0.3-field-ui.py b/scripts/acceptance/release-2.0.3-field-ui.pynew file mode 100644index 00000000..baa26146--- /dev/null+++ b/scripts/acceptance/release-2.0.3-field-ui.py@@ -0,0 +1,49 @@+"""Actual Qt bridge, NR/SR, NVENC and software background regression, <300 sec."""+import json, os, shutil, subprocess, sys+from pathlib import Path+ROOT=Path(__file__).resolve().parents[2]+BASE=Path('E:/项目/Veyra');TASK='release-2.0.3-20261004'+APP=BASE/'tests'/TASK/'app-NVIDIA-shared-fsr';BUILD=BASE/'build'/TASK+out=BASE/'tests'/TASK/('production-'+sys.argv[1]);out.mkdir(parents=True,exist_ok=False)+tmp=BASE/'tmp'/TASK/('production-'+sys.argv[1]);tmp.mkdir(parents=True,exist_ok=False)+logs=BASE/'logs'/TASK/('production-'+sys.argv[1]);logs.mkdir(parents=True,exist_ok=False)+media=out/'2k30.avi'+env=os.environ.copy();env.update(TEMP=str(tmp),TMP=str(tmp),VEYRA_LOG_FILE=str(logs/'veyra-qml.log'),+ QT_FORCE_STDERR_LOGGING='1',QML_DISABLE_DISK_CACHE='1')+for key in ('QT_QPA_PLATFORM','QT_QUICK_BACKEND','VEYRA_UI_RHI','VEYRA_TEST_IGNORE_RTSS'):+ env.pop(key,None)+with (logs/'fixture.log').open('xb') as log:+ subprocess.run(['ffmpeg','-v','warning','-n','-f','lavfi','-i','testsrc2=size=2560x1440:rate=30',+ '-t','0.8','-c:v','mpeg4','-q:v','3','-threads','2',str(media)],env=env,stdout=log,stderr=subprocess.STDOUT,timeout=60,check=True)+for name in ('veyra_qml_ui.exe',):shutil.copy2(BUILD/name,APP/name)+shutil.copytree(ROOT/'qml',APP/'qml',dirs_exist_ok=True)+(out/'outputs').mkdir()+(logs/'veyra-last-failure.txt').write_text('device\nnvppex.dll\n',encoding='ascii')+main=APP/'qml/Veyra/Main.qml';original=main.read_bytes();source=original.decode('utf8')+expect_rtss='--rtss' in sys.argv+loader='\nLoader { source: '+json.dumps((ROOT/'scripts/acceptance/field-upgrade-ui.qml').as_uri())+'; onLoaded: { item.media='+json.dumps(str(media))+'; item.evidence='+json.dumps(str(out))+'; item.expectRtss='+str(expect_rtss).lower()+' } }\n'+args=['.\\veyra_qml_ui.exe','--page','exp','--size','1280x720','--reduced-motion','--export-out',str(out/'outputs'),+ '--data-dir',str(out/'profile'),'--exit-after','250000']+if not expect_rtss:args.append('--obs-game-capture')+try:+ at=source.rfind('}');main.write_text(source[:at]+loader+source[at:],encoding='utf8')+ with (logs/'console.log').open('xb') as log:+ code=subprocess.run(args,executable=str(APP/'veyra_qml_ui.exe'),cwd=APP,env=env,stdout=log,stderr=subprocess.STDOUT,timeout=270).returncode+finally:main.write_bytes(original)+console=(logs/'console.log').read_text(encoding='utf8',errors='replace')+assert code==0 and 'FIELD_UI_PASS' in console and 'FIELD_UI_FAIL' not in console,console[-5000:]+parent=(logs/'veyra-qml.log').read_text(encoding='utf8',errors='replace')+assert 'export frozen bitrateMbps=18 rateControl=1' in parent and 'export frozen bitrateMbps=24 rateControl=0' in parent+outputs=sorted((out/'outputs').glob('*.mp4'));assert len(outputs)==2,outputs+probes=[]+for file in outputs:+ data=json.loads(subprocess.check_output(['ffprobe','-v','error','-count_frames','-show_streams','-show_format','-of','json',str(file)],env=env,timeout=30))+ stream=next(x for x in data['streams'] if x['codec_type']=='video')+ assert stream['codec_name']=='hevc' and int(stream['width'])==3840 and int(stream['height'])==2160 and int(stream['nb_read_frames'])==24+ probes.append({'output':str(file),'probe':data})+(logs/'outputs.json').write_text(json.dumps(probes,ensure_ascii=False,indent=2),encoding='utf8')+from PIL import Image+im=Image.open(out/'software-background.png').convert('RGBA')+samples=[im.getpixel((12,80)),im.getpixel((640,25)),im.getpixel((1260,710))]+assert all(p[3]==255 and max(p[:3])<130 for p in samples),samples+print('FIELD PRODUCTION PASS',out,'background_pixels',samples,'outputs',len(outputs))diff --git a/scripts/acceptance/release-2.0.3-package-audit.py b/scripts/acceptance/release-2.0.3-package-audit.pynew file mode 100644index 00000000..ec3f58df--- /dev/null+++ b/scripts/acceptance/release-2.0.3-package-audit.py@@ -0,0 +1,52 @@+"""Independent complete payload hashes, vendor boundaries and PE import closure."""+import hashlib, json, os, sys+from pathlib import Path+import pefile++BASE=Path('E:/项目/Veyra'); TASK='release-2.0.3-20261004'+app=Path(sys.argv[1]).resolve(); flavor=sys.argv[2]; label=sys.argv[3]+assert app.is_relative_to(BASE.resolve()) and flavor in ('NVIDIA','AMD')+out=BASE/'logs'/TASK/(label+'.json'); assert not out.exists()+manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))+names={f.relative_to(app).as_posix():f for f in app.rglob('*') if f.is_file()}+expected={r['path'] for r in manifest['files']}|{'package-manifest.json'}+assert set(names)==expected, {'unexpected':list(set(names)-expected),'missing':list(expected-set(names))}+for row in manifest['files']:+ f=names[row['path']]+ with f.open('rb') as stream: sha=hashlib.file_digest(stream,'sha256').hexdigest()+ assert f.stat().st_size==row['size'] and sha==row['sha256'],row['path']+assert not any(f.suffix.lower() in ('.pdb','.lib','.pyd','.whl','.addon64') for f in names.values())+drivers={'nvcuda.dll','nvopticalflow64.dll','amdhip64.dll','amdhip64_6.dll','amdhip64_7.dll'}+assert not drivers & {f.name.lower() for f in names.values()}+if flavor=='NVIDIA':+ assert not any(n.startswith('runtime/amd-nr/') for n in names)+ vfg={f.name for n,f in names.items() if n.startswith('runtime/nvidia-vfg/')}+ assert vfg=={'NVVideoEffects.dll','nvVFXVideoFrameGeneration.dll','NVCVImage.dll','cudart64_12.dll','nvngxruntime.dll'},vfg+else:+ assert not any(f.name.lower().startswith(('nvngx','nvvideoeffects','cudart','npp','nvcv')) for f in names.values())+ assert 'runtime/amd-nr/LmxxfNrRuntime.dll' in names+fsr={f.name for n,f in names.items() if n.startswith('runtime_local/amd/fidelityfx/')}+assert fsr=={'amd_fidelityfx_loader_dx12.dll','amd_fidelityfx_upscaler_dx12.dll','amd_fidelityfx_framegeneration_dx12.dll'}+runtime=json.loads((app/'release-runtime-manifest.json').read_text(encoding='utf8'))+assert runtime==json.loads((app/'runtime/experimental/release-runtime-manifest.json').read_text(encoding='utf8'))+assert {n for n,f in names.items() if n.startswith(('runtime/','runtime_local/')) and f.suffix.lower() not in ('.json','.md','.txt')} <= {r['path'] for r in runtime['files']}+packaged={f.name.lower() for f in names.values() if f.suffix.lower()=='.dll'}+system=Path(os.environ['WINDIR'])/'System32'; imports=[]; missing=[]+for name,f in names.items():+ if f.suffix.lower() not in ('.dll','.exe'):continue+ pe=pefile.PE(str(f),fast_load=True)+ pe.parse_data_directories(directories=[pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_IMPORT'],pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT']])+ direct=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_IMPORT',[])]+ delay=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_DELAY_IMPORT',[])]+ pe.close()+ assert not any(n.startswith('npp') for n in direct+delay),(name,direct,delay)+ for dll in direct+delay:+ if dll in packaged or dll.startswith(('api-ms-','ext-ms-')) or (system/dll).is_file():continue+ missing.append({'file':name,'dependency':dll,'delay':dll in delay})+ imports.append({'file':name,'direct':direct,'delay':delay})+assert not missing,missing+result=dict(flavor=flavor,app=str(app),payloadFiles=len(manifest['files']),payloadBytes=sum(r['size'] for r in manifest['files']),+ sourceCommit=manifest.get('baseCommit'),releaseReady=manifest.get('releaseReady'),runtimeFiles=len(runtime['files']),+ peFiles=len(imports),imports=imports,missing=missing,fsrException=True)+out.write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')+print('PACKAGE AUDIT PASS',flavor,result['payloadFiles'],result['payloadBytes'],out,flush=True)diff --git a/scripts/acceptance/release-2.0.3-policy-ui.py b/scripts/acceptance/release-2.0.3-policy-ui.pynew file mode 100644index 00000000..f6c28153--- /dev/null+++ b/scripts/acceptance/release-2.0.3-policy-ui.py@@ -0,0 +1,30 @@+"""GPU package availability and real FSR SR using current product, no fake GPU."""+import json, os, shutil, subprocess, sys+from pathlib import Path+ROOT=Path(__file__).resolve().parents[2]; BASE=Path('E:/项目/Veyra'); TASK='release-2.0.3-20261004'+flavor=sys.argv[1];label=sys.argv[2];assert flavor in ('NVIDIA','AMD') and label.replace('-','').isalnum()+app=BASE/'tests'/TASK/('app-'+flavor+('-shared-fsr' if flavor=='NVIDIA' else ''))+logs=BASE/'logs'/TASK/label;out=BASE/'tests'/TASK/label;tmp=BASE/'tmp'/TASK/label+for p in (logs,out,tmp):p.mkdir(parents=True,exist_ok=False)+shutil.copyfile(BASE/'build'/TASK/'veyra_qml_ui.exe',app/'veyra_qml_ui.exe')+shutil.copytree(ROOT/'qml/Veyra',app/'qml/Veyra',dirs_exist_ok=True)+profile=out/'profile';migrated=flavor=='AMD'+if migrated:shutil.copytree(BASE/'tests'/TASK/'vfg-ui-v1/profile',profile)+media=BASE/'tests/runtime-size-20261004/ui-v1/preview-720p30.mp4';assert media.is_file()+main=app/'qml/Veyra/Main.qml';original=main.read_bytes();source=original.decode('utf8');at=source.rfind('}')+loader='\nLoader { source: '+json.dumps((ROOT/'scripts/acceptance/release-2.0.3-policy-ui.qml').as_uri())+'; onLoaded: { item.flavor='+json.dumps(flavor)+'; item.media='+json.dumps(str(media))+'; item.evidence='+json.dumps(str(out))+'; item.migrated='+str(migrated).lower()+' } }\n'+env=os.environ.copy();env.update(TEMP=str(tmp),TMP=str(tmp),VEYRA_LOG_FILE=str(logs/'engine.log'),QT_FORCE_STDERR_LOGGING='1',QML_DISABLE_DISK_CACHE='1')+for k in ('QT_QPA_PLATFORM','QT_QUICK_BACKEND','VEYRA_UI_RHI','VEYRA_VFG_RUNTIME','QT_QPA_PLATFORM_PLUGIN_PATH'):env.pop(k,None)+env['PATH']=os.pathsep.join((env['WINDIR']+'/System32',env['WINDIR'],env['WINDIR']+'/System32/Wbem'))+try:+ main.write_text(source[:at]+loader+source[at:],encoding='utf8')+ with (logs/'console.log').open('xb') as log:+ code=subprocess.run(['.\\veyra_qml_ui.exe','--page','pro','--size','1280x900','--reduced-motion','--data-dir',str(profile),'--exit-after','130000'],executable=str(app/'veyra_qml_ui.exe'),cwd=app,env=env,stdout=log,stderr=subprocess.STDOUT,timeout=145).returncode+finally:main.write_bytes(original)+console=(logs/'console.log').read_text(encoding='utf8',errors='replace');engine=(logs/'engine.log').read_text(encoding='utf8',errors='replace')+assert code==0 and 'POLICY_UI_PASS' in console and 'POLICY_UI_FAIL' not in console,console[-5000:]+assert '[fsr-sr] provider=3.1.' in engine and 'failures=0' in engine,engine[-4000:]+if migrated:assert '已关闭当前硬件或包不支持的效果' in engine+assert not any(s in console for s in ('ReferenceError:','TypeError:','is not a type'))+(logs/'summary.json').write_text(json.dumps(dict(flavor=flavor,exit=code,hardware='RTX5070 / 616.56',policy=True,fsrSrPlayback=True,amdInference=False,migrated=migrated),indent=2),encoding='utf8')+print('POLICY GUI PASS',flavor,logs,flush=True)diff --git a/scripts/acceptance/release-2.0.3-policy-ui.qml b/scripts/acceptance/release-2.0.3-policy-ui.qmlnew file mode 100644index 00000000..4d46fa20--- /dev/null+++ b/scripts/acceptance/release-2.0.3-policy-ui.qml@@ -0,0 +1,72 @@+// Runs only in an owned test copy, with the production bridge and actual GPU.+import QtQuick+Item {+ id: test+ property var appWindow: Window.window+ property string flavor: ""+ property string media: ""+ property string evidence: ""+ property bool migrated: false+ property int step: 0+ property int ticks: 0+ property int waited: 0+ function find(item,name){if(item.objectName===name)return item;for(const c of item.children||[]){const r=find(c,name);if(r)return r}return null}+ function check(ok,why){if(!ok){console.error("POLICY_UI_FAIL",flavor,step,why);timer.stop();Qt.quit();throw new Error(why)}}+ function next(n){step=n;waited=0}+ function shot(name){appWindow.contentItem.grabToImage(r=>check(r.saveToFile(evidence+"/"+name+".png"),"screenshot "+name))}+ Connections {target: veyra;function onNotice(message,error){console.log("POLICY_NOTICE",message,error)}}+ Timer {id:timer;interval:200;repeat:true;running:true+ onTriggered:{try{+ if(++test.ticks>600)test.check(false,"120 second deadline");++test.waited+ if(!test.flavor.length||test.waited<8)return+ const nv=test.flavor==="NVIDIA"+ if(test.step===0){+ const caps=veyra.effectCapabilities+ test.check(veyra.nrRuntimeChoices.length===4,"four NR versions retained")+ for(const row of veyra.nrRuntimeChoices)test.check(row.disabled===(row.id==="4"||!nv),"NR availability "+row.id)+ test.check(veyra.fgBackendChoices.length===5,"five FG backends retained")+ for(const row of veyra.fgBackendChoices)test.check(row.disabled===(row.id==="fsr4"||(!nv&&(row.id==="dlss"||row.id==="vfg"))),"FG availability "+row.id)+ test.check(veyra.srBackendChoices.length===3,"three SR backends retained")+ for(const row of veyra.srBackendChoices)test.check(row.disabled===(!nv&&row.id!=="5"),"SR availability "+row.id)+ test.check(!caps.fsr4.available&&caps.fsr4.reason.length>0,"NVIDIA hardware rejects ML despite shared FSR components")+ test.check(caps.xess.available&&caps.fsr3.available&&caps.sr5.available,"cross-vendor components retained")+ if(test.migrated){+ test.check(!veyra.fgEnabled&&veyra.fgBackendName==="vfg"&&veyra.vfgQuality===1,"unavailable restored FG disabled without losing list parameters")+ veyra.nodeMode=1;test.check(!veyra.fgEnabled&&veyra.fgBackendName==="vfg"&&veyra.vfgQuality===2,"node restore retains parameters and disables FG")+ veyra.nodeMode=0+ }+ const before=veyra.fgBackendName,count=veyra.chain.length+ veyra.fgBackendName="fsr4";test.check(veyra.fgBackendName===before,"direct unsupported FG rejected")+ test.check(veyra.addEffect("fsr4-fg")<0&&veyra.chain.length===count,"unsupported stage addition rejected atomically")+ veyra.nrEnabled=false;veyra.fgEnabled=false;veyra.srEnabled=false+ test.appWindow.page="pro";test.next(1)+ }else if(test.step===1){+ const selector=test.find(test.appWindow.contentItem,"list-sr-backend")+ test.check(selector&&selector.options.length===3,"real List SR selector")+ for(const o of selector.options)test.check(o.disabled===(!nv&&o.id!=="5"),"List disabled choice "+o.id)+ const old=veyra.videoSrQuality+ if(!nv){selector.picked("4");test.check(veyra.videoSrQuality===old,"List cannot select missing NVIDIA runtime")}+ selector.picked("5");test.check(veyra.videoSrQuality===5,"List FSR selection works")+ veyra.srEnabled=true;test.check(veyra.srEnabled,"supported SR enable")+ veyra.setOpticalFlowChoice(1);veyra.openPath(test.media);test.next(2)+ }else if(test.step===2){+ if(veyra.applying||!veyra.running||veyra.position<0.7)return+ test.check(veyra.srActive&&veyra.videoSrQuality===5,"actual FSR SR playback")+ test.shot("list-fsr");veyra.stopPlayback();test.next(3)+ }else if(test.step===3){+ if(veyra.hasSource)return+ veyra.srEnabled=false;veyra.nodeMode=1;test.appWindow.page="node";test.next(4)+ }else if(test.step===4){+ const flow=test.find(test.appWindow.contentItem,"node-flow-choice")+ test.check(flow&&flow.options.map(o=>o.id).join(",")==="0,1","node optical-flow IDs")+ for(const row of veyra.effectCatalog){+ if(["dlss-fg","vfg-fg","video-hdr"].indexOf(row.id)>=0)test.check(row.disabled===!nv,"Node disabled catalog "+row.id)+ if(row.id==="fsr4-fg")test.check(row.disabled&&row.note.length>0,"FSR4 Node entry remains gray with reason")+ }+ test.shot("node");test.next(5)+ }else if(test.step===5){+ console.log("POLICY_UI_PASS",test.flavor,"actual RTX5070; no AMD inference claim");timer.stop();Qt.quit()+ }+ }catch(e){console.error("POLICY_UI_FAIL",e.message);timer.stop();Qt.quit()}}+ }+}diff --git a/scripts/acceptance/release-2.0.3-tests.py b/scripts/acceptance/release-2.0.3-tests.pynew file mode 100644index 00000000..64e93a6e--- /dev/null+++ b/scripts/acceptance/release-2.0.3-tests.py@@ -0,0 +1,67 @@+"""Run bounded regressions using the actual vendor payload in owned test copies."""+import json, os, shutil, subprocess, sys+from pathlib import Path+ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra'); TASK = 'release-2.0.3-20261004'+BUILD = BASE / 'build' / TASK; TESTS = BASE / 'tests' / TASK+QT = Path('C:/veyra-deps/qt-veyra/6.8.3/msvc2022_64')+label = sys.argv[1]; flavor = sys.argv[2]+assert label.replace('-', '').isalnum() and flavor in ('NVIDIA', 'AMD')+out = TESTS / label; out.mkdir(parents=True, exist_ok=False)+logs = BASE / 'logs' / TASK / label; logs.mkdir(parents=True, exist_ok=False)+tmp = BASE / 'tmp' / TASK / label; tmp.mkdir(parents=True, exist_ok=False)+app = TESTS / ('app-' + flavor + ('-shared-fsr' if flavor == 'NVIDIA' else ''))+if not app.exists():+ stage = BASE / 'releases' / TASK / ('Veyra-2.0.3-' + flavor + '-win64-portable')+ manifest = json.loads((stage / 'package-manifest.json').read_text(encoding='utf8'))+ for row in manifest['files']:+ source = stage / row['path']; target = app / row['path']; target.parent.mkdir(parents=True, exist_ok=True)+ # Mutable test/QML/manifest files are private; immutable runtime objects+ # may be hardlinked so test profiles cannot alter the release stage.+ if source.suffix.lower() in {'.exe', '.qml', '.js', '.json', '.txt', '.md'}: shutil.copyfile(source, target)+ else: target.hardlink_to(source)+shutil.copyfile(BUILD / 'veyra_qml_ui.exe', app / 'veyra_qml_ui.exe')+shutil.copytree(ROOT / 'qml/Veyra', app / 'qml/Veyra', dirs_exist_ok=True)+for name in ('veyra_effect_availability_tests', 'veyra_vfg_settings_tests', 'veyra_fsr_dispatch_tests',+ 'veyra_fsr_switch_tests', 'veyra_xbox_tests', 'veyra_capture_audio_tests', 'veyra_qml_quick_tests',+ 'veyra_lmxxf_nr_tests', 'veyra_ui_i18n_tests', 'veyra_preset_library_tests', 'veyra_export_probe',+ 'veyra_vfg_gpu_tests', 'veyra_vfg_export_probe'):+ shutil.copyfile(BUILD / (name + '.exe'), app / (name + '.exe'))+shutil.copytree(BUILD / 'lmxxf-test-runtime', app / 'lmxxf-test-runtime', dirs_exist_ok=True)+shutil.copytree(ROOT / 'tests/qml/quick', app / 'qml-tests', dirs_exist_ok=True)+for name in ('Qt6Test.dll', 'Qt6QuickTest.dll'): shutil.copyfile(QT / 'bin' / name, app / name)+env = os.environ.copy()+env.update(TEMP=str(tmp), TMP=str(tmp), CUDA_CACHE_PATH=str(tmp / 'cuda-cache'),+ QT_QPA_PLATFORM='offscreen', QT_QUICK_BACKEND='software', QT_QUICK_CONTROLS_STYLE='Basic',+ QML_DISABLE_DISK_CACHE='1', QT_FORCE_STDERR_LOGGING='1')+env['QT_QPA_PLATFORM_PLUGIN_PATH'] = str(QT / 'plugins/platforms')+env['PATH'] = os.pathsep.join((env['WINDIR'] + '/System32', env['WINDIR'], env['WINDIR'] + '/System32/Wbem'))+for key in ('VEYRA_VFG_RUNTIME', 'VEYRA_UI_RHI'): env.pop(key, None)+cases = [('hardware-matrix', 'veyra_effect_availability_tests', []),+ ('vfg-settings', 'veyra_vfg_settings_tests', [str(out / 'vfg-settings')]),+ ('qml-software', 'veyra_qml_quick_tests', []),+ ('xbox-loopback', 'veyra_xbox_tests', []),+ ('xbox-float-output', 'veyra_capture_audio_tests', ['--xbox-float-rtp']),+ ('amd-abi-copy', 'veyra_lmxxf_nr_tests', []),+ ('ui-i18n', 'veyra_ui_i18n_tests', []),+ ('nr-preset-persistence', 'veyra_preset_library_tests', []),+ ('fsr-independent', 'veyra_fsr_dispatch_tests', []),+ ('fsr-switch', 'veyra_fsr_switch_tests', [str(out)]),+ ('vfg-native', 'veyra_vfg_gpu_tests', [str(app / 'runtime/nvidia-vfg'), '1280', '720'])]+if len(sys.argv) > 3: cases = [r for r in cases if r[0] in sys.argv[3:]]+assert cases+results = []+for name, binary, args in cases:+ child = env.copy()+ if name in ('fsr-independent', 'fsr-switch', 'vfg-native'):+ child.pop('QT_QPA_PLATFORM', None); child.pop('QT_QUICK_BACKEND', None)+ with (logs / (name + '.log')).open('xb') as log:+ try:+ code = subprocess.run([str(app / (binary + '.exe')), *args], cwd=app, env=child,+ stdout=log, stderr=subprocess.STDOUT, timeout=290).returncode+ except subprocess.TimeoutExpired: code = 124+ results.append(dict(test=name, exit=code, gpuPackage=flavor, log=str(logs / (name + '.log'))))+ print(results[-1], flush=True)+ if code: print((logs / (name + '.log')).read_text(encoding='utf8', errors='replace')[-4000:], flush=True)+(logs / 'summary.json').write_text(json.dumps(results, indent=2), encoding='utf8')+raise SystemExit(any(r['exit'] for r in results))diff --git a/scripts/acceptance/release-2.0.3-vfg-ui.py b/scripts/acceptance/release-2.0.3-vfg-ui.pynew file mode 100644index 00000000..f380809a--- /dev/null+++ b/scripts/acceptance/release-2.0.3-vfg-ui.py@@ -0,0 +1,62 @@+"""Real GUI hot switches, persistence and process-isolated VFG export; each run <300s."""+import json, os, re, shutil, subprocess, sys+from pathlib import Path+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='release-2.0.3-20261004'+APP=BASE/'tests'/TASK/'app-NVIDIA-shared-fsr';BUILD=BASE/'build'/TASK+FFPROBE=shutil.which('ffprobe');assert FFPROBE+label=sys.argv[1];out=BASE/'tests'/TASK/label;logs=BASE/'logs'/TASK/label;tmp=BASE/'tmp'/TASK/label+packaged=len(sys.argv)>2 and sys.argv[2]=='package'+if packaged:+ APP=Path(sys.argv[3]).resolve();assert APP.is_relative_to(BASE.resolve()) and (APP/'vfg-runtime-manifest.json').is_file()+for p in (out,logs,tmp):p.mkdir(parents=True,exist_ok=False)+env=os.environ.copy();env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_VFG_RUNTIME=str(BASE/'test-packages/runtime-size-20261004/Veyra-2.0.2-slim-20261004-win64-portable/runtime/nvidia-vfg'),QT_FORCE_STDERR_LOGGING='1',QML_DISABLE_DISK_CACHE='1')+for key in ('QT_QPA_PLATFORM','QT_QUICK_BACKEND','VEYRA_UI_RHI'):env.pop(key,None)+if packaged:+ env.pop('VEYRA_VFG_RUNTIME',None)+ windir=Path(env['WINDIR']);env['PATH']=os.pathsep.join(map(str,(windir/'System32',windir,windir/'System32/Wbem')))+else:+ for name in ('veyra_qml_ui.exe',):shutil.copy2(BUILD/name,APP/name)+ shutil.copytree(ROOT/'qml',APP/'qml',dirs_exist_ok=True)+media=out/'preview-720p30.mp4';short=BASE/'tests/runtime-size-20261004/export-basic-v2/input.mp4'+previous=BASE/'tests/runtime-size-20261004/ui-v1/preview-720p30.mp4'+if previous.exists() and label!='ui-v1':media=previous+else:+ with (logs/'fixture.log').open('xb') as log:subprocess.run(['ffmpeg','-v','warning','-n','-f','lavfi','-i','testsrc2=size=1280x720:rate=30','-t','90','-c:v','libx264','-preset','ultrafast','-crf','28','-an',str(media)],env=env,stdout=log,stderr=subprocess.STDOUT,timeout=90,check=True)+profile=out/'profile';outputs=out/'outputs';outputs.mkdir()+phases=('run','restore')+if len(sys.argv)>2 and not packaged:+ assert sys.argv[2]=='missing-only'+ phases=('missing',)+ shutil.copytree(BASE/'tests'/TASK/'ui-v2/profile',profile)+main=APP/'qml/Veyra/Main.qml';original=main.read_bytes();source=original.decode('utf8');at=source.rfind('}')+results=[]+try:+ for phase in phases:+ child=env.copy();child['VEYRA_LOG_FILE']=str(logs/(phase+'-engine.log'))+ data=profile+ if phase=='missing':+ data=out/'missing-profile';shutil.copytree(profile,data);child['VEYRA_VFG_RUNTIME']=str(tmp/'missing-runtime')+ loader='\nLoader { source: '+json.dumps((ROOT/'scripts/acceptance/vfg-ui.qml').as_uri())+'; onLoaded: { item.media='+json.dumps(str(media))+'; item.shortMedia='+json.dumps(str(short))+'; item.evidence='+json.dumps(str(out))+'; item.phase='+json.dumps(phase)+' } }\n'+ main.write_text(source[:at]+loader+source[at:],encoding='utf8')+ with (logs/(phase+'.log')).open('xb') as log:+ code=subprocess.run(['.\\veyra_qml_ui.exe','--page','pro','--size','1280x900','--reduced-motion','--export-out',str(outputs),'--data-dir',str(data),'--exit-after','240000'],executable=str(APP/'veyra_qml_ui.exe'),cwd=APP,env=child,stdout=log,stderr=subprocess.STDOUT,timeout=270).returncode+ text=(logs/(phase+'.log')).read_text(encoding='utf8',errors='replace')+ marker={'run':'VFG_UI_PASS','restore':'VFG_UI_RESTORE_PASS','missing':'VFG_UI_MISSING_PASS'}[phase]+ assert code==0 and marker in text and 'VFG_UI_FAIL' not in text,text[-5000:]+ if phase=='run':+ pids=re.findall(r'\[export-worker\] started jobId=\d+ pid=(\d+)',text);assert len(pids)==1,pids+ worker=APP/'logs'/('export-worker-'+pids[0]+'.log')+ assert worker.resolve().is_relative_to(APP.resolve())+ workerText=worker.read_text(encoding='utf8',errors='replace')+ assert 'backend=NVIDIA-VFG vfgQuality=2' in workerText and 'multiplier=8 quality=2' in workerText,workerText[-4000:]+ destination=logs/worker.name;assert destination.resolve().is_relative_to((BASE/'logs'/TASK).resolve())+ shutil.move(str(worker),str(destination))+ results.append({'phase':phase,'returncode':code,'marker':marker});print(results[-1],flush=True)+finally:main.write_bytes(original)+if 'run' in phases:+ files=list(outputs.glob('*.mp4'));assert len(files)==1,files+ probe=json.loads(subprocess.check_output([FFPROBE,'-v','error','-count_frames','-show_streams','-of','json',str(files[0])],env=env,timeout=30))+ v=next(s for s in probe['streams'] if s['codec_type']=='video');assert int(v['nb_read_frames'])==64 and v['r_frame_rate']=='240/1',probe+ results.append({'export':str(files[0]),'probe':probe})+(logs/'summary.json').write_text(json.dumps(results,ensure_ascii=False,indent=2),encoding='utf8')+print('VFG UI PRODUCT PASS',out)diff --git a/scripts/amd-nr/build-lmxxf-runtime.py b/scripts/amd-nr/build-lmxxf-runtime.pyindex e9629903..d620e177 100644--- a/scripts/amd-nr/build-lmxxf-runtime.py+++ b/scripts/amd-nr/build-lmxxf-runtime.py@@ -1,5 +1,5 @@"""Build the pinned MIT runtime from its original checkout; no injection module."""-import argparse, os, re, subprocess+import argparse, hashlib, json, os, re, subprocessfrom pathlib import PathPIN = '78f548749e74824327b8458c57be31a1df78376a'@@ -10,9 +10,24 @@ p.add_argument('--tmp', type=Path, required=True)p.add_argument('--log', type=Path, required=True)a = p.parse_args()source = a.source.resolve()-head = subprocess.check_output(['git','rev-parse','HEAD'],cwd=source,text=True).strip()-if head != PIN or subprocess.check_output(['git','diff','--name-only','HEAD'],cwd=source):- raise SystemExit('Expected an unchanged pinned upstream checkout')+if (source / '.git').exists():+ head = subprocess.check_output(['git','rev-parse','HEAD'],cwd=source,text=True).strip()+ if head != PIN or subprocess.check_output(['git','diff','--name-only','HEAD'],cwd=source):+ raise SystemExit('Expected an unchanged pinned upstream checkout')+else:+ # The corresponding-source archive deliberately omits weights, captures,+ # compiled modules and Git metadata. Validate its supplied source manifest.+ if (source / 'SOURCE_COMMIT.txt').read_text(encoding='utf8').splitlines()[0] != PIN:+ raise SystemExit('Unexpected archived source commit')+ records = json.loads((source.parent / 'source-manifest.json').read_text(encoding='utf8'))+ prefix = source.name + '/'+ selected = [r for r in records if r['path'].startswith(prefix)]+ if not selected:+ raise SystemExit('Missing archived source identities')+ for row in selected:+ file = (source.parent / row['path']).resolve()+ if not file.is_relative_to(source) or file.stat().st_size != row['size'] or hashlib.sha256(file.read_bytes()).hexdigest() != row['sha256']:+ raise SystemExit('Archived source changed: ' + row['path'])attributes = []for file in (source/'src').glob('*.h'):attributes += re.findall(r'__attribute__\(\(([^)]*)\)\)', file.read_text(encoding='utf8'))diff --git a/scripts/package-2.0.3-dependency-source.py b/scripts/package-2.0.3-dependency-source.pynew file mode 100644index 00000000..c81bd614--- /dev/null+++ b/scripts/package-2.0.3-dependency-source.py@@ -0,0 +1,57 @@+"""Exact unchanged dependency sources plus the new MIT runtimes/build materials.++No proprietary SDK, runtime, model, private profile or test media is introduced.+The legacy archive remains nested with its verified identity for reproducibility.+"""+import hashlib, json, subprocess, zipfile+from pathlib import Path+ROOT = Path(__file__).resolve().parents[1]+BASE = Path('E:/项目/Veyra'); OUT = BASE / 'releases/release-2.0.3-20261004'+OLD = BASE / 'releases/2.0.0-final-20261002/Veyra-2.0.0-dependency-source.zip'+LMXXF = BASE / 'deps/lmxxf-nr-20261003'+BAD = {'.dll', '.exe', '.lib', '.pdb', '.obj', '.o', '.a', '.so', '.dylib', '.onnx', '.pth', '.pt', '.f16', '.f32',+ '.i32', '.fp8', '.bin', '.hsaco', '.co', '.spv', '.whl', '.log', '.err', '.dmp', '.mp4', '.mkv', '.avi', '.addon64', '.zip', '.7z',+ '.png', '.jpg', '.jpeg', '.webp', '.csv', '.gz'}++def digest(p):+ with p.open('rb') as f: return hashlib.file_digest(f, 'sha256').hexdigest()++def git(p, *args): return subprocess.check_output(['git', '-C', str(p), *args]).decode().strip()+assert digest(OLD) == 'a293552434381a71169c1c27658f07202d67243ca82e748936b9db15077ce0de'+assert git(LMXXF, 'rev-parse', 'HEAD') == '78f548749e74824327b8458c57be31a1df78376a'+assert not git(LMXXF, 'diff', '--name-only', 'HEAD')+OUT.mkdir(parents=True, exist_ok=True)+target = OUT / 'Veyra-2.0.3-dependency-source.zip'; records = []++def put(z, name, data):+ z.writestr(name, data)+ records.append(dict(path=name, size=len(data), sha256=hashlib.sha256(data).hexdigest()))++with zipfile.ZipFile(target, 'x', zipfile.ZIP_DEFLATED, compresslevel=6) as z:+ # Already compressed archive: retain byte identity and avoid recompression.+ z.write(OLD, 'unchanged/' + OLD.name, compress_type=zipfile.ZIP_STORED)+ records.append(dict(path='unchanged/' + OLD.name, size=OLD.stat().st_size, sha256=digest(OLD)))+ for name in filter(None, git(LMXXF, 'ls-files', '-z').split('\0')):+ f = LMXXF / name+ if f.is_file() and f.suffix.lower() not in BAD and Path(name).parts[0] != 'conversation' and '_cubin' not in f.name:+ put(z, 'lmxxf-78f5487/' + name, f.read_bytes())+ put(z, 'lmxxf-78f5487/SOURCE_COMMIT.txt', (git(LMXXF, 'rev-parse', 'HEAD') + '\nUnmodified tracked source files; model weights, compiled HIP modules, captured images, measurement CSVs, archives and conversation transcripts excluded.\n').encode())+ samples = BASE / 'deps/vfg-samples-20261003'+ sample_audit = json.loads((BASE / 'logs/vfg-research-20261003/official-samples.json').read_text(encoding='utf8'))+ assert sample_audit['commit'] == '52011f89c1741d06b40ea312af1f20be8be9ec62'+ for name in ('LICENSE', 'apps/VideoFrameGenerationEffectApp/VideoFrameGenerationEffectApp.cpp', 'apps/VideoFrameGenerationEffectApp/README.md'):+ expected = next(r for r in sample_audit['files'] if Path(r['path']) == samples / name)+ assert (samples / name).stat().st_size == expected['bytes'] and digest(samples / name) == expected['sha256'].lower()+ put(z, 'vfg-mit-reference/' + name, (samples / name).read_bytes())+ for name in ('scripts/amd-nr/build-lmxxf-runtime.py', 'scripts/amd-nr/msvc-compat.h', 'scripts/amd-nr/prepare-local-runtime.py',+ 'third_party/lmxxf/VEYRA_ORIGIN.md', 'third_party/lmxxf/LICENSE', 'docs/BUILD_2.0.3.md',+ 'docs/RUNTIME_COMPONENTS_2.0.3.md', 'scripts/package-vendor-release.py'):+ put(z, 'veyra/' + name, (ROOT / name).read_bytes())+ put(z, 'README.txt', b'Veyra 2.0.3 corresponding open-source dependencies. Extract unchanged/Veyra-2.0.0-dependency-source.zip for the exact existing Qt 6.8.3, patched FFmpeg, Chiaki, Moonlight, Xbox/WebRTC, OpenSSL and FidelityFX2.3.0 sources. New unmodified lmxxf commit 78f5487, actual MSVC compatibility/rebuild recipe and MIT VFG sample reference are included here. Use the v2.0.3 application tag for the exact Veyra integration, shaders, SoundTouch and patches. Models and proprietary NVIDIA SDKs/runtimes remain separate; obtain development SDKs from their official authors. Source-only packaging is not an independent legal audit.\n')+ z.writestr('source-manifest.json', json.dumps(records, indent=2))+with zipfile.ZipFile(target) as z:+ for row in records:+ with z.open(row['path']) as f: assert hashlib.file_digest(f, 'sha256').hexdigest() == row['sha256'], row['path']+sha = digest(target)+target.with_suffix('.zip.sha256').write_text(sha + ' ' + target.name + '\n', encoding='ascii')+print(json.dumps(dict(path=str(target), files=len(records), bytes=target.stat().st_size, sha256=sha)), flush=True)diff --git a/scripts/package-qml-release.py b/scripts/package-qml-release.pyindex 365f1379..770b779a 100644--- a/scripts/package-qml-release.py+++ b/scripts/package-qml-release.py@@ -302,7 +302,7 @@ foreach($f in $lock.files) {if args.release:manifest['correspondingSource'] = dict(application='https://github.com/Likely7/Veyra-NRVideo/archive/refs/tags/v' + version + '.zip',- dependencies='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.0/Veyra-2.0.0-dependency-source.zip',+ dependencies='https://github.com/Likely7/Veyra-NRVideo/releases/download/v' + version + '/Veyra-' + version + '-dependency-source.zip' if version == '2.0.3' else 'https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.0/Veyra-2.0.0-dependency-source.zip',instructions='docs/BUILD_' + version + '.md')if not args.no_archive:manifest['sourceSnapshot'] = source_snapshot(args.output, args.label, digest(stage / 'veyra_qml_ui.exe'))diff --git a/scripts/package-vendor-release.py b/scripts/package-vendor-release.pynew file mode 100644index 00000000..576a50e4--- /dev/null+++ b/scripts/package-vendor-release.py@@ -0,0 +1,260 @@+"""Split a freshly assembled QML product by usable GPU runtime, never by brand name.++Publisher identities are checked while packaging. The application still permits+user-supplied replacement runtimes. SDKs, user data and driver DLLs are excluded.+"""+import argparse+import importlib.util+import json+import os+from pathlib import Path+import shutil+import subprocess+import sys++ROOT = Path(__file__).resolve().parents[1]+BASE = Path('E:/项目/Veyra')+spec = importlib.util.spec_from_file_location('qml_package', ROOT / 'scripts/package-qml-release.py')+pkg = importlib.util.module_from_spec(spec)+spec.loader.exec_module(pkg)+VFG_KEEP = {'cudart64_12.dll', 'NVCVImage.dll', 'nvngxruntime.dll', 'NVVideoEffects.dll', 'nvVFXVideoFrameGeneration.dll'}+AMD_RUNTIME_SHA = '2693cdb760db564ec6f34b39b8a7e554d35cbab5df2366bff030e1611756e3d8'+++def write_json(path, value):+ path.parent.mkdir(parents=True, exist_ok=True)+ path.write_text(json.dumps(value, ensure_ascii=False, indent=2) + '\n', encoding='utf8')+++def record(path, name):+ return dict(path=name, size=path.stat().st_size, sha256=pkg.digest(path))+++def checked_copy(source, stage, name, identity=None):+ pkg.validate_payload(name)+ if identity and (source.stat().st_size != identity['size'] or pkg.digest(source) != identity['sha256'].lower()):+ raise ValueError('Publisher identity mismatch: ' + str(source))+ target = stage / name+ target.parent.mkdir(parents=True, exist_ok=True)+ shutil.copyfile(source, target)+++def keep_common(name, flavor):+ if flavor == 'NVIDIA':+ return not name.startswith('runtime/amd-nr/')+ return not name.startswith(('runtime/experimental/nvngx', 'runtime/experimental/nr-',+ 'runtime/experimental/fallback-dlssg', 'runtime/experimental/dlssg-kernels/',+ 'runtime/nvidia-vfg/', 'runtime/config/', 'licenses/nvidia-vfg/',+ 'licenses/vfg-samples/'))+++def check_vendor(stage, flavor):+ names = {f.relative_to(stage).as_posix() for f in stage.rglob('*') if f.is_file()}+ if flavor == 'NVIDIA':+ assert not any(n.startswith('runtime/amd-nr/') for n in names)+ assert {Path(n).name for n in names if n.startswith('runtime_local/amd/fidelityfx/')} == {'amd_fidelityfx_loader_dx12.dll', 'amd_fidelityfx_upscaler_dx12.dll', 'amd_fidelityfx_framegeneration_dx12.dll'}+ assert {Path(n).name for n in names if n.startswith('runtime/nvidia-vfg/')} == VFG_KEEP+ else:+ assert not any(n.startswith(('runtime/nvidia-vfg/', 'runtime/experimental/nvngx', 'runtime/experimental/nr-',+ 'runtime/experimental/fallback-dlssg', 'runtime/experimental/dlssg-kernels/')) for n in names)+ assert 'runtime/amd-nr/LmxxfNrRuntime.dll' in names+ assert 'runtime_local/amd/fidelityfx/amd_fidelityfx_framegeneration_dx12.dll' in names+ assert not any(Path(n).name.lower() in {'nvcuda.dll', 'nvopticalflow64.dll', 'amdhip64.dll', 'amdhip64_6.dll', 'amdhip64_7.dll'} for n in names)+ manifest = json.loads((stage / 'release-runtime-manifest.json').read_text(encoding='utf8'))+ for row in manifest['files']:+ f = stage / row['path']+ assert f.stat().st_size == row['size'] and pkg.digest(f) == row['sha256'].lower(), row['path']+ assert json.loads((stage / 'runtime/experimental/release-runtime-manifest.json').read_text(encoding='utf8')) == manifest+ # Every distributed runtime (including HIP code objects and NR weights) has+ # a source/identity row; nothing is silently introduced by a copytree.+ runtime_names = {n for n in names if n.startswith(('runtime/', 'runtime_local/')) and+ Path(n).suffix.lower() not in {'.json', '.txt', '.md'}}+ assert runtime_names <= {r['path'] for r in manifest['files']}, runtime_names - {r['path'] for r in manifest['files']}+ assert pkg.REQUIRED <= names, pkg.REQUIRED - names+ return names+++def signature_audit(paths):+ env = {k: v for k, v in os.environ.items() if k.upper() != 'PSMODULEPATH'}+ env['VEYRA_VENDOR_AUDIT'] = json.dumps([str(p) for p in paths])+ script = r'''$ErrorActionPreference='Stop'; $rows=foreach($p in ($env:VEYRA_VENDOR_AUDIT | ConvertFrom-Json)) { $s=Get-AuthenticodeSignature -LiteralPath $p; $v=(Get-Item -LiteralPath $p).VersionInfo; [pscustomobject]@{name=[IO.Path]::GetFileName($p);version="$($v.FileMajorPart).$($v.FileMinorPart).$($v.FileBuildPart).$($v.FilePrivatePart)";signature=[string]$s.Status;signer=$s.SignerCertificate.Subject} }; $rows | ConvertTo-Json -Depth 4'''+ rows = json.loads(subprocess.check_output(['powershell.exe', '-NoProfile', '-NonInteractive', '-Command', script], env=env, timeout=120).decode('utf-8-sig'))+ for row in rows:+ assert row['signature'] == 'Valid', row+ return {r['name']: r for r in rows}+++def stage_packages(args):+ common = json.loads((args.common_stage / 'package-manifest.json').read_text(encoding='utf8'))+ runtimes = json.loads((args.common_stage / 'release-runtime-manifest.json').read_text(encoding='utf8'))+ vfg = json.loads((args.runtime_source / 'vfg-runtime-manifest.json').read_text(encoding='utf8'))+ assert {r['name'] for r in vfg['files']} == VFG_KEEP+ vfg_ids = signature_audit([args.runtime_source / r['path'] for r in vfg['files']])+ assert pkg.digest(args.amd_source / 'LmxxfNrRuntime.dll') == AMD_RUNTIME_SHA+ amd = json.loads((args.amd_source / 'amd-nr-local-manifest.json').read_text(encoding='utf8'))+ for flavor in ('NVIDIA', 'AMD'):+ stage = args.output / f'Veyra-{args.version}-{flavor}-win64-portable'+ stage.mkdir(parents=True, exist_ok=False)+ for row in common['files']:+ if row['path'] in {'release-runtime-manifest.json', 'runtime/experimental/release-runtime-manifest.json'}:+ continue+ if keep_common(row['path'], flavor):+ checked_copy(args.common_stage / row['path'], stage, row['path'], row)+ rows = [r for r in runtimes['files'] if keep_common(r['path'], flavor)]+ if flavor == 'NVIDIA':+ vfg.update(localOnly=False, distributionAuthorized='2026-10-04 user-authorized 2.0.3 Release',+ identityAndLicenseIncluded=True, publicDistributionAudited=False)+ for row in vfg['files']:+ checked_copy(args.runtime_source / row['path'], stage, row['path'], row)+ identity = vfg_ids[row['name']]+ rows.append(dict(row, source='official nvidia-vfx 0.2.0.0 wheel / Video Effects SDK 1.3.0',+ fileVersion=identity['version'], authenticode=identity['signature'], signer=identity['signer']))+ write_json(stage / 'vfg-runtime-manifest.json', vfg)+ for folder in ('nvidia-vfg', 'vfg-samples'):+ for f in (args.runtime_source / 'licenses' / folder).rglob('*'):+ if f.is_file(): checked_copy(f, stage, 'licenses/' + folder + '/' + f.relative_to(args.runtime_source / 'licenses' / folder).as_posix())+ else:+ amd_rows = []+ for row in amd['files']:+ source = args.amd_source / row['path']+ if row['path'] == 'LOCAL-EXPERIMENT.txt': continue+ name = 'runtime/amd-nr/' + row['path']+ checked_copy(source, stage, name, row)+ item = dict(row, path=name, name=Path(name).name,+ source='lmxxf/dlss5-on-amd-9070xt-porting 78f548749e74824327b8458c57be31a1df78376a; user-supplied Magpie-DLSS5-AMD-0.39 assets',+ experimental=True, removable=True, modified=False)+ if name.endswith('LmxxfNrRuntime.dll'):+ item.update(source='Veyra-built MIT lmxxf host ABI; actual source and patches in corresponding-source bundle',+ authenticode='NotSigned', fileVersion='0.0.0.0', modified=True)+ rows.append(item); amd_rows.append(item)+ write_json(stage / 'runtime/amd-nr/runtime-manifest.json', dict(schema=2, upstream=amd['upstream'],+ inferenceVerified=False, hardware=['RX 9000 / gfx1200 / gfx1201'], hipRequirement='AMD driver HIP 7 in System32; not included',+ license='LICENSE-lmxxf-MIT.txt', files=amd_rows))+ runtime_manifest = dict(schema=3, package=args.version, gpuPackage=flavor, enforcedAtRuntime=False,+ excludedOtherVendorOnlyRuntimes=True, files=rows)+ write_json(stage / 'release-runtime-manifest.json', runtime_manifest)+ write_json(stage / 'runtime/experimental/release-runtime-manifest.json', runtime_manifest)+ text = ('NVIDIA: NR Lecram / SF-v2 / original, DLSS/RTX SR, DLSS FG, VFG 2-8X, FSR 3.1 and XeSS. No AMD NR. Shared FidelityFX 2.3.0 components remain; FSR4 ML is disabled on NVIDIA.\n'+ if flavor == 'NVIDIA' else 'AMD: lmxxf NR 0.39 (RX9000, requires HIP 7), FSR4 with FSR3.1 compatibility and XeSS. No NVIDIA DLSS/NGX/VFG/CUDA runtime. AMD inference still awaits physical RX9000 verification.\n')+ (stage / 'GPU-PACKAGE.txt').write_text('Veyra ' + args.version + ' / ' + flavor + '\n' + text ++ 'Unsupported functions stay visible and disabled. Use the package matching the GPU used by Veyra. Extract with 7-Zip, then run veyra_qml_ui.exe. Model/DLL bytes are unmodified; default effects are off.\n', encoding='utf8')+ check_vendor(stage, flavor)+ manifest = dict(common, gpuPackage=flavor, candidate=args.version, localOnly=False,+ worktreeDirty=True, releaseReady=False, sourceSnapshot=None)+ manifest['files'] = [record(f, f.relative_to(stage).as_posix()) for f in sorted(stage.rglob('*')) if f.is_file()]+ write_json(stage / 'package-manifest.json', manifest)+ print('STAGE PASS', flavor, len(manifest['files']), sum(r['size'] for r in manifest['files']), stage, flush=True)+++def finalize(args):+ assert not subprocess.check_output(['git', '-C', str(ROOT), 'status', '--porcelain']).strip(), 'Commit before finalizing'+ commit = subprocess.check_output(['git', '-C', str(ROOT), 'rev-parse', 'HEAD']).decode().strip()+ for flavor in ('NVIDIA', 'AMD'):+ stage = args.output / f'Veyra-{args.version}-{flavor}-win64-portable'+ manifest = json.loads((stage / 'package-manifest.json').read_text(encoding='utf8'))+ for row in manifest['files']:+ f = stage / row['path']+ assert f.stat().st_size == row['size'] and pkg.digest(f) == row['sha256'], row['path']+ assert pkg.digest(stage / 'veyra_qml_ui.exe') == pkg.digest(args.build / 'veyra_qml_ui.exe')+ for name in ('README.md', 'README_EN.md', 'README_CN.md', 'THIRD_PARTY_NOTICES.md'):+ checked_copy(ROOT / name, stage, name)+ for name in ('BUILD_' + args.version + '.md', 'RUNTIME_COMPONENTS_' + args.version + '.md',+ 'RELEASE_NOTES_' + args.version + '.md', 'RELEASE_2.0.3_ACCEPTANCE_2026-10-04.md'):+ checked_copy(ROOT / 'docs' / name, stage, 'docs/' + name)+ checked_copy(ROOT / 'docs' / ('RELEASE_NOTES_' + args.version + '.md'), stage, 'RELEASE_NOTES.md')+ for f in (ROOT / 'qml/Veyra').rglob('*'):+ if f.is_file(): assert pkg.digest(f) == pkg.digest(stage / 'qml/Veyra' / f.relative_to(ROOT / 'qml/Veyra')), f+ check_vendor(stage, flavor)+ manifest.update(baseCommit=commit, sourceArchiveCommit=commit, worktreeDirty=False, releaseReady=True,+ correspondingSource=dict(application=f'https://github.com/Likely7/Veyra-NRVideo/archive/refs/tags/v{args.version}.zip',+ dependencies=f'https://github.com/Likely7/Veyra-NRVideo/releases/download/v{args.version}/Veyra-{args.version}-dependency-source.zip',+ instructions=f'docs/BUILD_{args.version}.md'))+ manifest.pop('sourceSnapshot', None)+ manifest['files'] = [record(f, f.relative_to(stage).as_posix()) for f in sorted(stage.rglob('*')) if f.is_file() and f.name != 'package-manifest.json']+ write_json(stage / 'package-manifest.json', manifest)+ print('FINALIZE PASS', flavor, commit, len(manifest['files']), flush=True)+++def archive(args):+ for flavor in ('NVIDIA', 'AMD'):+ stage = args.output / f'Veyra-{args.version}-{flavor}-win64-portable'+ check_vendor(stage, flavor)+ manifest = json.loads((stage / 'package-manifest.json').read_text(encoding='utf8'))+ assert manifest['releaseReady'] and not manifest['worktreeDirty']+ destination = Path(str(stage) + '.7z')+ assert not destination.exists()+ tmp = BASE / 'tmp' / 'release-2.0.3-20261004' / ('compress-' + flavor)+ tmp.mkdir(parents=True, exist_ok=False)+ env = os.environ.copy(); env.update(TEMP=str(tmp), TMP=str(tmp))+ with (args.output / (flavor + '-archive.log')).open('xb') as log:+ subprocess.run([str(args.seven_zip), 'a', '-t7z', '-m0=lzma2', '-mx=5', '-md=256m', '-mmt=4', '-ms=on',+ str(destination), stage.name], cwd=args.output, env=env, stdout=log, stderr=subprocess.STDOUT, check=True, timeout=890)+ destination.with_suffix('.7z.sha256').write_text(pkg.digest(destination) + ' ' + destination.name + '\n', encoding='ascii')+ print('ARCHIVE PASS', flavor, destination.stat().st_size, pkg.digest(destination), flush=True)+++def refresh(args):+ # An explicit rebuild replaces only the production executable and QML.+ # Other identities are checked against the previous staging manifest first.+ for flavor in ('NVIDIA', 'AMD'):+ stage = args.output / f'Veyra-{args.version}-{flavor}-win64-portable'+ manifest = json.loads((stage / 'package-manifest.json').read_text(encoding='utf8'))+ for row in manifest['files']:+ f = stage / row['path']+ assert f.stat().st_size == row['size'] and pkg.digest(f) == row['sha256'], row['path']+ checked_copy(args.build / 'veyra_qml_ui.exe', stage, 'veyra_qml_ui.exe')+ for f in (args.build / 'qml/Veyra').rglob('*'):+ if f.is_file(): checked_copy(f, stage, 'qml/Veyra/' + f.relative_to(args.build / 'qml/Veyra').as_posix())+ manifest.update(worktreeDirty=True, releaseReady=False)+ manifest['files'] = [record(f, f.relative_to(stage).as_posix()) for f in sorted(stage.rglob('*')) if f.is_file() and f.name != 'package-manifest.json']+ write_json(stage / 'package-manifest.json', manifest)+ print('REFRESH PASS', flavor, pkg.digest(stage / 'veyra_qml_ui.exe'), flush=True)+++def shared_fsr(args):+ """Reconcile the owned pre-steering stage with the user's FSR exception."""+ stage = args.output / f'Veyra-{args.version}-NVIDIA-win64-portable'+ manifest = json.loads((stage / 'package-manifest.json').read_text(encoding='utf8'))+ for row in manifest['files']:+ f = stage / row['path']+ assert f.stat().st_size == row['size'] and pkg.digest(f) == row['sha256'], row['path']+ legacy = stage / 'runtime_local/amd/fidelityfx/amd_fidelityfx_dx12.dll'+ assert legacy.resolve().is_relative_to(stage.resolve())+ assert pkg.digest(legacy) == '12a5081257ec95b0b53ad51b4a87fb3c03f97fe0bbb59f9496968f8d50ef93a6'+ legacy.unlink() # Only our exact, newly staged file; no runtime DLL is edited.+ shared = json.loads((args.common_stage / 'release-runtime-manifest.json').read_text(encoding='utf8'))+ runtime = json.loads((stage / 'release-runtime-manifest.json').read_text(encoding='utf8'))+ runtime['files'] = [r for r in runtime['files'] if not r['path'].startswith('runtime_local/amd/fidelityfx/')]+ for row in shared['files']:+ if row['path'].startswith('runtime_local/amd/fidelityfx/'):+ checked_copy(args.common_stage / row['path'], stage, row['path'], row)+ runtime['files'].append(row)+ runtime['sharedFidelityFxException'] = '2026-10-04 user requested retaining the existing FSR3.1/4 components together; FSR4 stays disabled on NVIDIA'+ write_json(stage / 'release-runtime-manifest.json', runtime)+ write_json(stage / 'runtime/experimental/release-runtime-manifest.json', runtime)+ (stage / 'GPU-PACKAGE.txt').write_text('Veyra 2.0.3 / NVIDIA\nThree NVIDIA NR versions, DLSS/RTX SR, HDR, DLSS FG, VFG 2-8X, FSR3.1 and XeSS. AMD NR is excluded. Shared FidelityFX SDK 2.3.0 components are retained by user choice; FSR4 ML remains visible but disabled on NVIDIA. Extract with 7-Zip, then run veyra_qml_ui.exe. Unsupported functions stay gray. Driver DLLs and proprietary SDKs are not included.\n', encoding='utf8')+ check_vendor(stage, 'NVIDIA')+ manifest['files'] = [record(f, f.relative_to(stage).as_posix()) for f in sorted(stage.rglob('*')) if f.is_file() and f.name != 'package-manifest.json']+ write_json(stage / 'package-manifest.json', manifest)+ print('SHARED FSR PASS', len(runtime['files']), flush=True)+++if __name__ == '__main__':+ parser = argparse.ArgumentParser()+ parser.add_argument('mode', choices=('stage', 'shared-fsr', 'refresh', 'finalize', 'archive', 'verify'))+ for name in ('common-stage', 'runtime-source', 'amd-source', 'build', 'seven-zip'):+ parser.add_argument('--' + name, type=Path)+ parser.add_argument('--output', type=Path, required=True)+ parser.add_argument('--version', default='2.0.3')+ args = parser.parse_args()+ assert args.output.resolve().is_relative_to(BASE.resolve())+ if args.mode == 'stage': stage_packages(args)+ elif args.mode == 'shared-fsr': shared_fsr(args)+ elif args.mode == 'refresh': refresh(args)+ elif args.mode == 'finalize': finalize(args)+ elif args.mode == 'archive': archive(args)+ else:+ for flavor in ('NVIDIA', 'AMD'):+ stage = args.output / f'Veyra-{args.version}-{flavor}-win64-portable'+ names = check_vendor(stage, flavor)+ print('VENDOR CONTENT PASS', flavor, len(names))diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex 2297e3fe..f3151bbe 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -1,4 +1,5 @@#include "veyra/ui/QmlPlayerBridge.h"+#include "veyra/ui/EffectAvailability.h"#include "veyra/ui/QmlExportQueueModel.h"#include "veyra/ui/UiLanguage.h"#include <QQmlEngine>@@ -150,6 +151,11 @@ bool exportFileClosed(const QString& path){}} // namespace+static QVariantMap currentEffectCapabilities();+static QString unavailableEffects(const engine::EnhancementSettings& settings);+static QString disableUnavailableEffects(engine::ChainConfiguration& configuration);+static ui::EffectGpu effectGpu();+struct QmlPlayerBridge::Impl {// Per-layer on/off before the NR master switch turned them all off.std::vector<bool> nrMasterRestore;@@ -540,6 +546,10 @@ struct QmlPlayerBridge::Impl {error = QObject::tr("导出设置无效:%1").arg(utf8Of(why));return std::nullopt;}+ if (const auto why = unavailableEffects(settings); !why.isEmpty()) {+ error = QObject::tr("导出设置无效:%1").arg(why);+ return std::nullopt;+ }return settings;}@@ -616,6 +626,10 @@ struct QmlPlayerBridge::Impl {}const auto& runtime = activeRuntime();engine::fromChain(runtime, settings);+ if (const auto reason = unavailableEffects(settings); !reason.isEmpty()) {+ veyra::log::warn("effect-availability", reason.toStdString());+ return false;+ }if(!facade.applySettings(settings,engine::runtimeOrder(runtime)))return false;options = engine::PlayerOptions::from(settings,engine::runtimeOrder(runtime));return true;@@ -665,6 +679,13 @@ struct QmlPlayerBridge::Impl {}const auto order = engine::runtimeOrder(*projected);const bool changed = s != previous || order != engine::runtimeOrder(acceptedChain);+ if (apply && changed) {+ if (const auto reason = unavailableEffects(s); !reason.isEmpty()) {+ validation = {false, "当前硬件或包不支持所选效果,请查看组件页"};+ veyra::log::warn("effect-availability", reason.toStdString());+ return false;+ }+ }if(apply && changed && !facade.applySettings(s,order)){facade.setPending(previous);validation={false,"引擎未接受设置,已保留原状态"};@@ -746,22 +767,11 @@ bool prepareStartupPreset(const engine::PresetEntry& entry, engine::ChainSession// The first hardware adapter, the one the engine opens (gfx adapter[0]): 0x10DE NVIDIA,// 0x1002 AMD, 0x8086 Intel, 0 unknown.static uint32_t primaryGpuVendor() {- static const uint32_t vendor = [] {- Microsoft::WRL::ComPtr<IDXGIFactory1> factory;- if (FAILED(CreateDXGIFactory1(IID_PPV_ARGS(&factory)))) return 0u;- Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter;- for (UINT i = 0; factory->EnumAdapters1(i, &adapter) != DXGI_ERROR_NOT_FOUND; ++i, adapter.Reset()) {- DXGI_ADAPTER_DESC1 desc{};- if (FAILED(adapter->GetDesc1(&desc)) || (desc.Flags & DXGI_ADAPTER_FLAG_SOFTWARE)) continue;- return unsigned(desc.VendorId);- }- return 0u;- }();- return vendor;+ return effectGpu().vendor;}// FSR 4 ML frame generation needs an AMD RX 9000; on other GPUs the provider crashed the// whole program (field report 2026-10-01). Known non-AMD adapters are refused up front.-static bool fsr4Possible() { const auto v = primaryGpuVendor(); return v == 0 || v == 0x1002; }+static bool fsr4Possible() { return currentEffectCapabilities().value("fsr4").toMap().value("available").toBool(); }// The menu checks the same default DXGI preference as the engine. The native// backend then verifies CUDA compute capability and the exact adapter LUID.static bool vfgHardwarePossible(){@@ -784,6 +794,154 @@ static unsigned normalizeFgMultiplier(unsigned value,engine::FrameGenerationBack}bool QmlPlayerBridge::amdNrGpu() const { return primaryGpuVendor()==0x1002; }+static ui::EffectGpu effectGpu() {+ static const auto gpu = [] {+ ui::EffectGpu result;+ Microsoft::WRL::ComPtr<IDXGIFactory6> factory;+ if (FAILED(CreateDXGIFactory1(IID_PPV_ARGS(&factory)))) return result;+ for (UINT i = 0;; ++i) {+ Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter;+ if (FAILED(factory->EnumAdapterByGpuPreference(i, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE, IID_PPV_ARGS(&adapter)))) break;+ DXGI_ADAPTER_DESC1 d{};+ if (FAILED(adapter->GetDesc1(&d)) || (d.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) ||+ FAILED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_12_0, __uuidof(ID3D12Device), nullptr))) continue;+ const auto name = QString::fromWCharArray(d.Description);+ result.vendor = d.VendorId;+ result.rtx = name.contains("RTX", Qt::CaseInsensitive);+ result.blackwell = name.contains("RTX 50", Qt::CaseInsensitive) || name.contains("Blackwell", Qt::CaseInsensitive);+ result.ada = name.contains("RTX 40", Qt::CaseInsensitive) || name.contains("Ada", Qt::CaseInsensitive);+ result.rx9000 = name.contains("RX 90", Qt::CaseInsensitive);+ break;+ }+ return result;+ }();+ return gpu;+}++static QVariantMap currentEffectCapabilities() {+ using H = ui::HardwareEffect;+ const auto gpu = effectGpu();+ const auto nr = runtime::localRuntimeDirectory();+ const auto data = runtime::localDataDirectory();+ auto exists = [](const std::filesystem::path& path) { std::error_code ec; return std::filesystem::is_regular_file(path, ec); };+ const auto fsr = data / "amd/fidelityfx";+ const bool fsrLoader = exists(fsr / "amd_fidelityfx_loader_dx12.dll");+ QVariantMap out;+ auto add = [&](const QString& id, H hardware, bool files, const QString& requirement) {+ const bool supported = ui::hardwareSupports(hardware, gpu);+ out[id] = QVariantMap{{"available", supported && files}, {"reason", !supported ? requirement : !files ? QObject::tr("当前包缺少此功能的运行组件") : QString{}}};+ };+ add("nr0", H::NvidiaNr50, exists(nr / "nvngx_dlssnr.dll"), QObject::tr("需要 NVIDIA RTX 50 / Blackwell"));+ add("nr2", H::NvidiaNrSf, exists(nr / "nr-ampere/nvngx_dlssnr.dll"), QObject::tr("需要 NVIDIA RTX 显卡"));+ add("nr3", H::NvidiaNr50, exists(nr / "nr-original/nvngx_dlssnr.dll"), QObject::tr("需要 NVIDIA RTX 50 / Blackwell"));+ add("nr4", H::AmdNr, exists(nr / "../amd-nr/LmxxfNrRuntime.dll"), QObject::tr("需要 AMD RX 9000"));+ wchar_t systemDir[MAX_PATH]{};+ if (GetSystemDirectoryW(systemDir, MAX_PATH) && !exists(std::filesystem::path(systemDir) / "amdhip64_7.dll") && !GetModuleHandleW(L"amdhip64_7.dll")) {+ auto cap = out.value("nr4").toMap();+ if (cap.value("available").toBool()) { cap["available"] = false; cap["reason"] = QObject::tr("需要 AMD HIP 7 驱动运行组件"); out["nr4"] = cap; }+ }+ add("sr0", H::Nvidia, exists(nr / "nvngx_dlss.dll"), QObject::tr("需要 NVIDIA RTX 显卡"));+ for (int i = 1; i <= 4; ++i) add("sr" + QString::number(i), H::Nvidia, exists(nr / "nvngx_vsr.dll"), QObject::tr("需要 NVIDIA RTX 显卡"));+ add("sr5", H::CrossVendor, fsrLoader && exists(fsr / "amd_fidelityfx_upscaler_dx12.dll"), QObject::tr("需要支持 DirectX 12 的硬件显卡"));+ add("dlss", H::Nvidia, exists(nr / "nvngx_dlssg.dll"), QObject::tr("需要 NVIDIA RTX 显卡"));+ add("vfg", H::Vfg, pipeline::VfgBackend::runtimeAvailable(nr.wstring()), QObject::tr("需要 NVIDIA RTX 40 / 50(Ada / Blackwell)"));+ add("xess", H::CrossVendor, exists(data / "intel/experimental/libxess_fg.dll") && exists(data / "intel/experimental/libxell.dll"), QObject::tr("需要支持 DirectX 12 的硬件显卡"));+ add("fsr3", H::CrossVendor, fsrLoader && exists(fsr / "amd_fidelityfx_framegeneration_dx12.dll"), QObject::tr("需要支持 DirectX 12 的硬件显卡"));+ add("fsr4", H::Fsr4, fsrLoader && exists(fsr / "amd_fidelityfx_framegeneration_dx12.dll"), QObject::tr("需要 AMD RX 9000"));+ add("hdr", H::Nvidia, exists(nr / "nvngx_truehdr.dll"), QObject::tr("需要 NVIDIA RTX 显卡"));+ add("flow0", H::Nvidia, true, QObject::tr("需要 NVIDIA RTX 显卡及 NVOF 驱动"));+ add("flow1", H::CrossVendor, true, QObject::tr("需要支持 DirectX 12 的硬件显卡"));+ return out;+}+static QString fgEffectId(engine::FrameGenerationBackend backend) {+ switch (backend) {+ case engine::FrameGenerationBackend::Dlss: return "dlss";+ case engine::FrameGenerationBackend::XeSS: return "xess";+ case engine::FrameGenerationBackend::Fsr: return "fsr3";+ case engine::FrameGenerationBackend::Fsr4: return "fsr4";+ case engine::FrameGenerationBackend::Vfg: return "vfg";+ }+ return {};+}+static QString unavailableEffects(const engine::EnhancementSettings& settings) {+ const auto caps = currentEffectCapabilities();+ QStringList requested;+ if (settings.nr) requested << "nr" + QString::number(int(engine::currentNrRuntime(settings.nrRuntime)));+ if (settings.sr) requested << "sr" + QString::number(settings.videoSrQuality);+ if (settings.multiplier > 1) requested << fgEffectId(settings.frameGenerationBackend);+ if (settings.videoHdr.enabled) requested << "hdr";+ for (const auto& id : requested) {+ const auto cap = caps.value(id).toMap();+ if (!cap.value("available").toBool()) return id + ": " + cap.value("reason").toString();+ }+ return {};+}+static QString disableUnavailableEffects(engine::ChainConfiguration& configuration) {+ const auto caps = currentEffectCapabilities();+ QStringList reasons;+ const auto sanitize = [&](engine::EffectChain& chain, engine::ChainGlobalSettings& globals) {+ for (uint32_t i = 0; i < chain.nodeCount; ++i) {+ auto& node = chain.nodes[i];+ QString id;+ switch (node.type) {+ case engine::EffectType::NrEnhance: id = "nr" + QString::number(int(engine::currentNrRuntime(node.nr.runtime))); break;+ case engine::EffectType::SuperResolution: id = "sr" + QString::number(globals.videoSrQuality); break;+ case engine::EffectType::FrameGeneration: id = fgEffectId(globals.fgBackend); break;+ case engine::EffectType::VideoHdr: id = "hdr"; break;+ default: break;+ }+ if (id.isEmpty() || !node.enabled) continue;+ const auto cap = caps.value(id).toMap();+ if (!cap.value("available").toBool()) {+ node.enabled = false;+ reasons << id + ": " + cap.value("reason").toString();+ }+ }+ if (globals.opticalFlowBackend == engine::OpticalFlowBackend::Nvidia &&+ !caps.value("flow0").toMap().value("available").toBool())+ globals.opticalFlowBackend = engine::OpticalFlowBackend::AmdFidelityFx;+ };+ sanitize(configuration.chain, configuration);+ if (configuration.editor) {+ auto editor = std::make_shared<engine::NodeEditorDocument>(*configuration.editor);+ auto globals = editor->globals.value_or(static_cast<const engine::ChainGlobalSettings&>(configuration));+ sanitize(editor->nodes, globals);+ editor->globals = globals;+ configuration.editor = std::move(editor);+ }+ reasons.removeDuplicates();+ return reasons.join("; ");+}+QVariantMap QmlPlayerBridge::effectCapabilities() const { return currentEffectCapabilities(); }+QVariantMap QmlPlayerBridge::effectAvailability(const QString& id) const {+ const auto& s = settings();+ const QString key = id == "nr" ? "nr" + QString::number(int(engine::currentNrRuntime(s.nrRuntime))) :+ id == "sr" ? "sr" + QString::number(s.videoSrQuality) : id == "video-hdr" ? QString("hdr") :+ id == "frame-generation" ? fgEffectId(s.frameGenerationBackend) :+ id == "dlss-fg" ? QString("dlss") : id == "xess-fg" ? QString("xess") :+ id == "fsr3-fg" ? QString("fsr3") : id == "fsr4-fg" ? QString("fsr4") : id == "vfg-fg" ? QString("vfg") : id;+ const auto caps = effectCapabilities();+ return caps.contains(key) ? caps.value(key).toMap() : QVariantMap{{"available", true}, {"reason", QString{}}};+}+QVariantList QmlPlayerBridge::nrRuntimeChoices() const {+ QVariantList choices;+ const auto caps = effectCapabilities();+ for (const auto& entry : std::initializer_list<std::pair<int, QString>>{{0, "RTX 50 · Lecram"}, {2, "RTX 20–50 · SF-v2"}, {3, tr("RTX 50 · NVIDIA 原版")}, {4, tr("RX 9000 · lmxxf(实验)")}}) {+ const auto cap = caps.value("nr" + QString::number(entry.first)).toMap();+ choices << QVariantMap{{"id", QString::number(entry.first)}, {"label", entry.second}, {"disabled", !cap.value("available").toBool()}, {"note", cap.value("reason")}};+ }+ return choices;+}+QVariantList QmlPlayerBridge::srBackendChoices() const {+ QVariantList choices;+ const auto caps = effectCapabilities();+ for (const auto& entry : std::initializer_list<std::pair<int, QString>>{{0, "DLSS SR"}, {4, tr("RTX 视频超分")}, {5, effectGpu().vendor == 0x1002 ? tr("FSR 3.1 / 4 · 自动兼容") : QString("FSR 3.1")}}) {+ const auto cap = caps.value("sr" + QString::number(entry.first)).toMap();+ choices << QVariantMap{{"id", QString::number(entry.first)}, {"label", entry.second}, {"disabled", !cap.value("available").toBool()}, {"note", cap.value("reason")}};+ }+ return choices;+}+QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesystem::path dataDirectory,QObject* parent): QObject(parent), impl_(std::make_unique<Impl>(engine, std::move(dataDirectory))) {@@ -824,6 +982,16 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesystconst auto migrationNotice = uiText(impl_->facade.error());if (!migrationNotice.isEmpty())QTimer::singleShot(0, this, [this, migrationNotice] { emit notice(migrationNotice, false); });+ QStringList disabled;+ for (auto& configuration : restored.configurations) {+ const auto reason = disableUnavailableEffects(configuration);+ if (!reason.isEmpty()) disabled << reason;+ }+ if (!disabled.isEmpty()) {+ const auto message = tr("已关闭当前硬件或包不支持的效果,参数仍保留:") + disabled.join("; ");+ veyra::log::warn("effect-availability", message.toStdString());+ QTimer::singleShot(0, this, [this, message] { emit notice(message, false); });+ }auto settings = impl_->facade.pendingSettings();const auto& configuration = restored.configurations[size_t(restored.active)];configuration.apply(settings);@@ -851,7 +1019,12 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesystconst auto& entry = impl_->facade.presets().entries()[*defaultIndex];if (!prepareStartupPreset(entry, candidate, settings, error)) {veyra::log::error("ui-preset", error.toStdString());- } else if (!impl_->facade.applySettings(settings,+ } else {+ auto& configuration = candidate.configurations[size_t(candidate.active)];+ const auto disabled = disableUnavailableEffects(configuration);+ configuration.apply(settings);+ if (!disabled.isEmpty()) veyra::log::warn("effect-availability", "default preset disabled: " + disabled.toStdString());+ if (!impl_->facade.applySettings(settings,engine::runtimeOrder(candidate.configurations[size_t(candidate.active)].chain))) {error = tr("引擎未接受默认预设,已保留恢复会话");} else {@@ -863,6 +1036,7 @@ QmlPlayerBridge::QmlPlayerBridge(engine::EngineController& engine, std::filesysterror = tr("默认预设已应用,但会话保存失败:") + uiText(impl_->facade.error());else impl_->savedSession = candidate;}+ }if (!error.isEmpty())QTimer::singleShot(0, this, [this, error] { emit notice(error, true); });}@@ -1158,6 +1332,8 @@ QString QmlPlayerBridge::flowBackend() const {int QmlPlayerBridge::opticalFlowChoice() const { return int(settings().opticalFlowBackend); }bool QmlPlayerBridge::setOpticalFlowChoice(int backend) {if(backend<0||backend>2)return false;+ const auto cap = effectCapabilities().value("flow" + QString::number(backend)).toMap();+ if (!cap.value("available").toBool()) { emit notice(cap.value("reason").toString(), true); return false; }const auto before=settings();auto next=before;next.opticalFlowBackend=engine::OpticalFlowBackend(backend);if(next.opticalFlowBackend==before.opticalFlowBackend)return true;@@ -1343,13 +1519,22 @@ QString QmlPlayerBridge::fgBackendName() const {return {};}QVariantList QmlPlayerBridge::fgBackendChoices() const {- return {+ QVariantList choices = {QVariantMap{{"id","dlss"},{"label",tr("DLSS 帧生成")}},QVariantMap{{"id","xess"},{"label",tr("Intel XeSS · 实验")}},QVariantMap{{"id","fsr3"},{"label",tr("FSR 3.1 · 2X")}},QVariantMap{{"id","fsr4"},{"label",tr("FSR 4 ML · RX 9000 · 实验")}},QVariantMap{{"id","vfg"},{"label",tr("NVIDIA VFG · RTX 40 / 50")}}};+ const auto caps = effectCapabilities();+ for (auto& choice : choices) {+ auto row = choice.toMap();+ const auto cap = caps.value(row.value("id").toString()).toMap();+ row["disabled"] = !cap.value("available").toBool();+ row["note"] = cap.value("reason");+ choice = row;+ }+ return choices;}QString QmlPlayerBridge::fgProviderText() const {const auto& s=impl_->snapshot;@@ -1384,6 +1569,8 @@ static int xessCeiling(const engine::PlayerSnapshot& s) {}void QmlPlayerBridge::setFgBackendName(const QString& value) {if(value!=QLatin1String("dlss")&&value!=QLatin1String("xess")&&value!=QLatin1String("fsr3")&&value!=QLatin1String("fsr4")&&value!=QLatin1String("vfg")){emit notice(tr("未知补帧后端"),true);return;}+ const auto availability = effectCapabilities().value(value).toMap();+ if (!availability.value("available").toBool()) { emit notice(availability.value("reason").toString(), true); emit settingsChanged(); return; }auto s = settings();const auto want = value == QLatin1String("xess") ? engine::FrameGenerationBackend::XeSS: value == QLatin1String("fsr3") ? engine::FrameGenerationBackend::Fsr@@ -3548,7 +3735,16 @@ QString QmlPlayerBridge::backendWarning() const { return uiText(impl_->snapshot.emit settingsChanged(); \}-VEYRA_NUM_PROP(videoSrQuality, setVideoSrQuality, videoSrQuality, int)+int QmlPlayerBridge::videoSrQuality() const { return int(settings().videoSrQuality); }+void QmlPlayerBridge::setVideoSrQuality(int value) {+ if (value < 0 || value > 5) return;+ const auto cap = effectCapabilities().value("sr" + QString::number(value)).toMap();+ if (!cap.value("available").toBool()) { emit notice(cap.value("reason").toString(), true); return; }+ auto s = settings();+ if (int(s.videoSrQuality) == value) return;+ s.videoSrQuality = unsigned(value);+ if (impl_->commit(s)) emit settingsChanged();+}int QmlPlayerBridge::audioOffsetMs() const { return settings().audioOffsetMs; }void QmlPlayerBridge::setAudioOffsetMs(int value) {auto s = settings();@@ -3851,6 +4047,8 @@ bool QmlPlayerBridge::setNrLayerParameter(int index,const QString& key,double vaimpl_->chain.nodes[index].type!=engine::EffectType::NrEnhance||!std::isfinite(value))return false;if(key=="runtime") {if(value!=0&&value!=2&&value!=3&&value!=4)return false;+ const auto cap = effectCapabilities().value("nr" + QString::number(int(value))).toMap();+ if (!cap.value("available").toBool()) { emit notice(cap.value("reason").toString(), true); return false; }const auto before=impl_->chain;for(uint32_t i=0;i<impl_->chain.nodeCount;++i)if(impl_->chain.nodes[i].type==engine::EffectType::NrEnhance)@@ -3897,6 +4095,7 @@ QVariantList QmlPlayerBridge::effectCatalog() const {fg["label"]=option.value("label");fg["maxInstances"]=1;fg["repeatable"]=false;fg["mustBeLast"]=true;fg["justBeforeLast"]=false;fg["experimental"]=backend!=QLatin1String("dlss");+ fg["disabled"]=option.value("disabled");fg["note"]=option.value("note");out<<fg;}continue;@@ -3909,6 +4108,9 @@ QVariantList QmlPlayerBridge::effectCatalog() const {item["mustBeLast"] = info.mustBeLast;item["justBeforeLast"] = info.justBeforeLast;item["experimental"] = info.experimental;+ const auto cap = effectAvailability(utf8Of(info.id));+ item["disabled"] = !cap.value("available").toBool();+ item["note"] = cap.value("reason");out << item;}return out;@@ -3938,7 +4140,8 @@ void QmlPlayerBridge::setNodeMode(int mode) {}const auto previousSettings = impl_->facade.pendingSettings();auto next = previousSettings;- const auto& configuration = candidate.configurations[size_t(want)];+ auto& configuration = candidate.configurations[size_t(want)];+ disableUnavailableEffects(configuration);configuration.apply(next);if (!next.validate().empty()) { emit notice(tr("模式参数无效,未切换"), true); return; }// Save before changing the live mode; an unwritable/corrupt file cannot@@ -4757,6 +4960,8 @@ void QmlPlayerBridge::openSubtitleDialog() { emit navigate(QStringLiteral("subti// RTX Video HDR where the pipeline cannot honour them is refused with a reason,// not silently dropped.int QmlPlayerBridge::addEffect(const QString& type) {+ const auto cap = effectAvailability(type);+ if (!cap.value("available").toBool()) { emit notice(cap.value("reason").toString(), true); return -1; }const bool fgType=type==QLatin1String("dlss-fg")||type==QLatin1String("xess-fg")||type==QLatin1String("fsr3-fg")||type==QLatin1String("fsr4-fg")||type==QLatin1String("vfg-fg");const auto fgBackend=type==QLatin1String("vfg-fg")?engine::FrameGenerationBackend::Vfg:type==QLatin1String("fsr4-fg")?engine::FrameGenerationBackend::Fsr4:@@ -4837,6 +5042,7 @@ int QmlPlayerBridge::addEffect(const QString& type) {next.frameGenerationBackend=fgBackend;impl_->validation=engine::validateChain(c);if(!impl_->validation.accepted||!next.validate().empty()||+ !unavailableEffects(next).isEmpty()||!impl_->facade.applySettings(next,engine::runtimeOrder(c))) {c=before;impl_->facade.setPending(previous);impl_->validation=engine::validateChain(c);emit notice(tr("补帧选择未被接受,保留原设置;请检查倍率和后端能力"),true);return -1;diff --git a/tests/unit/EffectAvailabilityTests.cpp b/tests/unit/EffectAvailabilityTests.cppnew file mode 100644index 00000000..d90a0cfb--- /dev/null+++ b/tests/unit/EffectAvailabilityTests.cpp@@ -0,0 +1,20 @@+#include "veyra/ui/EffectAvailability.h"+#include <iostream>+using namespace veyra::ui;+int main() {+ unsigned checks=0, failures=0;+ const EffectGpu devices[] = {{0,false,false,false,false},{0x10DE,true,true,false,false},+ {0x10DE,true,false,true,false},{0x10DE,true,false,false,false},+ {0x10DE,false,false,false,false},{0x1002,false,false,false,true},+ {0x1002,false,false,false,false},{0x8086,false,false,false,false}};+ const bool expected[][7] = {{0,0,0,0,0,0,0},{1,1,1,1,0,0,1},{1,0,1,1,0,0,1},+ {1,0,1,0,0,0,1},{0,0,0,0,0,0,1},{0,0,0,0,1,1,1},{0,0,0,0,0,0,1},{0,0,0,0,0,0,1}};+ for (unsigned device=0;device<8;++device) {+ for (int feature=0;feature<7;++feature) {+ ++checks;+ if (hardwareSupports(HardwareEffect(feature),devices[device])!=expected[device][feature]) ++failures;+ }+ }+ std::cout<<checks<<" checks, "<<failures<<" failures\n";+ return failures ? 1 : 0;+}