summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideoframe.h
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/video/qvideoframe.h
parent50309974fd82f52877f96ee3cfffafa24600d397 (diff)
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/video/qvideoframe.h')
-rw-r--r--src/multimedia/video/qvideoframe.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/multimedia/video/qvideoframe.h b/src/multimedia/video/qvideoframe.h
index d2c371c3f..2d5e2d57e 100644
--- a/src/multimedia/video/qvideoframe.h
+++ b/src/multimedia/video/qvideoframe.h
@@ -41,7 +41,7 @@
#define QVIDEOFRAME_H
#include <QtMultimedia/qtmultimediaglobal.h>
-#include <QtMultimedia/qvideosurfaceformat.h>
+#include <QtMultimedia/qvideoframeformat.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qshareddata.h>
@@ -76,8 +76,8 @@ public:
};
QVideoFrame();
- QVideoFrame(QAbstractVideoBuffer *buffer, const QVideoSurfaceFormat &format);
- QVideoFrame(int bytes, int bytesPerLine, const QVideoSurfaceFormat &format);
+ QVideoFrame(QAbstractVideoBuffer *buffer, const QVideoFrameFormat &format);
+ QVideoFrame(int bytes, int bytesPerLine, const QVideoFrameFormat &format);
QVideoFrame(const QImage &image);
QVideoFrame(const QVideoFrame &other);
~QVideoFrame();
@@ -88,9 +88,9 @@ public:
bool isValid() const;
- QVideoSurfaceFormat::PixelFormat pixelFormat() const;
+ QVideoFrameFormat::PixelFormat pixelFormat() const;
- QVideoSurfaceFormat surfaceFormat() const;
+ QVideoFrameFormat surfaceFormat() const;
QVideoFrame::HandleType handleType() const;
QSize size() const;