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++
feat(color): T6 close-out - three-entry consistency, full regression, delivery report, export colour fix
Veyra Goal Agentd4ca6751fae6
diff --git a/docs/COLOR_TAB_LR_FEATURE_PLAN_2026-09-17.md b/docs/COLOR_TAB_LR_FEATURE_PLAN_2026-09-17.mdindex 4c24f670..6e475054 100644--- a/docs/COLOR_TAB_LR_FEATURE_PLAN_2026-09-17.md+++ b/docs/COLOR_TAB_LR_FEATURE_PLAN_2026-09-17.md@@ -386,4 +386,8 @@3. 从 T2 起每完成一个里程碑更新 `docs/WORKLOG.md`(命令、结果、日志路径、失败与修复),未验证项如实写"未执行";4. 全部完成后交人工验收:验收合格才允许合并 main;发布另行授权。-**当前状态**:本方案为定稿,**代码零改动**,等待开工指令。+**当前状态(2026-09-17 收尾,取代上面的“等待开工”)**:P1 已在隔离分支+`codex/color-tab-p1-20260917` 实现完成,T0–T5 全部落地,T6 除“导出重算 MaxCLL/MaxFALL”外+全部完成并留下证据。逐项状态、量测数据(调色 GPU 成本 A/B、三入口 PSNR)、本轮修掉的真实+缺陷与人工验收步骤见 `docs/COLOR_TAB_P1_DELIVERY_2026-09-17.md`;执行流水见 `docs/WORKLOG.md`。+**分支未合并 main、未发布**,等人工验收合格后另行授权。diff --git a/docs/COLOR_TAB_P1_DELIVERY_2026-09-17.md b/docs/COLOR_TAB_P1_DELIVERY_2026-09-17.mdnew file mode 100644index 00000000..d2d287d6--- /dev/null+++ b/docs/COLOR_TAB_P1_DELIVERY_2026-09-17.md@@ -0,0 +1,117 @@+# 色彩页 P1 交付报告(2026-09-17)++隔离分支:`codex/color-tab-p1-20260917`(**未合并 main,未发布**,等人工验收)+存档点:`checkpoint/color-p1-archive-20260917`(= `65e69b3`)+方案:`docs/COLOR_TAB_LR_FEATURE_PLAN_2026-09-17.md`(v4)+执行记录:`docs/WORKLOG.md`(按 T0→T6 逐条,含命令与失败修复)++---++## 1. 交付内容++| 里程碑 | 状态 | 证据 |+| --- | --- | --- |+| T0 删预设页/日常预设入口 | 完成 | 代码级删除;`veyra_ui_contract_tests` exit 0 |+| T1 NR 剔除区改名 + 羽化 | 完成 | 剔除区羽化 0..64;`--smoke-settings` 步骤断言羽化到引擎 |+| T2a `ColorSettings` + schema v18 | 完成 | `veyra_repair_preset_tests` 全通过(含 v17 迁移用例) |+| T2b 源头单一融合调色 pass + 总开关 | 完成 | GPU 契约 10 项(关开关/中性逐字节等于旧链路) |+| T3 色彩页 UI 框架 | 完成 | 风琴折叠 + 滑块/数值框 + 一键还原/撤销 + 折叠位落 `ui-preferences.v1` v4 |+| T4 面板填充(亮/颜色/曲线/混色器/分级/校准) | 完成 | 23 项 CPU 烘焙断言 + GPU 逐项行为 |+| T5 LUT(.cube)导入 + 命名色彩预设 + `.vpcolor` | 完成 | `veyra_color_lut_tests` / `veyra_color_look_tests` / 烟测步骤 51–57 |+| T6 HDR 标准处理 | **部分完成** | 线性域调色 + LUT 输入空间拒绝已 GPU 验证;MaxCLL/MaxFALL 重算**未做**(见 §5) |+| T6 三入口一致性 | 完成 | `scripts/acceptance/color-three-entry-consistency.ps1` PASS(§4) |+| T6 全量回归与交付报告 | 完成 | §6 + 本文件 |++链路(v4):`源 → 线性 FP16 →【调色:白平衡/校准 3×3 + 曝光 + 对数域曲线 + 混色器 + 分级 + 3D LUT】→ SR → NR → 残差 → 补帧 → blit → 字幕 → sink`。+调色与 ingest 融合在**同一次 dispatch**,总开关关闭时不建表、不采样、零开销。++## 2. 本轮顺手修掉的真实缺陷(都是验收过程抓出来的,不是测试自己闹脾气)++1. **载入 `.cube` 会概率性闪退**(严重):`EnhanceGraph` 里 LUT 载入成功后的日志用+ `std::string(lutNameString().begin(), lutNameString().end())`,两次调用返回**两个不同的临时+ wstring**,区间长度是垃圾值 → 越界读 → `0xC0000409` fail-fast。GPU 合同测试 8 次里崩 2–3 次。+ 现已改为一次性 UTF-8 转换。**任何用户只要在色彩页选一个 LUT 就可能中招,这是本轮最有价值的修复。**+2. **`.cube` 上传的 staging 行距不满足 D3D12 的 256 字节对齐**(除 16 的倍数外的 LUT 尺寸+ ——2/3/17/33 这些全都中)→ 现在按 256 对齐并逐行写入。+3. **导出(视频)与大图导出(图片)完全不应用调色**:`VideoExportJob` / `EngineControllerImage`+ 构造 `EnhanceGraphDesc` 时漏了 `color` 字段,预览有调色、导出没有。三入口一致性验收直接抓到+ (修前 screenshot-vs-export 只有 19.50 dB,修后 49.29 dB)。+4. **色彩页的预设下拉与 LUT 下拉永远是空的**:用了 `SendDlgItemMessageW(window,…)`,而控件挂在+ 滚动面板 `body` 上,消息静默失败、`CB_GETCURSEL` 返回 -1。+5. **保存预设后选中项被清空**:`refreshColourLooks()` 固定重置到“(未选择预设)”,保存完立刻点+ “应用”必然落空;现在保存/导入后自动选中刚写入的那一项。+6. **`ui-preferences.v1` v3 读不回来**(写 6 读 5)+ NR 剔除区 inspector 范围写错(T1 时修的)。++## 3. 调色 GPU 成本(方案要求 `gpuGradeP95Ms` + 基线对比)++融合派发无法在 GPU 上单独给调色打点(要独立时间戳必须拆第二个 dispatch,违反 v4“单一融合 pass”)。+因此用**同一素材、同一会话、只切换总开关**的 A/B,量 `GpuStage::Color`(= 转换 + 调色)的 p95:++命令:`veyra.exe <clip> --smoke-seconds 20 [--color-grade=1.0]`,取稳定后的 8/7 个采样点。++| 素材 | 关闭 | +1 EV | 差值 | 方案预算 | 结论 |+| --- | --- | --- | --- | --- | --- |+| 1920×1080 60fps | 0.034 ms | 0.175 ms | **+0.141 ms** | ≤0.15 ms | 通过 |+| 3840×2160 30fps | 0.308 ms | 0.639 ms | **+0.331 ms** | ≤0.35 ms | 通过 |++原始日志:`logs/color/grade-ab/{1080p,2160p}-{off,on}.log`。+结论按实:这是**同一次 dispatch 的增量**,不是独立 pass;`player-timing` 因此没有新增+`gpuGradeP95Ms` 字段,改为在本文与 WORKLOG 里给出对比数据。++## 4. 三入口一致性(预览/截图/导出)++`scripts/acceptance/color-three-entry-consistency.ps1`(静态图案,四轮运行:截图关/开、导出关/开):++| 指标 | 数值 | 门槛 | 结果 |+| --- | --- | --- | --- |+| 截图 vs 导出帧(开调色) | **49.29 dB** | ≥36 dB | 通过 |+| 截图 vs 导出帧(关调色) | **50.30 dB** | ≥36 dB | 通过 |+| 调色前后差异(截图路径) | 19.66 dB | <30 dB = 肉眼可见 | 通过 |+| 调色前后差异(导出路径) | 18.43 dB | <30 dB = 肉眼可见 | 通过 |++结果 JSON:`logs/color/three-entry/ec292b53eb8048648f8887911f50a52d/result.json`。+预览本身(图的输出像素)由 `veyra_color_grade_gpu_tests` 逐字节断言;截图走同一个 sink。++## 5. HDR 与未完成项++已完成(`veyra_hdr_color_tests`,独立 BT.2390 参考实现):++- **+1 EV = 场景线性 ×2,且发生在 tone mapping 之前**:`linearError=0.0012`(PQ)/`1.04e-05`(HLG),阈值 0.014;+- **LUT 输入空间不匹配必须拒绝**:HDR 内容选 sRGB、SDR 内容选 PQ 都会被拒(`colorLutNotice()` 非空、+ 像素与无 LUT 逐字节一致),并且通过 `colorStatus` 在状态面板可见,不只写日志。++**未完成(如实列出,不冒充通过)**++1. **导出时重算 MaxCLL / MaxFALL**:需要“写 header 前先跑一遍全片直方图”的两遍流程,外加把结果+ 通过 NVENC SEI / MP4 `clli` 写进码流,本轮没实现。当前行为:HDR + 调色开启时明确写一条+ `[color-export] … not recomputed … (marked as not updated)` 警告,**不静默**写与实际不符的元数据。+2. 分组眼睛(每组 bypass)、点曲线编辑器、黑白混色器开关:模型里已留字段,UI 未做(方案 §9 的+ P1 清单里属于 T3/T4 的“眼睛/曲线”子项,本轮用“整组折叠 + 一键还原”替代,未做独立 bypass 位)。+3. 预设导出 `.vpcolor` 只带参数与 LUT **文件名**,不带 LUT 文件本体(换机导入需自行拷 `.cube`)。+4. 驱动叠加(NVIDIA App AI 插帧)与调色的相互影响未测。++## 6. 回归与闸门++- `scripts/gates/delivery.ps1` → **DELIVERY SHORT GATE PASS**+ (`logs/delivery/fd83775cedd04e7c9716ead6f1127d33/result.json`,含 `color-page`、`player-sync`、+ `controls` 等用例);+- 52 个测试程序逐个单跑:**45 个 exit 0**;7 个未执行,原因是需要真实硬件/素材或运行库放置策略+ (`capture_tests` 采集卡、`live_presentation_tests`/`ps5_*`/`hw_import_image` PS5 素材、+ `nr_ampere_tests` 被 `nr-adapter` 的“仅允许 staging/experimental 目录”策略拒绝、+ `wasapi_input_tests` 真实端点 —— 其 `--offline` 分支已通过);+- 色彩专项:`veyra_color_grade_tests`(23 项)、`veyra_color_grade_gpu_tests`(连续 8 次全过)、+ `veyra_color_lut_tests`、`veyra_color_look_tests`、`veyra_hdr_color_tests`、+ `veyra_ui_contract_tests`、`veyra_repair_preset_tests`、`veyra_repair_contract_tests`(191/0)。++## 7. 人工验收建议(按这个顺序点一遍)++1. 打开任意视频 → 专业模式 → **色彩**页:开总开关,拖曝光/对比度/饱和度,看画面即时变化;+2. **曲线**组拉一个点、**颜色分级**转一个色轮、**校准**改一个滑块;+3. 一键还原 → 撤销还原(应回到还原前数值);+4. 保存一个命名预设 → 改乱数值 → 在列表里选它 → 应用(应恢复);导出 `.vpcolor` → 删除 → 导入(应回来);+5. LUT 组:导入一个 `.cube` → 选它 → 调强度 → 换输入空间(选错应有拒绝提示);+6. **关总开关**:画面应与调色前完全一致(延迟回到零开销);+7. 导出一段视频(带调色)→ 与预览/截图对比外观一致;+8. HDR 素材(PQ/HLG):调色后应有正常亮度提升,不出现死白或颜色反转。++验收通过后才可以合并 main;发布另需授权。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 6ac923ee..2fa48444 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,5 +1,34 @@# 2026-09-11 继续修复目标模式执行中+## 2026-09-17 色彩页 P1:T6 收尾——三入口一致性 + 全量回归 + 交付报告++**三入口一致性验收抓到一个功能缺口并修掉**++新脚本 `scripts/acceptance/color-three-entry-consistency.ps1`(静态图案,截图关/开 + 导出关/开四轮):++- 修复前:截图(预览链路)开了调色 Y=99.25,导出帧还是 Y=75.50 → **导出完全没有应用调色**+ (screenshot vs export 只有 19.50 dB)。根因:`VideoExportJob` 与 `EngineControllerImage`+ 构造 `EnhanceGraphDesc` 时漏了 `gd.color=options.settings.color`,只有主引擎设了。+ 已给两条导出链路补上,并给 HDR+调色导出加一条“MaxCLL/MaxFALL 未重算”的显式警告。+- 修复后:截图 vs 导出帧 **49.29 dB**(开调色)/ **50.30 dB**(关调色),调色前后差异两条链路都+ 18–20 dB(肉眼可见),全部通过。结果:`logs/color/three-entry/ec292b53eb8048648f8887911f50a52d/result.json`。++**全量回归**++- `scripts/gates/delivery.ps1` → **DELIVERY SHORT GATE PASS**+ (`logs/delivery/fd83775cedd04e7c9716ead6f1127d33/result.json`);+- 52 个测试程序逐个单跑(带各自所需参数):**45 个 exit 0**;未执行 7 个,全部是硬件/素材/放置策略+ 原因:`capture_tests`(需采集卡)、`live_presentation_tests`、`ps5_quality_tests`、+ `ps5_hw_image_tests`、`hw_import_image_tests`(需 PS5 素材)、`nr_ampere_tests`+ (`nr-adapter` 按策略拒绝非 staging/experimental 路径的运行库)、`wasapi_input_tests`+ 真实端点(其 `--offline` 分支已通过)。没有用“跳过”冒充通过。++**交付报告**:`docs/COLOR_TAB_P1_DELIVERY_2026-09-17.md`(含每个里程碑的证据、量测数据、+本轮修掉的 6 个真实缺陷、未完成项与人工验收步骤)。++未完成项照实写进报告:导出 MaxCLL/MaxFALL 重算、分组眼睛 bypass、点曲线编辑器、黑白开关、+`.vpcolor` 不带 LUT 文件本体。分支仍未合并 main。+## 2026-09-17 色彩页 P1:修 .cube 载入崩溃 + 量到调色真实 GPU 成本(T2b 计时项收口)**修掉一个会让用户直接崩程序的 bug(GPU 合同测试抓出来的,不是测试问题)**diff --git a/scripts/acceptance/color-three-entry-consistency.ps1 b/scripts/acceptance/color-three-entry-consistency.ps1new file mode 100644index 00000000..e6c1242f--- /dev/null+++ b/scripts/acceptance/color-three-entry-consistency.ps1@@ -0,0 +1,90 @@+[CmdletBinding()]+param([Parameter(Mandatory=$true)][string]$Root,[string]$BuildDirectory,[string]$PlayerExe)+# Colour page T6: preview/screenshot and export must agree.+#+# The preview entry point is the presented frame (the GPU contract test already+# pins its pixels); the screenshot smoke saves that same sink output, and the+# export job renders the identical EnhanceGraph in a worker process. This script+# therefore compares the screenshot PNG against a frame decoded out of the+# exported video, with the colour grade both off and on:+# * grade on -> screenshot vs export frame must match closely (encoder loss only)+# * grade off vs on -> both entries must show the same, clearly visible change+# A static source pattern removes frame-alignment questions; run with ffmpeg on PATH.+$ErrorActionPreference='Stop'+$Root=(Resolve-Path -LiteralPath $Root).Path+Set-Location -LiteralPath $Root+$run=[Guid]::NewGuid().ToString('N')+$dir=Join-Path $Root ('logs/color/three-entry/'+$run)+[IO.Directory]::CreateDirectory($dir)|Out-Null+$bin=Join-Path $Root 'out/build/x64-release'+if($BuildDirectory){$bin=(Resolve-Path -LiteralPath $BuildDirectory).Path}+if(-not $PlayerExe){$PlayerExe=Join-Path $bin 'veyra.exe'}+$PlayerExe=(Resolve-Path -LiteralPath $PlayerExe).Path+$ffmpeg=(Get-Command ffmpeg -ErrorAction Stop).Source+$checks=[Collections.Generic.List[object]]::new()+function Check([string]$Name,[bool]$Passed,[string]$Detail){+ $checks.Add([pscustomobject]@{name=$Name;passed=$Passed;detail=$Detail})+ Write-Host ("{0} {1} :: {2}" -f ($(if($Passed){'PASS'}else{'FAIL'})),$Name,$Detail)+ if(-not $Passed){throw "$Name : $Detail"}+}+function Run([string]$Name,[string[]]$Argv,[int]$Limit=30){+ $startArgs=@{FilePath=$PlayerExe;WorkingDirectory=$Root;PassThru=$true;WindowStyle='Hidden';+ RedirectStandardOutput="$dir/$Name.stdout.log";RedirectStandardError="$dir/$Name.stderr.log"}+ $forwarded=@($Argv|ForEach-Object{'"'+$_.Replace('"','\"')+'"'})+ if($forwarded.Count -gt 0){$startArgs.ArgumentList=$forwarded}+ $p=Start-Process @startArgs+ # Keep the native handle alive: without it PowerShell can hand back a null+ # ExitCode for a GUI-subsystem process.+ $processHandle=$p.Handle+ if(-not $p.WaitForExit($Limit*1000)){Stop-Process -Id $p.Id -Force;throw "$Name timeout"}+ Check "$Name-exit" ($p.ExitCode -eq 0) "exit=$($p.ExitCode)"+}+function PsnrDb([string]$Reference,[string]$Test){+ # ffmpeg writes PSNR to stderr (which PowerShell 7 turns into a terminating+ # error under -Stop), so drive the filter through its stats file instead.+ $previous=$ErrorActionPreference+ $ErrorActionPreference='Continue'+ try{ $output=(& $ffmpeg -hide_banner -loglevel info -i $Reference -i $Test -lavfi psnr -f null - 2>&1 | Out-String) } finally { $ErrorActionPreference=$previous }+ $match=[regex]::Match($output,'average:([0-9.]+|inf)')+ if(-not $match.Success){throw "psnr parse failed for $Reference vs $Test"}+ if($match.Groups[1].Value -eq 'inf'){return 99.0}+ return [double]$match.Groups[1].Value+}+try{+ $clip=Join-Path $dir 'static-pattern.mp4'+ & $ffmpeg -hide_banner -loglevel error -y -f lavfi -i 'color=c=0x303030:s=1280x720:r=30' `+ -vf 'drawbox=x=320:y=180:w=320:h=360:color=0xC0C0C0:t=fill,drawbox=x=800:y=180:w=320:h=360:color=0x804020:t=fill' `+ -t 4 -c:v libx264 -pix_fmt yuv420p -crf 12 $clip+ if($LASTEXITCODE -ne 0){throw 'pattern render failed'}+ Run shot-off @($clip,'--smoke-seconds','8','--smoke-controls','--smoke-save',"$dir/shot-off.png")+ Run shot-on @($clip,'--smoke-seconds','8','--smoke-controls','--smoke-save',"$dir/shot-on.png",'--color-grade=1.0')+ Run export-off @($clip,'--export-out',"$dir/export-off.mp4",'--max-frames','4')+ Run export-on @($clip,'--export-out',"$dir/export-on.mp4",'--max-frames','4','--color-grade=1.0')+ foreach($entry in @('export-off','export-on')){+ & $ffmpeg -hide_banner -loglevel error -y -i "$dir/$entry.mp4" -vf "select='eq(n,1)'" -frames:v 1 "$dir/$entry-frame.png"+ if($LASTEXITCODE -ne 0){throw "$entry frame extraction failed"}+ }+ $consistent=PsnrDb "$dir/shot-on.png" "$dir/export-on-frame.png"+ $changedShot=PsnrDb "$dir/shot-off.png" "$dir/shot-on.png"+ $changedExport=PsnrDb "$dir/export-off-frame.png" "$dir/export-on-frame.png"+ $consistentOff=PsnrDb "$dir/shot-off.png" "$dir/export-off-frame.png"+ # Thresholds: measured values are recorded in result.json. 36 dB is a loose+ # bound for NVENC quantisation on this pattern; 30 dB proves the grade is+ # visible in both entries instead of being applied in only one of them.+ Check screenshot-vs-export ($consistent -ge 36) ("psnr={0:N2}dB (grade on)" -f $consistent)+ Check screenshot-vs-export-baseline ($consistentOff -ge 36) ("psnr={0:N2}dB (grade off)" -f $consistentOff)+ Check grade-visible-in-both ($changedShot -lt 30 -and $changedExport -lt 30) ("screenshot {0:N2}dB / export {1:N2}dB between off and on" -f $changedShot,$changedExport)+ $result=[pscustomobject]@{+ pass=$true;runId=$run;+ psnrScreenshotVsExportGradeOn=[math]::Round($consistent,3);+ psnrScreenshotVsExportGradeOff=[math]::Round($consistentOff,3);+ psnrGradeChangeScreenshot=[math]::Round($changedShot,3);+ psnrGradeChangeExport=[math]::Round($changedExport,3);+ checks=$checks}+ $result|ConvertTo-Json -Depth 5|Set-Content -Encoding UTF8 (Join-Path $dir 'result.json')+ Write-Host ('DELIVERY COLOUR THREE-ENTRY PASS -> '+(Join-Path $dir 'result.json'))+}catch{+ [pscustomobject]@{pass=$false;runId=$run;error=$_.Exception.Message;checks=$checks}|ConvertTo-Json -Depth 5|Set-Content -Encoding UTF8 (Join-Path $dir 'result.json')+ Write-Host ('DELIVERY COLOUR THREE-ENTRY FAIL -> '+$_.Exception.Message)+ exit 1+}diff --git a/src/engine/EngineControllerImage.cpp b/src/engine/EngineControllerImage.cppindex 47399f3a..12aa179a 100644--- a/src/engine/EngineControllerImage.cpp+++ b/src/engine/EngineControllerImage.cpp@@ -65,7 +65,7 @@ void EngineController::runLargeImage(HWND window,const sink::RgbaImage& original}if(requested.revision!=applied.revision){pipeline::EnhanceGraphDesc desc;desc.enableNr=requested.nr;desc.nrRuntime=requested.nrRuntime;desc.noFeatures=!requested.nr;- desc.model=requested.model;desc.residual=requested.residual;desc.protection=requested.protection;desc.settingsRevision=requested.revision;+ desc.model=requested.model;desc.residual=requested.residual;desc.protection=requested.protection;desc.color=requested.color;desc.settingsRevision=requested.revision;desc.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();sink::RgbaImage candidate;TiledImageProcessor::Stats stats;status(L"正在分块增强大图,保留完整输出尺寸…");diff --git a/src/engine/VideoExportJob.cpp b/src/engine/VideoExportJob.cppindex 92f1d95c..9c9ced03 100644--- a/src/engine/VideoExportJob.cpp+++ b/src/engine/VideoExportJob.cpp@@ -82,6 +82,12 @@ bool exportVideo(const std::wstring& input,const std::wstring& output,PlayerOptiinfo=source.info(); // retain this frame for the export, without decoding it againconst auto resolution=pipeline::ResolutionPlan::make({info.width,info.height},options.sr,pipeline::NrSizePolicy::Native,true,options.settings.revision,options.settings.srTarget);pipeline::EnhanceGraphDesc gd;gd.hdrInput=gd.hdrOutput=info.color.isHdrPath();hdrExport=gd.hdrOutput;+ // Plan v5.3: the grade changes the peak and the content light distribution.+ // Recomputing MaxCLL/MaxFALL needs a full pre-pass before the header is+ // written, which this exporter does not do yet, so say so instead of+ // letting the user assume the static metadata tracks the graded output.+ if(gd.hdrOutput&&options.settings.color.enabled&&!options.settings.color.neutral())+ veyra::log::warn("color-export","HDR export with the colour grade active: MaxCLL/MaxFALL are not recomputed and no content-light metadata is written (marked as not updated)");gd.captureBitDepth=info.color.pixelFormat==pipeline::SourcePixelFormat::P010?10:info.color.pixelFormat==pipeline::SourcePixelFormat::P016?16:8;if(gd.hdrOutput&&!hevc){failureReason=L"HDR视频请使用HEVC Main10导出(选择HEVC)";break;}// Adapter gate mirrors the preview rules (EngineController): DLSS NR,@@ -93,7 +99,7 @@ bool exportVideo(const std::wstring& input,const std::wstring& output,PlayerOptiif(options.nr&&!nvidiaFeatures)fgNote+=fgNote.empty()?L"当前显卡不能使用 DLSS NR,本次导出自动关闭 NR":L";当前显卡不能使用 DLSS NR,本次导出自动关闭 NR";if(options.sr&&!srAvailable)fgNote+=fgNote.empty()?L"当前显卡不能使用所选超分,本次导出关闭超分":L";当前显卡不能使用所选超分,本次导出关闭超分";if(!nvidiaFeatures&&srAvailable)fgNote+=fgNote.empty()?L"本次导出使用 AMD FSR 超分":L";本次导出使用 AMD FSR 超分";- gd.sourceWidth=info.width;gd.sourceHeight=info.height;gd.workWidth=resolution.base.width;gd.workHeight=resolution.base.height;gd.nrWidth=resolution.nr.width;gd.nrHeight=resolution.nr.height;gd.flowWidth=resolution.flow.width;gd.flowHeight=resolution.flow.height;gd.enableSr=srAvailable;gd.videoSrQuality=options.settings.videoSrQuality;gd.enableNr=options.nr&&nvidiaFeatures;gd.nrRuntime=options.settings.nrRuntime;gd.enableFg=options.fg&&nvidiaFeatures;gd.fgMultiplier=options.fgMultiplier;gd.frameGenerationBackend=options.settings.frameGenerationBackend;gd.enableNvofStandalone=options.nr&&nvidiaFeatures;gd.model=options.settings.model;gd.residual=options.settings.residual;gd.protection=options.settings.protection;gd.settingsRevision=options.settings.revision;gd.flowQuality=options.settings.flow;gd.opticalFlowBackend=options.settings.opticalFlowBackend;gd.amdFlowHalfResolution=options.settings.amdFlowHalfResolution;gd.contentRate=options.settings.content;gd.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();+ gd.sourceWidth=info.width;gd.sourceHeight=info.height;gd.workWidth=resolution.base.width;gd.workHeight=resolution.base.height;gd.nrWidth=resolution.nr.width;gd.nrHeight=resolution.nr.height;gd.flowWidth=resolution.flow.width;gd.flowHeight=resolution.flow.height;gd.enableSr=srAvailable;gd.videoSrQuality=options.settings.videoSrQuality;gd.enableNr=options.nr&&nvidiaFeatures;gd.nrRuntime=options.settings.nrRuntime;gd.enableFg=options.fg&&nvidiaFeatures;gd.fgMultiplier=options.fgMultiplier;gd.frameGenerationBackend=options.settings.frameGenerationBackend;gd.enableNvofStandalone=options.nr&&nvidiaFeatures;gd.model=options.settings.model;gd.residual=options.settings.residual;gd.protection=options.settings.protection;gd.color=options.settings.color;gd.settingsRevision=options.settings.revision;gd.flowQuality=options.settings.flow;gd.opticalFlowBackend=options.settings.opticalFlowBackend;gd.amdFlowHalfResolution=options.settings.amdFlowHalfResolution;gd.contentRate=options.settings.content;gd.runtimeAbsPath=runtime::localRuntimeDirectory().wstring();// One attempt per frame-generation request. A rejected multiplier is a// capability statement, not an infrastructure failure: retry at 2X (the// floor every DLSS-G capable GPU honours) and only then fall back to a