summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideoframe.cpp
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-02-01 14:41:16 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-02-04 10:58:36 +0000
commit1b7b651364e3888794cfd071ce6cb92beb2242f7 (patch)
treefb4011b1b623f090dc46a7b8c9a92169dd66bd94 /src/multimedia/video/qvideoframe.cpp
parentddf93e0e6e88e1f6d7a5119409ec734e99b9a310 (diff)
Introduce QVideoFrame::buffer()
Returns video buffer if available. Is useful when need to get an access to impl specific data. Change-Id: I6b9855397db2396ed0a76835d083be0457721f9b Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
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 867bf1092..e94b838f9 100644
--- a/src/multimedia/video/qvideoframe.cpp
+++ b/src/multimedia/video/qvideoframe.cpp
@@ -404,6 +404,15 @@ QVideoFrame::~QVideoFrame()
}
/*!
+ \return underlying video buffer or \c null if there is none.
+ \since 5.13
+*/
+QAbstractVideoBuffer *QVideoFrame::buffer() const
+{
+ return d->buffer;
+}
+
+/*!
Identifies whether a video frame is valid.
An invalid frame has no video buffer associated with it.