Skip to content

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

C++

Merge claude/aa-53-20261017 (E0 + #53 anti-aliasing) into the beauty branch

Veyra Goal Agentaf415f3efece
diff --cc AGENTS.md
index 18e93d28,4d57ecab..b8cd9ad4
--- a/AGENTS.md
+++ b/AGENTS.md
@@@ -1,7 -1,7 +1,9 @@@
# Veyra 项目 Agent 执行规则
+> **2026-10-17 美颜节点(Claude)**:用户“抗锯齿和美颜好好做,开工吧”(背景:用户同日决定 #48/#53/美颜三项并行,见 reports/claude-plan-48-53-beauty-20261017/PLAN_48_53_BEAUTY_2026-10-17.md)。从 main 26c0d61 在 E盘 claude/beauty-20261017(worktrees/beauty-20261017)实施 Codex 美颜节点方案 docs/BEAUTY_NODE_PLAN_2026-10-16.md(codex/beauty-node-plan-20261016)与复审 10 条修订,计划与 P0 结论写入 docs/BEAUTY_IMPLEMENTATION_PLAN_2026-10-17.md。存档 checkpoint/pre-claude-beauty-20261017 与 archives/claude-beauty-20261017(全引用 bundle 已 verify)。P0 用独立测试程序做人脸定位推理路线对照(系统 WinML / YuNet 手写 HLSL / ONNX Runtime+DirectML)、SkinSoft(yasunari01/obs-filters fd5690f,GPL-2.0-or-later)柔肤 D3D12 计算着色器移植原型(GPUPixel Apache-2.0 作画质参考)、同帧原画与 HDR 合同验证;允许新增 src/beauty、include/veyra/beauty、shaders/Beauty*、tests 与测试用 CMake 目标,覆盖这些新文件的历史冻结。P1–P4 在抗锯齿会话交付共享基础(claude/effects-infra-20261017:链容量、计时掩码、通用插入槽、格式版本)后合入再做,届时美颜节点所需 settings/preset/会话/导出/bridge/QML/翻译/CMake 接点获授权;不自行改 E0 范围。YuNet 权重(OpenCV Zoo 47534e27,MIT)下载到 E盘 deps/claude-beauty-20261017 并记录 SHA256,模型不进源码 Git;若选定路线必须新增第三方运行库二进制,停下等用户授权。不 merge main/push/Release/打包,不派 Agent;日志不记录人脸裁剪、关键点轨迹或像素;UI 33ms/250ms、GPU 默认优先级、运行库/模型/驱动/用户真实配置保持,本机真实 PS5 配对绝不触碰;单测试≤300 秒、构建≤900 秒,产物全 E盘 `{用途}/claude-beauty-20261017`。AMD/Intel、真实采集/串流、光学延迟未验项如实列出。
+
+ > **2026-10-17 效果器扩展基础 E0 与 #53 空间抗锯齿(Claude 子会话)**:用户“抗锯齿和美颜好好做,开工吧”(并要求开子会话用 Sonnet5.5 Extra 开工),#53 要求加入 FXAA、SMAA 之类的空间抗锯齿并与 VSR 超分搭配(DLSS 类超分会破坏 UI、VSR 抗锯齿不稳定),参考 SAOG0721/Magpie 的各种抗锯齿方案,以新效果器方式加入:列表模式是“画质”页下的新效果,节点模式是新的节点项。按 docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md 与 reports/claude-plan-48-53-beauty-20261017/PLAN_48_53_BEAUTY_2026-10-17.md 第 3、4 节,从 main 26c0d61 在 E盘 claude/aa-53-20261017(worktrees/aa-53-20261017)隔离实施 E0(EffectType 追加 AntiAliasing/Beauty、链容量 16→32 及满载明确拒绝、导出协议 9→10/预设库 v14/链会话 v9、GpuTimer 64 位掩码、调色专用四类插入槽通用化为每槽 pass 列表并新增源分辨率槽与 NR 组之后槽)与抗锯齿(FXAA/SMAA/MLAA、实验时域 SMAA;EnhanceGraph 接点、新 AntiAliasPass、着色器、bridge/QML/翻译/预设/会话/导出/许可),这些具体接点覆盖旧冻结。E0 提交并回归后建 claude/effects-infra-20261017 指向该提交,供美颜会话合入且不再移动。先存档 archives/claude-aa-53-20261017(start.json:88 工作树/100 分支/主检出 64 脏文件逐文件 SHA256;source-before.bundle verify 通过,76,295,892 字节,SHA256 f22a36f9…1095)。调色输出须与改动前逐字节一致;UI33ms/250ms、GPU 默认优先级、运行库/模型/驱动/真实配置不动,不派 Agent,不 merge/push/Release/打包,不评论或关闭 issue;测试≤300秒、构建≤900秒;产物全 E:/项目/Veyra/{build,tests,logs,tmp,reports,archives}/claude-aa-53-20261017。AMD/Intel 实卡与用户 Switch 素材未验须明示,不用本机 RTX 结果外推。
+
> **2026-10-17 PR57本机接入授权**:用户要求合入其云端Agent的PR57并做好测试。按docs/PR57_INTEGRATION_PLAN_2026-10-17.md,从main d68d6be在codex/pr57-capture-window-20261017保留原head09ac54b/1295d6b整合;允许窗口捕获游戏输入/缩放/resize及采集能力/精确格式/旧版选择入口的必要适配、源/引擎快照/bridge/QML/CMake/翻译/回归接点,覆盖这些范围历史冻结。本机Windows构建/实测通过后允许本地main正常合并与普通GitHub同步以完成PR57;不发布新版本、不改已发2.0.9资产/标签、不代发评论/关闭无关issue/派Agent/关机。84旧树/96旧分支/509脏文件与PR/源码bundle先存档;全E盘,测试≤300秒/构建≤900秒,UI33ms/250ms、既有低延迟/运行组件/模型/驱动/真实配置保持。云端测试待办不扩展当前授权,实卡未覆盖项须明示。
> **2026-10-17 2.0.9 正式发布授权**:用户明确“发布吧,老样子发好给我群公告”。按docs/RELEASE_2.0.9_PLAN_2026-10-17.md从已验bfce70b建立codex/release-2.0.9-20261017,允许已验代码main正常快进/普通push nrvideo/main、新v2.0.9与v2.0.9-sources标签、正式Release及对应源码上传。NVIDIA/AMD沿用已交付2.0.9-test ZIP,外部正式命名,包内字节/test标识保持,不重编译重封包。中英README和完整更新报告覆盖全部2.0.8后改动,保留六群/赞助width220、Discord/Ko-fi/知识库;主仅两包,源归档上传应用源与新增去隔行源,旧FFmpeg/依赖源保留固定链接。83旧树/95旧分支/509脏文件/六原归档与旧Release保护,全E盘,无子Agent/代发/关闭issue/关机。最新授权覆盖此前本轮no-main/no-push/no-Release,不扩展为修改专有二进制、驱动或用户配置。
diff --cc docs/WORKLOG.md
index 57e35554,b2b0e4d9..68ab3e04
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@@ -9716,14 -9716,18 +9716,30 @@@ final-audit.py pre已通过82旧树/94�
- PR57远端合并确认:2026-10-17T14:09:26Z,state=MERGED,merge=9c7b342,main正常推送7e2157d;保留云端源分支。本补充仅文档回执,不改已验收代码;最终保护与source-after.bundle回执在E:/项目/Veyra/reports/pr57-capture-window-20261017/final.json。
+### 2026-10-17 美颜节点开工(Claude,claude/beauty-20261017)
+- 授权与背景:用户“抗锯齿和美颜好好做,开工吧”;协调会话计划 `E:/项目/Veyra/reports/claude-plan-48-53-beauty-20261017/PLAN_48_53_BEAUTY_2026-10-17.md`(第 5 节 10 条复审、第 1.2/3 节共享基础 E0)。AGENTS.md 顶部已加授权条目。
+- 基线:本地 main `26c0d61`,分支 `claude/beauty-20261017`,工作树 `E:/项目/Veyra/worktrees/beauty-20261017`。存档:tag `checkpoint/pre-claude-beauty-20261017`,`E:/项目/Veyra/archives/claude-beauty-20261017/all-refs-26c0d61.bundle`(`git bundle verify` 通过,complete history)。
+- 产物目录:`E:/项目/Veyra/{build,tests,logs,tmp,reports,archives,downloads,deps}/claude-beauty-20261017`。
+- 计划:P0(推理路线对照 / SkinSoft D3D12 原型 / 同帧原画与 HDR 合同)→ 写 `docs/BEAUTY_IMPLEMENTATION_PLAN_2026-10-17.md`;`claude/effects-infra-20261017` 出现后再做 P1–P4。E0 范围(链容量、计时掩码、插入槽、格式版本)不自行改动。
+
+### 2026-10-17 美颜 P0 中段(用量上限中断,Claude)
+- 已完成:构建脚本 `scripts/acceptance/claude-beauty-build.py`(基线 configure+build 69 秒通过);YuNet 两个 fp32 权重(2023mar / 2026may)下载到 `E:/项目/Veyra/deps/claude-beauty-20261017/yunet-47534e27`,SHA256 与 Git LFS 指针 oid 一致;SkinSoft fd5690f、GPUPixel ef552bf、公共测试人像已取到同目录下各自独立子目录;用 OpenCV 5.0.0 复现了 FaceDetectorYN 的预处理与解码(4 张图结果一致)。
+- 已写未验证:`include/veyra/beauty/{OnnxLite,YuNetGpu}.h`、`src/beauty/{OnnxLite,YuNetGpu}.cpp`、`shaders/BeautyYuNet*.hlsl`。**尚未接入 CMake、尚未编译、尚未运行**,不能当作已通过;不影响现有目标构建。
+- 未做:WinML / ORT-DML 实测对照、SkinSoft HLSL 原型、P0.3 合同测试、`docs/BEAUTY_IMPLEMENTATION_PLAN_2026-10-17.md`。`claude/effects-infra-20261017` 尚未出现(E0 未交付),P1–P4 未开始。
+- 详细发现与下一步:`C:/Users/123/AppData/Roaming/Claude/side-session-notes/local_089fcd60-31dd-4fd0-aac7-c63d8dc7d88a/beauty-20261017-handover.md`。
++
+ ## 2026-10-17 E0 + #53 anti-aliasing: start (Claude sub-session, usage limit reached early)
+ Branch claude/aa-53-20261017 from main 26c0d61. Archive E:/项目/Veyra/archives/claude-aa-53-20261017 (start.json, verified source-before.bundle). Added AGENTS.md authorization, docs/EFFECTS_INFRA_AA_53_PLAN_2026-10-17.md and the test-only harness veyra_effect_slot_regression_tests (commit df8028a). Baseline on unmodified product code: fresh configure+compile 105 s (build/claude-aa-53-20261017); 12 configurations (list default, NR-first, 6 colours, two NR layers with protection, node pre-NR/pre-SR/inter-NR/tail, mixed SR-first and NR-first, SR-only tail, split NR) recorded twice with identical SHA-256 (tests/claude-aa-53-20261017/golden-baseline.json, real NR and DLSS SR on RTX 5070). No product code changed yet: E0 and the anti-aliasing effect are NOT implemented and claude/effects-infra-20261017 does not exist. Hand-over notes: C:/Users/123/AppData/Roaming/Claude/side-session-notes/local_089fcd60-31dd-4fd0-aac7-c63d8dc7d88a/aa-53-E0-handover-2026-10-17.md. Untracked include/veyra/engine/AntiAliasSettings.h is an unreferenced draft.
+
+ ## 2026-10-18 E0 effect infrastructure done (coordinating session took over after the sub-session's usage limit)
+ - Implemented plan §3: EffectType AntiAliasing/Beauty (hidden), 32-node chains with explicit overflow refusal, AntiAliasSettings in chain/settings/presets (library v14 + session v9 in `.effects` files, older files untouched), export protocol 10, 64-bit GPU timer mask with AA/beauty stages, step-based insertion slots (`slotOfStep`, SourcePost slot) with the colour executor rewritten onto slot lists. Anti-aliasing stays refused (`antiAliasExecutor=false`) until the AA commit.
+ - 32 nodes double EffectChain (22 KB -> 45 KB) and the stack frames that copy it (assembly listings: bridge constructor 214 -> 400 KB, EngineController::run 385 KB); veyra_qml_ui and veyra now link /STACK:8388608 (reserve only). Fixed the legacy Win32 telemetry name table, already misaligned on main (Fg6/Fg7 missing).
+ - Verified (builds 25-39 s each, `tmp/claude-aa-53-20261017/tools/build.py`): effect chain tests all pass (33 new E0 checks), preset library tests all pass (14 new), NR model settings 26/26, i18n 0 failures, colour slot regression 12/12 byte-identical to the main baseline (`tests/claude-aa-53-20261017/slot-e0-final.json`, logs `logs/claude-aa-53-20261017/slot-regression-20261018-142129`).
+
+ ## 2026-10-18 #53 spatial anti-aliasing (FXAA / SMAA / MLAA, experimental temporal SMAA)
+ - Ported from SAOG0721/Magpie d687997 (sources, licenses, changes: THIRD_PARTY_NOTICES.md): 14 compute shader variants, `AntiAliasPass`, graph slots from E0 plus the plan-less tiled image path, live MLAA / history values, GPU stages AaNode0/1. HDR edge detection uses a perceptual luma relative to the SDR / 203-nit HDR white (not PQ: PQ compresses SDR-range contrast 3-4x and would under-detect with the tuned thresholds); all blending in linear light.
+ - UI: 画质 tab top card 抗锯齿 (above 超分辨率), processing-order chip, node catalog entry (max 2) with the shared `AntiAliasEditor.qml`; bridge antiAlias*; 22 translations.
+ - Tests (RTX 5070, one run each): `veyra_anti_alias_gpu_tests` (SDR quality vs a 16x16 supersampled linear reference: flat areas bit-identical, edge error 32.2 -> 6.8-10.5; HDR P010 PQ: no NaN, highlights / out-of-709 colours unchanged; temporal reset and history; real NGX node slots; tiled path exact for MLAA; D3D12 debug layer clean; timing), `ExportWorkflowTests aa` (worker creates and dispatches the pass), `scripts/acceptance/aa-53-gui.py` (39 checks in the live player, screenshot), QML editor tests, colour slot regression 12/12 identical. Timings at 4K: FXAA 0.15 ms, SMAA 0.30 ms, temporal 0.55 ms, MLAA 0.30 ms (dense-edge worst case 0.36 / 0.55-0.73 / 1.2-1.3 / 0.54 ms).
+ - Fixed on the way (present on main 26c0d61): `TiledImageProcessor` carried the whole-image execution plan into the tiles, so the graph refused it and the six tiled colour cases of `veyra_image_dimension_tests` failed on main. The product path never passes a plan; tiles now drop it and run the list-order base (identical to the whole image, maxError8=0).
+ - Final sweep (one staged build, fresh temp folder, logs/claude-aa-53-20261017/final-sweep-20261018-155900): 14 of 15 suites pass. image-dimension: all 11 size / tile cases pass; its NR tile case cannot find `runtime_local/config/ngx-local.json` because the test compiles the source root in as a narrow string and the `E:/项目` path does not survive (needs an ASCII-path build; unrelated). preset-library fails only when rerun in the same temp folder (sidecars from testDlssSrModels; main behaves the same). `veyra_amd_nr_graph_tests` compiled, not run.
+ - Not verified: AMD / Intel hardware, real game / capture footage judged by eye (user), Switch material, long runs, temporal mode ghosting on real motion.