[FFmpeg-cvslog] r29932 - in trunk/libswscale: swscale.c swscale.h
diego
subversion
Wed Nov 18 18:16:02 CET 2009
Author: diego
Date: Wed Nov 18 18:16:02 2009
New Revision: 29932
Log:
Add functions to return library license and library configuration.
Modified:
trunk/libswscale/swscale.c
trunk/libswscale/swscale.h
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Wed Nov 18 10:13:09 2009 (r29931)
+++ trunk/libswscale/swscale.c Wed Nov 18 18:16:02 2009 (r29932)
@@ -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
Modified: trunk/libswscale/swscale.h
==============================================================================
--- trunk/libswscale/swscale.h Wed Nov 18 10:13:09 2009 (r29931)
+++ trunk/libswscale/swscale.h Wed Nov 18 18:16:02 2009 (r29932)
@@ -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
More information about the ffmpeg-cvslog
mailing list