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
qffmpegaudioencoderutils_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 QFFMPEGAUDIOENCODERUTILS_P_H
5#define QFFMPEGAUDIOENCODERUTILS_P_H
6
7#include "qffmpeg_p.h"
8
10
11namespace QFFmpeg {
12
13AVSampleFormat adjustSampleFormat(const AVSampleFormat *supportedFormats, AVSampleFormat requested);
14
15int adjustSampleRate(const int *supportedRates, int requested);
16
17#if QT_FFMPEG_OLD_CHANNEL_LAYOUT
18uint64_t adjustChannelLayout(const uint64_t *supportedLayouts, uint64_t requested);
19#else
20AVChannelLayout adjustChannelLayout(const AVChannelLayout *supportedLayouts,
21 const AVChannelLayout &requested);
22#endif
23
24} // namespace QFFmpeg
25
27
28#endif // QFFMPEGAUDIOENCODERUTILS_P_H
AVSampleFormat adjustSampleFormat(const AVSampleFormat *supportedFormats, AVSampleFormat requested)
AVChannelLayout adjustChannelLayout(const AVChannelLayout *supportedLayouts, const AVChannelLayout &requested)
int adjustSampleRate(const int *supportedRates, int requested)
Combined button and popup list for selecting options.