# HG changeset patch # User diego # Date 1258564562 0 # Node ID e8e1f8cc7c5bebad166243248262ea471fb3d253 # Parent 031fd59bcb79ed31a8e6a88d6632be2692659ee1 Add functions to return library license and library configuration. diff -r 031fd59bcb79 -r e8e1f8cc7c5b libswscale/swscale.c --- 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 diff -r 031fd59bcb79 -r e8e1f8cc7c5b libswscale/swscale.h --- 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