# HG changeset patch # User diego # Date 1258564517 0 # Node ID 885c7548fb5e030326d0fc7f692a40697154cb21 # Parent c78bbb57f0b964e8c8086a064a3115d6f9bcf433 Add functions to return library license and library configuration. diff -r c78bbb57f0b9 -r 885c7548fb5e postprocess.c --- 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 #endif diff -r c78bbb57f0b9 -r 885c7548fb5e postprocess.h --- 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