Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qplatformmediacapture.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 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
6#include "qaudiodevice.h"
7#include "qaudioinput.h"
8#include "qplatformcamera_p.h"
10
12
14
15std::vector<QPlatformVideoSource *> QPlatformMediaCaptureSession::activeVideoSources()
16{
17 std::vector<QPlatformVideoSource *> result;
18
19 auto checkSource = [&result](QPlatformVideoSource *source) {
20 if (source && source->isActive())
21 result.push_back(source);
22 };
23
24 checkSource(camera());
25 checkSource(screenCapture());
26 checkSource(windowCapture());
27
28 return result;
29}
30
32
33#include "moc_qplatformmediacapture_p.cpp"
std::vector< QPlatformVideoSource * > activeVideoSources()
virtual QPlatformSurfaceCapture * screenCapture()
virtual QPlatformCamera * camera()=0
~QPlatformMediaCaptureSession() override
virtual QPlatformSurfaceCapture * windowCapture()
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
GLuint64EXT * result
[6]