version.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * copyright (c) 2003 Fabrice Bellard
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifndef AVUTIL_VERSION_H
  21. #define AVUTIL_VERSION_H
  22. #include "avutil.h"
  23. /**
  24. * @file
  25. * @ingroup lavu
  26. * Libavutil version macros
  27. */
  28. /**
  29. * @defgroup lavu_ver Version and Build diagnostics
  30. *
  31. * Macros and function useful to check at compiletime and at runtime
  32. * which version of libavutil is in use.
  33. *
  34. * @{
  35. */
  36. #define LIBAVUTIL_VERSION_MAJOR 51
  37. #define LIBAVUTIL_VERSION_MINOR 73
  38. #define LIBAVUTIL_VERSION_MICRO 101
  39. #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
  40. LIBAVUTIL_VERSION_MINOR, \
  41. LIBAVUTIL_VERSION_MICRO)
  42. #define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \
  43. LIBAVUTIL_VERSION_MINOR, \
  44. LIBAVUTIL_VERSION_MICRO)
  45. #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
  46. #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
  47. /**
  48. * @}
  49. *
  50. * @defgroup depr_guards Deprecation guards
  51. * FF_API_* defines may be placed below to indicate public API that will be
  52. * dropped at a future version bump. The defines themselves are not part of
  53. * the public API and may change, break or disappear at any time.
  54. *
  55. * @{
  56. */
  57. #ifndef FF_API_OLD_EVAL_NAMES
  58. #define FF_API_OLD_EVAL_NAMES (LIBAVUTIL_VERSION_MAJOR < 52)
  59. #endif
  60. #ifndef FF_API_GET_BITS_PER_SAMPLE_FMT
  61. #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52)
  62. #endif
  63. #ifndef FF_API_FIND_OPT
  64. #define FF_API_FIND_OPT (LIBAVUTIL_VERSION_MAJOR < 52)
  65. #endif
  66. #ifndef FF_API_AV_FIFO_PEEK
  67. #define FF_API_AV_FIFO_PEEK (LIBAVUTIL_VERSION_MAJOR < 52)
  68. #endif
  69. #ifndef FF_API_OLD_AVOPTIONS
  70. #define FF_API_OLD_AVOPTIONS (LIBAVUTIL_VERSION_MAJOR < 52)
  71. #endif
  72. #ifndef FF_API_OLD_TC_ADJUST_FRAMENUM
  73. #define FF_API_OLD_TC_ADJUST_FRAMENUM (LIBAVUTIL_VERSION_MAJOR < 52)
  74. #endif
  75. /**
  76. * @}
  77. */
  78. #endif /* AVUTIL_VERSION_H */