Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qffmpegavaudioformat_p.h
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#ifndef QFFMPEGAVAUDIOFORMAT_P_H
5#define QFFMPEGAVAUDIOFORMAT_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 "qffmpegdefs_p.h"
19#include <private/qtmultimediaglobal_p.h>
20
21#if !QT_FFMPEG_OLD_CHANNEL_LAYOUT
22inline bool operator==(const AVChannelLayout &lhs, const AVChannelLayout &rhs)
23{
24 return lhs.order == rhs.order && lhs.nb_channels == rhs.nb_channels && lhs.u.mask == rhs.u.mask;
25}
26
27inline bool operator!=(const AVChannelLayout &lhs, const AVChannelLayout &rhs)
28{
29 return !(lhs == rhs);
30}
31
32#endif
33
35
36class QAudioFormat;
37
38namespace QFFmpeg {
39
41{
42 AVAudioFormat(const AVCodecContext *context);
43
44 AVAudioFormat(const AVCodecParameters *codecPar);
45
46 AVAudioFormat(const QAudioFormat &audioFormat);
47
48#if QT_FFMPEG_OLD_CHANNEL_LAYOUT
49 uint64_t channelLayoutMask;
50#else
51 AVChannelLayout channelLayout;
52#endif
53 AVSampleFormat sampleFormat;
55};
56
57bool operator==(const AVAudioFormat &lhs, const AVAudioFormat &rhs);
58
59inline bool operator!=(const AVAudioFormat &lhs, const AVAudioFormat &rhs)
60{
61 return !(lhs == rhs);
62}
63
64} // namespace QFFmpeg
65
67
68#endif // QFFMPEGAVAUDIOFORMAT_P_H
The QAudioFormat class stores audio stream parameter information.
bool operator==(const AVAudioFormat &lhs, const AVAudioFormat &rhs)
bool operator!=(const AVAudioFormat &lhs, const AVAudioFormat &rhs)
Combined button and popup list for selecting options.
static void * context
bool operator==(const AVChannelLayout &lhs, const AVChannelLayout &rhs)
bool operator!=(const AVChannelLayout &lhs, const AVChannelLayout &rhs)
AVAudioFormat(const AVCodecContext *context)