Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpipewirecapture.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
6
8
9using namespace Qt::StringLiterals;
10
12 : QPlatformSurfaceCapture(initialSource)
13{
14 m_helper = std::make_unique<QPipeWireCaptureHelper>(*this);
15}
16
20
22{
23 if (m_helper)
24 return m_helper->frameFormat();
25
26 return QVideoFrameFormat();
27}
28
30{
31 if (!m_helper)
32 m_helper = std::make_unique<QPipeWireCaptureHelper>(*this);
33
34 if (m_helper)
35 return m_helper->setActiveInternal(active);
36
37 return static_cast<bool>(m_helper) == active;
38}
39
bool setActiveInternal(bool active) override
QVideoFrameFormat frameFormat() const override
~QPipeWireCapture() override
QPipeWireCapture(Source initialSource)
std::variant< ScreenSource, WindowSource > Source
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
Combined button and popup list for selecting options.