Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdmabufvideobuffer_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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#ifndef QDMABUFVIDEOBUFFER_P_H
4#define QDMABUFVIDEOBUFFER_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17
18#include <QtMultimedia/qvideoframeformat.h>
19#include <QtMultimedia/private/qhwvideobuffer_p.h>
20#include <QtMultimedia/private/qmultimedia_drm_support_p.h>
21#include <QtMultimedia/private/qtmultimediaglobal_p.h>
22#include <QtCore/qsize.h>
23#include <QtCore/qspan.h>
24#include <QtCore/qvarlengtharray.h>
25
26#include <array>
27#include <memory>
28
29static_assert(QT_CONFIG(linux_dmabuf));
30
31QT_BEGIN_NAMESPACE
32
33class QRhi;
34
35namespace QtMultimediaPrivate {
36
37class Q_MULTIMEDIA_EXPORT QDmaBufVideoBuffer final : public QHwVideoBuffer
38{
39public:
41 QSpan<const DmaBufPlane> planes, std::shared_ptr<void> keepAlive = {});
43
44 bool isDmaBuf() const override { return true; }
45
47
49 void unmap() override;
50
52 QSize size() const { return m_size; }
53
54private:
56 const QSize m_size;
58 const int m_planeCount = 0;
59
60 const std::shared_ptr<void> m_keepAlive;
61
64};
65
66} // namespace QtMultimediaPrivate
67
68QT_END_NAMESPACE
69
70#endif // QDMABUFVIDEOBUFFER_P_H
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)
#define MAP_FAILED