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
qpipewire_cameradevices.cpp
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
#
include
"qpipewire_cameradevices_p.h"
5
6
#
include
<
QtMultimedia
/
private
/
qpipewire_cameracontextmanager_p
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
namespace
QtPipeWire
{
11
12
using
namespace
std
::
chrono_literals
;
13
14
QCameraDevices
::
QCameraDevices
(
QPlatformMediaIntegration
*
integration
)
15
:
QPlatformVideoDevices
(
integration
)
16
{
17
Q_ASSERT
(
isSupported
());
18
19
m_changeCompressionTimer
.
setSingleShot
(
true
);
20
m_changeCompressionTimer
.
callOnTimeout
(
this
, [
this
] {
21
updateVideoInputsCache
();
22
});
23
24
connect
(&
QCameraContextManager
::
deviceMonitor
(), &
QCameraDeviceMonitor
::
camerasChanged
,
25
&
m_changeCompressionTimer
, &
QChronoTimer
::
start
);
26
}
27
28
bool
QCameraDevices
::
isSupported
()
29
{
30
return
QCameraContextManager
::
isSupported
();
31
}
32
33
QList
<
QCameraDevice
>
QCameraDevices
::
findVideoInputs
()
const
34
{
35
return
QCameraContextManager
::
deviceMonitor
().
cameraDevices
();
36
}
37
38
}
// namespace QtPipeWire
39
40
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtPipeWire
Definition
qpipewire_async_support.cpp:10
qtmultimedia
src
multimedia
pipewire
qpipewire_cameradevices.cpp
Generated on
for Qt by
1.16.1