Revision c1736936

View differences:

configure
2794 2794
#ifndef FFMPEG_CONFIG_H
2795 2795
#define FFMPEG_CONFIG_H
2796 2796
#define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)"
2797
#define FFMPEG_LICENSE "$(c_escape $license)"
2797 2798
#define FFMPEG_DATADIR "$(eval c_escape $datadir)"
2798 2799
#define CC_TYPE "$cc_type"
2799 2800
#define CC_VERSION $cc_version
libavcodec/avcodec.h
3067 3067
unsigned avcodec_version(void);
3068 3068

  
3069 3069
/**
3070
 * Returns the libavcodec build-time configuration.
3071
 */
3072
const char * avcodec_configuration(void);
3073

  
3074
/**
3075
 * Returns the libavcodec license.
3076
 */
3077
const char * avcodec_license(void);
3078

  
3079
/**
3070 3080
 * Initializes libavcodec.
3071 3081
 *
3072 3082
 * @warning This function must be called before any other libavcodec
libavcodec/utils.c
905 905
  return LIBAVCODEC_VERSION_INT;
906 906
}
907 907

  
908
const char * avcodec_configuration(void)
909
{
910
    return FFMPEG_CONFIGURATION;
911
}
912

  
913
const char * avcodec_license(void)
914
{
915
#define LICENSE_PREFIX "libavcodec license: "
916
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
917
}
918

  
908 919
void avcodec_init(void)
909 920
{
910 921
    static int initialized = 0;
libavdevice/avdevice.c
22 22
{
23 23
    return LIBAVDEVICE_VERSION_INT;
24 24
}
25

  
26
const char * avdevice_configuration(void)
27
{
28
    return FFMPEG_CONFIGURATION;
29
}
30

  
31
const char * avdevice_license(void)
32
{
33
#define LICENSE_PREFIX "libavdevice license: "
34
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
35
}
libavdevice/avdevice.h
39 39
unsigned avdevice_version(void);
40 40

  
41 41
/**
42
 * Returns the libavdevice build-time configuration.
43
 */
44
const char * avdevice_configuration(void);
45

  
46
/**
47
 * Returns the libavdevice license.
48
 */
49
const char * avdevice_license(void);
50

  
51
/**
42 52
 * Initialize libavdevice and register all the input and output devices.
43 53
 * @warning This function is not thread safe.
44 54
 */
libavfilter/avfilter.c
28 28
    return LIBAVFILTER_VERSION_INT;
29 29
}
30 30

  
31
const char * avfilter_configuration(void)
32
{
33
    return FFMPEG_CONFIGURATION;
34
}
35

  
36
const char * avfilter_license(void)
37
{
38
#define LICENSE_PREFIX "libavfilter license: "
39
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
40
}
41

  
31 42
/** helper macros to get the in/out pad on the dst/src filter */
32 43
#define link_dpad(link)     link->dst-> input_pads[link->dstpad]
33 44
#define link_spad(link)     link->src->output_pads[link->srcpad]
libavfilter/avfilter.h
44 44
 */
45 45
unsigned avfilter_version(void);
46 46

  
47
/**
48
 * Returns the libavfilter build-time configuration.
49
 */
50
const char * avfilter_configuration(void);
51

  
52
/**
53
 * Returns the libavfilter license.
54
 */
55
const char * avfilter_license(void);
56

  
57

  
47 58
typedef struct AVFilterContext AVFilterContext;
48 59
typedef struct AVFilterLink    AVFilterLink;
49 60
typedef struct AVFilterPad     AVFilterPad;
libavformat/avformat.h
40 40
 */
41 41
unsigned avformat_version(void);
42 42

  
43
/**
44
 * Returns the libavformat build-time configuration.
45
 */
46
const char * avformat_configuration(void);
47

  
48
/**
49
 * Returns the libavformat license.
50
 */
51
const char * avformat_license(void);
52

  
43 53
#include <time.h>
44 54
#include <stdio.h>  /* FILE */
45 55
#include "libavcodec/avcodec.h"
libavformat/utils.c
41 41
    return LIBAVFORMAT_VERSION_INT;
42 42
}
43 43

  
44
const char * avformat_configuration(void)
45
{
46
    return FFMPEG_CONFIGURATION;
47
}
48

  
49
const char * avformat_license(void)
50
{
51
#define LICENSE_PREFIX "libavformat license: "
52
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
53
}
54

  
44 55
/* fraction handling */
45 56

  
46 57
/**
libavutil/avutil.h
53 53
 */
54 54
unsigned avutil_version(void);
55 55

  
56
/**
57
 * Returns the libavutil build-time configuration.
58
 */
59
const char * avutil_configuration(void);
60

  
61
/**
62
 * Returns the libavutil license.
63
 */
64
const char * avutil_license(void);
65

  
56 66
#include "common.h"
57 67
#include "mathematics.h"
58 68
#include "rational.h"
libavutil/utils.c
16 16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 17
 */
18 18

  
19
#include "config.h"
19 20
#include "avutil.h"
20 21

  
21 22
/**
......
27 28
{
28 29
    return LIBAVUTIL_VERSION_INT;
29 30
}
31

  
32
const char * avutil_configuration(void)
33
{
34
    return FFMPEG_CONFIGURATION;
35
}
36

  
37
const char * avutil_license(void)
38
{
39
#define LICENSE_PREFIX "libavutil license: "
40
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
41
}
libpostproc/postprocess.c
92 92
    return LIBPOSTPROC_VERSION_INT;
93 93
}
94 94

  
95
const char * postproc_configuration(void)
96
{
97
    return FFMPEG_CONFIGURATION;
98
}
99

  
100
const char * postproc_license(void)
101
{
102
#define LICENSE_PREFIX "libpostproc license: "
103
    return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
104
}
105

  
95 106
#if HAVE_ALTIVEC_H
96 107
#include <altivec.h>
97 108
#endif
libpostproc/postprocess.h
48 48
 */
49 49
unsigned postproc_version(void);
50 50

  
51
/**
52
 * Returns the libpostproc build-time configuration.
53
 */
54
const char * postproc_configuration(void);
55

  
56
/**
57
 * Returns the libpostproc license.
58
 */
59
const char * postproc_license(void);
60

  
51 61
#define PP_QUALITY_MAX 6
52 62

  
53 63
#define QP_STORE_T int8_t

Also available in: Unified diff