Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
30
QT_BEGIN_NAMESPACE
31
32
namespace
QtMultimediaPrivate
{
33
34
#
if
QT_CONFIG
(
linux_dmabuf
)
35
36
class
QDmaBuf
;
37
38
enum
class
DmaBufCpuAccess
:
uint8_t
{
39
Begin
,
40
End
,
41
};
42
43
Q_MULTIMEDIA_EXPORT
void
dmaBufSyncRead
(
int
fd
,
DmaBufCpuAccess
access
);
44
45
// Copies bytes [offset, offset + size) of a DMA-BUF, validating the range against the
46
// size of the DMA-BUF.
47
Q_MULTIMEDIA_EXPORT
std
::
optional
<
QByteArray
>
copyDmaBufData
(
int
fd
,
off_t
offset
,
size_t
size
);
48
Q_MULTIMEDIA_EXPORT
std
::
optional
<
QByteArray
>
copyDmaBufData
(
const
QDmaBuf
&,
off_t
offset
,
49
size_t
size
);
50
51
// Copies bytes [offset, offset + size) of a DMA-BUF, validating the range against bufferSize.
52
Q_MULTIMEDIA_EXPORT
std
::
optional
<
QByteArray
>
copyDmaBufData
(
int
fd
,
off_t
offset
,
size_t
size
,
53
size_t
bufferSize
);
54
55
#
endif
// QT_CONFIG(linux_dmabuf)
56
57
}
// namespace QtMultimediaPrivate
58
59
QT_END_NAMESPACE
60
61
#
endif
// QMULTIMEDIA_DMABUF_SUPPORT_P_H
QtMultimediaPrivate::impl
Definition
qaudiosystem_p.h:257
qtmultimedia
src
multimedia
video
qmultimedia_dmabuf_support_p.h
Generated on
for Qt by
1.18.0