Browse Source

avutil: Move library version related macros to version.h

This is a more sensible place for these macros.
tags/n2.2-rc1
Diego Biurrun 11 years ago
parent
commit
b83d1ee3b4
9 changed files with 26 additions and 22 deletions
  1. +2
    -0
      libavcodec/version.h
  2. +1
    -1
      libavdevice/version.h
  3. +1
    -1
      libavfilter/version.h
  4. +1
    -1
      libavformat/version.h
  5. +2
    -0
      libavresample/version.h
  6. +0
    -17
      libavutil/avutil.h
  7. +1
    -1
      libavutil/utils.c
  8. +17
    -0
      libavutil/version.h
  9. +1
    -1
      libswscale/version.h

+ 2
- 0
libavcodec/version.h View File

@@ -26,6 +26,8 @@
* Libavcodec version macros.
*/

#include "libavutil/version.h"

#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 31
#define LIBAVCODEC_VERSION_MICRO 0


+ 1
- 1
libavdevice/version.h View File

@@ -25,7 +25,7 @@
* Libavdevice version macros
*/

#include "libavutil/avutil.h"
#include "libavutil/version.h"

#define LIBAVDEVICE_VERSION_MAJOR 54
#define LIBAVDEVICE_VERSION_MINOR 0


+ 1
- 1
libavfilter/version.h View File

@@ -27,7 +27,7 @@
* Libavfilter version macros
*/

#include "libavutil/avutil.h"
#include "libavutil/version.h"

#define LIBAVFILTER_VERSION_MAJOR 4
#define LIBAVFILTER_VERSION_MINOR 0


+ 1
- 1
libavformat/version.h View File

@@ -27,7 +27,7 @@
* Libavformat version macros
*/

#include "libavutil/avutil.h"
#include "libavutil/version.h"

#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR 10


+ 2
- 0
libavresample/version.h View File

@@ -25,6 +25,8 @@
* Libavresample version macros.
*/

#include "libavutil/version.h"

#define LIBAVRESAMPLE_VERSION_MAJOR 1
#define LIBAVRESAMPLE_VERSION_MINOR 1
#define LIBAVRESAMPLE_VERSION_MICRO 0


+ 0
- 17
libavutil/avutil.h View File

@@ -163,23 +163,6 @@

#define AV_PRAGMA(s) _Pragma(#s)

/**
* @}
*/

/**
* @defgroup version_utils Library Version Macros
*
* Useful to check and match library version in order to maintain
* backward compatibility.
*
* @{
*/

#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
#define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)

/**
* @}
*/


+ 1
- 1
libavutil/utils.c View File

@@ -17,7 +17,7 @@
*/

#include "config.h"
#include "avutil.h"
#include "version.h"

/**
* @file


+ 17
- 0
libavutil/version.h View File

@@ -21,6 +21,23 @@

#include "avutil.h"

/**
* @defgroup version_utils Library Version Macros
*
* Useful to check and match library version in order to maintain
* backward compatibility.
*
* @{
*/

#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
#define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)

/**
* @}
*/

/**
* @file
* @ingroup lavu


+ 1
- 1
libswscale/version.h View File

@@ -24,7 +24,7 @@
* swscale version macros
*/

#include "libavutil/avutil.h"
#include "libavutil/version.h"

#define LIBSWSCALE_VERSION_MAJOR 2
#define LIBSWSCALE_VERSION_MINOR 1


Loading…
Cancel
Save