Mercurial > libpostproc.hg
changeset 130:885c7548fb5e libpostproc
Add functions to return library license and library configuration.
author | diego |
---|---|
date | Wed, 18 Nov 2009 17:15:17 +0000 |
parents | c78bbb57f0b9 |
children | 63eddcff3509 |
files | postprocess.c postprocess.h |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/postprocess.c Wed Aug 19 08:15:32 2009 +0000 +++ b/postprocess.c Wed Nov 18 17:15:17 2009 +0000 @@ -92,6 +92,17 @@ return LIBPOSTPROC_VERSION_INT; } +const char * postproc_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * postproc_license(void) +{ +#define LICENSE_PREFIX "libpostproc license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} + #if HAVE_ALTIVEC_H #include <altivec.h> #endif
--- a/postprocess.h Wed Aug 19 08:15:32 2009 +0000 +++ b/postprocess.h Wed Nov 18 17:15:17 2009 +0000 @@ -48,6 +48,16 @@ */ unsigned postproc_version(void); +/** + * Returns the libpostproc build-time configuration. + */ +const char * postproc_configuration(void); + +/** + * Returns the libpostproc license. + */ +const char * postproc_license(void); + #define PP_QUALITY_MAX 6 #define QP_STORE_T int8_t