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