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 QFFMPEGCODECSTORAGE_P_H |
5 | #define QFFMPEGCODECSTORAGE_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 "qtmultimediaglobal.h" |
20 | |
21 | #include <functional> |
22 | #include <optional> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace QFFmpeg { |
27 | |
28 | bool findAndOpenAVDecoder(AVCodecID codecId, |
29 | const std::function<AVScore(const AVCodec *)> &scoresGetter, |
30 | const std::function<bool(const AVCodec *)> &codecOpener); |
31 | |
32 | bool findAndOpenAVEncoder(AVCodecID codecId, |
33 | const std::function<AVScore(const AVCodec *)> &scoresGetter, |
34 | const std::function<bool(const AVCodec *)> &codecOpener); |
35 | |
36 | const AVCodec *findAVDecoder(AVCodecID codecId, |
37 | const std::optional<PixelOrSampleFormat> &format = {}); |
38 | |
39 | const AVCodec *findAVEncoder(AVCodecID codecId, |
40 | const std::optional<PixelOrSampleFormat> &format = {}); |
41 | |
42 | const AVCodec *findAVEncoder(AVCodecID codecId, |
43 | const std::function<AVScore(const AVCodec *)> &scoresGetter); |
44 | |
45 | } // namespace QFFmpeg |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QFFMPEGCODECSTORAGE_P_H |
50 |