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
24
QT_BEGIN_NAMESPACE
25
26
namespace
QtPipeWire
{
27
28
class
QPipeWireVideoStream;
29
30
class
Q_MULTIMEDIA_EXPORT
QPipeWireCamera
:
public
QPlatformCamera
31
{
32
Q_OBJECT
33
34
public
:
35
explicit
QPipeWireCamera
(
QCamera
*
camera
);
36
~
QPipeWireCamera
()
override
;
37
38
bool
isActive
()
const
override
;
39
void
setActive
(
bool
active
)
override
;
40
41
void
setCamera
(
const
QCameraDevice
&
camera
)
override
;
42
bool
setCameraFormat
(
const
QCameraFormat
&
format
)
override
;
43
44
QVideoFrameFormat
frameFormat
()
const
override
;
45
46
private
:
47
void
startStream
();
48
void
stopStream
();
49
50
// Returns true if the resolved format changed.
51
bool
resolveCameraFormat
(
const
QCameraFormat
&
format
);
52
53
bool
m_active
=
false
;
54
QCameraDevice
m_cameraDevice
;
55
std
::
unique_ptr
<
QPipeWireVideoStream
>
m_stream
;
56
};
57
58
}
// namespace QtPipeWire
59
60
QT_END_NAMESPACE
61
62
#
endif
// QPIPEWIRE_CAMERA_P_H
QtPipeWire::QPipeWireCamera
Definition
qpipewire_camera_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtPipeWire
Definition
qpipewire_async_support.cpp:10
QtPipeWire::Q_STATIC_LOGGING_CATEGORY
Q_STATIC_LOGGING_CATEGORY(lcPipewireAudioSink, "qt.multimedia.pipewire.audiosink")
qtmultimedia
src
multimedia
pipewire
qpipewire_camera_p.h
Generated on
for Qt by
1.16.1