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_spa_video_format_support_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_SPA_VIDEO_FORMAT_SUPPORT_P_H
5
#
define
QPIPEWIRE_SPA_VIDEO_FORMAT_SUPPORT_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
/
qtmultimediaglobal_p
.
h
>
19
#
include
<
QtMultimedia
/
qcameradevice
.
h
>
20
#
include
<
QtMultimedia
/
qvideoframeformat
.
h
>
21
#
include
<
QtCore
/
qlist
.
h
>
22
#
include
<
QtCore
/
qsize
.
h
>
23
#
include
<
QtCore
/
qspan
.
h
>
24
25
#
if
__has_include
(
<
spa
/
param
/
format
.
h
>
)
26
#
include
<
spa
/
param
/
format
.
h
>
27
#
else
28
#
include
<
QtMultimedia
/
private
/
qpipewire_spa_compat_p
.
h
>
29
#
endif
30
#
include
<
spa
/
pod
/
pod
.
h
>
31
32
#
include
<
optional
>
33
#
include
<
variant
>
34
#
include
<
vector
>
35
36
QT_BEGIN_NAMESPACE
37
38
namespace
QtPipeWire
{
39
40
struct
SizeRange
41
{
42
QSize
preferred
;
43
QSize
min
;
44
QSize
max
;
45
};
46
47
struct
Q_MULTIMEDIA_EXPORT
SpaObjectVideoFormat
48
{
49
static
std
::
optional
<
SpaObjectVideoFormat
>
parse
(
const
spa_pod
*);
50
51
const
spa_media_subtype
mediaSubtype
=
SPA_MEDIA_SUBTYPE_raw
;
52
53
std
::
vector
<
QVideoFrameFormat
::
PixelFormat
>
pixelFormats
;
54
55
using
ResolutionSet
=
std
::
variant
<
std
::
vector
<
QSize
>,
SizeRange
>;
56
ResolutionSet
resolutions
;
57
58
qreal
minFrameRate
= 0.;
59
qreal
maxFrameRate
= 0.;
60
};
61
62
// Cross product of the pixel formats and resolutions of 'formats'
63
Q_MULTIMEDIA_EXPORT
QList
<
QCameraFormat
>
toCameraFormats
(
QSpan
<
const
SpaObjectVideoFormat
>);
64
65
}
// namespace QtPipeWire
66
67
QT_END_NAMESPACE
68
69
#
endif
// QPIPEWIRE_SPA_VIDEO_FORMAT_SUPPORT_P_H
QtPipeWire
Definition
qpipewire_async_support.cpp:10
QtPipeWire::toCameraFormats
QList< QCameraFormat > toCameraFormats(QSpan< const SpaObjectVideoFormat > formats)
Definition
qpipewire_spa_video_format_support.cpp:240
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
__has_include
#define __has_include(x)
Definition
qcompilerdetection.h:459
QtPipeWire::SizeRange
Definition
qpipewire_spa_video_format_support_p.h:41
QtPipeWire::SizeRange::preferred
QSize preferred
Definition
qpipewire_spa_video_format_support_p.h:42
QtPipeWire::SizeRange::min
QSize min
Definition
qpipewire_spa_video_format_support_p.h:43
QtPipeWire::SizeRange::max
QSize max
Definition
qpipewire_spa_video_format_support_p.h:44
QtPipeWire::SpaObjectVideoFormat
Definition
qpipewire_spa_video_format_support_p.h:48
qtmultimedia
src
multimedia
pipewire
qpipewire_spa_video_format_support_p.h
Generated on
for Qt by
1.16.1