[SCM] libav/experimental: Add functions to return library license and library configuration.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:54:35 UTC 2013
The following commit has been merged in the experimental branch:
commit bd381fd3f60ca93ec9d383b87577a14f2951ff69
Author: Diego Biurrun <diego at biurrun.de>
Date: Wed Nov 18 17:16:02 2009 +0000
Add functions to return library license and library configuration.
Originally committed as revision 29932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index ba41c12..8d0b560 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 9a088af..aec6a38 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
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list