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_screencapture.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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
5
6#include <QtMultimedia/private/qpipewire_screencapturehelper_p.h>
7#include <QtMultimedia/private/qpipewire_instance_p.h>
8
9#include <utility>
10
11QT_BEGIN_NAMESPACE
12
13using namespace Qt::StringLiterals;
14
15namespace QtPipeWire {
16
22
24
36
38{
39 if (m_helper)
40 return m_helper->frameFormat();
41
42 return QVideoFrameFormat();
43}
44
46{
47 // Initialize helper, keep alive between captures
48 if (!m_helper)
50
52
54
55 if (active)
56 m_helper->start();
57 else
58 m_helper->stop();
59
60 return true;
61}
62
63} // namespace QtPipeWire
64
65QT_END_NAMESPACE