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