2 * This file is part of FFmpeg.
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * FFmpeg is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with FFmpeg; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef AVCODEC_VERSION_H
20 #define AVCODEC_VERSION_H
25 * Libavcodec version macros.
28 #include "libavutil/version.h"
30 #define LIBAVCODEC_VERSION_MAJOR 58
31 #define LIBAVCODEC_VERSION_MINOR 0
32 #define LIBAVCODEC_VERSION_MICRO 100
34 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
35 LIBAVCODEC_VERSION_MINOR, \
36 LIBAVCODEC_VERSION_MICRO)
37 #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \
38 LIBAVCODEC_VERSION_MINOR, \
39 LIBAVCODEC_VERSION_MICRO)
40 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
42 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
45 * FF_API_* defines may be placed below to indicate public API that will be
46 * dropped at a future version bump. The defines themselves are not part of
47 * the public API and may change, break or disappear at any time.
49 * @note, when bumping the major version it is recommended to manually
50 * disable each FF_API_* in its own commit instead of disabling them all
51 * at once through the bump. This improves the git bisect-ability of the change.
55 #define FF_API_LOWRES (LIBAVCODEC_VERSION_MAJOR < 59)
57 #ifndef FF_API_DEBUG_MV
58 #define FF_API_DEBUG_MV (LIBAVCODEC_VERSION_MAJOR < 58)
61 #define FF_API_AFD (LIBAVCODEC_VERSION_MAJOR < 58)
64 /* XXX: don't forget to drop the -vismv documentation */
65 #define FF_API_VISMV (LIBAVCODEC_VERSION_MAJOR < 58)
67 #ifndef FF_API_AUDIOENC_DELAY
68 #define FF_API_AUDIOENC_DELAY (LIBAVCODEC_VERSION_MAJOR < 58)
70 #ifndef FF_API_VAAPI_CONTEXT
71 #define FF_API_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 58)
73 #ifndef FF_API_AVCTX_TIMEBASE
74 #define FF_API_AVCTX_TIMEBASE (LIBAVCODEC_VERSION_MAJOR < 59)
76 #ifndef FF_API_MPV_OPT
77 #define FF_API_MPV_OPT (LIBAVCODEC_VERSION_MAJOR < 58)
79 #ifndef FF_API_STREAM_CODEC_TAG
80 #define FF_API_STREAM_CODEC_TAG (LIBAVCODEC_VERSION_MAJOR < 58)
82 #ifndef FF_API_QUANT_BIAS
83 #define FF_API_QUANT_BIAS (LIBAVCODEC_VERSION_MAJOR < 58)
85 #ifndef FF_API_RC_STRATEGY
86 #define FF_API_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 58)
88 #ifndef FF_API_CODED_FRAME
89 #define FF_API_CODED_FRAME (LIBAVCODEC_VERSION_MAJOR < 59)
91 #ifndef FF_API_MOTION_EST
92 #define FF_API_MOTION_EST (LIBAVCODEC_VERSION_MAJOR < 58)
94 #ifndef FF_API_SIDEDATA_ONLY_PKT
95 #define FF_API_SIDEDATA_ONLY_PKT (LIBAVCODEC_VERSION_MAJOR < 59)
97 #ifndef FF_API_VDPAU_PROFILE
98 #define FF_API_VDPAU_PROFILE (LIBAVCODEC_VERSION_MAJOR < 59)
100 #ifndef FF_API_CONVERGENCE_DURATION
101 #define FF_API_CONVERGENCE_DURATION (LIBAVCODEC_VERSION_MAJOR < 59)
103 #ifndef FF_API_AVPICTURE
104 #define FF_API_AVPICTURE (LIBAVCODEC_VERSION_MAJOR < 59)
106 #ifndef FF_API_AVPACKET_OLD_API
107 #define FF_API_AVPACKET_OLD_API (LIBAVCODEC_VERSION_MAJOR < 59)
109 #ifndef FF_API_RTP_CALLBACK
110 #define FF_API_RTP_CALLBACK (LIBAVCODEC_VERSION_MAJOR < 59)
112 #ifndef FF_API_VBV_DELAY
113 #define FF_API_VBV_DELAY (LIBAVCODEC_VERSION_MAJOR < 59)
115 #ifndef FF_API_CODER_TYPE
116 #define FF_API_CODER_TYPE (LIBAVCODEC_VERSION_MAJOR < 59)
118 #ifndef FF_API_STAT_BITS
119 #define FF_API_STAT_BITS (LIBAVCODEC_VERSION_MAJOR < 59)
121 #ifndef FF_API_PRIVATE_OPT
122 #define FF_API_PRIVATE_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
124 #ifndef FF_API_ASS_TIMING
125 #define FF_API_ASS_TIMING (LIBAVCODEC_VERSION_MAJOR < 59)
127 #ifndef FF_API_OLD_BSF
128 #define FF_API_OLD_BSF (LIBAVCODEC_VERSION_MAJOR < 59)
130 #ifndef FF_API_COPY_CONTEXT
131 #define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
133 #ifndef FF_API_GET_CONTEXT_DEFAULTS
134 #define FF_API_GET_CONTEXT_DEFAULTS (LIBAVCODEC_VERSION_MAJOR < 59)
136 #ifndef FF_API_NVENC_OLD_NAME
137 #define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
139 #ifndef FF_API_STRUCT_VAAPI_CONTEXT
140 #define FF_API_STRUCT_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
142 #ifndef FF_API_MERGE_SD_API
143 #define FF_API_MERGE_SD_API (LIBAVCODEC_VERSION_MAJOR < 59)
145 #ifndef FF_API_TAG_STRING
146 #define FF_API_TAG_STRING (LIBAVCODEC_VERSION_MAJOR < 59)
148 #ifndef FF_API_GETCHROMA
149 #define FF_API_GETCHROMA (LIBAVCODEC_VERSION_MAJOR < 59)
153 #endif /* AVCODEC_VERSION_H */