Qt 4.8
|
The QMemoryVideoBuffer class provides a system memory allocated video data buffer. More...
#include <qmemoryvideobuffer_p.h>
Public Functions | |
uchar * | map (MapMode mode, int *numBytes, int *bytesPerLine) |
Reimplemented Function More... | |
MapMode | mapMode () const |
Reimplemented Function More... | |
QMemoryVideoBuffer (const QByteArray &data, int bytesPerLine) | |
Constructs a video buffer with an image stride of bytesPerLine from a byte array. More... | |
void | unmap () |
Reimplemented Function More... | |
~QMemoryVideoBuffer () | |
Destroys a system memory allocated video buffer. More... | |
Public Functions inherited from QAbstractVideoBuffer | |
virtual QVariant | handle () const |
Returns a type specific handle to the data buffer. More... | |
HandleType | handleType () const |
Returns the type of a video buffer's handle. More... | |
QAbstractVideoBuffer (HandleType type) | |
Constructs an abstract video buffer of the given type. More... | |
virtual | ~QAbstractVideoBuffer () |
Destroys an abstract video buffer. More... | |
Additional Inherited Members | |
Public Types inherited from QAbstractVideoBuffer | |
enum | HandleType { NoHandle, GLTextureHandle, XvShmImageHandle, CoreImageHandle, QPixmapHandle, UserHandle = 1000 } |
Identifies the type of a video buffers handle. More... | |
enum | MapMode { NotMapped = 0x00, ReadOnly = 0x01, WriteOnly = 0x02, ReadWrite = ReadOnly | WriteOnly } |
Enumerates how a video buffer's data is mapped to memory. More... | |
Protected Functions inherited from QAbstractVideoBuffer | |
QAbstractVideoBuffer (QAbstractVideoBufferPrivate &dd, HandleType type) | |
Protected Variables inherited from QAbstractVideoBuffer | |
QAbstractVideoBufferPrivate * | d_ptr |
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 66 of file qmemoryvideobuffer_p.h.
QMemoryVideoBuffer::QMemoryVideoBuffer | ( | const QByteArray & | data, |
int | bytesPerLine | ||
) |
Constructs a video buffer with an image stride of bytesPerLine from a byte array.
Definition at line 78 of file qmemoryvideobuffer.cpp.
QMemoryVideoBuffer::~QMemoryVideoBuffer | ( | ) |
Destroys a system memory allocated video buffer.
Definition at line 90 of file qmemoryvideobuffer.cpp.
Reimplemented Function
Implements QAbstractVideoBuffer.
Definition at line 105 of file qmemoryvideobuffer.cpp.
|
virtual |
Reimplemented Function
Implements QAbstractVideoBuffer.
Definition at line 97 of file qmemoryvideobuffer.cpp.
|
virtual |
Reimplemented Function
Implements QAbstractVideoBuffer.
Definition at line 127 of file qmemoryvideobuffer.cpp.