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#include "qffmpeg_p.h"
8
9QT_BEGIN_NAMESPACE
10
11namespace QFFmpeg {
12
13AVSampleFormat adjustSampleFormat(const AVSampleFormat *supportedFormats, AVSampleFormat requested);
14
15int adjustSampleRate(const int *supportedRates, int requested);
16
17#if QT_FFMPEG_HAS_AV_CHANNEL_LAYOUT
18AVChannelLayout adjustChannelLayout(const AVChannelLayout *supportedLayouts,
19 const AVChannelLayout &requested);
20#else
21uint64_t adjustChannelLayout(const uint64_t *supportedLayouts, uint64_t requested);
22#endif
23
24} // namespace QFFmpeg
25
26QT_END_NAMESPACE
27
28#endif // QFFMPEGAUDIOENCODERUTILS_P_H
29

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