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(ui): professional colour page pass 2 - four grading colour wheels with luminance bars (smoke verified)
Veyra Goal Agent6119a7d72e95
diff --git a/apps/veyra/SettingsWindow.cpp b/apps/veyra/SettingsWindow.cppindex 67ab0044..baae25d1 100644--- a/apps/veyra/SettingsWindow.cpp+++ b/apps/veyra/SettingsWindow.cpp@@ -14,6 +14,7 @@#include <iomanip>#include <array>#include <cmath>+#include <map>namespace veyra::ui {namespace {HWND window=nullptr,body=nullptr;engine::EngineController* controller=nullptr;HFONT font=nullptr;@@ -129,6 +130,9 @@ std::vector<ColorParam> colorParams;constexpr int colorLabelId(int i){return 1200+i;}constexpr int colorEditId(int i){return 1300+i;}constexpr int colorSliderId(int i){return 1400+i;}+// Colour wheels (4 zones) and their class name; ids sit above the button block.+constexpr int colorWheelId(int zone){return 840+zone;}+constexpr const wchar_t* kColorWheelClass=L"VeyraColorWheel";constexpr int kColorMaxParams=100;engine::ColorSettings colourTarget(){return (enhancementEnabled?controller->snapshot().desired:configuredSettings).color;@@ -208,8 +212,10 @@ void saveColourFoldState(){if(!store_.save(preferences,nullptr))veyra::log::warn("color-ui","fold state not saved");}void layoutColorPage(){- auto place=[&](int id,int y,int height,bool hidden){- for(auto& entry:items)if(GetDlgCtrlID(entry.h)==id){entry.y=y;entry.height=height;entry.hidden=hidden;return;}+ RECT bodyRect{};GetClientRect(body,&bodyRect);+ const int bodyWidthDip=MulDiv(bodyRect.right,96,veyra::ui::layoutDpi(window));+ auto place=[&](int id,int y,int height,bool hidden,int x=-1,int w=-2){+ for(auto& entry:items)if(GetDlgCtrlID(entry.h)==id){entry.y=y;entry.height=height;entry.hidden=hidden;if(x>=0)entry.x=x;if(w!=-2)entry.w=w;return;}};int y=12;place(800,y,36,false);y+=42;@@ -224,6 +230,18 @@ void layoutColorPage(){const auto title=std::format(L"{} {}",collapsed?L"▸":L"▾",colorSectionName(section));putText(810+section,title.c_str());y+=38;+ // Four colour wheels in a 2x2 grid lead the colour-grading section, like+ // a professional grading panel; blending/balance keep their slider rows.+ if(section==4){+ // body width is not in scope here; the viewport width is enough to+ // split the wheel grid into two columns.+ 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;+ }for(size_t i=0;i<colorParams.size();++i){const auto& param=colorParams[i];if(param.section!=section)continue;@@ -260,6 +278,7 @@ void syncColorControls(){}if(auto space=item(819))if(int(SendMessageW(space,CB_GETCURSEL,0,0))!=colour.lutInputSpace)SendMessageW(space,CB_SETCURSEL,WPARAM(colour.lutInputSpace),0);check(820,colour.blackWhite?BST_CHECKED:BST_UNCHECKED);+ for(int zone=0;zone<engine::kColorGradingZones;++zone)if(auto wheel=item(colorWheelId(zone)))InvalidateRect(wheel,nullptr,FALSE);syncingColour=false;}bool applyColour(const engine::ColorSettings& colour,bool autoEnable,bool record=true){@@ -291,7 +310,153 @@ std::wstring pickColourSave(const wchar_t* filter,const wchar_t* title,const wchdialog.lpstrTitle=title;dialog.lpstrDefExt=L"vpcolor";dialog.Flags=OFN_OVERWRITEPROMPT|OFN_PATHMUSTEXIST|OFN_NOCHANGEDIR;if(!GetSaveFileNameW(&dialog))return {};return buffer;-}bool colourFieldEdited(int index,float value){+}+// ---------------------------------------------------------------------------+// Colour wheel (colour-grading zones). One control per zone: a hue/saturation+// disc, a luminance bar under it and a numeric readout - the professional+// grading layout. GDI+ draws on the same alpha surface as the rest of the panel.+// ---------------------------------------------------------------------------+Gdiplus::Bitmap* hueDisc(int size){+ static std::map<int,Gdiplus::Bitmap*> cache;+ const auto found=cache.find(size);+ if(found!=cache.end())return found->second;+ auto* bitmap=new Gdiplus::Bitmap(size,size,PixelFormat32bppPARGB);+ const float radius=size*0.5f;+ for(int y=0;y<size;++y)for(int x=0;x<size;++x){+ const float dx=(float(x)+0.5f)-radius,dy=(float(y)+0.5f)-radius;+ const float distance=std::sqrt(dx*dx+dy*dy)/radius;+ if(distance>1.0f){bitmap->SetPixel(x,y,Gdiplus::Color(0,0,0,0));continue;}+ float hue=std::atan2(dy,dx)*57.2957795f;+ if(hue<0)hue+=360.0f;+ const float saturation=std::min(distance,1.0f);+ const float hp=hue/60.0f,c=saturation,k=c*(1.0f-std::abs(std::fmod(hp,2.0f)-1.0f));+ float r=0,g=0,b=0;+ if(hp<1){r=c;g=k;}else if(hp<2){r=k;g=c;}else if(hp<3){g=c;b=k;}+ else if(hp<4){g=k;b=c;}else if(hp<5){r=k;b=c;}else{r=c;b=k;}+ const float m=1.0f-c;+ bitmap->SetPixel(x,y,Gdiplus::Color(255,BYTE((r+m)*255.0f),BYTE((g+m)*255.0f),BYTE((b+m)*255.0f)));+ }+ cache[size]=bitmap;+ return bitmap;+}+struct WheelGeometry{int size,cx,cy,barLeft,barRight,barY;};+WheelGeometry wheelGeometry(HWND h,const RECT& r){+ WheelGeometry geometry{};+ const int width=int(r.right-r.left);+ // Room for the zone name above, and the luminance bar plus its readout below.+ geometry.size=std::max<int>(dip(h,56),std::min<int>(width-dip(h,22),int(r.bottom-r.top)-dip(h,76)));+ geometry.cx=r.left+width/2;+ geometry.cy=r.top+dip(h,20)+geometry.size/2;+ geometry.barLeft=r.left+dip(h,14);+ geometry.barRight=r.right-dip(h,14);+ geometry.barY=geometry.cy+geometry.size/2+dip(h,18);+ return geometry;+}+void wheelApply(int zone,float hue,float saturation,float luminance,bool record){+ auto colour=colourTarget();+ if(zone<0||zone>=engine::kColorGradingZones)return;+ if(hue>=0)colour.grading[std::size_t(zone)].hue=std::clamp(hue,0.0f,360.0f);+ if(saturation>=0)colour.grading[std::size_t(zone)].saturation=std::clamp(saturation,0.0f,100.0f);+ if(luminance>-999)colour.grading[std::size_t(zone)].luminance=std::clamp(luminance,-100.0f,100.0f);+ applyColour(colour,true,record);+}+void paintColorWheel(HWND h,HDC dc,RECT r){+ const int zone=GetDlgCtrlID(h)-colorWheelId(0);+ if(zone<0||zone>=engine::kColorGradingZones)return;+ const auto colour=colourTarget();+ const auto& wheel=colour.grading[std::size_t(zone)];+ fillSurface(dc,r,h);+ const auto geometry=wheelGeometry(h,r);+ AlphaGraphics drawing(dc);+ auto& graphics=drawing.get();+ graphics.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);+ if(auto* disc=hueDisc(geometry.size))graphics.DrawImage(disc,geometry.cx-geometry.size/2,geometry.cy-geometry.size/2,geometry.size,geometry.size);+ Gdiplus::Pen ring(color(RGB(58,60,63)),float(dip(h,1)));+ graphics.DrawEllipse(&ring,geometry.cx-geometry.size/2,geometry.cy-geometry.size/2,geometry.size,geometry.size);+ const float angle=wheel.hue*0.0174532925f,radius=wheel.saturation/100.0f*geometry.size*0.5f;+ const float dotX=geometry.cx+std::cos(angle)*radius,dotY=geometry.cy+std::sin(angle)*radius;+ const int dotRadius=dip(h,6);+ RECT dotRing{int(dotX)-dotRadius-1,int(dotY)-dotRadius-1,int(dotX)+dotRadius+1,int(dotY)+dotRadius+1};+ roundRect(dc,dotRing,RGB(14,15,16),dotRadius+1);+ RECT dot{int(dotX)-dotRadius,int(dotY)-dotRadius,int(dotX)+dotRadius,int(dotY)+dotRadius};+ roundRect(dc,dot,RGB(245,247,249),dotRadius);+ // Luminance bar: accent above the centre, neutral below, so the direction is+ // readable without labels.+ const int mid=(geometry.barLeft+geometry.barRight)/2;+ RECT track{geometry.barLeft,geometry.barY-dip(h,2),geometry.barRight,geometry.barY+dip(h,2)};+ roundRect(dc,track,line,dip(h,3));+ const float fraction=(std::clamp(wheel.luminance,-100.0f,100.0f)+100.0f)/200.0f;+ const int handle=geometry.barLeft+int((geometry.barRight-geometry.barLeft)*fraction);+ if(handle>mid){RECT fill{mid,geometry.barY-dip(h,2),handle,geometry.barY+dip(h,2)};roundRect(dc,fill,accent,dip(h,3));}+ else if(handle<mid){RECT fill{handle,geometry.barY-dip(h,2),mid,geometry.barY+dip(h,2)};roundRect(dc,fill,secondary,dip(h,3));}+ const int thumbRadius=dip(h,5);+ RECT thumb{handle-thumbRadius,geometry.barY-thumbRadius,handle+thumbRadius,geometry.barY+thumbRadius};+ roundRect(dc,thumb,RGB(242,244,246),thumbRadius);+ wchar_t name[64]{};GetWindowTextW(h,name,64);+ wchar_t readout[96]{};swprintf_s(readout,L"H %d° S %d L %+d",int(std::lround(wheel.hue)),int(std::lround(wheel.saturation)),int(std::lround(wheel.luminance)));+ const auto previous=SelectObject(dc,font);+ SetBkMode(dc,TRANSPARENT);+ RECT title{r.left,r.top+dip(h,2),r.right,r.top+dip(h,17)};+ SetTextColor(dc,textColor);DrawTextW(dc,name,-1,&title,DT_CENTER|DT_SINGLELINE|DT_END_ELLIPSIS);+ RECT values{r.left,geometry.barY+dip(h,7),r.right,geometry.barY+dip(h,23)};+ SetTextColor(dc,secondary);DrawTextW(dc,readout,-1,&values,DT_CENTER|DT_SINGLELINE);+ SelectObject(dc,previous);+}+LRESULT CALLBACK colorWheelProc(HWND h,UINT msg,WPARAM wp,LPARAM lp){+ if(msg==WM_ERASEBKGND)return 1;+ if(msg==WM_PAINT||msg==WM_PRINTCLIENT){PaintBuffer paint(h,reinterpret_cast<HDC>(wp));paintColorWheel(h,paint.dc,paint.rect);return 0;}+ if(msg==WM_LBUTTONDBLCLK){+ wheelApply(GetDlgCtrlID(h)-colorWheelId(0),0,0,0,true);+ syncColorControls();+ return 0;+ }+ if(msg==WM_LBUTTONDOWN||(msg==WM_MOUSEMOVE&&GetCapture()==h)||msg==WM_LBUTTONUP){+ RECT r{};GetClientRect(h,&r);+ const auto geometry=wheelGeometry(h,r);+ const int x=GET_X_LPARAM(lp),y=GET_Y_LPARAM(lp);+ if(msg==WM_LBUTTONDOWN){+ SetFocus(h);SetCapture(h);+ const float dx=float(x-geometry.cx),dy=float(y-geometry.cy);+ const bool inDisc=std::sqrt(dx*dx+dy*dy)<=geometry.size*0.5f+float(dip(h,6));+ const bool onBar=std::abs(y-geometry.barY)<=dip(h,10);+ SetPropW(h,L"veyra.wheelmode",HANDLE(uintptr_t(onBar&&!inDisc?2:(inDisc?1:0))));+ }+ const int mode=int(uintptr_t(GetPropW(h,L"veyra.wheelmode")));+ if(mode==1){+ const float dx=float(x-geometry.cx),dy=float(y-geometry.cy);+ float hue=std::atan2(dy,dx)*57.2957795f;if(hue<0)hue+=360.0f;+ const float saturation=std::min(1.0f,std::sqrt(dx*dx+dy*dy)/(geometry.size*0.5f))*100.0f;+ wheelApply(GetDlgCtrlID(h)-colorWheelId(0),hue,saturation,-999,false);+ InvalidateRect(h,nullptr,FALSE);+ }else if(mode==2){+ const float fraction=std::clamp(float(x-geometry.barLeft)/std::max(1,geometry.barRight-geometry.barLeft),0.0f,1.0f);+ wheelApply(GetDlgCtrlID(h)-colorWheelId(0),-1,-1,fraction*200.0f-100.0f,false);+ InvalidateRect(h,nullptr,FALSE);+ }+ if(msg==WM_LBUTTONUP){+ ReleaseCapture();+ RemovePropW(h,L"veyra.wheelmode");+ colourHistoryPush(colourTarget());+ InvalidateRect(h,nullptr,FALSE);+ }+ return 0;+ }+ if(msg==WM_SETCURSOR){SetCursor(LoadCursorW(nullptr,IDC_ARROW));return TRUE;}+ return DefWindowProcW(h,msg,wp,lp);+}+void registerColorWheelClass(){+ static bool registered=false;+ if(registered)return;+ registered=true;+ WNDCLASSW classDescription{};+ classDescription.style=CS_DBLCLKS;+ classDescription.lpfnWndProc=colorWheelProc;+ classDescription.hInstance=GetModuleHandleW(nullptr);+ classDescription.lpszClassName=kColorWheelClass;+ classDescription.hCursor=LoadCursorW(nullptr,IDC_ARROW);+ RegisterClassW(&classDescription);+}+bool colourFieldEdited(int index,float value){if(index<0||size_t(index)>=colorParams.size())return false;auto colour=colourTarget();if(!std::isfinite(value)||value<colorParams[size_t(index)].min||value>colorParams[size_t(index)].max){@@ -803,11 +968,13 @@ case WM_CREATE:{window=h;font=makeFont(h);items.clear();displayedBackendWarning.// blending and balance controls.{static const wchar_t* zones[engine::kColorGradingZones]={L"阴影",L"中间调",L"高光",L"全局"};- for(int zone=0;zone<engine::kColorGradingZones;++zone){- colorParams.push_back({4,composed(std::wstring(zones[zone])+L" · 色相"),0,360,ColorTarget::GradingHue,nullptr,zone,0.0f,4});- colorParams.push_back({4,composed(std::wstring(zones[zone])+L" · 饱和度"),0,100,ColorTarget::GradingSaturation,nullptr,zone});- colorParams.push_back({4,composed(std::wstring(zones[zone])+L" · 明亮度"),-100,100,ColorTarget::GradingLuminance,nullptr,zone});- }+ registerColorWheelClass();+ // The thirty-six zone sliders (4 zones x hue/sat/lum) are replaced by+ // four colour wheels - the professional grading layout. The model,+ // the shader and the preset schema are unchanged; only the control+ // that edits them is.+ for(int zone=0;zone<engine::kColorGradingZones;++zone)+ add(L"VeyraColorWheel",zones[zone],colorWheelId(zone),0,2,12,0,-1,208);colorParams.push_back({4,L"混合",0,100,ColorTarget::Scalar,&engine::ColorSettings::gradingBlending,0,50.0f});colorParams.push_back({4,L"平衡",-100,100,ColorTarget::Scalar,&engine::ColorSettings::gradingBalance,0});}@@ -981,6 +1148,39 @@ case WM_DESTROY:KillTimer(h,1);DeleteObject(font);window=nullptr;body=nullptr;it}engine::EnhancementSettings defaultSettings(){loadStore();return store.defaultSettings();}HWND settingsControlForTest(int id){return item(id);}+bool settingsColorWheelTestPoint(int zone,float hue,float saturation,POINT& out){+ const auto wheel=item(colorWheelId(zone));+ if(!wheel)return false;+ RECT r{};GetClientRect(wheel,&r);+ const auto geometry=wheelGeometry(wheel,r);+ const float angle=hue*0.0174532925f;+ const float radius=std::clamp(saturation,0.0f,100.0f)/100.0f*geometry.size*0.5f;+ out.x=LONG(geometry.cx+std::cos(angle)*radius);+ out.y=LONG(geometry.cy+std::sin(angle)*radius);+ return true;+}+bool settingsColorWheelTestBarPoint(int zone,float luminance,POINT& out){+ const auto wheel=item(colorWheelId(zone));+ if(!wheel)return false;+ RECT r{};GetClientRect(wheel,&r);+ const auto geometry=wheelGeometry(wheel,r);+ const float fraction=(std::clamp(luminance,-100.0f,100.0f)+100.0f)/200.0f;+ out.x=LONG(geometry.barLeft+(geometry.barRight-geometry.barLeft)*fraction);+ out.y=LONG(geometry.barY);+ return true;+}+int colourWheelControlId(int zone){return colorWheelId(zone);}+void settingsColorScrollToTest(int id){+ if(!window||!body)return;+ for(auto& entry:items)if(GetDlgCtrlID(entry.h)==id&&entry.page==2){+ RECT r{};GetClientRect(window,&r);+ const int height=MulDiv(r.bottom,96,veyra::ui::layoutDpi(window))-128;+ if(entry.y<scroll)scroll=entry.y;+ if(entry.y+entry.height>scroll+height)scroll=entry.y+entry.height-height;+ arrange();+ return;+ }+}int colourParamEditId(const wchar_t* label){if(!label)return -1;for(size_t i=0;i<colorParams.size();++i)if(std::wcscmp(colorParams[i].label,label)==0)return colorEditId(int(i));diff --git a/apps/veyra/SettingsWindow.h b/apps/veyra/SettingsWindow.hindex 130fccde..6d49fb0d 100644--- a/apps/veyra/SettingsWindow.h+++ b/apps/veyra/SettingsWindow.h@@ -12,4 +12,13 @@ HWND settingsControlForTest(int);// Test/diagnostic hook: edit-control id of the colour row with this exact label,// or -1. Lets acceptance code address rows by name instead of by index.int colourParamEditId(const wchar_t* label);+// Test/diagnostic hooks for the colour-grading wheels: the client point that+// corresponds to a hue/saturation pair on the disc, and to a luminance value on+// the bar below it. Keeps the wheel geometry in one place.+bool settingsColorWheelTestPoint(int zone,float hue,float saturation,POINT& out);+bool settingsColorWheelTestBarPoint(int zone,float luminance,POINT& out);+int colourWheelControlId(int zone);+// Scroll the colour page so the given control is inside the viewport (used by+// acceptance screenshots and by the smoke before it drives a control).+void settingsColorScrollToTest(int id);}diff --git a/apps/veyra/ui/AppShell.cpp b/apps/veyra/ui/AppShell.cppindex 7cf54a10..6b066f3d 100644--- a/apps/veyra/ui/AppShell.cpp+++ b/apps/veyra/ui/AppShell.cpp@@ -824,6 +824,57 @@ else if(colorStep==57){if(colorStep==58)veyra::log::info("color-ui-test","preset deleted; colour page back to no stored looks");}else if(colorStep==58){+ colorStep=59;+}+// Colour grading wheels (professional layout): dragging inside the disc must set+// hue+saturation, the luminance bar must set luminance, and a double-click must+// put the zone back to neutral.+else if(colorStep==59){+ POINT point{};+ const auto wheel=colourControl(veyra::ui::colourWheelControlId(0));+ veyra::ui::settingsColorScrollToTest(veyra::ui::colourWheelControlId(0));+ if(wheel&&veyra::ui::settingsColorWheelTestPoint(0,120.0f,80.0f,point)){+ SendMessageW(wheel,WM_LBUTTONDOWN,MK_LBUTTON,MAKELPARAM(point.x,point.y));+ SendMessageW(wheel,WM_LBUTTONUP,0,MAKELPARAM(point.x,point.y));+ colorStep=60;+ }else{+ veyra::log::info("color-ui-test","colour wheel control missing");+ colorStep=-1;+ }+}+else if(colorStep==60){+ const auto& grading=colourSnapshot.desired.color.grading[0];+ const bool dialed=std::abs(grading.hue-120.0f)<6.0f&&std::abs(grading.saturation-80.0f)<8.0f;+ veyra::log::info("color-ui-test",std::format("colour wheel drag hue={:.1f} saturation={:.1f} pass={}",grading.hue,grading.saturation,dialed));+ colorStep=dialed?61:-1;+}+else if(colorStep==61){+ POINT point{};+ const auto wheel=colourControl(veyra::ui::colourWheelControlId(0));+ if(wheel&&veyra::ui::settingsColorWheelTestBarPoint(0,-50.0f,point)){+ SendMessageW(wheel,WM_LBUTTONDOWN,MK_LBUTTON,MAKELPARAM(point.x,point.y));+ SendMessageW(wheel,WM_LBUTTONUP,0,MAKELPARAM(point.x,point.y));+ }+ colorStep=62;+}+else if(colorStep==62){+ const auto& grading=colourSnapshot.desired.color.grading[0];+ const bool shifted=std::abs(grading.luminance+50.0f)<8.0f;+ veyra::log::info("color-ui-test",std::format("colour wheel luminance bar={:.1f} pass={}",grading.luminance,shifted));+ colorStep=shifted?63:-1;+}+else if(colorStep==63){+ const auto wheel=colourControl(veyra::ui::colourWheelControlId(0));+ if(wheel)SendMessageW(wheel,WM_LBUTTONDBLCLK,0,MAKELPARAM(6,6));+ colorStep=64;+}+else if(colorStep==64){+ const auto& grading=colourSnapshot.desired.color.grading[0];+ const bool reset=grading.hue==0.0f&&grading.saturation==0.0f&&grading.luminance==0.0f;+ veyra::log::info("color-ui-test",std::format("colour wheel double-click reset pass={}",reset));+ colorStep=reset?65:-1;+}+else if(colorStep==65){auto edit=colourControl(1300);const bool beforeVisible=edit&&IsWindowVisible(edit);const bool beforeMask=(preferences.load().colourFoldMask&1u)!=0u;diff --git a/docs/AVERMEDIA_5P1_CAPTURE_FEASIBILITY_2026-09-17.md b/docs/AVERMEDIA_5P1_CAPTURE_FEASIBILITY_2026-09-17.mdindex 8c2492ed..18e07ec1 100644--- a/docs/AVERMEDIA_5P1_CAPTURE_FEASIBILITY_2026-09-17.md+++ b/docs/AVERMEDIA_5P1_CAPTURE_FEASIBILITY_2026-09-17.md@@ -304,7 +304,7 @@ AT_Audio_Get_HdmiRX_AudioFormat | AT_Audio_CSR_Get_Send_Non_Pcm_Data_On_off | AT----## 附录:本次实际执行的命令与证据+## 附录 A:本次实际执行的命令与证据```text# 身份与哈希@@ -327,3 +327,66 @@ C:\veyra-deps\ffmpeg-ps5-slices-source\libavformat\spdif.h(IEC 61937 data-type```本文档只新增本文件,未修改任何源码、CMake、配置或运行时文件;未 commit、未 push。++---++## 附录 B:GC553G2 用户实测日志分析(2026-09-16)++**文件**:`C:/Users/123/Desktop/5.1声道.log` | 1,308,352 字节 | 4,254 行+**SHA-256**:`226EBBBFE918187D57B8C5A16D1B971555D4230DBB279F6D9C2E15EE58383E74`+**性质**:这是 **Veyra 自己的日志**(不是 OBS 日志)。用户说明这是"目前软件状态下 GC553G2 用户的尝试"。我只读并分析,没有改代码、没有连线、没有复现。++### B1 这次实际发生了什么++视频侧全程正常:3840×2160@30、P010、BT.2020+PQ(HDR 进 HDR 出),`received=1548 dropped=0`。音频侧按时间顺序试了 10 次连接:++| 时间 | 接的音频 | 结果 |+|---|---|---|+| 13:03:13 | DirectShow 独立音频 index 0 | 2ch/48k/16bit,`device bitstream types=0`;有声音(峰值爬到 0.336) |+| 13:04:50 | 视频设备内置音频 (−2) | **失败**:`audio output pin not found hr=0x80040216`,随后重连循环 7 次(epoch 2→8,约 24 秒) |+| 13:05:15 | WASAPI (−3) | 2ch/48k/float32,有声音(峰值 0.162) |+| 13:12:13 / 13:12:35 / 13:14:11 | WASAPI ×3 | **全程静音**(13:12:35→13:14:09 连续 95 秒峰值恒为 0.00000) |+| 13:16:54 | WASAPI | 13:17:31 才出现声音(峰值 0.165) |+| 13:18:31 | DirectShow 独立音频 index 0,**生效模式=位流优先** | `device bitstream types=0` → 按设计回退 PCM;有声音(0.168) |+| 13:18:56 | 同上,**生效模式=强制 PCM** | `device bitstream types=0`;有声音(0.108) |+| 13:19:23 | DirectShow 独立音频 index 2,**生效模式=位流优先** | `device bitstream types=0` → 回退 PCM;有声音(0.177) |++`0x80040216` 已在 Windows SDK `vfwmsgs.h`(10.0.26100.0)核对:`VFW_E_NOT_FOUND`;这是 Veyra 自己 `findAudioOutputPin()` 在"没有音频输出引脚"时返回的码。++### B2 这份日志证明了什么++1. **这段时间里,GC553G2 对 Veyra 就是一个 2.0 声道的普通 USB 音频设备。** 4 次 DirectShow 连接(index 0 ×3、index 2 ×1)枚举出的都是同一组 15 个 PCM 媒体类型;**没有出现任何压缩(`0x92`/`0x2000`/`0x0A`/… )类型,也没有出现任何 >2 声道类型**。+2. **「位流优先」模式真的被执行过**(13:18:31、13:19:23 两次连接的生效模式就是它),结果是设备一个位流类型都没提供。所以缺的不是"没试过位流模式",而是**设备没给它可挑的东西**。+3. **声音是真实存在的**:DirectShow 各段峰值 0.108–0.336,不是静音,也不是持续削顶的爆音;音频链路本身(10ms 协商、重采样、20ms 储备、欠载=0)在这台机器上工作正常。+4. **"视频设备内置音频"对 GC553G2 根本走不通**:它的 DirectShow 视频滤镜没有音频输出引脚。+5. 与正文 4.2 的判断一致:**「缺 1:切卡」是真实阻塞点**,不是"Veyra 缺 5.1 能力"。++### B3 这份日志没有证明什么(关键)++1. **无法确认 `audioIndex=0` / `2` 是哪个物理设备。** Veyra 的 `binding=separate` 只写索引和 tag,**不写设备名**;index 0 与 index 2 的能力表完全相同(可能是同一张卡的两个端点,也可能是别的设备)。→ 这次实验连"采的是不是这张卡的音频"都没有证据闭环。+2. **无法确认 AVerMedia 侧切换当时是否生效。** 日志里没有任何 Streaming Center / OBS 插件存在的痕迹。如果切换没做,这次就是在默认 2.0 模式下测了一遍。+3. **无法区分"没切"和"切了但媒体类型不变"。** 按正文 2.4 的推断,切换可能不改变 DirectShow 媒体类型、只改变载荷。要区分只有一条路:在 Veyra 里对前若干缓冲做 IEC 61937 嗅探(正文第 8 节阶段 1)。今天没有这个能力,所以**这类日志天然无法回答 5.1 的问题**。+4. 无从判断 PS5 当时输出的是 Dolby 还是 Linear PCM(AVerMedia 官方要求必须 Dolby)。++### B4 顺带暴露的两个真实缺陷(与 5.1 无关,但该修)++1. **日志不含音频设备名**,出问题时无法定位用的是哪个端点。建议在 DirectShow / WASAPI 绑定处打印 FriendlyName 或端点 ID(截断)。+2. **"视频设备内置音频"失败后进入无意义的重连循环**:引脚不存在是**静态**事实,但 `capture-audio-reconnect` 把它当"PCM 停滞"处理,13:04:50→13:05:14 重试 7 次(epoch 2→8),每次都 `Stop`+重绑+同样失败,刷了 21 行日志。建议把 `VFW_E_NOT_FOUND` 归类为"该设备不支持",停止重试并在 UI 上给出明确提示。++### B5 下一步(给这个用户的具体动作)++按顺序做,每步留日志:++1. 在采集面板里确认卡对应的音频设备名(抄下 `[DirectShow] <名字>`),并确认 GC553G2 固件 ≥ V1.0.7.7。+2. PS5 音频输出改成 **Dolby Digital**(不是 Linear PCM),并进入游戏(菜单通常不出 5.1)。+3. 开 Streaming Center,确认 "Multichannel detected",把 Audio 设为 5.1;**保持它运行**,然后用 Veyra 连接采集卡的独立音频设备(**不要**选"视频设备内置音频")。+4. 采集音频模式选「位流优先」,连一次。+5. 两种状态各抓一份日志:(a) Streaming Center 开着且已切 5.1;(b) 关掉 Streaming Center 之后(验证状态是否保持)。+6. 拿到日志后只看一处:`device bitstream types=` 是否非 0。若仍为 0 → 说明切换不改媒体类型 → 直接进正文第 8 节阶段 1(加嗅探),否则按阶段 2 接解码。++### B6 对正文结论的影响++- 正文第 0 节结论不变,且被这次实测加强:**当前软件状态下,Veyra 从 GC553G2 拿到的只有 2.0 PCM。**+- 正文 4.2「缺 1」= **已确认为阻塞点**;「缺 2」「缺 3」仍未验证。+- 新增前置条件:**必须先补"设备名日志 + 载荷嗅探"两个诊断**,否则后续实测依旧无法判定。+- 未验证项照旧:**真机 5.1 至今一次都没成功过**。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex a99ce80c..906b4278 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,5 +1,29 @@# 2026-09-11 继续修复目标模式执行中+## 2026-09-17 色彩页 UI:颜色分级四色轮(专业型第二批)++把颜色分级从 12 条滑块(4 区 × 色相/饱和度/明亮度)换成**四个自绘色轮**,就是专业调色面板的样子:++- 新增窗口类 `VeyraColorWheel`(`colorWheelProc`):色相/饱和度圆盘(GDI+,按尺寸缓存位图)、+ 可拖动的白点(含中心十字位)、圆盘下方的**明亮度条**(中点起算,向上橙色、向下灰色,方向一眼可读)、+ 区域名在盘上方、`H xxx° S xx L ±xx` 读数在条下方;+- 交互:盘内拖动 = 色相+饱和度;亮度条拖动 = 明亮度;**双击复位**该区;拖动期间不写撤销历史,+ 松手时压入一条历史(避免一次拖动塞满 32 步栈);+- 布局:2×2 网格(每格 190 高),后面接“混合/平衡”两条滑块;模型/着色器/预设 schema 完全没动,+ 只是换了编辑这 12 个字段的控件;+- 测试钩子:`colourWheelControlId` / `settingsColorWheelTestPoint` / `settingsColorWheelTestBarPoint` /+ `settingsColorScrollToTest`(几何只写一处,烟测按色相/饱和度要坐标)。++**验证**:`--smoke-color` **exit 0**,新增三步断言全部通过——+`colour wheel drag hue=120.1 saturation=79.8 pass=true`(目标 120/80)、+`colour wheel luminance bar=-50.0 pass=true`、`colour wheel double-click reset pass=true`;+`veyra_ui_contract_tests` exit 0(384 布局用例)。++真机截图:`logs/color/ui-preview-wheels2.png`。++**下一批**:真曲线编辑器(网格 + 可拖控制点,RGB/R/G/B 通道)、混色器“校正”下拉 + 8 色圆点条、+分组眼睛 bypass(schema v19)、分区图标与间距抛光。+## 2026-09-17 色彩页 UI:专业型排版第一步(渐变轨道 + 数值文本 + 交互补全)用户反馈“全是滑条、没有专业感”,对着 Lightroom / 专业调色面板重做色彩页的观感与交互。