summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideoframe.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-03-23 13:38:05 +0100
committerLars Knoll <lars.knoll@qt.io>2021-04-06 08:11:57 +0000
commit2caff4509eba3f05785ff09a11abdb929c7bb392 (patch)
tree8d4b1bb77c95e2caccffa7dad1d2675f118e1ee5 /src/multimedia/video/qvideoframe.h
parentd6e52bea2da1d31bce91d1a175f9b9e84b8e37f5 (diff)
Smaller API cleanups in QVideoFrame
Get rid of the buffer method. It's not used, and QAbstractVideoBuffer is private anyway. Use map() to access the data. Rename image() to toImage() to make it explicit that we're doing a conversion here. Change-Id: Ie2735bc1a5131c09098fa80c9df7bf5b165b557c Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'src/multimedia/video/qvideoframe.h')
-rw-r--r--src/multimedia/video/qvideoframe.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/multimedia/video/qvideoframe.h b/src/multimedia/video/qvideoframe.h
index 028286426..c3eba5585 100644
--- a/src/multimedia/video/qvideoframe.h
+++ b/src/multimedia/video/qvideoframe.h
@@ -84,7 +84,6 @@ public:
bool operator==(const QVideoFrame &other) const;
bool operator!=(const QVideoFrame &other) const;
- QAbstractVideoBuffer *buffer() const;
bool isValid() const;
QVideoSurfaceFormat::PixelFormat pixelFormat() const;
@@ -123,7 +122,7 @@ public:
qint64 endTime() const;
void setEndTime(qint64 time);
- QImage image() const;
+ QImage toImage() const;
private:
QExplicitlySharedDataPointer<QVideoFramePrivate> d;