summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideoframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/video/qvideoframe.cpp')
-rw-r--r--src/multimedia/video/qvideoframe.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/multimedia/video/qvideoframe.cpp b/src/multimedia/video/qvideoframe.cpp
index 375f19930..2fa5f9f88 100644
--- a/src/multimedia/video/qvideoframe.cpp
+++ b/src/multimedia/video/qvideoframe.cpp
@@ -808,21 +808,13 @@ int QVideoFrame::planeCount() const
return d->format.nPlanes();
}
-quint64 QVideoFrame::textureHandle(int plane)
-{
- return d->buffer->textureHandle(plane);
-}
-
/*!
- Returns a type specific handle to a video frame's buffer.
-
- For an OpenGL texture this would be the texture ID.
-
- \sa QAbstractVideoBuffer::handle()
+ \internal
+ Returns a texture id to the video frame's buffers.
*/
-QVariant QVideoFrame::handle() const
+quint64 QVideoFrame::textureHandle(int plane)
{
- return d->buffer != nullptr ? d->buffer->handle() : QVariant();
+ return d->buffer->textureHandle(plane);
}
/*!