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
qhwvideobuffer_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 QHWVIDEOBUFFER_P_H
5#define QHWVIDEOBUFFER_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
19#include "qvideoframe.h"
20
21#include <QtGui/qmatrix4x4.h>
22
24
25class QRhi;
26class QRhiTexture;
27
28class Q_MULTIMEDIA_EXPORT QVideoFrameTextures
29{
30public:
32 virtual QRhiTexture *texture(uint plane) const = 0;
33};
34
35class Q_MULTIMEDIA_EXPORT QHwVideoBuffer : public QAbstractVideoBuffer
36{
37public:
39
40 ~QHwVideoBuffer() override;
41
42 QVideoFrame::HandleType handleType() const { return m_type; }
43 QRhi *rhi() const { return m_rhi; }
44
45 QVideoFrameFormat format() const override { return {}; }
46
47 virtual std::unique_ptr<QVideoFrameTextures> mapTextures(QRhi *) { return {}; }
48 virtual quint64 textureHandle(QRhi *, int /*plane*/) const { return 0; }
49 virtual QMatrix4x4 externalTextureMatrix() const { return {}; }
50
51protected:
53 QRhi *m_rhi = nullptr;
54};
55
57
58#endif // QHWVIDEOBUFFER_P_H
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
virtual std::unique_ptr< QVideoFrameTextures > mapTextures(QRhi *)
QRhi * rhi() const
~QHwVideoBuffer() override
virtual quint64 textureHandle(QRhi *, int) const
QVideoFrameFormat format() const override
Gets \l QVideoFrameFormat of the underlying video buffer.
virtual QMatrix4x4 externalTextureMatrix() const
QVideoFrame::HandleType m_type
QVideoFrame::HandleType handleType() const
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
\inmodule QtGui
Definition qrhi.h:895
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1805
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
virtual QRhiTexture * texture(uint plane) const =0
virtual ~QVideoFrameTextures()
HandleType
Identifies the type of a video buffers handle.
Definition qvideoframe.h:32
Combined button and popup list for selecting options.
GLenum type
unsigned long long quint64
Definition qtypes.h:61
unsigned int uint
Definition qtypes.h:34