Mercurial > libavutil.hg
comparison avutil.h @ 459:3a8b439cb980 libavutil
less preprocessor magic in version number macros
author | mru |
---|---|
date | Tue, 26 Feb 2008 20:37:59 +0000 |
parents | 5aec7a3442b1 |
children | f4fd038fcb58 |
comparison
equal
deleted
inserted
replaced
458:676e2c142383 | 459:3a8b439cb980 |
---|---|
28 | 28 |
29 | 29 |
30 #define AV_STRINGIFY(s) AV_TOSTRING(s) | 30 #define AV_STRINGIFY(s) AV_TOSTRING(s) |
31 #define AV_TOSTRING(s) #s | 31 #define AV_TOSTRING(s) #s |
32 | 32 |
33 #define AV_VERSION_INT_3(a, b, c) (a<<16 | b<<8 | c) | 33 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) |
34 #define AV_VERSION_INT(x) AV_VERSION_INT_3(x) | 34 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c |
35 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) | |
35 | 36 |
36 #define AV_VERSION_3(a, b, c) a ##.## b ##.## c | 37 #define LIBAVUTIL_VERSION_MAJOR 49 |
37 #define AV_VERSION(x) AV_VERSION_3(x) | 38 #define LIBAVUTIL_VERSION_MINOR 6 |
39 #define LIBAVUTIL_VERSION_MICRO 0 | |
38 | 40 |
39 #define LIBAVUTIL_VERSION_TRIPLET 49,6,0 | 41 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |
40 | 42 LIBAVUTIL_VERSION_MINOR, \ |
41 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_TRIPLET) | 43 LIBAVUTIL_VERSION_MICRO) |
42 #define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_TRIPLET) | 44 #define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \ |
45 LIBAVUTIL_VERSION_MINOR, \ | |
46 LIBAVUTIL_VERSION_MICRO) | |
43 #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT | 47 #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT |
44 | 48 |
45 #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION) | 49 #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION) |
46 | 50 |
47 | 51 |