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
qffmpegdefs_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 QFFMPEGDEFS_P_H
5#define QFFMPEGDEFS_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
18extern "C" {
19#include <libavformat/avformat.h>
20#include <libavcodec/avcodec.h>
21#include <libswresample/swresample.h>
22#include <libavutil/avutil.h>
23#include <libswscale/swscale.h>
24}
25
26#define QT_FFMPEG_OLD_CHANNEL_LAYOUT (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 24, 100))
27#define QT_FFMPEG_HAS_VULKAN \
28 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 91, 100)) // since ffmpeg n4.3
29#define QT_FFMPEG_HAS_FRAME_TIME_BASE \
30 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(59, 18, 100)) // since ffmpeg n5.0
31#define QT_FFMPEG_HAS_FRAME_DURATION \
32 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 3, 100)) // since ffmpeg n6.0
33#define QT_FFMPEG_STREAM_SIDE_DATA_DEPRECATED \
34 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(60, 15, 100)) // since ffmpeg n6.1
35#define QT_FFMPEG_HAS_D3D12VA \
36 (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(59, 8, 100)) // since ffmpeg n7.0
37#define QT_FFMPEG_SWR_CONST_CH_LAYOUT (LIBSWRESAMPLE_VERSION_INT >= AV_VERSION_INT(4, 9, 100))
38#define QT_FFMPEG_AVIO_WRITE_CONST \
39 (LIBAVFORMAT_VERSION_MAJOR >= 61)
40
41#endif // QFFMPEGDEFS_P_H