From b3e03fa7b0574c5e1a4f89ef82dc327271118e54 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 29 Aug 2008 18:23:54 +0000 Subject: Implement swscale_version(). Originally committed as revision 27492 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale.c | 5 +++++ libswscale/swscale.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'libswscale') diff --git a/libswscale/swscale.c b/libswscale/swscale.c index ccdeae8185..891f79ac28 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -73,6 +73,11 @@ untested special converters #include "libavutil/x86_cpu.h" #include "libavutil/bswap.h" +unsigned swscale_version(void) +{ + return LIBSWSCALE_VERSION_INT; +} + #undef MOVNTQ #undef PAVGB diff --git a/libswscale/swscale.h b/libswscale/swscale.h index a0c735b696..51ff4685c2 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -30,7 +30,7 @@ #include "libavutil/avutil.h" #define LIBSWSCALE_VERSION_MAJOR 0 -#define LIBSWSCALE_VERSION_MINOR 5 +#define LIBSWSCALE_VERSION_MINOR 6 #define LIBSWSCALE_VERSION_MICRO 1 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ @@ -43,6 +43,11 @@ #define LIBSWSCALE_IDENT "SwS" AV_STRINGIFY(LIBSWSCALE_VERSION) +/** + * Returns the LIBSWSCALE_VERSION_INT constant. + */ +unsigned swscale_version(void); + /* values for the flags, the stuff on the command line is different */ #define SWS_FAST_BILINEAR 1 #define SWS_BILINEAR 2 -- cgit v1.2.3