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++
Isolate scaled game mouse gestures and keep MJPEG warnings in the legacy picker
Veyra Goal Agentf21e7f5d2bdd
diff --git a/qml/Veyra/CaptureLegacyPicker.qml b/qml/Veyra/CaptureLegacyPicker.qmlindex d78eeea8..c143116f 100644--- a/qml/Veyra/CaptureLegacyPicker.qml+++ b/qml/Veyra/CaptureLegacyPicker.qml@@ -72,7 +72,7 @@ Popup {highlighted: modelData.id === picker.selectedKeycontentItem: Text {text: modelData.label- color: modelData.disabled ? Theme.t3 : modelData.costHint ? Theme.warn : Theme.t1+ color: modelData.disabled ? Theme.t3 : modelData.danger ? Theme.err : modelData.costHint ? Theme.warn : Theme.t1font.family: Theme.fontMono; font.pixelSize: 11elide: Text.ElideRight; verticalAlignment: Text.AlignVCenter}diff --git a/qml/Veyra/Main.qml b/qml/Veyra/Main.qmlindex a256acf1..993734f5 100644--- a/qml/Veyra/Main.qml+++ b/qml/Veyra/Main.qml@@ -564,7 +564,9 @@ Window {}TapHandler {id: pictureTap- enabled: !root.fullLocked+ // Scaled game input deliberately catches mouse events instead of+ // forwarding wrong coordinates; they must not control the player either.+ enabled: !root.fullLocked && !veyra.gameInputActive// Judged where the press landed: by the release the page may already have changed.property bool pressOnCover: falseonPressedChanged: if (pressed) pressOnCover = root.overVideoCover(point.scenePosition)@@ -584,7 +586,7 @@ Window {}}TapHandler {- enabled: !root.fullLocked+ enabled: !root.fullLocked && !veyra.gameInputActiveproperty bool pressOnCover: falseonPressedChanged: if (pressed) pressOnCover = root.overVideoCover(point.scenePosition)onDoubleTapped: (eventPoint, button) => {diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex 284769d9..f4c79af7 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -2318,6 +2318,7 @@ QString QmlPlayerBridge::captureDeviceLabel() const {static QString captureFormatUiLabel(const source::CaptureFormat& f, const std::wstring& device) {auto label=uiText(f.label);if(source::decklink::isPath(device))label=label.replace(QStringLiteral("逐行"),QmlPlayerBridge::tr("逐行")).replace(QStringLiteral("隔行"),QmlPlayerBridge::tr("隔行"));+ if(source::captureMjpegFormat(f))label+=uiText(L"(不建议使用)");return label;}QVariantList QmlPlayerBridge::captureFormats() const {@@ -2328,7 +2329,7 @@ QVariantList QmlPlayerBridge::captureFormats() const {out << QVariantMap{{"id", utf8Of(f.key)}, {"label", captureFormatUiLabel(f, impl_->captureDevice)}, {"tier", f.tier},{"costHint", source::captureFormatNeedsCostHint(static_cast<source::CaptureFormatTier>(f.tier))}, {"driverCurrent", f.driverCurrent},{"width", int(f.width)}, {"height", int(f.height)}, {"fps", f.fps}, {"pixel", uiText(f.pixel)},- {"scan", uiText(f.scan)}, {"interlaced", f.interlaced}, {"disabled", !f.supported}, {"rangeCandidate", f.rangeCandidate}};+ {"scan", uiText(f.scan)}, {"interlaced", f.interlaced}, {"disabled", !f.supported}, {"rangeCandidate", f.rangeCandidate}, {"danger",source::captureMjpegFormat(f)}};}return out;});diff --git a/tests/qml/quick/tst_capture_legacy.qml b/tests/qml/quick/tst_capture_legacy.qmlindex 6079ff80..fbceb6cb 100644--- a/tests/qml/quick/tst_capture_legacy.qml+++ b/tests/qml/quick/tst_capture_legacy.qml@@ -46,5 +46,14 @@ Item {compare(list.count, 0)compare(chosen.count, 0)}+ function test_mjpeg_keeps_red_warning() {+ picker.formats = [{id:"mjpeg",label:"MJPEG(不建议使用)",danger:true,costHint:true}]+ picker.open()+ tryCompare(picker, "opened", true)+ const list = findChild(picker.contentItem, "capture-legacy-list")+ tryVerify(() => list.itemAtIndex(0) !== null)+ compare(list.itemAtIndex(0).contentItem.color, Theme.err)+ verify(list.itemAtIndex(0).contentItem.text.indexOf("不建议使用") >= 0)+ }}}