Mercurial > mplayer.hg
changeset 29890:e8e1f8cc7c5b
Add functions to return library license and library configuration.
author | diego |
---|---|
date | Wed, 18 Nov 2009 17:16:02 +0000 |
parents | 031fd59bcb79 |
children | eac5c6780b8d |
files | libswscale/swscale.c libswscale/swscale.h |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Wed Nov 18 09:13:09 2009 +0000 +++ b/libswscale/swscale.c Wed Nov 18 17:16:02 2009 +0000 @@ -84,6 +84,17 @@ return LIBSWSCALE_VERSION_INT; } +const char * swscale_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * swscale_license(void) +{ +#define LICENSE_PREFIX "libswscale license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} + #undef MOVNTQ #undef PAVGB
--- a/libswscale/swscale.h Wed Nov 18 09:13:09 2009 +0000 +++ b/libswscale/swscale.h Wed Nov 18 17:16:02 2009 +0000 @@ -48,6 +48,16 @@ */ unsigned swscale_version(void); +/** + * Returns the libswscale build-time configuration. + */ +const char * swscale_configuration(void); + +/** + * Returns the libswscale license. + */ +const char * swscale_license(void); + /* values for the flags, the stuff on the command line is different */ #define SWS_FAST_BILINEAR 1 #define SWS_BILINEAR 2