Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmemoryvideobuffer.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
22{
23 data = array;
24 this->bytesPerLine = bytesPerLine;
25}
26
31
36{
37 return m_mapMode;
38}
39
44{
48
49 mapData.nPlanes = 1;
51 mapData.data[0] = reinterpret_cast<uchar *>(data.data());
52 mapData.size[0] = data.size();
53 }
54
55 return mapData;
56}
57
62{
64}
65
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
\inmodule QtCore
Definition qbytearray.h:57
MapData map(QVideoFrame::MapMode mode) override
\reimp
void unmap() override
\reimp
~QMemoryVideoBuffer()
Destroys a system memory allocated video buffer.
QMemoryVideoBuffer(const QByteArray &data, int bytesPerLine)
Constructs a video buffer with an image stride of bytesPerLine from a byte array.
QVideoFrame::MapMode mapMode() const override
\reimp
QVideoFrame::MapMode m_mapMode
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:26
MapMode
Enumerates how a video buffer's data is mapped to system memory.
Definition qvideoframe.h:36
Combined button and popup list for selecting options.
GLenum mode
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum array
static QAbstractVideoBuffer::MapData mapData(const camera_frame_nv12_t &frame, unsigned char *baseAddress)
unsigned char uchar
Definition qtypes.h:27