Add functions to return library license and library configuration.
authorDiego Biurrun <diego@biurrun.de>
Wed, 18 Nov 2009 17:16:02 +0000 (17:16 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 18 Nov 2009 17:16:02 +0000 (17:16 +0000)
Originally committed as revision 29932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c
libswscale/swscale.h

index ba41c12..8d0b560 100644 (file)
@@ -84,6 +84,17 @@ unsigned swscale_version(void)
     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
 
index 9a088af..aec6a38 100644 (file)
  */
 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