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.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multimedia/video/qvideoframe.cpp b/src/multimedia/video/qvideoframe.cpp
index 1c9c3f224..e82c874d9 100644
--- a/src/multimedia/video/qvideoframe.cpp
+++ b/src/multimedia/video/qvideoframe.cpp
@@ -176,6 +176,14 @@ QVideoFrame::QVideoFrame(QAbstractVideoBuffer *buffer, const QVideoFrameFormat &
}
/*!
+ \internal
+*/
+QAbstractVideoBuffer *QVideoFrame::videoBuffer() const
+{
+ return d ? d->buffer : nullptr;
+}
+
+/*!
Constructs a video frame of the given pixel \a format and \a size in pixels.
The \a bytesPerLine (stride) is the length of each scan line in bytes, and \a bytes is the total
@@ -448,6 +456,7 @@ bool QVideoFrame::map(QVideoFrame::MapMode mode)
case QVideoFrameFormat::Format_Y8:
case QVideoFrameFormat::Format_Y16:
case QVideoFrameFormat::Format_Jpeg:
+ case QVideoFrameFormat::Format_SamplerExternalOES:
// Single plane or opaque format.
break;
case QVideoFrameFormat::Format_YUV420P: