version.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. /*
  2. * This file is part of FFmpeg.
  3. *
  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.
  8. *
  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.
  13. *
  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
  17. */
  18. #ifndef AVCODEC_VERSION_H
  19. #define AVCODEC_VERSION_H
  20. /**
  21. * @file
  22. * @ingroup libavc
  23. * Libavcodec version macros.
  24. */
  25. #include "libavutil/version.h"
  26. #define LIBAVCODEC_VERSION_MAJOR 57
  27. #define LIBAVCODEC_VERSION_MINOR 107
  28. #define LIBAVCODEC_VERSION_MICRO 100
  29. #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
  30. LIBAVCODEC_VERSION_MINOR, \
  31. LIBAVCODEC_VERSION_MICRO)
  32. #define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \
  33. LIBAVCODEC_VERSION_MINOR, \
  34. LIBAVCODEC_VERSION_MICRO)
  35. #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
  36. #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
  37. /**
  38. * FF_API_* defines may be placed below to indicate public API that will be
  39. * dropped at a future version bump. The defines themselves are not part of
  40. * the public API and may change, break or disappear at any time.
  41. *
  42. * @note, when bumping the major version it is recommended to manually
  43. * disable each FF_API_* in its own commit instead of disabling them all
  44. * at once through the bump. This improves the git bisect-ability of the change.
  45. */
  46. #ifndef FF_API_VIMA_DECODER
  47. #define FF_API_VIMA_DECODER (LIBAVCODEC_VERSION_MAJOR < 58)
  48. #endif
  49. #ifndef FF_API_AUDIO_CONVERT
  50. #define FF_API_AUDIO_CONVERT (LIBAVCODEC_VERSION_MAJOR < 58)
  51. #endif
  52. #ifndef FF_API_AVCODEC_RESAMPLE
  53. #define FF_API_AVCODEC_RESAMPLE FF_API_AUDIO_CONVERT
  54. #endif
  55. #ifndef FF_API_MISSING_SAMPLE
  56. #define FF_API_MISSING_SAMPLE (LIBAVCODEC_VERSION_MAJOR < 58)
  57. #endif
  58. #ifndef FF_API_LOWRES
  59. #define FF_API_LOWRES (LIBAVCODEC_VERSION_MAJOR < 58)
  60. #endif
  61. #ifndef FF_API_CAP_VDPAU
  62. #define FF_API_CAP_VDPAU (LIBAVCODEC_VERSION_MAJOR < 58)
  63. #endif
  64. #ifndef FF_API_BUFS_VDPAU
  65. #define FF_API_BUFS_VDPAU (LIBAVCODEC_VERSION_MAJOR < 58)
  66. #endif
  67. #ifndef FF_API_VOXWARE
  68. #define FF_API_VOXWARE (LIBAVCODEC_VERSION_MAJOR < 58)
  69. #endif
  70. #ifndef FF_API_SET_DIMENSIONS
  71. #define FF_API_SET_DIMENSIONS (LIBAVCODEC_VERSION_MAJOR < 58)
  72. #endif
  73. #ifndef FF_API_DEBUG_MV
  74. #define FF_API_DEBUG_MV (LIBAVCODEC_VERSION_MAJOR < 58)
  75. #endif
  76. #ifndef FF_API_AC_VLC
  77. #define FF_API_AC_VLC (LIBAVCODEC_VERSION_MAJOR < 58)
  78. #endif
  79. #ifndef FF_API_OLD_MSMPEG4
  80. #define FF_API_OLD_MSMPEG4 (LIBAVCODEC_VERSION_MAJOR < 58)
  81. #endif
  82. #ifndef FF_API_ASPECT_EXTENDED
  83. #define FF_API_ASPECT_EXTENDED (LIBAVCODEC_VERSION_MAJOR < 58)
  84. #endif
  85. #ifndef FF_API_ARCH_ALPHA
  86. #define FF_API_ARCH_ALPHA (LIBAVCODEC_VERSION_MAJOR < 58)
  87. #endif
  88. #ifndef FF_API_XVMC
  89. #define FF_API_XVMC (LIBAVCODEC_VERSION_MAJOR < 58)
  90. #endif
  91. #ifndef FF_API_ERROR_RATE
  92. #define FF_API_ERROR_RATE (LIBAVCODEC_VERSION_MAJOR < 58)
  93. #endif
  94. #ifndef FF_API_QSCALE_TYPE
  95. #define FF_API_QSCALE_TYPE (LIBAVCODEC_VERSION_MAJOR < 58)
  96. #endif
  97. #ifndef FF_API_MB_TYPE
  98. #define FF_API_MB_TYPE (LIBAVCODEC_VERSION_MAJOR < 58)
  99. #endif
  100. #ifndef FF_API_MAX_BFRAMES
  101. #define FF_API_MAX_BFRAMES (LIBAVCODEC_VERSION_MAJOR < 58)
  102. #endif
  103. #ifndef FF_API_NEG_LINESIZES
  104. #define FF_API_NEG_LINESIZES (LIBAVCODEC_VERSION_MAJOR < 58)
  105. #endif
  106. #ifndef FF_API_EMU_EDGE
  107. #define FF_API_EMU_EDGE (LIBAVCODEC_VERSION_MAJOR < 58)
  108. #endif
  109. #ifndef FF_API_ARCH_SH4
  110. #define FF_API_ARCH_SH4 (LIBAVCODEC_VERSION_MAJOR < 58)
  111. #endif
  112. #ifndef FF_API_ARCH_SPARC
  113. #define FF_API_ARCH_SPARC (LIBAVCODEC_VERSION_MAJOR < 58)
  114. #endif
  115. #ifndef FF_API_UNUSED_MEMBERS
  116. #define FF_API_UNUSED_MEMBERS (LIBAVCODEC_VERSION_MAJOR < 58)
  117. #endif
  118. #ifndef FF_API_IDCT_XVIDMMX
  119. #define FF_API_IDCT_XVIDMMX (LIBAVCODEC_VERSION_MAJOR < 58)
  120. #endif
  121. #ifndef FF_API_INPUT_PRESERVED
  122. #define FF_API_INPUT_PRESERVED (LIBAVCODEC_VERSION_MAJOR < 58)
  123. #endif
  124. #ifndef FF_API_NORMALIZE_AQP
  125. #define FF_API_NORMALIZE_AQP (LIBAVCODEC_VERSION_MAJOR < 58)
  126. #endif
  127. #ifndef FF_API_GMC
  128. #define FF_API_GMC (LIBAVCODEC_VERSION_MAJOR < 58)
  129. #endif
  130. #ifndef FF_API_MV0
  131. #define FF_API_MV0 (LIBAVCODEC_VERSION_MAJOR < 58)
  132. #endif
  133. #ifndef FF_API_CODEC_NAME
  134. #define FF_API_CODEC_NAME (LIBAVCODEC_VERSION_MAJOR < 58)
  135. #endif
  136. #ifndef FF_API_AFD
  137. #define FF_API_AFD (LIBAVCODEC_VERSION_MAJOR < 58)
  138. #endif
  139. #ifndef FF_API_VISMV
  140. /* XXX: don't forget to drop the -vismv documentation */
  141. #define FF_API_VISMV (LIBAVCODEC_VERSION_MAJOR < 58)
  142. #endif
  143. #ifndef FF_API_AUDIOENC_DELAY
  144. #define FF_API_AUDIOENC_DELAY (LIBAVCODEC_VERSION_MAJOR < 58)
  145. #endif
  146. #ifndef FF_API_VAAPI_CONTEXT
  147. #define FF_API_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 58)
  148. #endif
  149. #ifndef FF_API_MERGE_SD
  150. #define FF_API_MERGE_SD (LIBAVCODEC_VERSION_MAJOR < 58)
  151. #endif
  152. #ifndef FF_API_AVCTX_TIMEBASE
  153. #define FF_API_AVCTX_TIMEBASE (LIBAVCODEC_VERSION_MAJOR < 59)
  154. #endif
  155. #ifndef FF_API_MPV_OPT
  156. #define FF_API_MPV_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
  157. #endif
  158. #ifndef FF_API_STREAM_CODEC_TAG
  159. #define FF_API_STREAM_CODEC_TAG (LIBAVCODEC_VERSION_MAJOR < 59)
  160. #endif
  161. #ifndef FF_API_QUANT_BIAS
  162. #define FF_API_QUANT_BIAS (LIBAVCODEC_VERSION_MAJOR < 59)
  163. #endif
  164. #ifndef FF_API_RC_STRATEGY
  165. #define FF_API_RC_STRATEGY (LIBAVCODEC_VERSION_MAJOR < 59)
  166. #endif
  167. #ifndef FF_API_CODED_FRAME
  168. #define FF_API_CODED_FRAME (LIBAVCODEC_VERSION_MAJOR < 59)
  169. #endif
  170. #ifndef FF_API_MOTION_EST
  171. #define FF_API_MOTION_EST (LIBAVCODEC_VERSION_MAJOR < 59)
  172. #endif
  173. #ifndef FF_API_WITHOUT_PREFIX
  174. #define FF_API_WITHOUT_PREFIX (LIBAVCODEC_VERSION_MAJOR < 59)
  175. #endif
  176. #ifndef FF_API_SIDEDATA_ONLY_PKT
  177. #define FF_API_SIDEDATA_ONLY_PKT (LIBAVCODEC_VERSION_MAJOR < 59)
  178. #endif
  179. #ifndef FF_API_VDPAU_PROFILE
  180. #define FF_API_VDPAU_PROFILE (LIBAVCODEC_VERSION_MAJOR < 59)
  181. #endif
  182. #ifndef FF_API_CONVERGENCE_DURATION
  183. #define FF_API_CONVERGENCE_DURATION (LIBAVCODEC_VERSION_MAJOR < 59)
  184. #endif
  185. #ifndef FF_API_AVPICTURE
  186. #define FF_API_AVPICTURE (LIBAVCODEC_VERSION_MAJOR < 59)
  187. #endif
  188. #ifndef FF_API_AVPACKET_OLD_API
  189. #define FF_API_AVPACKET_OLD_API (LIBAVCODEC_VERSION_MAJOR < 59)
  190. #endif
  191. #ifndef FF_API_RTP_CALLBACK
  192. #define FF_API_RTP_CALLBACK (LIBAVCODEC_VERSION_MAJOR < 59)
  193. #endif
  194. #ifndef FF_API_VBV_DELAY
  195. #define FF_API_VBV_DELAY (LIBAVCODEC_VERSION_MAJOR < 59)
  196. #endif
  197. #ifndef FF_API_CODER_TYPE
  198. #define FF_API_CODER_TYPE (LIBAVCODEC_VERSION_MAJOR < 59)
  199. #endif
  200. #ifndef FF_API_STAT_BITS
  201. #define FF_API_STAT_BITS (LIBAVCODEC_VERSION_MAJOR < 59)
  202. #endif
  203. #ifndef FF_API_PRIVATE_OPT
  204. #define FF_API_PRIVATE_OPT (LIBAVCODEC_VERSION_MAJOR < 59)
  205. #endif
  206. #ifndef FF_API_ASS_TIMING
  207. #define FF_API_ASS_TIMING (LIBAVCODEC_VERSION_MAJOR < 59)
  208. #endif
  209. #ifndef FF_API_OLD_BSF
  210. #define FF_API_OLD_BSF (LIBAVCODEC_VERSION_MAJOR < 59)
  211. #endif
  212. #ifndef FF_API_COPY_CONTEXT
  213. #define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
  214. #endif
  215. #ifndef FF_API_GET_CONTEXT_DEFAULTS
  216. #define FF_API_GET_CONTEXT_DEFAULTS (LIBAVCODEC_VERSION_MAJOR < 59)
  217. #endif
  218. #ifndef FF_API_NVENC_OLD_NAME
  219. #define FF_API_NVENC_OLD_NAME (LIBAVCODEC_VERSION_MAJOR < 59)
  220. #endif
  221. #ifndef FF_API_STRUCT_VAAPI_CONTEXT
  222. #define FF_API_STRUCT_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59)
  223. #endif
  224. #ifndef FF_API_MERGE_SD_API
  225. #define FF_API_MERGE_SD_API (LIBAVCODEC_VERSION_MAJOR < 59)
  226. #endif
  227. #ifndef FF_API_TAG_STRING
  228. #define FF_API_TAG_STRING (LIBAVCODEC_VERSION_MAJOR < 59)
  229. #endif
  230. #ifndef FF_API_GETCHROMA
  231. #define FF_API_GETCHROMA (LIBAVCODEC_VERSION_MAJOR < 59)
  232. #endif
  233. #endif /* AVCODEC_VERSION_H */