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++
fix(aa): run list anti-aliasing after the NR group
Veyra Goal Agentd8074070e92a
diff --git a/AGENTS.md b/AGENTS.mdindex 9aa3ecc9..56f6857a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,5 +1,7 @@# Veyra 项目 Agent 执行规则+> **2026-10-26 采集链路审查与抗锯齿修复(Claude,用户授权)**:用户要求整体审查采集链路及效果器衔接,排除类似VRR轮询的性能拖累,尽量降延迟,修复“抗锯齿开了没变化”,并用采集卡实测一轮(效果器全开)。从main 68def10在claude/capture-review-20261026按docs/CAPTURE_REVIEW_PLAN_2026-10-26.md施工,起点标签checkpoint/pre-capture-review-20261026。允许必要的执行计划/图/展示/采集音频日志/QML四语/定向测试接点。用户的E:/App包与配置只读,其采集进程不停止、不抢设备;实测前由用户自己让出采集卡。单Agent、全E盘、-j2构建<=900秒/单测<=300秒,不改运行库/模型/驱动,无merge/push/Release,Lecram暂停;claude/vrr-event-query-20261025与claude/software-ui-default-20261026保留未并入。+> **2026-10-25 采集内置音频修复与整合授权**:用户明确要求修复 CV710 开监听卡画面,并把近期全部修复/功能合入本地 main。从207555b在codex/capture-audio-main-20261025按docs/CAPTURE_AUDIO_MAIN_PLAN_2026-10-25.md施工;包含 #67/全屏退出与当前录制/AMD SR关/旋转/NR比例/FG异步查询/NR导出,覆盖这些接点旧冻结及无main合并限制。先存档原main与101工作树/原全屏脏文件,不覆盖其它工作树。保持单Agent、全E盘、-j2构建<=900秒/单测试<=300秒、真实配置/运行库/模型/驱动不变。CV710现场修复必须原卡复测,不拿本机卡或夹具替代;无push/Release/代发/关机授权,Lecram暂停。> **2026-10-25 社区NR导出尺寸补丁接入(用户授权)**:从038beac在codex/export-nr-scale-20261025按docs/EXPORT_NR_SCALE_PLAN_2026-10-25.md接入固定档与百分比的视频导出NR尺寸,允许必要export policy/图描述/执行计划/导出日志/QML四语/定向测试接点,覆盖这些范围旧UI冻结及此前“导出保持Native”限制。输出尺寸不变、图片完整处理、AMD预算、非法值校验及既有NR手动编码保留。不改补帧调度/运行库/模型/驱动/真实配置;单Agent、全E盘、复用构建-j2<=900秒/单测<=300秒,无merge/push/Release,Lecram暂停。diff --git a/docs/CAPTURE_REVIEW_PLAN_2026-10-26.md b/docs/CAPTURE_REVIEW_PLAN_2026-10-26.mdnew file mode 100644index 00000000..f2e947ba--- /dev/null+++ b/docs/CAPTURE_REVIEW_PLAN_2026-10-26.md@@ -0,0 +1,47 @@+# 2026-10-26 采集链路审查与抗锯齿修复(Claude)方案++用户要求:整体审查采集链路和各效果器之间的衔接,排除类似 VRR 轮询那样拖慢软件的东西,尽量降低延迟、提升性能;修复“抗锯齿开了没变化”;用采集卡实测一轮,效果器全开。++- 分支 `claude/capture-review-20261026`,起点 main 68def10,标签 `checkpoint/pre-capture-review-20261026`,起点记录 `archives/claude-capture-review-20261026/start.json`。+- 用户的 `E:/App` 包、配置和正在采集的进程只读,不停止、不抢采集卡;实测前由用户自己让出采集卡。+- 不改运行库、模型、驱动;没有 merge、push、Release 或打包。`claude/vrr-event-query-20261025` 和 `claude/software-ui-default-20261026` 保留,不并入本分支。++## 依据:用户当前会话日志(只读副本)++2560×1440 60fps P010 HDR 采集,60→30 处理后 VFG 2X 回 60,NR 一层原生分辨率,变化量 2.04 倍。稳态 P95:++| 环节 | 数值 |+| --- | --- |+| 驱动时间戳到回调 | 约 37 ms(驱动内部,10 个缓冲,请求 3 个被忽略) |+| 回调到提交显示 | 30.2 ms |+| 其中补帧排队等待 | 17.6 ms(插帧要等下一帧,属于补帧本身的代价) |+| GPU 完成 | 10.6 ms(NR 5.3,光流 1.8,补帧 3.1) |+| 提交显示到上屏 | 2–6 ms(320 Hz) |++没有槽位等待;补帧有效率 99%。++## 审查发现与处理++1. **抗锯齿被 NR 抵消**:列表模式里抗锯齿固定排在 NR 之前。NR 会重新勾边,变化量放大又把平滑过的边缘推回锯齿。改为放在 NR 组之后:+ - NR 在超分之前时,抗锯齿在超分之前。+ - 超分在 NR 之前时,抗锯齿在最终尺寸上运行。+ - 没开 NR 时仍在源分辨率、超分之前。+ - 大图分块路径同样处理;界面说明同步改为四语。+2. **HDR 输入时渲染线程每 2 秒同步查询显示器 HDR 状态**:每次都要枚举显卡、输出并读取输出描述。改为同一显示器且 DXGI 工厂仍有效(`IsCurrent`)时沿用上次结果;显示器变化、HDR 开关或工厂失效时才重新查询。+3. **采集音频超范围警告每 0.5 秒一条 WARN**:每条都立即刷盘、做正则解析,并刷新“最近问题”。改为首次 WARN 一条,之后每 30 秒最多汇总一条,计数不丢。+4. `CineBar.qml` 信号处理器依赖已弃用的参数注入:改为显式参数。+5. 最大化时反复 `setGeometry` 报错:查清楚触发源,若改动小则一起修,否则如实记录。++不改的部分:++- 补帧排队的约 17 ms 和驱动内部的约 37 ms 不是软件能去掉的。+- 60→30 维持用户 10-12 的决定,即按时间戳隔帧取样。++## 验证++- 构建:`scripts/acceptance/build-recording-handoff.py`,复用 `build/claude-screen-recording-20261022`,-j2。+- 定向测试:效果链顺序、抗锯齿 GPU、UI 合同、翻译、QtQuick。+- 采集卡实测一轮:私有配置和私有包副本,效果器全开(NR + 抗锯齿 + 调色 + VFG 2X,HDR)。+ - 记录延迟和各环节耗时。+ - 画面暂停时截图对比三种情况:抗锯齿关、抗锯齿在 NR 前(节点模式)、抗锯齿在 NR 后。+- 证据放在 `reports/claude-capture-review-20261026`。diff --git a/i18n/catalog.json b/i18n/catalog.jsonindex e1f552a1..4e197693 100644--- a/i18n/catalog.json+++ b/i18n/catalog.json@@ -4887,6 +4887,13 @@"en": "Pair","ja": "ペアリングへ"},+ {+ "zh": "去除锯齿边缘,适合游戏画面、文字和界面线条。列表模式开着 NR 时排在 NR 之后,NR 重新勾出的边缘也会处理;不开 NR 时在源分辨率、超分之前运行,锯齿不会被一起放大。",+ "src": "qml/AntiAliasEditor.qml",+ "zh-TW": "去除鋸齒邊緣,適合遊戲畫面、文字和介面線條。清單模式開著 NR 時排在 NR 之後,NR 重新勾出的邊緣也會處理;不開 NR 時在來源解析度、超解析之前執行,鋸齒不會被一起放大。",+ "en": "Removes jagged edges, for game footage, text and interface lines. In list mode with NR on it runs after NR, so the edges NR redraws are smoothed too; without NR it runs at source resolution before super resolution, so the jaggies are not enlarged with the picture.",+ "ja": "ギザギザのエッジを取り除きます。ゲーム映像、文字、UI の線に向いています。リストモードで NR がオンのときは NR の後に処理するため、NR が描き直したエッジも滑らかにします。NR がオフのときはソース解像度で超解像の前に処理するため、ギザギザが一緒に拡大されません。"+ },{"zh": "去隔行处理失败,请查看诊断","src": "src/source/MediaFileSource.cpp",@@ -5685,13 +5692,6 @@"en": "Open the sign-in page in the browser","ja": "ブラウザーでサインインページを開く"},- {- "zh": "在源分辨率去除锯齿边缘,适合游戏画面、文字和界面线条;放在超分之前,锯齿不会被一起放大。",- "src": "qml/AntiAliasEditor.qml",- "zh-TW": "在來源解析度去除鋸齒邊緣,適合遊戲畫面、文字和介面線條;放在超解析之前,鋸齒不會被一起放大。",- "en": "Removes jagged edges at source resolution, for game footage, text and interface lines. It runs before super resolution, so the jaggies are not enlarged with the picture.",- "ja": "ソース解像度でギザギザのエッジを取り除きます。ゲーム映像、文字、UI の線に向いています。超解像の前に処理するため、ギザギザが一緒に拡大されません。"- },{"zh": "在画面上按住左键拖出","src": "qml/ProPage.qml",diff --git a/include/veyra/pipeline/EnhanceGraph.h b/include/veyra/pipeline/EnhanceGraph.hindex d84e8c18..5f65ac4d 100644--- a/include/veyra/pipeline/EnhanceGraph.h+++ b/include/veyra/pipeline/EnhanceGraph.h@@ -365,10 +365,18 @@ struct EnhanceGraphDesc {return false;}// Where a plan step runs. `interTarget` receives the NR resource of an InterNr step.+ // A plan step behind an NR step.+ bool afterNrStep(uint32_t s) const {+ if(!fixedExecutionPlan)return false;+ for(uint32_t i=0;i<s&&i<fixedExecutionPlan->stepCount&&i<fixedExecutionPlan->steps.size();++i)+ if(fixedExecutionPlan->steps[i].type==engine::EffectType::NrEnhance)return true;+ return false;+ }bool sourcePostActive() const {// Without a compiled plan (tiled full-resolution images) enabled- // anti-aliasing instances run at source size, like the list chain.- if(!fixedExecutionPlan)return antiAliasActive();+ // anti-aliasing instances follow the list chain: behind NR when NR+ // runs, otherwise at source size.+ if(!fixedExecutionPlan)return antiAliasActive()&&!enableNr;for(uint32_t i=0;i<fixedExecutionPlan->stepCount&&i<fixedExecutionPlan->steps.size();++i)if(slotOfStep(i)==PassSlot::SourcePost)return true;return false;@@ -379,10 +387,12 @@ struct EnhanceGraphDesc {const auto type=fixedExecutionPlan->steps[s].type;if(!samePass(type))return PassSlot::None;if(!runtimeNodeOrder){- // List mode: the grade is fused into the input conversion, anti-aliasing- // follows at source size, beauty follows the whole NR group.+ // List mode: the grade is fused into the input conversion; beauty and,+ // whenever NR runs, anti-aliasing follow the whole NR group+ // (compileChainExecutionPlan). Without NR anti-aliasing runs at source+ // size right after the input conversion.if(type==EffectType::Color)return PassSlot::Ingress;- if(type==EffectType::AntiAliasing)return PassSlot::SourcePost;+ if(type==EffectType::AntiAliasing&&!afterNrStep(s))return PassSlot::SourcePost;return nrBeforeSr?PassSlot::PreSr:PassSlot::Tail;}if(sourcePostStep(s))return PassSlot::SourcePost;@@ -438,16 +448,18 @@ struct EnhanceGraphDesc {if(samePass(step.type)){passSlot=slotOfStep(i);if(passSlot==PassSlot::None)return "same-size node position is not supported by the fixed dispatcher";- // List mode: anti-aliasing runs at source size first; the beauty group- // follows the whole NR group (with its protection). Node slots below.- if(step.type==EffectType::AntiAliasing)rank=0;- if(step.type==EffectType::Beauty)rank=passSlot==PassSlot::SourcePost?0:int(EffectType::Protection);+ // List mode: anti-aliasing without NR runs at source size first; the+ // beauty group and, with NR, anti-aliasing follow the whole NR group+ // (with its protection). Node slots below.+ if(step.type==EffectType::AntiAliasing||step.type==EffectType::Beauty)+ rank=passSlot==PassSlot::SourcePost?0:int(EffectType::Protection);}if(nrBeforeSr){if(step.type==EffectType::NrEnhance)rank=1;if(step.type==EffectType::Protection)rank=2;if(step.type==EffectType::SuperResolution)rank=3;- if(step.type==EffectType::Beauty&&!runtimeNodeOrder)rank=2; // right after the NR group+ // Right after the NR group.+ if((step.type==EffectType::Beauty||(step.type==EffectType::AntiAliasing&&passSlot!=PassSlot::SourcePost))&&!runtimeNodeOrder)rank=2;}if(runtimeNodeOrder){if(step.type==EffectType::Protection&&interProtection)rank=nrBeforeSr?1:2;diff --git a/qml/Veyra/AntiAliasEditor.qml b/qml/Veyra/AntiAliasEditor.qmlindex c0412137..e50414c4 100644--- a/qml/Veyra/AntiAliasEditor.qml+++ b/qml/Veyra/AntiAliasEditor.qml@@ -20,7 +20,7 @@ ColumnLayout {Text {Layout.fillWidth: true- text: qsTr("在源分辨率去除锯齿边缘,适合游戏画面、文字和界面线条;放在超分之前,锯齿不会被一起放大。")+ text: qsTr("去除锯齿边缘,适合游戏画面、文字和界面线条。列表模式开着 NR 时排在 NR 之后,NR 重新勾出的边缘也会处理;不开 NR 时在源分辨率、超分之前运行,锯齿不会被一起放大。")color: Theme.t3; font.family: Theme.fontUi; font.pixelSize: 11; wrapMode: Text.WordWrap}VRow {diff --git a/qml/Veyra/CineBar.qml b/qml/Veyra/CineBar.qmlindex 870bfab0..8e10c592 100644--- a/qml/Veyra/CineBar.qml+++ b/qml/Veyra/CineBar.qml@@ -393,7 +393,7 @@ Rectangle {VSlider {Layout.fillWidth: truefrom: 0; to: 1; value: veyra.volume; inputScale: 100- onMoved: veyra.volume = value+ onMoved: moved => veyra.volume = moved}}}diff --git a/src/engine/EffectChain.cpp b/src/engine/EffectChain.cppindex 375dadef..f5d38491 100644--- a/src/engine/EffectChain.cpp+++ b/src/engine/EffectChain.cpp@@ -561,11 +561,20 @@ ChainValidation compileChainExecutionPlan(const EffectChain& chain, const ChainEif (chain.mode == ChainMode::Node) {for (uint32_t i = 0; i < chain.nodeCount; ++i) append(i);} else {- // Anti-aliasing always runs at source size, ahead of any enlargement; beauty- // follows the whole NR group (with its protection), ahead of SR when NR goes first.+ // Beauty follows the whole NR group (with its protection), ahead of SR when NR+ // goes first. Anti-aliasing follows it too: NR redraws edges and its change+ // gain sharpens them again, which undid an earlier pass (user 2026-10-26).+ // Behind SR that is the output size. Without enabled NR it stays at source+ // size, ahead of any enlargement.+ bool nrActive = false;+ for (uint32_t i = 0; i < chain.nodeCount; ++i)+ if (chain.nodes[i].enabled && chain.nodes[i].type == EffectType::NrEnhance) nrActive = true;const std::array<EffectType, effectTypeCount> order = nrFirst- ? std::array{EffectType::Color, EffectType::AntiAliasing, EffectType::NrEnhance, EffectType::Protection,- EffectType::Beauty, EffectType::SuperResolution, EffectType::VideoHdr, EffectType::FrameGeneration}+ ? std::array{EffectType::Color, EffectType::NrEnhance, EffectType::Protection, EffectType::Beauty,+ EffectType::AntiAliasing, EffectType::SuperResolution, EffectType::VideoHdr, EffectType::FrameGeneration}+ : nrActive+ ? std::array{EffectType::Color, EffectType::SuperResolution, EffectType::NrEnhance, EffectType::Protection,+ EffectType::Beauty, EffectType::AntiAliasing, EffectType::VideoHdr, EffectType::FrameGeneration}: std::array{EffectType::Color, EffectType::AntiAliasing, EffectType::SuperResolution, EffectType::NrEnhance,EffectType::Protection, EffectType::Beauty, EffectType::VideoHdr, EffectType::FrameGeneration};for (const auto type : order)diff --git a/src/engine/TiledImageProcessor.cpp b/src/engine/TiledImageProcessor.cppindex 00309df8..63c476e5 100644--- a/src/engine/TiledImageProcessor.cpp+++ b/src/engine/TiledImageProcessor.cpp@@ -31,7 +31,8 @@ bool TiledImageProcessor::process(gfx::D3D12DeviceContext& ctx,gfx::CommandSlotRdesc.rgbInput=true;desc.stillImage=true;desc.enableFg=false;desc.enableNvofStandalone=false;// A plan compiled for the whole image describes none of these tile extents// (the graph refuses it). Tiles run the list-order base: fused / additional- // grades as before, enabled anti-aliasing instances at source size.+ // grades as before, enabled anti-aliasing instances behind NR when NR runs+ // and at source size otherwise.desc.fixedExecutionPlan.reset();desc.fixedExecutionPlanError.clear();desc.runtimeNodeOrder=false;pipeline::EnhanceGraph graph(ctx,ring);if(!graph.initialize(desc)||!graph.createViews())return false;diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cppindex 9c5fcdde..60b1522a 100644--- a/src/pipeline/EnhanceGraph.cpp+++ b/src/pipeline/EnhanceGraph.cpp@@ -347,12 +347,13 @@ bool EnhanceGraph::createNodeColorResources(){for(auto& passes:interNrPasses_)passes.clear();if(!desc_.fixedExecutionPlan){// Graphs built without a compiled plan (the tiled full-resolution image- // path) run their enabled anti-aliasing instances at source size, in- // parameter order, like the list chain.+ // path) run their enabled anti-aliasing instances in parameter order like+ // the list chain: behind NR when NR runs (no SR here, so still the source+ // size), otherwise right after the input conversion.for(uint32_t parameter=0;parameter<desc_.antiAlias.size();++parameter){if(!desc_.antiAlias[parameter].enabled)continue;if(!createAntiAlias(parameter,srcW_,srcH_))return false;- sourcePostPasses_.push_back({engine::kMaxChainNodes,engine::EffectType::AntiAliasing,parameter,+ (desc_.enableNr?tailPasses_:sourcePostPasses_).push_back({engine::kMaxChainNodes,engine::EffectType::AntiAliasing,parameter,antiAliasOutputs_[parameter].Get(),srcW_,srcH_,parameter});}if(!sourcePostPasses_.empty())sourcePostOutput_=sourcePostPasses_.back().output;diff --git a/src/sink/CaptureAudioSession.cpp b/src/sink/CaptureAudioSession.cppindex 0706d8a1..8fc90790 100644--- a/src/sink/CaptureAudioSession.cpp+++ b/src/sink/CaptureAudioSession.cpp@@ -108,6 +108,8 @@ struct CaptureAudioSession::Impl : AudioPcmSource {int64_t lastReset=0;int64_t nextSyncLog=0;int64_t nextPeakLog=0;+ // Sample findings since the last report (see the report below).+ uint64_t heldPadding=0,heldNonFinite=0,heldOverRange=0;double heldPeak=0;bool sampleReported=false;unsigned appliedMode=mode.load();int appliedOffset=offset.load();CaptureSyncTarget syncTarget;CaptureSyncTarget::Result syncEstimate;@@ -236,9 +238,20 @@ struct CaptureAudioSession::Impl : AudioPcmSource {state.overRangeSamples+=stats.overRange;state.inputPeak=std::max<double>(state.inputPeak,stats.peak);}const auto sampleLogTime=hostTime();- if((invalidPadding||stats.nonFinite||stats.overRange)&&sampleLogTime>=nextPeakLog){- nextPeakLog=sampleLogTime+5000000;- log::warn("capture-audio-samples",std::format("invalidPadding={} nonFinite={} overRange={} convertedPeak={:.6f} blockAgc=0 format={}Hz/{}bit validBits={}",invalidPadding,stats.nonFinite,stats.overRange,stats.peak,format.nSamplesPerSec,format.wBitsPerSample,validBits));+ heldPadding+=invalidPadding;heldNonFinite+=stats.nonFinite;heldOverRange+=stats.overRange;+ if(invalidPadding||stats.nonFinite||stats.overRange)heldPeak=std::max<double>(heldPeak,stats.peak);+ if((heldPadding||heldNonFinite||heldOverRange)&&sampleLogTime>=nextPeakLog){+ // Float PCM above unity is legitimate here (CaptureAudioDsp.h), and a+ // hot source repeats it all session: a warning twice a second flushed+ // the log and replaced the latest problem each time (field log+ // 2026-10-26). The first report and any padding/non-finite samples stay+ // warnings; over-range alone is summarised every 30 s.+ const auto text=std::format("invalidPadding={} nonFinite={} overRange={} convertedPeak={:.6f} blockAgc=0 format={}Hz/{}bit validBits={}{}",+ heldPadding,heldNonFinite,heldOverRange,heldPeak,format.nSamplesPerSec,format.wBitsPerSample,validBits,sampleReported?" (since the last report)":"");+ if(!sampleReported||heldPadding||heldNonFinite)log::warn("capture-audio-samples",text);+ else log::info("capture-audio-samples",text);+ sampleReported=true;nextPeakLog=sampleLogTime+300000000;+ heldPadding=heldNonFinite=heldOverRange=0;heldPeak=0;}const double start=chunk.pts-1000.0*delay/format.nSamplesPerSec;const double end=chunk.pts+1000.0*(inputFrames-swr_get_delay(swr,format.nSamplesPerSec))/format.nSamplesPerSec;diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex 2c52aadc..f9b1ed73 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -5515,8 +5515,9 @@ bool QmlPlayerBridge::setAntiAliasParameter(const QString& key, double value) {for (uint32_t i = 0; i < c.nodeCount; ++i)if (c.nodes[i].type == engine::EffectType::AntiAliasing) return setAntiAliasParameterAt(int(i), key, value);if (c.mode != engine::ChainMode::List) { emit notice(tr("请先添加抗锯齿节点"), true); return false; }- // The list card's instance exists once it is used: after the grades, in- // front of SR, where toChain() puts it.+ // The list card's instance exists once it is used, stored after the grades+ // where toChain() puts it; the list order (compileChainExecutionPlan) runs it+ // behind the NR group when NR is on and in front of SR otherwise.engine::ChainNode node; node.type = engine::EffectType::AntiAliasing;bool enabled = false;if (!applyAntiAliasKey(node.aa, enabled, key, value)) return false;diff --git a/tests/unit/EffectChainTests.cpp b/tests/unit/EffectChainTests.cppindex 30f6ba30..87c0b65a 100644--- a/tests/unit/EffectChainTests.cpp+++ b/tests/unit/EffectChainTests.cpp@@ -1141,21 +1141,43 @@ __declspec(noinline) void testAntiAliasSettingsChain() {auto off = a; off.antiAlias.enabled = false; b = off; b.antiAlias.method = AntiAliasMethod::Fxaa;check(!requiresGraphRebuild(off, b), "E0: edits of a switched-off instance do not rebuild");- // List mode: the instance reaches the description and runs at source size.+ // List mode: the instance reaches the description. With NR it runs behind the NR+ // group (NR redraws the edges it smoothed in front); without NR at source size.auto listSettings = std::make_unique<EnhancementSettings>();listSettings->nr = true; listSettings->sr = true; listSettings->antiAlias = a.antiAlias;StageRequest request; request.width = 1280; request.height = 720; request.nr = true; request.sr = true;auto desc = std::make_unique<pipeline::EnhanceGraphDesc>();+ const auto stepOf = [&](EffectType type) {+ uint32_t found = kMaxChainNodes;+ if (desc->fixedExecutionPlan)+ for (uint32_t i = 0; i < desc->fixedExecutionPlan->stepCount; ++i)+ if (desc->fixedExecutionPlan->steps[i].type == type) found = i;+ return found;+ };+ using Slot = pipeline::EnhanceGraphDesc::PassSlot;+ auto noNr = std::make_unique<EnhancementSettings>(*listSettings); noNr->nr = false;+ StageRequest noNrRequest = request; noNrRequest.nr = false;+ describeStages(noNrRequest, *noNr, *desc);+ uint32_t aaStep = stepOf(EffectType::AntiAliasing);+ check(aaStep < kMaxChainNodes && aaStep < stepOf(EffectType::SuperResolution) &&+ desc->fixedExecutionPlan->steps[aaStep].output == pipeline::Extent{1280, 720} &&+ desc->slotOfStep(aaStep) == Slot::SourcePost && desc->sourcePostActive(),+ "E0: without NR, list anti-aliasing runs at source size right after the input conversion");+ auto nrFirst = std::make_unique<EnhancementSettings>(*listSettings); nrFirst->lowLatency = true;+ describeStages(request, *nrFirst, *desc);+ aaStep = stepOf(EffectType::AntiAliasing);+ check(desc->nrBeforeSr && aaStep < kMaxChainNodes && stepOf(EffectType::NrEnhance) < aaStep &&+ aaStep < stepOf(EffectType::SuperResolution) && desc->fixedExecutionPlan->steps[aaStep].output == pipeline::Extent{1280, 720} &&+ desc->slotOfStep(aaStep) == Slot::PreSr && !desc->sourcePostActive(),+ "E0: NR first, list anti-aliasing follows NR at source size, in front of SR");describeStages(request, *listSettings, *desc);check(desc->fixedExecutionPlanError.empty() && desc->fixedExecutionPlan && desc->antiAlias[0] == a.antiAlias &&desc->antiAlias[1] == AntiAliasSettings{} && desc->antiAliasActive(), "E0: describeStages carries the anti-aliasing instance");- uint32_t aaStep = kMaxChainNodes;- if (desc->fixedExecutionPlan)- for (uint32_t i = 0; i < desc->fixedExecutionPlan->stepCount; ++i)- if (desc->fixedExecutionPlan->steps[i].type == EffectType::AntiAliasing) aaStep = i;- check(aaStep < kMaxChainNodes && desc->fixedExecutionPlan->steps[aaStep].output == pipeline::Extent{1280, 720} &&- desc->slotOfStep(aaStep) == pipeline::EnhanceGraphDesc::PassSlot::SourcePost,- "E0: list anti-aliasing runs at source size right after the input conversion");+ aaStep = stepOf(EffectType::AntiAliasing);+ check(aaStep < kMaxChainNodes && stepOf(EffectType::SuperResolution) < aaStep && stepOf(EffectType::NrEnhance) < aaStep &&+ desc->fixedExecutionPlan->steps[aaStep].output == desc->fixedExecutionPlan->output &&+ desc->slotOfStep(aaStep) == Slot::Tail && !desc->sourcePostActive(),+ "E0: SR first, list anti-aliasing follows NR at the output size");const auto error = desc->validateFixedExecutionPlan();check(pipeline::EnhanceGraphDesc::antiAliasExecutor ? error.empty() : error == "anti-aliasing is not available in this build","E0: an enabled instance is refused until its executor is built");