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
qpipewire_cameranode_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
QPIPEWIRE_CAMERANODE_P_H
5
#
define
QPIPEWIRE_CAMERANODE_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
<
QtMultimedia
/
private
/
qpipewire_propertydict_p
.
h
>
19
#
include
<
QtMultimedia
/
private
/
qtmultimediaglobal_p
.
h
>
20
#
include
<
QtMultimedia
/
qcameradevice
.
h
>
21
#
include
<
QtCore
/
qbytearray
.
h
>
22
#
include
<
QtCore
/
qstring
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
namespace
QtPipeWire
{
27
28
Q_MULTIMEDIA_EXPORT
bool
isCameraNode
(
const
PwPropertyDict &nodeProperties);
29
30
Q_MULTIMEDIA_EXPORT QByteArray
cameraDeviceId
(
const
PwPropertyDict
&
nodeProperties
);
31
Q_MULTIMEDIA_EXPORT QString
cameraDescription
(
const
PwPropertyDict
&
nodeProperties
,
32
const
PwPropertyDict
&
deviceProperties
);
33
34
enum
class
DmaBufStrategy
:
uint8_t
{
35
// The node takes server-allocated buffers, which are mapped and copied.
36
None
,
37
// The stream allocates the DMA-BUFs and the node imports them (v4l2). A libcamera node accepts
38
// imported buffers but never fills them, so it cannot use this.
39
ClientAllocated
,
40
// The node allocates plain V4L2 or dma-heap buffers and advertises no modifier, so they are
41
// linear (libcamera).
42
NodeAllocated
,
43
};
44
45
Q_MULTIMEDIA_EXPORT DmaBufStrategy
dmaBufStrategy
(
const
PwPropertyDict
&
deviceProperties
);
46
47
// Where the camera faces, for the device.api values that report it.
48
Q_MULTIMEDIA_EXPORT
QCameraDevice
::
Position
cameraPosition
(
const
PwPropertyDict
&
nodeProperties
);
49
50
}
// namespace QtPipeWire
51
52
QT_END_NAMESPACE
53
54
#
endif
// QPIPEWIRE_CAMERANODE_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtPipeWire
Definition
qpipewire_async_support.cpp:10
QtPipeWire::cameraPosition
QCameraDevice::Position cameraPosition(const PwPropertyDict &nodeProperties)
Definition
qpipewire_cameranode.cpp:94
QtPipeWire::DmaBufStrategy
DmaBufStrategy
Definition
qpipewire_cameranode_p.h:34
QtPipeWire::DmaBufStrategy::ClientAllocated
@ ClientAllocated
Definition
qpipewire_cameranode_p.h:39
QtPipeWire::DmaBufStrategy::None
@ None
Definition
qpipewire_cameranode_p.h:36
QtPipeWire::DmaBufStrategy::NodeAllocated
@ NodeAllocated
Definition
qpipewire_cameranode_p.h:42
QtPipeWire::cameraDeviceId
QByteArray cameraDeviceId(const PwPropertyDict &nodeProperties)
Definition
qpipewire_cameranode.cpp:62
QtPipeWire::isCameraNode
bool isCameraNode(const PwPropertyDict &nodeProperties)
Definition
qpipewire_cameranode.cpp:29
QtPipeWire::dmaBufStrategy
DmaBufStrategy dmaBufStrategy(const PwPropertyDict &deviceProperties)
Definition
qpipewire_cameranode.cpp:52
QtPipeWire::cameraDescription
QString cameraDescription(const PwPropertyDict &nodeProperties, const PwPropertyDict &deviceProperties)
Definition
qpipewire_cameranode.cpp:80
qtmultimedia
src
multimedia
pipewire
qpipewire_cameranode_p.h
Generated on
for Qt by
1.18.0