summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2023-03-22 14:47:39 +0100
committerArtem Dyomin <artem.dyomin@qt.io>2023-03-22 22:17:42 +0100
commitcd1fdbfe2ccbb9f44749fcdeecd65f34deeb29fc (patch)
tree2773e0483a85a2aed2f8b5749cd637e73862b172 /tests
parenta757c89932cc5e09c2c22367b278e46880ec9357 (diff)
Implement the base video source class for camera and screen capturing
QPlatformVideoSource becomes the base of QPlatformCamera and QPlatformScreenCapture The advantage is using the single video source interface in the encoder instead of defferent ones. Pick-to: 6.5 Change-Id: Ic8bab3258dbe3efe851330d9a0e0461266dc64c9 Reviewed-by: Lars Knoll <lars@knoll.priv.no> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/mockbackend/qmockscreencapture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/unit/mockbackend/qmockscreencapture.h b/tests/auto/unit/mockbackend/qmockscreencapture.h
index 8f3642289..732111e7a 100644
--- a/tests/auto/unit/mockbackend/qmockscreencapture.h
+++ b/tests/auto/unit/mockbackend/qmockscreencapture.h
@@ -60,7 +60,7 @@ public:
bool isActive() const override { return bool(m_grabber); }
- QVideoFrameFormat format() const override
+ QVideoFrameFormat frameFormat() const override
{
return m_grabber ? QVideoFrameFormat(
m_imageSize, QVideoFrameFormat::pixelFormatFromImageFormat(m_imageFormat))