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 QFFMPEGIOUTILS_P_H |
5 | #define QFFMPEGIOUTILS_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 "qtmultimediaglobal.h" |
19 | #include "qffmpegdefs_p.h" |
20 | |
21 | #include <type_traits> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace QFFmpeg { |
26 | |
27 | int readQIODevice(void *opaque, uint8_t *buf, int buf_size); |
28 | |
29 | using AvioWriteBufferType = |
30 | std::conditional_t<QT_FFMPEG_AVIO_WRITE_CONST, const uint8_t *, uint8_t *>; |
31 | |
32 | int writeQIODevice(void *opaque, AvioWriteBufferType buf, int buf_size); |
33 | |
34 | int64_t seekQIODevice(void *opaque, int64_t offset, int whence); |
35 | |
36 | } // namespace QFFmpeg |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif // QFFMPEGIOUTILS_P_H |
41 | |