Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmemoryvideobuffer_p.h
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
4#ifndef QMEMORYVIDEOBUFFER_P_H
5#define QMEMORYVIDEOBUFFER_P_H
6
7#include <private/qabstractvideobuffer_p.h>
8#include <qvideoframe.h>
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists purely as an
15// implementation detail. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
22
23class Q_MULTIMEDIA_EXPORT QMemoryVideoBuffer : public QAbstractVideoBuffer
24{
25public:
26 QMemoryVideoBuffer(const QByteArray &data, int bytesPerLine);
28
29 QVideoFrame::MapMode mapMode() const override;
30
32 void unmap() override;
33
34 int bytesPerLine = 0;
37};
38
40
41
42#endif
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
virtual void unmap()=0
Releases the memory mapped by the map() function.
virtual QVideoFrame::MapMode mapMode() const =0
\inmodule QtCore
Definition qbytearray.h:57
The QMemoryVideoBuffer class provides a system memory allocated video data buffer.
~QMemoryVideoBuffer()
Destroys a system memory allocated video buffer.
MapMode
Enumerates how a video buffer's data is mapped to system memory.
Definition qvideoframe.h:36
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
GLenum mode
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data