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(ui): collapsed colour sections no longer reserve the wheels/canvas/mixer height, explicit save-as-preset row with its own name field, settings status line moved to the player bottom bar (UNVERIFIED: build toolchain missing)
Veyra Goal Agentb4e716df64a7
diff --git a/apps/veyra/SettingsWindow.cpp b/apps/veyra/SettingsWindow.cppindex b2c4189e..cd279eef 100644--- a/apps/veyra/SettingsWindow.cpp+++ b/apps/veyra/SettingsWindow.cpp@@ -20,6 +20,8 @@ namespace veyra::ui {namespace {HWND window=nullptr,body=nullptr;engine::EngineController* controller=nullptr;HFONT font=nullptr;std::function<bool(engine::EnhancementSettings)> apply;+// Filled by AppShell: settings messages are shown in the player's bottom bar.+std::function<void(const std::wstring&)> statusSink;engine::PresetStore store(runtime::localDataDirectory()/"user-presets.v1");bool loaded=false,dirty=false,populating=false,enhancementEnabled=true;int page=0,scroll=0,contentHeight=0;uint64_t displayedRevision=0;engine::EnhancementSettings configuredSettings;std::wstring displayedBackendWarning;engine::EnhancementSettings displayedSettings;@@ -242,8 +244,14 @@ void layoutColorPage(){// Sticky-header bookkeeping (see the section loop below).int previousHeaderId=-1,previousHeaderY=0;place(800,y,36,false);y+=42;- // Preset toolbar: which look, a name to save under, and the actions.- place(803,y,200,false);place(804,y,180,false);y+=38;+ // Preset toolbar: pick a saved look, type a name, then save/apply/delete or+ // import/export. The combo and the name field used to both stretch to the+ // full width and cover each other, which is why users reported "there is no+ // place to save a preset".+ const int presetHalf=std::max(dip(window,120),(bodyWidthDip-36)/2);+ place(803,y,30,false,12,presetHalf);+ place(804,y,30,false,12+presetHalf+12,presetHalf-6);+ y+=36;place(805,y,32,false);place(806,y,32,false);place(807,y,32,false);place(808,y,32,false);place(809,y,32,false);y+=40;place(801,y,32,false);place(802,y,32,false);place(824,y,32,false);place(822,y,32,false);place(823,y,32,false);y+=38;place(821,y,32,false);y+=42;@@ -267,13 +275,15 @@ void layoutColorPage(){if(section==4){// body width is not in scope here; the viewport width is enough to// split the wheel grid into two columns.- y+=12; // keep the section title clear of the wheels+ // A folded section must not reserve the wheel grid's height - that is+ // what left huge gaps between collapsed headers.const int cellWidth=std::max<int>(dip(window,120),(bodyWidthDip-24-8)/2);- place(colorWheelId(0),y,190,collapsed,12,cellWidth);- place(colorWheelId(1),y,190,collapsed,12+cellWidth+8,cellWidth);- place(colorWheelId(2),y+196,190,collapsed,12,cellWidth);- place(colorWheelId(3),y+196,190,collapsed,12+cellWidth+8,cellWidth);- y+=400;+ const int wheelsTop=y+(collapsed?0:12);+ place(colorWheelId(0),wheelsTop,190,collapsed,12,cellWidth);+ place(colorWheelId(1),wheelsTop,190,collapsed,12+cellWidth+8,cellWidth);+ place(colorWheelId(2),wheelsTop+196,190,collapsed,12,cellWidth);+ place(colorWheelId(3),wheelsTop+196,190,collapsed,12+cellWidth+8,cellWidth);+ if(!collapsed)y+=412;}// Mixer header: correction dropdown + the eight colour ranges. The 24// rows stay in the table but only the selected range is on screen.@@ -281,8 +291,9 @@ void layoutColorPage(){// No correction dropdown: the three mixer rows are always on screen// for the selected colour range; the B&W row appears when the switch// is on (that switch IS the black & white mixer).- place(colorMixerModeId,y,30,collapsed,12,bodyWidthDip-24);y+=34;- place(colorBandsId,y,32,collapsed,12,bodyWidthDip-24);y+=40;+ place(colorMixerModeId,y,30,collapsed,12,bodyWidthDip-24);+ place(colorBandsId,y+(collapsed?0:34),32,collapsed,12,bodyWidthDip-24);+ if(!collapsed)y+=74;}// Tone curve: channel tabs + reset, then the grid canvas.if(section==2){@@ -290,9 +301,8 @@ void layoutColorPage(){for(int channel=0;channel<4;++channel)place(colorCurveChannelId+channel,y,30,collapsed,12+tabWidth*channel+6*channel,tabWidth);place(colorCurveResetId,y,30,collapsed,12+tabWidth*4+24,40);- y+=36;- place(colorCurveCanvasId,y,bodyWidthDip-24-6,collapsed,12,bodyWidthDip-24-6);- y+=bodyWidthDip-24+8;+ place(colorCurveCanvasId,y+36,bodyWidthDip-24-6,collapsed,12,bodyWidthDip-24-6);+ if(!collapsed)y+=36+bodyWidthDip-24+8;}for(size_t i=0;i<colorParams.size();++i){const auto& param=colorParams[i];@@ -830,7 +840,8 @@ bool colourFieldEdited(int index,float value){syncColorControls();return true;}-void message(const std::wstring& text){putText(401,text.c_str());}+void settingsStatusSink(std::function<void(const std::wstring&)> sink){statusSink=std::move(sink);}+void message(const std::wstring& text){if(statusSink)statusSink(text);else putText(401,text.c_str());}bool submit(engine::EnhancementSettings s){if(!apply(s)){dirty=true;message(L"总增强正在切换;本次修改未接受,请稍后重试。");return false;}dirty=false;return true;}void syncProtection(const engine::ProtectionSettings& protection){check(206,protection.enabled?BST_CHECKED:BST_UNCHECKED);unsigned count=0;for(auto q:protection.regions)count+=!q.empty();@@ -1411,7 +1422,7 @@ case WM_CREATE:{window=h;font=makeFont(h);items.clear();displayedBackendWarning.}// Preset toolbar.combo(803,2,0,{});add(L"EDIT",L"",804,ES_AUTOHSCROLL|WS_TABSTOP,2,12,0,-1,26);send(804,EM_SETLIMITTEXT,48,0);- button(L"保存预设",805,2,12,0,96);button(L"应用",806,2,12,0,80);button(L"删除",807,2,12,0,80);+ button(L"保存为预设",805,2,12,0,110);button(L"应用",806,2,12,0,80);button(L"删除",807,2,12,0,80);button(L"导出",808,2,12,0,80);button(L"导入",809,2,12,0,80);SetPropW(item(804),L"veyra.tip",HANDLE(L"给当前色彩设置起个名字,点“保存预设”存下来;导出会生成 .vpcolor 文件,可以发给别人导入。"));SetPropW(item(805),L"veyra.tip",HANDLE(L"把当前色彩设置保存为命名预设。同名会覆盖。"));diff --git a/apps/veyra/SettingsWindow.h b/apps/veyra/SettingsWindow.hindex 0a894772..de17f4d4 100644--- a/apps/veyra/SettingsWindow.h+++ b/apps/veyra/SettingsWindow.h@@ -32,5 +32,9 @@ bool settingsCurveTestPoint(float x,float y,POINT& out);// Expand/collapse one colour section (acceptance code needs the target section// unfolded regardless of what the previous run persisted).void settingsColorSectionForTest(int section,bool expanded);+// The settings panel used to draw its own status line. AppShell routes those+// messages to the player's bottom bar instead (the panel's own line stays as a+// fallback when no sink is installed).+void settingsStatusSink(std::function<void(const std::wstring&)>);int colourSectionEyeControlId(int section);}diff --git a/apps/veyra/ui/AppShell.cpp b/apps/veyra/ui/AppShell.cppindex 28de80cf..22d62d26 100644--- a/apps/veyra/ui/AppShell.cpp+++ b/apps/veyra/ui/AppShell.cpp@@ -50,6 +50,9 @@ uint32_t multiplierFromDailyIndex(int index){const int i=index+1;return (index>=// was deleted (2026-09-17). It is intentionally never created: named colour// presets live in the colour page and carry look parameters only.enum {Open=101,Play,Stop,Save,Nr,Sr,Fg,Seek,Info,Capture,Export,Realtime,Recent,Multiplier,Settings,OriginalHold,CompareToggle,Split,Reference,Fullscreen,ModeSwitch=220,Master,RetiredPresetSlot,Volume,Mute,Subtitle,SubtitleLoad,SubtitleSize,ImageOpen,InspectorDrawer,TabEnhance,TabFg,TabColor,TabExport,JobProgress,Details,Brand,MediaTitle,TimeLabel,EmptyTitle,EmptyHint,ProRailVideo,ProRailCapture,WindowMin,WindowMax,WindowClose,FpsLabel,RemotePlay,TabAudio,VideoSurface=1000};+// Settings-panel status text: it belongs to the player's bottom bar now, next to+// the submitted-FPS readout (id 64 is free in the main window's id space).+constexpr int ColourStatus=64;veyra::engine::EngineController engine;#ifdef VEYRA_ENABLE_REMOTEPLAYveyra::remoteplay::ControllerInput remoteController;@@ -333,6 +336,8 @@ void layout(){const bool daily=!pro&&!full&&!transition.running;TransportLayout controls(tw,daily);const int timeWidth=std::min(240,std::max(0,(tw-154)/2));put(TimeLabel,tx,barTop+10,timeWidth,20,transport);+ // Settings messages live here now (the panel no longer draws its own line).+ put(ColourStatus,tx+tw-154-446,barTop+10,440,20,transport);int remoteSpace=0;#ifdef VEYRA_ENABLE_REMOTEPLAYremoteSpace=daily?60:0;@@ -349,7 +354,7 @@ void layout(){icon(GetDlgItem(mainWindow,Open),Icon::Video,controls.captions);icon(GetDlgItem(mainWindow,Capture),Icon::Capture,controls.captions);icon(GetDlgItem(mainWindow,Master),Icon::Enhance,pro||controls.captions);icon(GetDlgItem(mainWindow,Sr),Icon::Upscale,true);icon(GetDlgItem(mainWindow,ModeSwitch),pro?Icon::PanelClose:Icon::PanelOpen,pro||controls.captions);- for(int id:{Open,Capture,Recent,Master,Save,Sr,Play,Stop,Mute,Volume,Subtitle,Fullscreen,TimeLabel,MediaTitle,FpsLabel,ModeSwitch})surface(GetDlgItem(mainWindow,id),pro&&!full?panel:cinemaPanel);+for(int id:{Open,Capture,Recent,Master,Save,Sr,Play,Stop,Mute,Volume,Subtitle,Fullscreen,TimeLabel,MediaTitle,FpsLabel,ColourStatus,ModeSwitch})surface(GetDlgItem(mainWindow,id),pro&&!full?panel:cinemaPanel);put(OriginalHold,tx,barTop+160,96,32,!full&&pro);put(Split,tx+102,barTop+160,92,32,!full&&pro);put(CompareToggle,tx+200,barTop+160,96,32,!full&&pro&&tw>=600);put(Reference,tx+(tw>=600?302:200),barTop+160,std::min(172,tw-(tw>=600?302:200)-88),180,!full&&pro&&tw>=500);put(Details,tx+tw-76,barTop+160,76,32,!full&&pro);put(Info,12,h-66,44,44,!full&&pro);pos(metricLabel,tx,barTop+212,tw,120,!full&&pro&&uiState.diagnostics);@@ -497,6 +502,7 @@ const wchar_t* tabs[]={L"增强",L"运动",L"色彩",L"导出"};for(int i=0;i<4;control(L"BUTTON",L"音量",Mute,BS_PUSHBUTTON,0,0,54,36);auto vol=control(TRACKBAR_CLASSW,L"音量",Volume,TBS_HORZ|TBS_NOTICKS,0,0,80,26);SendMessageW(vol,TBM_SETRANGE,TRUE,MAKELPARAM(0,100));SendMessageW(vol,TBM_SETPOS,TRUE,100);control(L"BUTTON",L"字幕",Subtitle,BS_PUSHBUTTON,0,0,62,36);control(L"STATIC",L"尚未打开媒体",MediaTitle,SS_LEFT|SS_ENDELLIPSIS,0,0,250,26);control(L"STATIC",L"00:00 / 00:00",TimeLabel,SS_LEFT,0,0,200,20);control(L"STATIC",L"处理 0.0 fps",FpsLabel,SS_RIGHT,0,0,154,20);+control(L"STATIC",L"",ColourStatus,SS_RIGHT|SS_ENDELLIPSIS,0,0,440,20);control(L"STATIC",L"开始观看",EmptyTitle,SS_CENTER,0,0,500,48);emptyFont=veyra::ui::makeFont(hwnd,26,FW_NORMAL);SendDlgItemMessageW(hwnd,EmptyTitle,WM_SETFONT,WPARAM(emptyFont),TRUE);control(L"STATIC",L"打开本地视频,或连接采集卡\n精细调整与原生导出在专业模式中",EmptyHint,SS_CENTER,0,0,500,68);control(L"BUTTON",L"性能 ▾",Details,BS_PUSHBUTTON,0,0,112,32);control(L"BUTTON",L"",JobProgress,BS_PUSHBUTTON,0,0,280,32);metricLabel=control(L"STATIC",L"",0,SS_LEFT,0,0,500,132);control(L"BUTTON",L"最小化",WindowMin,BS_PUSHBUTTON,0,0,32,32);control(L"BUTTON",L"最大化",WindowMax,BS_PUSHBUTTON,0,0,32,32);control(L"BUTTON",L"关闭窗口",WindowClose,BS_PUSHBUTTON,0,0,32,32);@@ -506,7 +512,10 @@ veyra::ui::icon(GetDlgItem(hwnd,ProRailVideo),Icon::Video);veyra::ui::icon(GetDlveyra::ui::icon(GetDlgItem(hwnd,Recent),Icon::Recent);veyra::ui::icon(GetDlgItem(hwnd,Open),Icon::Video,true);veyra::ui::icon(GetDlgItem(hwnd,Capture),Icon::Capture,true);for(int id:{Open,Capture,Recent,Master,Save,Sr,ModeSwitch,WindowMin,WindowMax,WindowClose,Stop,Mute,Subtitle,Fullscreen,ProRailVideo,ProRailCapture,ImageOpen,Info})veyra::ui::ghost(GetDlgItem(hwnd,id));SetPropW(GetDlgItem(hwnd,Open),L"veyra.tip",HANDLE(L"打开视频 / 图片 · Ctrl+O"));SetPropW(GetDlgItem(hwnd,Capture),L"veyra.tip",HANDLE(L"连接采集卡"));SetPropW(GetDlgItem(hwnd,Sr),L"veyra.tip",HANDLE(L"超分辨率 · 专业面板选择 DLSS / RTX 视频超分"));-inspector=veyra::ui::createSettingsPanel(hwnd,engine,applySettings);liveStatusPanel=veyra::ui::createLiveStatusPanel(hwnd,engine);selectInspector(uiPreferences.inspector);SendDlgItemMessageW(hwnd,Volume,TBM_SETPOS,TRUE,LPARAM(uiPreferences.volume*100));veyra::ui::marked(GetDlgItem(hwnd,Play));+inspector=veyra::ui::createSettingsPanel(hwnd,engine,applySettings);+// Settings messages go to the player's bottom bar instead of a line inside the panel.+veyra::ui::settingsStatusSink([](const std::wstring& text){setText(GetDlgItem(mainWindow,ColourStatus),text);});+liveStatusPanel=veyra::ui::createLiveStatusPanel(hwnd,engine);selectInspector(uiPreferences.inspector);SendDlgItemMessageW(hwnd,Volume,TBM_SETPOS,TRUE,LPARAM(uiPreferences.volume*100));veyra::ui::marked(GetDlgItem(hwnd,Play));for(auto [id,help]:std::initializer_list<std::pair<int,const wchar_t*>>{{Nr,L"实验性DLSS5 NR增强:重建画面细节,效果看素材,不是游戏原生集成。"},{Fg,L"开关补帧。专业模式可选倍率和后端;数字翻倍,显卡工作量也会涨。"},