![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QMemoryVideoBuffer class provides a system memory allocated video data buffer. More...
#include <qmemoryvideobuffer_p.h>
Public Member Functions | |
QMemoryVideoBuffer (QByteArray data, int bytesPerLine) | |
Constructs a video buffer with an image stride of bytesPerLine from a byte array. | |
~QMemoryVideoBuffer () override | |
Destroys a system memory allocated video buffer. | |
MapData | map (QVideoFrame::MapMode mode) override |
\reimp | |
QVideoFrameFormat | format () const override |
Gets \l QVideoFrameFormat of the underlying video buffer. | |
![]() | |
virtual | ~QAbstractVideoBuffer () |
\variable QAbstractVideoBuffer::MapData::planeCount | |
virtual void | unmap () |
Releases the memory mapped by the map() function. | |
The QMemoryVideoBuffer class provides a system memory allocated video data buffer.
QMemoryVideoBuffer is the default video buffer for allocating system memory. It may be used to allocate memory for a QVideoFrame without implementing your own QAbstractVideoBuffer.
Definition at line 22 of file qmemoryvideobuffer_p.h.
QMemoryVideoBuffer::QMemoryVideoBuffer | ( | QByteArray | data, |
int | bytesPerLine ) |
Constructs a video buffer with an image stride of bytesPerLine from a byte array.
Definition at line 20 of file qmemoryvideobuffer.cpp.
|
overridedefault |
Destroys a system memory allocated video buffer.
|
inlineoverridevirtual |
Gets \l QVideoFrameFormat of the underlying video buffer.
The format must be available upon construction of \l QVideoFrame. QVideoFrame will contain won instance of the given format, that can be detached and modified.
Implements QAbstractVideoBuffer.
Definition at line 30 of file qmemoryvideobuffer_p.h.
|
overridevirtual |