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++
Validate temporal NR protection and isolate optional resource probes
Veyra Goal Agentd2921d219d26
diff --git a/docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.md b/docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.mdnew file mode 100644index 00000000..55096a16--- /dev/null+++ b/docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.md@@ -0,0 +1,43 @@+# Local optional NR resource findings — 2026-09-08++Status: experimental contract mismatch, not enabled in any product entry point. The existing post-NR protection remains the production path. No SDK/runtime replacement, export integrity change, or normal-path pixel readback.++## What was tested++Fixed signed 310.8.0.0 Feature18, RTX5070. Shared EnhanceGraph, 256x256 RGB synthetic input, real parity encode/NR/parity decode. An unset-by-default diagnostic parameter callback lets this test bind external masks and retain raw proxy/neural texture pointers. The test allocates resources before graph views, uploads once, and explicitly transitions internal SRVs to COMMON for diagnostic readback and back afterwards. All optional-resource cases enable D3D12 debug layer and fail on error messages.++Primary behavioral references (no third-party code copied): [author findings](https://github.com/kibblerz/DLSS5-Reshade-AIO/blob/5112b4f5ed5ed0865cb56709ece751ce53c039f1/lab/PRIVATE-CONTRACT-FINDINGS.md), [author parameter types](https://github.com/kibblerz/DLSS5-Reshade-AIO/blob/5112b4f5ed5ed0865cb56709ece751ce53c039f1/lab/nr-lab.cpp). Local results take precedence over extrapolating that report.++Cases: 0 no optional resource; 1 ControlMask zero; 2 ControlMask one; 3 ControlMask center rectangle; 4 UIAlpha one + matching proxy Backbuffer, UICorrection0; 5 UIAlpha zero + Backbuffer, correction1; 6 UIAlpha one + Backbuffer, correction1; 7 UIAlpha rectangle + Backbuffer, correction1. R8 and RGBA8 masks use zero/255 (all channels for RGBA8). Optional subrects use signed I32 after checking the author's probe; U32 was also tested and did not explain the mismatch.++## Measured results, not a blanket PASS++R8: logs/optimization-goal-20260908/image-423214a367444f56b4d525981d273373,12.736s,exit1. RGBA8: image-7868ab72c2f84ec292b0d44cd26216bd,12.912s,exit1. Each mode created/evaluated successfully, one NR evaluation, debug errors0. NR baseline modifies191323source RGB channels. Formats produced the same reported differences.++| Case | Raw NR result | Final result |+|---|---|---|+| ControlMask zero | Exactly equals input proxy | Up to8/255 from original after parity reconstruction |+| ControlMask one | Up to57/255 from no-mask NR; only7/255 max from proxy | Up to57/255 from ordinary NR baseline |+| ControlMask rectangle | Zero-region exactly proxy; active region differs from baseline up to53/255 | Not a drop-in ordinary NR mask |+| UI correction disabled | Exactly no-resource NR baseline | Exactly baseline |+| UIAlpha zero, correction enabled | Up to1/255 from no-resource NR | Up to2/255 from baseline |+| UIAlpha one, correction enabled | Exactly proxy | Up to8/255 from original after parity reconstruction |+| UIAlpha rectangle, correction enabled | Protected region exactly proxy; outside up to1/255 from baseline | Protected region up to8/255 from original; outside up to2/255 from baseline |++The final source differences cannot be called failed raw masking: the raw neural pixels equal proxy in bypassed regions. Conversely raw masking does not establish exact preservation after parity. The rectangle and gating responses prove spatial resource effectiveness in these static cases, not that the model excludes HUD from all internal computation/history. The ControlMask normal-result assumption remains contradicted locally; its root cause is not established.++The optional probe is a separate explicit command and retains exit1 whenever the expected full contract fails. It is not folded into a falsely green product test or silently enabled in playback. Ordinary image/temporal protection tests are independent of this experimental claim.++## Failure trail and next decision++Initial image-8d0df46b3e5d4104be1a1db70c6408b1,28.075s: overly strong final-source identity assertion failed8; replaced with raw-domain measurement while retaining final error report. image-0a67c23f95cf40bc880ae45875973898,26.825s: diagnostic readback had two invalid COMMON-before barriers; corrected with explicit transitions, no product readback added. image-3e9167257aea4605af46e1cc5b4b12d4,29.701s: debug0, ControlMask-one mismatch57. Signed-I32 test image-16a430e9d2024238a8cbc0c1b0c77ccd,29.947s unchanged. Full R8 and RGBA8 matrices above retain failures. Stop repeating this hypothesis without new evidence.++Keep exact post-NR manual protection; do not expose these private resources as a quality improvement. The next quality work is Q6 motion confidence/out-of-frame/reprojection validation and FG reference policy. Natural footage, moving private masks, SR/FG HUD protection and all candidate algorithm ROI remain unproved. This is evidence for an integration decision, not full Goal completion.++Reproduce: build via scripts/build.ps1 -Root "$PWD" -Preset x64-release. Set FFmpeg DLL PATH as existing runner. Run veyra_image_dimension_tests.exe --nr-optional <unique-output-directory> or --nr-optional-rgba <unique-output-directory>, each with275secondwatchdog. No flag runs normal image plus temporal-protection regression tests.++## Cycles67–68 independent review and checkpoint++review_nr_temporal_optional final scoped PASS; no introduced P0/P1/P2. Preflight71, phase7 logs/delivery/2b2498a58135471e981779c989390d31/result.json41.739s/75 checks; normal image6508c7ccffcc45c6a46ca158e14fe0d7 exit0/26.855s. Optional R8 image-d5f8d7387035495f95d22bc04d705857 exit1/12.753s andRGBA image-d997436007bd4a3c9214adbd550f0dd8 exit1/12.526s independently reproduce expectation mismatch with debug0. Optional failure is retained; no private resource integration approved. Reviewer actual frame4 protected PNG viewed; callback product-default-disabled and resource lifetime/state transitions verified. Diff fingerprint9bdf08fe0712eb335c4e1f027b450b2a3de0cfd8 unchanged. AppB48EB58A70FCB1B25014AD27688B7A3DA90058DD2BD8A0ED4AC383E57E2D0F1C, imageEXEF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0.++Existing P2 diagnostic gap found: tests/integration/RepairShaderTests.cpp still uses8 residual constants, actual shader requires24. Current graph image matrix uses24 correctly, but that old standalone harness cannot prove the current contract. Next atomic task fixes and validates this harness, then Q6 adds bounds/photometric motion checks and measuresFG; Q7 and natural comparisons remain open. FullGoal/Phase7in_progress; no practical capture/long-term/distribution acceptance claimed.diff --git a/docs/REVIEW_NR_TEMPORAL_OPTIONAL_2026-09-08.md b/docs/REVIEW_NR_TEMPORAL_OPTIONAL_2026-09-08.mdnew file mode 100644index 00000000..712618af--- /dev/null+++ b/docs/REVIEW_NR_TEMPORAL_OPTIONAL_2026-09-08.md@@ -0,0 +1,9 @@+# Temporal NR protection and optional-resource review++## Cycles67–68 independent review and checkpoint++review_nr_temporal_optional final scoped PASS; no introduced P0/P1/P2. Preflight71, phase7 logs/delivery/2b2498a58135471e981779c989390d31/result.json41.739s/75 checks; normal image6508c7ccffcc45c6a46ca158e14fe0d7 exit0/26.855s. Optional R8 image-d5f8d7387035495f95d22bc04d705857 exit1/12.753s andRGBA image-d997436007bd4a3c9214adbd550f0dd8 exit1/12.526s independently reproduce expectation mismatch with debug0. Optional failure is retained; no private resource integration approved. Reviewer actual frame4 protected PNG viewed; callback product-default-disabled and resource lifetime/state transitions verified. Diff fingerprint9bdf08fe0712eb335c4e1f027b450b2a3de0cfd8 unchanged. AppB48EB58A70FCB1B25014AD27688B7A3DA90058DD2BD8A0ED4AC383E57E2D0F1C, imageEXEF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0.++Existing P2 diagnostic gap found: tests/integration/RepairShaderTests.cpp still uses8 residual constants, actual shader requires24. Current graph image matrix uses24 correctly, but that old standalone harness cannot prove the current contract. Next atomic task fixes and validates this harness, then Q6 adds bounds/photometric motion checks and measuresFG; Q7 and natural comparisons remain open. FullGoal/Phase7in_progress; no practical capture/long-term/distribution acceptance claimed.++Scope: synthetic fixed hard masks only; no moving or feathered mask temporal proof, natural footage, internal HUD exclusion, SR/FG protection or Q6/Q7 approval. Reviewer did not build; it ran the identified binaries. Initial wrapper failure due Maker documentation write during gate is recorded in JOURNAL, then frozen maker and independent gates passed.diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.mdindex 4e09ee84..fd91db4f 100644--- a/docs/USER_GUIDE.md+++ b/docs/USER_GUIDE.md@@ -31,6 +31,12 @@专业模式:鼠标悬停画面后滚轮缩放(以鼠标位置为中心),按住中键拖动,右键恢复适应窗口。切回日常模式或打开新媒体时恢复适应窗口。缩放只影响预览,不重启增强,也不改变保存/导出尺寸。大图缩放从完整增强结果取景。+## 手动保护画面中的 UI / 字幕++专业模式 → 增强 → “框选区域”,在画面上按住左键拖动,最多保存4个区域;Esc取消当前框选,“清除区域”删除全部。保护区域随画面坐标缩放,可随预设保存;切换媒体来源会清空,避免把上个画面的框误用到新内容。++“NR保护区域”仅抑制这些区域的NR改动,框内的背景也会一起保留。它不是自动识别HUD,也不保证SR超分或帧生成不改变该区域。合成动态背景、固定HUD和字幕更替已做像素验证;自然素材效果仍需观察。原有“UI修正 · 未证实”是模型实验参数,与手动保护不同;私有UI资源尚未接入产品。+## 对比、性能与诊断- 专业模式按住V或“按住原图”临时查看原图;可用“原图/增强切换”和“分屏拖动”,并选择输入原画或增强前底图作为参考。对比显示同一源帧的GPU参考,生成帧没有天然原图时明确使用真实帧对比。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 7b17e0cb..0d90bdeb 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1183,3 +1183,15 @@ Maker image-262e170a7cef4014b6287f6c4c022f22 passed 21.828s. Independent review_Image-test SHA256 052F7DE99BB622DDF05F977D5431C8257F26330119CF7760072126C3DC655481. App remains 0654C61F11D9FC50436B964F385E4028E6458C4B9D186B6DCD5B0796C383B4F5. Reviewer tracked fingerprint f80219622037f7671d65046e14313267f9bb85ce unchanged.Limits: these assertions prove endpoints and bounded nontrivial blending, not exact smoothstep or perceptual smoothness. Central seams covered, not every seam with a protected region. Moving HUD/temporal behavior, natural quality, SR/FG protection and private resource effectiveness remain unverified. Phase7 and full Goal remain in_progress. Next atomic task: moving-background/static-HUD protection matrix, then isolated optional NR resource contract; Q6 motion confidence/FG and Q7 candidate ROI remain pending.++## Cycles 67–68 - temporal protection and private-resource decision++Previous Goal turn was progress (3d73860 boundary evidence). Cycle67 normal temporal graph synthetic moving background/static HUD/caption replacements: final logs/optimization-goal-20260908/image-0f6adfcbc36b4eafb785d67f7a15e926/result.json26.004s PASS; 12NR/11NVOF/11motion frames per sequence, reset1/cut0, protected/outsideerror0. Positive controls changed1800777background and467773HUD channels;28350captionchannels genuinely changed to current input at frames4/8. Four actual captures saved per sequence; frame4 protected viewed. This is synthetic hard-mask proof, not natural footage or moving-mask/feather temporal quality.++Cycle68 adds an unset-by-default diagnostic NR parameter callback (EnhanceGraph.h/.cpp) and explicit optional-resource probe in ImageDimensionTests.cpp. No normal-path pixel readbacks, export checks or UI resource binding. Full private-resource expected contract FAIL is retained, not converted to PASS: R8 12.736s andRGBA8 12.912s exit1; Create/Evaluate successful/debug0, but ControlMask-one differs57 and UIAlpha-unprotected differs2 in final8-bit output. Raw protected output matches proxy while parity final differs8 from original. Diagnostic-state bug corrected; signedI32 andRGBA8 hypotheses did not fix mismatch. Full trail and primary citations: docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.md. Stop repeated hypotheses without new evidence; retain exact post-NR protection, proceed Q6. Final image executableF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0. Build via scripts/build.ps1 -Root "$PWD" -Preset x64-release, log build-nr-optional-format.log. Tests use run-image-tests.ps1 with275secondwatchdog; optional flags separately retain exit1. Independent review pending.++## Cycles67–68 independent review and checkpoint++review_nr_temporal_optional final scoped PASS; no introduced P0/P1/P2. Preflight71, phase7 logs/delivery/2b2498a58135471e981779c989390d31/result.json41.739s/75 checks; normal image6508c7ccffcc45c6a46ca158e14fe0d7 exit0/26.855s. Optional R8 image-d5f8d7387035495f95d22bc04d705857 exit1/12.753s andRGBA image-d997436007bd4a3c9214adbd550f0dd8 exit1/12.526s independently reproduce expectation mismatch with debug0. Optional failure is retained; no private resource integration approved. Reviewer actual frame4 protected PNG viewed; callback product-default-disabled and resource lifetime/state transitions verified. Diff fingerprint9bdf08fe0712eb335c4e1f027b450b2a3de0cfd8 unchanged. AppB48EB58A70FCB1B25014AD27688B7A3DA90058DD2BD8A0ED4AC383E57E2D0F1C, imageEXEF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0.++Existing P2 diagnostic gap found: tests/integration/RepairShaderTests.cpp still uses8 residual constants, actual shader requires24. Current graph image matrix uses24 correctly, but that old standalone harness cannot prove the current contract. Next atomic task fixes and validates this harness, then Q6 adds bounds/photometric motion checks and measuresFG; Q7 and natural comparisons remain open. FullGoal/Phase7in_progress; no practical capture/long-term/distribution acceptance claimed.diff --git a/include/veyra/pipeline/EnhanceGraph.h b/include/veyra/pipeline/EnhanceGraph.hindex 9b38c14c..d843ad1e 100644--- a/include/veyra/pipeline/EnhanceGraph.h+++ b/include/veyra/pipeline/EnhanceGraph.h@@ -74,6 +74,9 @@ struct EnhanceGraphDesc {std::wstring runtimeAbsPath; // absolute runtime_local/nvidia path// Optional stage instrumentation hook (GPU timing experiments).std::function<void(const char*)> stageMark;+ // Isolated contract probes only. Unset by every product entry point.+ // Caller retains any supplied resources until graph drain/shutdown.+ std::function<void(NVSDK_NGX_Parameter*,ID3D12Resource*,ID3D12Resource*,uint32_t,uint32_t)> nrParameterProbe;};class EnhanceGraph {diff --git a/loop/EVIDENCE.md b/loop/EVIDENCE.mdindex f915e4a9..410f7f68 100644--- a/loop/EVIDENCE.md+++ b/loop/EVIDENCE.md@@ -486,3 +486,15 @@ Maker image-262e170a7cef4014b6287f6c4c022f22 passed 21.828s. Independent review_Image-test SHA256 052F7DE99BB622DDF05F977D5431C8257F26330119CF7760072126C3DC655481. App remains 0654C61F11D9FC50436B964F385E4028E6458C4B9D186B6DCD5B0796C383B4F5. Reviewer tracked fingerprint f80219622037f7671d65046e14313267f9bb85ce unchanged.Limits: these assertions prove endpoints and bounded nontrivial blending, not exact smoothstep or perceptual smoothness. Central seams covered, not every seam with a protected region. Moving HUD/temporal behavior, natural quality, SR/FG protection and private resource effectiveness remain unverified. Phase7 and full Goal remain in_progress. Next atomic task: moving-background/static-HUD protection matrix, then isolated optional NR resource contract; Q6 motion confidence/FG and Q7 candidate ROI remain pending.++## Cycles 67–68 - temporal protection and private-resource decision++Previous Goal turn was progress (3d73860 boundary evidence). Cycle67 normal temporal graph synthetic moving background/static HUD/caption replacements: final logs/optimization-goal-20260908/image-0f6adfcbc36b4eafb785d67f7a15e926/result.json26.004s PASS; 12NR/11NVOF/11motion frames per sequence, reset1/cut0, protected/outsideerror0. Positive controls changed1800777background and467773HUD channels;28350captionchannels genuinely changed to current input at frames4/8. Four actual captures saved per sequence; frame4 protected viewed. This is synthetic hard-mask proof, not natural footage or moving-mask/feather temporal quality.++Cycle68 adds an unset-by-default diagnostic NR parameter callback (EnhanceGraph.h/.cpp) and explicit optional-resource probe in ImageDimensionTests.cpp. No normal-path pixel readbacks, export checks or UI resource binding. Full private-resource expected contract FAIL is retained, not converted to PASS: R8 12.736s andRGBA8 12.912s exit1; Create/Evaluate successful/debug0, but ControlMask-one differs57 and UIAlpha-unprotected differs2 in final8-bit output. Raw protected output matches proxy while parity final differs8 from original. Diagnostic-state bug corrected; signedI32 andRGBA8 hypotheses did not fix mismatch. Full trail and primary citations: docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.md. Stop repeated hypotheses without new evidence; retain exact post-NR protection, proceed Q6. Final image executableF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0. Build via scripts/build.ps1 -Root "$PWD" -Preset x64-release, log build-nr-optional-format.log. Tests use run-image-tests.ps1 with275secondwatchdog; optional flags separately retain exit1. Independent review pending.++## Cycles67–68 independent review and checkpoint++review_nr_temporal_optional final scoped PASS; no introduced P0/P1/P2. Preflight71, phase7 logs/delivery/2b2498a58135471e981779c989390d31/result.json41.739s/75 checks; normal image6508c7ccffcc45c6a46ca158e14fe0d7 exit0/26.855s. Optional R8 image-d5f8d7387035495f95d22bc04d705857 exit1/12.753s andRGBA image-d997436007bd4a3c9214adbd550f0dd8 exit1/12.526s independently reproduce expectation mismatch with debug0. Optional failure is retained; no private resource integration approved. Reviewer actual frame4 protected PNG viewed; callback product-default-disabled and resource lifetime/state transitions verified. Diff fingerprint9bdf08fe0712eb335c4e1f027b450b2a3de0cfd8 unchanged. AppB48EB58A70FCB1B25014AD27688B7A3DA90058DD2BD8A0ED4AC383E57E2D0F1C, imageEXEF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0.++Existing P2 diagnostic gap found: tests/integration/RepairShaderTests.cpp still uses8 residual constants, actual shader requires24. Current graph image matrix uses24 correctly, but that old standalone harness cannot prove the current contract. Next atomic task fixes and validates this harness, then Q6 adds bounds/photometric motion checks and measuresFG; Q7 and natural comparisons remain open. FullGoal/Phase7in_progress; no practical capture/long-term/distribution acceptance claimed.diff --git a/loop/JOURNAL.md b/loop/JOURNAL.mdindex d0957672..c3f2090f 100644--- a/loop/JOURNAL.md+++ b/loop/JOURNAL.md@@ -1475,3 +1475,25 @@ Maker image-262e170a7cef4014b6287f6c4c022f22 passed 21.828s. Independent review_Image-test SHA256 052F7DE99BB622DDF05F977D5431C8257F26330119CF7760072126C3DC655481. App remains 0654C61F11D9FC50436B964F385E4028E6458C4B9D186B6DCD5B0796C383B4F5. Reviewer tracked fingerprint f80219622037f7671d65046e14313267f9bb85ce unchanged.Limits: these assertions prove endpoints and bounded nontrivial blending, not exact smoothstep or perceptual smoothness. Central seams covered, not every seam with a protected region. Moving HUD/temporal behavior, natural quality, SR/FG protection and private resource effectiveness remain unverified. Phase7 and full Goal remain in_progress. Next atomic task: moving-background/static-HUD protection matrix, then isolated optional NR resource contract; Q6 motion confidence/FG and Q7 candidate ROI remain pending.++## Cycle 67 - temporal NR protection matrix+Previous turn progress: committed 3d73860, independent boundary evidence. Current clean HEAD verified, no STOP. Add synthetic moving background plus fixed HUD and changing caption through actual temporal graph, compare independent no-mask sequence with protected sequence; test-only readbacks, <=275s watchdog. Preserve full Q5/Q6/Q7 scope.++Cycle67 result: image-914d4908604b4407a582c4fe55d07125 25.298s PASS; 12NR/11NVOF each, reset1 cut0, protected/outsideerror0, captionfresh28350channels. Phase7 75 PASS. Independent review pending with next isolated probe.++## Cycle 68 - isolated optional NR resource experiment+Add opt-in diagnostic-only parameter hook, unset in all app paths, and synthetic R8 zero/one/rectangle probes for ControlMask and UIAlpha+original proxy Backbuffer. Never infer resource usage from return code alone. External source is pinned PRIVATE-CONTRACT-FINDINGS.md already read, behavioral reference only. No private resource enabled for users until measured.++## Cycles 67–68 - temporal protection and private-resource decision++Previous Goal turn was progress (3d73860 boundary evidence). Cycle67 normal temporal graph synthetic moving background/static HUD/caption replacements: final logs/optimization-goal-20260908/image-0f6adfcbc36b4eafb785d67f7a15e926/result.json26.004s PASS; 12NR/11NVOF/11motion frames per sequence, reset1/cut0, protected/outsideerror0. Positive controls changed1800777background and467773HUD channels;28350captionchannels genuinely changed to current input at frames4/8. Four actual captures saved per sequence; frame4 protected viewed. This is synthetic hard-mask proof, not natural footage or moving-mask/feather temporal quality.++Cycle68 adds an unset-by-default diagnostic NR parameter callback (EnhanceGraph.h/.cpp) and explicit optional-resource probe in ImageDimensionTests.cpp. No normal-path pixel readbacks, export checks or UI resource binding. Full private-resource expected contract FAIL is retained, not converted to PASS: R8 12.736s andRGBA8 12.912s exit1; Create/Evaluate successful/debug0, but ControlMask-one differs57 and UIAlpha-unprotected differs2 in final8-bit output. Raw protected output matches proxy while parity final differs8 from original. Diagnostic-state bug corrected; signedI32 andRGBA8 hypotheses did not fix mismatch. Full trail and primary citations: docs/NR_OPTIONAL_RESOURCE_FINDINGS_2026-09-08.md. Stop repeated hypotheses without new evidence; retain exact post-NR protection, proceed Q6. Final image executableF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0. Build via scripts/build.ps1 -Root "$PWD" -Preset x64-release, log build-nr-optional-format.log. Tests use run-image-tests.ps1 with275secondwatchdog; optional flags separately retain exit1. Independent review pending.++Final wrapper first rerun failed no-project-mutation only: Maker updated WORKLOG/EVIDENCE/JOURNAL during gate. Delivery body passed42.281s. This is a Maker sequencing error, not a product pass. Rerun gate with all tracked writes frozen; preserve first failure log gate-nr-optional-final.log.++## Cycles67–68 independent review and checkpoint++review_nr_temporal_optional final scoped PASS; no introduced P0/P1/P2. Preflight71, phase7 logs/delivery/2b2498a58135471e981779c989390d31/result.json41.739s/75 checks; normal image6508c7ccffcc45c6a46ca158e14fe0d7 exit0/26.855s. Optional R8 image-d5f8d7387035495f95d22bc04d705857 exit1/12.753s andRGBA image-d997436007bd4a3c9214adbd550f0dd8 exit1/12.526s independently reproduce expectation mismatch with debug0. Optional failure is retained; no private resource integration approved. Reviewer actual frame4 protected PNG viewed; callback product-default-disabled and resource lifetime/state transitions verified. Diff fingerprint9bdf08fe0712eb335c4e1f027b450b2a3de0cfd8 unchanged. AppB48EB58A70FCB1B25014AD27688B7A3DA90058DD2BD8A0ED4AC383E57E2D0F1C, imageEXEF574508156F15E51B1E9FB932BBA3F96589E7B8A4B3DCA85DE71D046A3B6F6B0.++Existing P2 diagnostic gap found: tests/integration/RepairShaderTests.cpp still uses8 residual constants, actual shader requires24. Current graph image matrix uses24 correctly, but that old standalone harness cannot prove the current contract. Next atomic task fixes and validates this harness, then Q6 adds bounds/photometric motion checks and measuresFG; Q7 and natural comparisons remain open. FullGoal/Phase7in_progress; no practical capture/long-term/distribution acceptance claimed.diff --git a/loop/STATE.json b/loop/STATE.jsonindex 94ebcc86..32c30b0d 100644--- a/loop/STATE.json+++ b/loop/STATE.json@@ -76,19 +76,19 @@}],"cycle": {- "completed": 66,+ "completed": 68,"maximum": 120,"sameFailureAttempts": 0,"maximumSameFailureAttempts": 3,"noProgressCycles": 0,"maximumNoProgressCycles": 5},- "currentTask": "Manual NR protection boundary diagnostics independently reviewed PASS; full quality goal ongoing",+ "currentTask": "Temporal manual NR protection reviewed PASS; optional resource contract mismatch independently confirmed, not integrated","lastGate": {"name": "phase7","status": "passed","exitCode": 0,- "evidence": "logs/delivery/d8846bbfe5d54b41b7b14327e8897975/result.json 41.695s;75checks"+ "evidence": "logs/delivery/2b2498a58135471e981779c989390d31/result.json 41.739s;75checks"},"lastFailureFingerprint": "","failureLedger": [@@ -107,8 +107,8 @@"Current USB2 1080p50 physical throughput passed; user perceived latency/audio/actual FG display cadence still need confirmation.","Public proprietary runtime distribution rights unresolved; local delivery only."],- "nextAction": "Moving-background/static-HUD protection matrix, then isolated optional NR resources; Q6 motion confidence/FG and Q7 candidate ROI/natural reconstruction comparisons",- "updatedAt": "2026-09-08T10:31:00.662715+00:00",+ "nextAction": "Correct existing RepairShaderTests residual constants8->24 and validate; then Q6 out-of-frame/photometric motion confidence and FG policy, Q7 candidate ROI/natural reconstruction",+ "updatedAt": "2026-09-08T10:52:23.421388+00:00","deliveryPlan": "docs/ACTIVE_DELIVERY_PLAN.md","captureAcceptance": "throughput_short_test_passed_user_latency_audio_pending","testInvocationLimitSeconds": 300,@@ -127,7 +127,8 @@"docs/REVIEW_CAPTURE_RGB_2026-09-08.md: independent phase7afe022a9 41.407s and image9ac2822f11.487s PASS; synthetic RGB only","docs/REVIEW_SR_CONTRACT_2026-09-08.md: independent scopedPASS; SR60a70819e6 actual motion andGBV0, image route/color golden passed","docs/REVIEW_NR_PROTECTION_2026-09-08.md: scopedPASS afterP2syncfix; GPU/presets andactualUI dirty/master-off independently verified",- "Cycle66 independent scoped PASS: image-e8c7b9377cd94f68bd50fb189bd8b49c 21.916s; feather2/32, disjoint, central tile seams. No product changes."+ "Cycle66 independent scoped PASS: image-e8c7b9377cd94f68bd50fb189bd8b49c 21.916s; feather2/32, disjoint, central tile seams. No product changes.",+ "Cycles67-68 independent scoped PASS: temporal image6508c7cc PASS; optional R8d5f8d738/RGBAd9974360 reproduce expected-contract FAIL, no product integration."],"reviewBaseCommit": "6f0ebaa687e3966d989bf138c86b6882380f20fb","localDelivery": "capture_fix_candidate_needs_review",@@ -265,8 +266,11 @@"testInvocationLimitSeconds": 300,"productModified": true,"consecutiveBlockedGoalTurns": 0,- "previousGoalTurnClassification": "progress: SR checkpointeba2ec8 independently reviewed",- "currentGoalTurnClassification": "progress: GPU NR protection, normalized UI selection and preset compatibility implemented/tested",- "controlSynchronizationAuthorization": "2026-09-08 user: 确认,给你全部权限; applies to previously proposed exact two-hash synchronization"+ "previousGoalTurnClassification": "progress: cycle66 boundary evidence committed3d73860",+ "currentGoalTurnClassification": "progress: temporal protection verified; optional resources independently measured and rejected for integration; existing shader harness P2 identified",+ "controlSynchronizationAuthorization": "2026-09-08 user: 确认,给你全部权限; applies to previously proposed exact two-hash synchronization",+ "diagnosticFindings": [+ "P2 pre-existing RepairShaderTests.cpp residual constants8 vs24; next atomic repair"+ ]}}diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cppindex 3a8f533a..1c77e66a 100644--- a/src/pipeline/EnhanceGraph.cpp+++ b/src/pipeline/EnhanceGraph.cpp@@ -958,6 +958,7 @@ bool EnhanceGraph::process(const AVFrame* frame, double ptsMs, bool reset, Framepb.setF32(p::kSkinStructureStrength, desc_.model.skin);pb.setI32(p::kUseAutoMask, desc_.model.autoMask);pb.setI32(p::kUICorrection, desc_.model.uiCorrection);+ if(desc_.nrParameterProbe)desc_.nrParameterProbe(ngxParams_,proxyTex_.Get(),neuralTex_.Get(),nrW_,nrH_);static bool injectedFailureConsumed=false;if(!injectedFailureConsumed&&desc_.model.style==2&&GetEnvironmentVariableW(L"VEYRA_TEST_REJECT_NR_STYLE2",nullptr,0)){injectedFailureConsumed=true;veyra::log::error("settings-test","injected NR execution rejection before NGX; rollback exercise, not a hardware failure");return false;diff --git a/tests/integration/ImageDimensionTests.cpp b/tests/integration/ImageDimensionTests.cppindex 588a3df0..6a60ac32 100644--- a/tests/integration/ImageDimensionTests.cpp+++ b/tests/integration/ImageDimensionTests.cpp@@ -5,9 +5,12 @@#include "veyra/engine/EnhancementSettings.h"#include "veyra/engine/TiledImageProcessor.h"#include "veyra/pipeline/ColorMetadata.h"+#include "veyra/ngx/NgxParameters.h"#include <filesystem>#include <iostream>#include <cmath>+#include <vector>+#include <d3d12sdklayers.h>extern "C" {#include <libavutil/frame.h>#include <libavutil/pixfmt.h>@@ -210,8 +213,162 @@ bool protectionPixels(){std::cout<<"PROTECTION_PIXELS empty/full/rectangle/feather/disjoint changed="<<changed<<" protectedError8="<<protectedError<<" outsideError8="<<outsideError<<" nr="<<graph.metrics().nrEvaluateCount<<" pass="<<ok<<std::endl;ring.drainQueue();graph.shutdown();av_frame_free(&f);ring.shutdown();ctx.shutdown();return ok;}+// Two independent temporal sequences share identical input, PTS and history.+// Readback is diagnostic only; normal playback never calls this test.+bool protectionMoving(const std::filesystem::path& directory){+ constexpr unsigned width=256,height=256,frames=12;+ std::vector<sink::RgbaImage> baseline(frames);+ auto protectedPixel=[](unsigned x,unsigned y){return (x>=16&&x<112&&y>=16&&y<64)||(x>=32&&x<224&&y>=192&&y<240);};+ bool ok=true;uint64_t changedOutside=0,changedHud=0,replacedCaption=0;+ int protectedError=0,outsideError=0;+ for(unsigned mode=0;mode<2&&ok;++mode){+ gfx::D3D12DeviceContext ctx;gfx::CommandSlotRing ring;Status st;gfx::DeviceContextDesc device;+ if(!ctx.initialize(device,st)||!ring.initialize(ctx.device(),ctx.directQueue(),ctx.fence(),ctx.fenceEvent(),4,st))return false;+ pipeline::EnhanceGraph graph(ctx,ring);pipeline::EnhanceGraphDesc gd;+ gd.sourceWidth=gd.workWidth=width;gd.sourceHeight=gd.workHeight=height;+ gd.rgbInput=gd.enableNr=gd.enableNvofStandalone=true;gd.enableFg=false;+ gd.runtimeAbsPath=(std::filesystem::path(VEYRA_PROJECT_ROOT)/"runtime_local/nvidia").wstring();+ gd.protection.enabled=mode==1;gd.protection.featherPixels=0;+ gd.protection.regions[0]={16.f/width,16.f/height,112.f/width,64.f/height};+ gd.protection.regions[1]={32.f/width,192.f/height,224.f/width,240.f/height};+ if(!graph.initialize(gd)||!graph.createViews())return false;+ AVFrame* f=av_frame_alloc();f->format=AV_PIX_FMT_RGBA;f->width=width;f->height=height;+ if(av_frame_get_buffer(f,32)<0){av_frame_free(&f);return false;}+ sink::RgbaImage previousInput;+ for(unsigned frame=0;frame<frames&&ok;++frame){+ sink::RgbaImage input;input.width=width;input.height=height;input.pixels.resize(size_t(width)*height*4);+ for(unsigned y=0;y<height;++y)for(unsigned x=0;x<width;++x){+ auto* p=input.pixels.data()+(size_t(y)*width+x)*4;+ unsigned sx=(x+frame*3)%width,sy=(y+frame)%height;+ p[0]=uint8_t(40+(sx*7+sy*3)%160);p[1]=uint8_t(32+(sx*3+sy*11)%176);p[2]=uint8_t(24+(sx*5+sy*17)%192);p[3]=255;+ if(protectedPixel(x,y)){+ // Fixed top HUD; bottom synthetic glyphs change at frames 4/8.+ unsigned textPhase=y>=192?frame/4:0;+ unsigned gx=(x/3+textPhase*2)%7,gy=(y/3)%9;+ bool ink=(gx==1||gx==5||gy==2||gy==6)&&((x/21+textPhase)%3!=1||gy!=2);+ p[0]=ink?235:24;p[1]=ink?224:30;p[2]=ink?180:40;+ }+ memcpy(f->data[0]+size_t(y)*f->linesize[0]+x*4,p,4);+ }+ pipeline::EnhanceGraph::FrameOutputs out;sink::RgbaImage result;+ ok=graph.process(f,frame*(1000.0/30),frame==0,out,frame+1)&&sink::readRgba8(ctx,ring,graph.videoFrameResource(out.videoSlot),result);+ if(ok){ok=result.width==width&&result.height==height&&result.pixels.size()==input.pixels.size();+ if(!mode)baseline[frame]=result;+ for(unsigned y=0;y<height&&ok;++y)for(unsigned x=0;x<width;++x)for(unsigned c=0;c<3;++c){+ size_t i=(size_t(y)*width+x)*4+c;bool region=protectedPixel(x,y);+ if(!mode){if(region)changedHud+=result.pixels[i]!=input.pixels[i];else changedOutside+=result.pixels[i]!=input.pixels[i];}+ else if(region){protectedError=std::max(protectedError,std::abs(int(result.pixels[i])-int(input.pixels[i])));+ if((frame==4||frame==8)&&y>=192)replacedCaption+=input.pixels[i]!=previousInput.pixels[i]&&result.pixels[i]!=previousInput.pixels[i];+ }else outsideError=std::max(outsideError,std::abs(int(result.pixels[i])-int(baseline[frame].pixels[i])));+ }+ if(frame==0||frame==4||frame==8||frame==11){+ auto prefix="moving-"+std::to_string(frame);+ ok=ok&&sink::saveImage((directory/(prefix+(mode?"-protected.png":"-nr.png"))).wstring(),result);+ if(!mode)ok=ok&&sink::saveImage((directory/(prefix+"-input.png")).wstring(),input);+ }+ }+ std::cout<<"PROTECTION_MOVING_FRAME mode="<<mode<<" frame="<<frame<<" protectedError8="<<protectedError<<" outsideError8="<<outsideError<<" pass="<<ok<<std::endl;+ previousInput=std::move(input);out={};+ }+ const auto m=graph.metrics();ok=ok&&m.nrEvaluateCount==frames&&m.nvofExecuteCount>=9&&m.nrMotionFrames>=9;+ std::cout<<"PROTECTION_MOVING_SEQUENCE mode="<<mode<<" nr="<<m.nrEvaluateCount<<" nvof="<<m.nvofExecuteCount<<" motionFrames="<<m.nrMotionFrames<<" resets="<<m.resetCount<<" cuts="<<m.sceneCutCount<<" pass="<<ok<<std::endl;+ ring.drainQueue();graph.shutdown();av_frame_free(&f);ring.shutdown();ctx.shutdown();+ }+ ok=ok&&protectedError<=1&&outsideError==0&&changedOutside>1000&&changedHud>100&&replacedCaption>100;+ std::cout<<"PROTECTION_MOVING_RESULT protectedError8="<<protectedError<<" outsideError8="<<outsideError<<" changedBackground="<<changedOutside<<" changedHud="<<changedHud<<" freshCaptionChannels="<<replacedCaption<<" pass="<<ok<<std::endl;+ return ok;+}+bool nrOptionalResourcePixels(const std::filesystem::path& directory,bool rgba=false){+ constexpr unsigned width=256,height=256;const unsigned bytesPerPixel=rgba?4:1;const auto format=rgba?DXGI_FORMAT_R8G8B8A8_UNORM:DXGI_FORMAT_R8_UNORM;+ sink::RgbaImage baseline,rawBaseline;bool ok=true,matrixMatch=true;uint64_t changed=0;+ for(unsigned mode=0;mode<8&&ok;++mode){+ gfx::D3D12DeviceContext ctx;gfx::CommandSlotRing ring;Status st;gfx::DeviceContextDesc device;device.enableDebugLayer=true;+ if(!ctx.initialize(device,st)||!ring.initialize(ctx.device(),ctx.directQueue(),ctx.fence(),ctx.fenceEvent(),4,st))return false;+ // Allocate/upload before graph descriptor creation. No per-frame upload.+ auto mask=pipeline::makeTexture(ctx.device(),width,height,format,false);+ auto upload=pipeline::makeUploadBuffer(ctx.device(),width*height*bytesPerPixel);+ if(!mask||!upload)return false;+ void* mapped=nullptr;if(FAILED(upload->Map(0,nullptr,&mapped)))return false;+ for(unsigned y=0;y<height;++y)for(unsigned x=0;x<width;++x){+ bool rect=x>=64&&x<192&&y>=64&&y<192;+ for(unsigned c=0;c<bytesPerPixel;++c)static_cast<uint8_t*>(mapped)[(y*width+x)*bytesPerPixel+c]=(mode==2||mode==4||mode==6||((mode==3||mode==7)&&rect))?255:0;+ }upload->Unmap(0,nullptr);+ uint32_t slot=0;auto* list=ring.acquireNext(slot,st);if(!list)return false;+ pipeline::StateTracker states;states.transition(list,mask.Get(),D3D12_RESOURCE_STATE_COPY_DEST);+ D3D12_TEXTURE_COPY_LOCATION dst{},src{};dst.pResource=mask.Get();dst.Type=D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;+ src.pResource=upload.Get();src.Type=D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT;src.PlacedFootprint.Footprint={format,width,height,1,width*bytesPerPixel};+ list->CopyTextureRegion(&dst,0,0,0,&src,nullptr);states.transition(list,mask.Get(),D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);+ if(!ring.submitAndSignal(slot))return false;ring.drainQueue();+ pipeline::EnhanceGraph graph(ctx,ring);pipeline::EnhanceGraphDesc gd;+ gd.sourceWidth=gd.workWidth=width;gd.sourceHeight=gd.workHeight=height;+ gd.rgbInput=gd.stillImage=gd.enableNr=true;gd.enableFg=false;+ gd.runtimeAbsPath=(std::filesystem::path(VEYRA_PROJECT_ROOT)/"runtime_local/nvidia").wstring();+ ID3D12Resource* rawProxy=nullptr;ID3D12Resource* rawNeural=nullptr;+ gd.nrParameterProbe=[&](NVSDK_NGX_Parameter* parameters,ID3D12Resource* proxy,ID3D12Resource* neural,uint32_t w,uint32_t h){+ rawProxy=proxy;rawNeural=neural;if(!mode)return;+ ngx::ParameterBlock pb(parameters);const char* name=mode<=3?"DLSSNR.ControlMask":"DLSSNR.UIAlpha";+ pb.setD3D12Resource(name,mask.Get());+ // Pinned author probe uses signed I32 optional subrects; test exact types.+ for(auto suffix:{"SubrectBaseX","SubrectBaseY","SubrectWidth","SubrectHeight"}){+ std::string key=std::string(name)+suffix;pb.setI32(key.c_str(),std::string(suffix)=="SubrectWidth"?w:std::string(suffix)=="SubrectHeight"?h:0);+ }+ if(mode>=4){+ pb.setI32("DLSSNR.UICorrection",mode==4?0:1);pb.setD3D12Resource("DLSSNR.Backbuffer",proxy);+ pb.setI32("DLSSNR.BackbufferSubrectBaseX",0);pb.setI32("DLSSNR.BackbufferSubrectBaseY",0);+ pb.setI32("DLSSNR.BackbufferSubrectWidth",w);pb.setI32("DLSSNR.BackbufferSubrectHeight",h);+ }+ };+ if(!graph.initialize(gd)||!graph.createViews())return false;+ AVFrame* f=av_frame_alloc();f->format=AV_PIX_FMT_RGBA;f->width=width;f->height=height;+ if(av_frame_get_buffer(f,32)<0){av_frame_free(&f);return false;}+ for(unsigned y=0;y<height;++y)for(unsigned x=0;x<width;++x){auto* p=f->data[0]+size_t(y)*f->linesize[0]+x*4;p[0]=(x*7+y*3)%256;p[1]=(x*3+y*11)%256;p[2]=(x*5+y*17)%256;p[3]=255;}+ pipeline::EnhanceGraph::FrameOutputs out;sink::RgbaImage result;+ ok=graph.process(f,0,true,out,1)&&sink::readRgba8(ctx,ring,graph.videoFrameResource(out.videoSlot),result);+ // Image readback helper requires COMMON; graph internals are SRVs.+ auto rawStates=[&](bool restore){+ uint32_t readSlot=0;auto* readList=ring.acquireNext(readSlot,st);if(!readList)return false;+ for(auto* resource:{rawProxy,rawNeural}){D3D12_RESOURCE_BARRIER b{};b.Type=D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;+ b.Transition={resource,D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES,restore?D3D12_RESOURCE_STATE_COMMON:D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE,restore?D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE:D3D12_RESOURCE_STATE_COMMON};readList->ResourceBarrier(1,&b);}+ return ring.submitAndSignal(readSlot);+ };+ sink::RgbaImage proxyPixels,neuralPixels;+ ok=ok&&rawProxy&&rawNeural&&rawStates(false);+ bool rawPrepared=ok;+ ok=ok&&rawProxy&&rawNeural&&sink::readRgba8(ctx,ring,rawProxy,proxyPixels)&&sink::readRgba8(ctx,ring,rawNeural,neuralPixels);+ if(rawPrepared)ok=rawStates(true)&&ok;+ ok=ok&&proxyPixels.width==width&&proxyPixels.height==height&&neuralPixels.width==width&&neuralPixels.height==height;+ int rawSourceError=0,rawBaselineError=0,rawAllProxyError=0;bool contractMatch=false;+ int sourceError=0,baselineError=0;uint64_t sourcePixels=0,baselinePixels=0;+ if(ok){ok=result.width==width&&result.height==height;if(!mode){baseline=result;rawBaseline=neuralPixels;}+ for(unsigned y=0;y<height&&ok;++y)for(unsigned x=0;x<width;++x){+ bool rect=x>=64&&x<192&&y>=64&&y<192;+ bool sourceExpected=mode==1||mode==6||(mode==3&&!rect)||(mode==7&&rect);+ sourcePixels+=sourceExpected;baselinePixels+=!sourceExpected;+ for(unsigned c=0;c<3;++c){auto i=(size_t(y)*width+x)*4+c;auto original=f->data[0][size_t(y)*f->linesize[0]+x*4+c];+ rawAllProxyError=std::max(rawAllProxyError,std::abs(int(neuralPixels.pixels[i])-int(proxyPixels.pixels[i])));+ if(!mode)changed+=result.pixels[i]!=original;+ else if(sourceExpected){sourceError=std::max(sourceError,std::abs(int(result.pixels[i])-int(original)));rawSourceError=std::max(rawSourceError,std::abs(int(neuralPixels.pixels[i])-int(proxyPixels.pixels[i])));}+ else {baselineError=std::max(baselineError,std::abs(int(result.pixels[i])-int(baseline.pixels[i])));rawBaselineError=std::max(rawBaselineError,std::abs(int(neuralPixels.pixels[i])-int(rawBaseline.pixels[i])));}+ }+ }+ contractMatch=rawSourceError==0&&rawBaselineError==0&&baselineError==0;matrixMatch=matrixMatch&&contractMatch;+ ok=ok&&graph.metrics().nrEvaluateCount==1;+ ok=sink::saveImage((directory/("optional-nr-"+std::to_string(mode)+".png")).wstring(),result)&&ok;+ }+ std::cout<<"NR_OPTIONAL format="<<(rgba?"RGBA8":"R8")<<" mode="<<mode<<" finalSourceError8="<<sourceError<<" allRawProxyError8="<<rawAllProxyError<<" contractMatch="<<contractMatch<<" rawProxyError8="<<rawSourceError<<" rawBaselineError8="<<rawBaselineError<<" baselineError8="<<baselineError<<" sourcePixels="<<sourcePixels<<" baselinePixels="<<baselinePixels<<" positiveControl="<<changed<<" nr="<<graph.metrics().nrEvaluateCount<<" pass="<<ok<<std::endl;+ out={};ring.drainQueue();graph.shutdown();+ pipeline::ComPtr<ID3D12InfoQueue> iq;uint64_t debugErrors=0;+ if(FAILED(ctx.device()->QueryInterface(IID_PPV_ARGS(&iq))))ok=false;+ else for(UINT64 i=0;i<iq->GetNumStoredMessages();++i){SIZE_T size=0;iq->GetMessage(i,nullptr,&size);std::vector<uint8_t> bytes(size);auto* message=reinterpret_cast<D3D12_MESSAGE*>(bytes.data());if(FAILED(iq->GetMessage(i,message,&size))){ok=false;break;}if(message->Severity<=D3D12_MESSAGE_SEVERITY_ERROR){++debugErrors;std::cerr<<message->pDescription<<std::endl;}}+ ok=ok&&!debugErrors;std::cout<<"NR_OPTIONAL_DEBUG mode="<<mode<<" errors="<<debugErrors<<" pass="<<ok<<std::endl;iq.Reset();+ av_frame_free(&f);mask.Reset();upload.Reset();ring.shutdown();ctx.shutdown();+ }+ std::cout<<"NR_OPTIONAL_MATRIX executionPass="<<ok<<" expectedContractMatch="<<matrixMatch<<std::endl;+ return ok&&changed>100&&matrixMatch;+}int wmain(int argc,wchar_t** argv){- if(argc!=2)return 2;CoInitializeEx(nullptr,COINIT_MULTITHREADED);std::filesystem::path directory(argv[1]);std::filesystem::create_directories(directory);+ if(argc!=2&&!(argc==3&&(std::wstring(argv[1])==L"--nr-optional"||std::wstring(argv[1])==L"--nr-optional-rgba")))return 2;CoInitializeEx(nullptr,COINIT_MULTITHREADED);std::filesystem::path directory(argv[argc-1]);std::filesystem::create_directories(directory);+ if(argc==3){bool result=nrOptionalResourcePixels(directory,std::wstring(argv[1])==L"--nr-optional-rgba");CoUninitialize();return result?0:1;}bool ok=true;for(auto e:{pipeline::Extent{1,1},{257,513},{97,9001},{4097,257},{257,4097}}){if(!run(e.width,e.height,false,directory)){ok=false;break;}}if(ok)ok=run(257,513,true,directory);if(ok)ok=run(97,9001,true,directory);@@ -229,5 +386,6 @@ int wmain(int argc,wchar_t** argv){if(ok)ok=protectionPixels();if(ok)ok=tiled(2561,2561,true,directory,1);if(ok)ok=tiled(2561,2561,true,directory,2);+ if(ok)ok=protectionMoving(directory);CoUninitialize();return ok?0:1;}