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): the pro page's picture covered its own transport bar, and record the capture tool
Veyra Goal Agent1e5a11d6315d
diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qmlindex ae31d916..bdbd486a 100644--- a/qml/Veyra/Main.qml+++ b/qml/Veyra/Main.qml@@ -97,11 +97,12 @@ Window {return { x: 0, y: 0, width: width, height: Math.round(pictureHeight) }case "pro":// .pro grid: 1fr 376px, gap 10, padding 14. The video wrap is column- // 1 row 2; .meters below it is a fixed 172px; .pro-head is 32.+ // 1 row 2; .meters below it is a fixed 172px; .pro-head is 32; and the+ // card's own .vbar is 36px at its foot, which the picture must not cover.return { x: 14,y: 14 + 32 + 10,width: Math.max(1, width - 376 - 14 * 2 - 10 - 14),- height: Math.max(1, height - 14 * 2 - 32 - 10 - 172 - 10) }+ height: Math.max(1, height - 14 * 2 - 32 - 10 - 172 - 10 - 36) }case "node":// .nodeview padding 14; .nv-top is a fixed 330px, minus its 40px bar.return { x: 14, y: 14, width: Math.max(1, width - 28), height: 330 - 40 }diff --git a/tools/qt_probe/capture-window.ps1 b/tools/qt_probe/capture-window.ps1new file mode 100644index 00000000..ba859252--- /dev/null+++ b/tools/qt_probe/capture-window.ps1@@ -0,0 +1,68 @@+# Captures the app window even when it is occluded.+#+# Screen-region capture (CopyFromScreen) grabs whatever is on top, which is why+# earlier attempts produced the editor instead of the app: this session runs from a+# terminal that holds the foreground. PrintWindow with PW_RENDERFULLCONTENT asks the+# window to render itself, so the capture does not depend on z-order.+param(+ [string]$App = 'E:\项目\Veyra\tests\ui-qml-migration-20260925\qml-app',+ [string]$Page = 'pro',+ [string]$Clip = '',+ [string]$Out = 'E:\项目\Veyra\logs\ui-qml-migration-20260925\qml-shots',+ [string]$Name = '',+ [int]$WaitSeconds = 9+)+Add-Type -AssemblyName System.Drawing+Add-Type @"+using System;using System.Runtime.InteropServices;+public class PW {+ [DllImport("user32.dll")] static extern bool EnumWindows(EnumProc f, IntPtr p);+ [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(IntPtr h, out uint pid);+ [DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr h);+ [DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r);+ [DllImport("user32.dll")] public static extern bool PrintWindow(IntPtr h, IntPtr dc, uint flags);+ delegate bool EnumProc(IntPtr h, IntPtr p);+ [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left, Top, Right, Bottom; }+ public static IntPtr Largest(uint want) {+ IntPtr best = IntPtr.Zero; long area = 0;+ EnumWindows((h, p) => {+ uint pid; GetWindowThreadProcessId(h, out pid);+ if (pid != want || !IsWindowVisible(h)) return true;+ RECT r; if (!GetWindowRect(h, out r)) return true;+ long a = (long)(r.Right - r.Left) * (r.Bottom - r.Top);+ if (a > area) { area = a; best = h; }+ return true;+ }, IntPtr.Zero);+ return best;+ }+}+"@+New-Item -ItemType Directory -Force $Out | Out-Null+$exe = Join-Path $App 'veyra_qml_ui.exe'+$launch = @('--page', $Page)+if ($Clip -ne '') { $launch += ('"' + $Clip + '"') }+$p = Start-Process -FilePath $exe -ArgumentList $launch -PassThru+Start-Sleep -Seconds $WaitSeconds+if ($p.HasExited) { "the app exited early"; exit 1 }++$h = [PW]::Largest([uint32]$p.Id)+if ($h -eq [IntPtr]::Zero) { "no visible window for pid $($p.Id)"; Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue; exit 1 }+$r = New-Object PW+RECT+[PW]::GetWindowRect($h, [ref]$r) | Out-Null+$w = $r.Right - $r.Left+$ht = $r.Bottom - $r.Top+if ($w -lt 400) { "window is only ${w}x${ht}; refusing to save" ; Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue; exit 1 }++$bmp = New-Object System.Drawing.Bitmap $w, $ht+$g = [System.Drawing.Graphics]::FromImage($bmp)+$dc = $g.GetHdc()+# 2 = PW_RENDERFULLCONTENT, which is what makes this work for a window that is not+# in front and for surfaces rendered through a compositor.+[PW]::PrintWindow($h, $dc, 2) | Out-Null+$g.ReleaseHdc($dc)+$label = if ($Name -ne '') { $Name } else { $Page }+$file = Join-Path $Out ("qml-$label.png")+$bmp.Save($file, [System.Drawing.Imaging.ImageFormat]::Png)+$g.Dispose(); $bmp.Dispose()+"saved $file (${w}x${ht})"+Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue