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
29
static_assert
(QT_CONFIG(linux_dmabuf));
30
31
QT_BEGIN_NAMESPACE
32
33
class
QRhi;
34
35
namespace
QtMultimediaPrivate
{
36
37
class
Q_MULTIMEDIA_EXPORT QDmaBufVideoBuffer
final
:
public
QHwVideoBuffer
38
{
39
public
:
40
QDmaBufVideoBuffer
(
QVideoFrameFormat
::
PixelFormat
format
,
QSize
size
,
41
QSpan
<
const
DmaBufPlane
>
planes
,
std
::
shared_ptr
<
void
>
keepAlive
= {});
42
~
QDmaBufVideoBuffer
()
override
;
43
44
bool
isDmaBuf
()
const
override
{
return
true
; }
45
46
QVideoFrameTexturesUPtr
mapTextures
(
QRhi
&
rhi
,
QVideoFrameTexturesUPtr
&
oldTextures
)
override
;
47
48
MapData
map
(
QVideoFrame
::
MapMode
mode
)
override
;
49
void
unmap
()
override
;
50
51
QVideoFrameFormat
::
PixelFormat
pixelFormat
()
const
{
return
m_format
; }
52
QSize
size
()
const
{
return
m_size
; }
53
54
private
:
55
const
QVideoFrameFormat
::
PixelFormat
m_format
;
56
const
QSize
m_size
;
57
std
::
array
<
DmaBufPlane
, 4>
m_planes
;
58
const
int
m_planeCount
= 0;
59
60
const
std
::
shared_ptr
<
void
>
m_keepAlive
;
61
62
QVideoFrame
::
MapMode
m_mapMode
=
QVideoFrame
::
NotMapped
;
63
QVarLengthArray
<
std
::
pair
<
void
*,
size_t
>, 4>
m_mappedRegions
;
64
};
65
66
}
// namespace QtMultimediaPrivate
67
68
QT_END_NAMESPACE
69
70
#
endif
// QDMABUFVIDEOBUFFER_P_H
QtMultimediaPrivate::impl
Definition
qaudiosystem_p.h:257
Q_STATIC_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)
MAP_FAILED
#define MAP_FAILED
Definition
qresource.cpp:1189
qtmultimedia
src
multimedia
video
qdmabufvideobuffer_p.h
Generated on
for Qt by
1.16.1