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
4
#
include
"qpipewire_screencapture_p.h"
5
6
#
include
<
QtMultimedia
/
private
/
qpipewire_screencapturehelper_p
.
h
>
7
8
#
include
<
utility
>
9
10
QT_BEGIN_NAMESPACE
11
12
namespace
QtPipeWire
{
13
14
QPipeWireCapture
::
QPipeWireCapture
(
Source
initialSource
)
15
:
QPlatformSurfaceCapture
(
std
::
move
(
initialSource
))
16
{
17
m_helper
=
std
::
make_unique
<
QPipeWireCaptureHelper
>(*
this
);
18
}
19
20
QPipeWireCapture
::~
QPipeWireCapture
() =
default
;
21
22
QVideoFrameFormat
QPipeWireCapture
::
frameFormat
()
const
23
{
24
if
(
m_helper
)
25
return
m_helper
->
frameFormat
();
26
27
return
QVideoFrameFormat
();
28
}
29
30
bool
QPipeWireCapture
::
setActiveInternal
(
bool
active
)
31
{
32
if
(!
m_helper
)
33
m_helper
=
std
::
make_unique
<
QPipeWireCaptureHelper
>(*
this
);
34
35
if
(
m_helper
)
36
return
m_helper
->
setActiveInternal
(
active
);
37
38
return
static_cast
<
bool
>(
m_helper
) ==
active
;
39
}
40
41
}
// namespace QtPipeWire
42
43
QT_END_NAMESPACE
QtPipeWire
Definition
qpipewire_async_support.cpp:10
qtmultimedia
src
multimedia
pipewire
qpipewire_screencapture.cpp
Generated on
for Qt by
1.16.1