diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-03-26 10:24:57 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-07 14:51:23 +0000 |
commit | 0022bca8f430d7eea7a5f7e39a1cb3719118af2a (patch) | |
tree | ec32a61cfa5a1bf69404f124a786633a4c3a4d59 /src/multimedia/video/qvideoframe.h | |
parent | f66c18bc51989ae5388b333c2b2804dd7b6e3f1a (diff) |
Move the texture uploading code into Qt Multimedia
Qt Multimedia has now some generic helper functions to upload
the video data into textures. This way, we can greatly simplify
the rendering code in qtmultimediaquicktools.
Change-Id: I5b0e3eb96cbcf79fe5e9757697f11b0183132b17
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/multimedia/video/qvideoframe.h b/src/multimedia/video/qvideoframe.h index ea01ccb92..d2c371c3f 100644 --- a/src/multimedia/video/qvideoframe.h +++ b/src/multimedia/video/qvideoframe.h @@ -53,6 +53,9 @@ QT_BEGIN_NAMESPACE class QSize; class QVideoFramePrivate; class QAbstractVideoBuffer; +class QRhi; +class QRhiResourceUpdateBatch; +class QRhiTexture; class Q_MULTIMEDIA_EXPORT QVideoFrame { @@ -113,7 +116,7 @@ public: int mappedBytes() const; int planeCount() const; - quint64 textureHandle(int plane); + quint64 textureHandle(int plane) const; qint64 startTime() const; void setStartTime(qint64 time); |