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_pod_support_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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_POD_SUPPORT_P_H
5#define QPIPEWIRE_SPA_POD_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/qaudio_qspan_support_p.h>
19#include <QtMultimedia/private/qpipewire_spa_pod_parser_support_p.h>
20#include <QtMultimedia/qaudioformat.h>
21#include <QtCore/qglobal.h>
22#include <QtCore/qlist.h>
23#include <QtCore/qspan.h>
24
25#if __has_include(<spa/param/audio/iec958.h>)
26# include <spa/param/audio/iec958.h>
27#else
28# include <QtMultimedia/private/qpipewire_spa_compat_p.h>
29#endif
30#include <spa/param/audio/raw.h>
31#include <spa/pod/pod.h>
32
33QT_BEGIN_NAMESPACE
34
35namespace QtPipeWire {
36
47
48spa_audio_info_raw asSpaAudioInfoRaw(const QAudioFormat &);
49
72
73} // namespace QtPipeWire
74
75QT_END_NAMESPACE
76
77#endif // QPIPEWIRE_SPA_POD_SUPPORT_P_H
constexpr std::array channelPositions7Dot1
constexpr std::array channelPositions3Dot1
constexpr std::array channelPositions5Dot0
constexpr std::array channelPositions5Dot1
constexpr std::array channelPositionsStereo
constexpr std::array channelPositions7Dot0
constexpr std::array channelPositionsMono
spa_audio_info_raw asSpaAudioInfoRaw(const QAudioFormat &fmt)
constexpr std::array channelPositions2Dot1
constexpr std::array channelPositions3Dot0
#define __has_include(x)
static constexpr spa_media_subtype SPA_MEDIA_SUBTYPE_iec958
static constexpr spa_format SPA_FORMAT_AUDIO_iec958Codec
std::optional< QList< spa_audio_channel > > channelPositions
static std::optional< SpaObjectAudioFormat > parse(const struct spa_pod *pod)
static std::optional< SpaObjectAudioFormat > parse(const struct spa_pod_object *obj)