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_camera_p.h
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#ifndef QPIPEWIRE_CAMERA_P_H
5#define QPIPEWIRE_CAMERA_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtMultimedia/private/qplatformcamera_p.h>
19#include <QtMultimedia/private/qtmultimediaglobal_p.h>
20#include <QtMultimedia/qcameradevice.h>
21
22#include <memory>
23
24QT_BEGIN_NAMESPACE
25
26namespace QtPipeWire {
27
28class QPipeWireVideoStream;
29
30class Q_MULTIMEDIA_EXPORT QPipeWireCamera : public QPlatformCamera
31{
33
34public:
37
38 bool isActive() const override;
39 void setActive(bool active) override;
40
43
45
46private:
47 void startStream();
48 void stopStream();
49
50 // Returns true if the resolved format changed.
52
53 bool m_active = false;
56};
57
58} // namespace QtPipeWire
59
60QT_END_NAMESPACE
61
62#endif // QPIPEWIRE_CAMERA_P_H
Combined button and popup list for selecting options.
Q_STATIC_LOGGING_CATEGORY(lcPipewireAudioSink, "qt.multimedia.pipewire.audiosink")