diff options
Diffstat (limited to 'libavutil/version.h')
-rw-r--r-- | libavutil/version.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavutil/version.h b/libavutil/version.h index 9e1f2d80ef..cf5cc2fb14 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -22,6 +22,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 * Libavutil version macros |