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
qmultimedia_dmabuf_support_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
4#ifndef QMULTIMEDIA_DMABUF_SUPPORT_P_H
5#define QMULTIMEDIA_DMABUF_SUPPORT_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 <QtCore/qbytearray.h>
19#include <QtMultimedia/private/qmultimedia_drm_support_p.h>
20#include <QtMultimedia/private/qtmultimediaglobal_p.h>
21
22#if QT_CONFIG(linux_dmabuf)
23# include <sys/types.h>
24#endif
25
26#include <cstddef>
27#include <cstdint>
28#include <optional>
29
30QT_BEGIN_NAMESPACE
31
32namespace QtMultimediaPrivate {
33
34#if QT_CONFIG(linux_dmabuf)
35
36class QDmaBuf;
37
38enum class DmaBufCpuAccess : uint8_t {
39 Begin,
40 End,
41};
42
44
45// Copies bytes [offset, offset + size) of a DMA-BUF, validating the range against the
46// size of the DMA-BUF.
49 size_t size);
50
51// Copies bytes [offset, offset + size) of a DMA-BUF, validating the range against bufferSize.
54
55#endif // QT_CONFIG(linux_dmabuf)
56
57} // namespace QtMultimediaPrivate
58
59QT_END_NAMESPACE
60
61#endif // QMULTIMEDIA_DMABUF_SUPPORT_P_H