summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-18 17:16:02 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-18 17:16:02 +0000
commit6ef6b3c1e23509e60f0c9f0d76a8248815cd9146 (patch)
treeb0a0f675e34eccd0a3f454e36bcb2fa93b58b88c /libswscale
parente775bdd70d274834780b02548f2d525f71116f98 (diff)
downloadmpv-6ef6b3c1e23509e60f0c9f0d76a8248815cd9146.tar.bz2
mpv-6ef6b3c1e23509e60f0c9f0d76a8248815cd9146.tar.xz
Add functions to return library license and library configuration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29932 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c11
-rw-r--r--libswscale/swscale.h10
2 files changed, 21 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index ba41c12ad7..8d0b56087a 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 9a088af3fc..aec6a38e94 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -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