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
qplatformvideodevices.cpp
Go to the documentation of this file.
1
// Copyright (C) 2022 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
"qplatformvideodevices_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
QPlatformVideoDevices::QPlatformVideoDevices(QPlatformMediaIntegration *integration)
9
: m_integration(integration)
10
{
11
qRegisterMetaType<PrivateTag>();
// for queued connections
12
}
13
14
QPlatformVideoDevices::~QPlatformVideoDevices() =
default
;
15
16
// Thread-safe
17
// Can be called from any thread.
18
void
QPlatformVideoDevices::onVideoInputsChanged() {
19
m_videoInputs.reset();
20
emit videoInputsChanged(PrivateTag{});
21
}
22
23
void
QPlatformVideoDevices::updateVideoInputsCache()
24
{
25
if
(m_videoInputs.update(findVideoInputs()))
26
emit videoInputsChanged(PrivateTag{});
27
}
28
29
// Thread-safe
30
// Can be called from any thread.
31
QList<QCameraDevice> QPlatformVideoDevices::videoInputs()
const
{
32
return
m_videoInputs.ensure([
this
]() {
33
return
findVideoInputs();
34
});
35
}
36
37
QT_END_NAMESPACE
38
39
#
include
"moc_qplatformvideodevices_p.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtmultimedia
src
multimedia
platform
qplatformvideodevices.cpp
Generated on
for Qt by
1.16.1