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
qopenglvideobuffer_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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 QOPENGLVIDEOBUFFER_P_H
5#define QOPENGLVIDEOBUFFER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qabstractvideobuffer_p.h>
19
21
24
26{
27public:
28 QOpenGLVideoBuffer(std::unique_ptr<QOpenGLFramebufferObject> fbo);
30
31 QVideoFrame::MapMode mapMode() const override;
33 void unmap() override;
34 quint64 textureHandle(QRhi *, int plane) const override;
35
37
38private:
39 std::unique_ptr<QOpenGLFramebufferObject> m_fbo;
40 std::unique_ptr<QImageVideoBuffer> m_imageBuffer;
41};
42
44
45#endif // QOPENGLVIDEOBUFFER_P_H
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.
quint64 textureHandle(QRhi *, int plane) const override
Returns a texture handle to the data buffer.
QImageVideoBuffer & ensureImageBuffer()
void unmap() override
Releases the memory mapped by the map() function.
QOpenGLVideoBuffer(std::unique_ptr< QOpenGLFramebufferObject > fbo)
QVideoFrame::MapMode mapMode() const override
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
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
unsigned long long quint64
Definition qtypes.h:61