Browse Source

Add functions to return library license and library configuration.

Originally committed as revision 29932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
tags/v0.6
Diego Biurrun 16 years ago
parent
commit
bd381fd3f6
2 changed files with 21 additions and 0 deletions
  1. +11
    -0
      libswscale/swscale.c
  2. +10
    -0
      libswscale/swscale.h

+ 11
- 0
libswscale/swscale.c View File

@@ -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



+ 10
- 0
libswscale/swscale.h View File

@@ -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


Loading…
Cancel
Save