Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
21
22class Q_MULTIMEDIA_EXPORT QMemoryVideoBuffer : public QAbstractVideoBuffer
23{
24public:
25 QMemoryVideoBuffer(QByteArray data, int bytesPerLine);
27
28 QVideoFrame::MapMode mapMode() const override;
29
31 void unmap() override;
32
33 QByteArray underlyingByteArray(int plane) const override;
34private:
35 int m_bytesPerLine = 0;
38};
39
41
42
43#endif
NSData * m_data
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
\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:37
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
GLenum mode
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data