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 QFFMPEGAUDIOENCODERUTILS_P_H
5#define QFFMPEGAUDIOENCODERUTILS_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 <QtFFmpegMediaPluginImpl/private/qffmpeg_p.h>
19#include <QtCore/qspan.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace QFFmpeg {
24
25AVSampleFormat adjustSampleFormat(QSpan<const AVSampleFormat> supportedFormats, AVSampleFormat requested);
26
27int adjustSampleRate(QSpan<const int> supportedRates, int requested);
28
29ChannelLayoutT adjustChannelLayout(QSpan<const ChannelLayoutT> supportedLayouts,
30 const ChannelLayoutT &requested);
31
32} // namespace QFFmpeg
33
34QT_END_NAMESPACE
35
36#endif // QFFMPEGAUDIOENCODERUTILS_P_H
37

source code of qtmultimedia/src/plugins/multimedia/ffmpeg/recordingengine/qffmpegaudioencoderutils_p.h