summaryrefslogtreecommitdiff
path: root/src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-04-12 09:36:05 +0200
committerLars Knoll <lars.knoll@qt.io>2021-04-14 14:01:10 +0000
commit2656b64825f702e25b564d42e27b40d060c65bb0 (patch)
tree520ac81b60cd27e191cb593ed6ea831c8e98da33 /src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm
parent50309974fd82f52877f96ee3cfffafa24600d397 (diff)
downloadqtmultimedia-2656b64825f702e25b564d42e27b40d060c65bb0.tar.gz
Rename QVideoSurfaceFormat to QVideoFrameFormat
The class is used exclusively together with video frames to describe their format, so the name should reflect that. Change-Id: I10bec7a0556b22c69ac790a99282e1376ce4af97 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm')
-rw-r--r--src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm b/src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm
index c4404c4e8..b370959ac 100644
--- a/src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm
+++ b/src/multimedia/platform/darwin/camera/avfcameraimagecapture.mm
@@ -154,7 +154,7 @@ int AVFCameraImageCapture::doCapture(const QString &actualFileName)
QImageReader reader(&data, "JPEG");
QSize size = reader.size();
QVideoFrame frame(new QMemoryVideoBuffer(QByteArray(jpgData.constData(), jpgData.size()), -1),
- QVideoSurfaceFormat(size, QVideoSurfaceFormat::Format_Jpeg));
+ QVideoFrameFormat(size, QVideoFrameFormat::Format_Jpeg));
QMetaObject::invokeMethod(this, "imageAvailable", Qt::QueuedConnection,
Q_ARG(int, request.captureId),
Q_ARG(QVideoFrame, frame));