aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/ffmpeg/version.inc
blob: 6ba2bd52d5880cd5c6405a9c705b9074560b49c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
const
{$IFDEF MSWINDOWS}
  av__codec = 'avcodec-51.dll';
  LIBAVCODEC_MAJOR_VERSION = 51;
  LIBAVCODEC_MINOR_VERSION = 0;
  LIBAVCODEC_SUB_VERSION   = 0;

  av__format = 'avformat-50.dll';
  LIBAVFORMAT_MAJOR_VERSION = 50;
  LIBAVFORMAT_MINOR_VERSION = 0;
  LIBAVFORMAT_SUB_VERSION   = 0;

  av__util = 'avutil-49.dll';
  LIBAVUTIL_MAJOR_VERSION = 49;
  LIBAVUTIL_MINOR_VERSION = 0;
  LIBAVUTIL_SUB_VERSION   = 0;
{$ENDIF}
{$IFDEF LINUX}
  av__codec = 'libavcodec.so';
  LIBAVCODEC_MAJOR_VERSION = 51;
  LIBAVCODEC_MINOR_VERSION = 0;
  LIBAVCODEC_SUB_VERSION   = 0;

  av__format = 'libavformat.so';
//av__format = 'libavformat.51';
  LIBAVFORMAT_MAJOR_VERSION = 51;
  LIBAVFORMAT_MINOR_VERSION = 0;
  LIBAVFORMAT_SUB_VERSION   = 0;

  av__util = 'libavutil.so';
  LIBAVUTIL_MAJOR_VERSION = 49;
  LIBAVUTIL_MINOR_VERSION = 0;
  LIBAVUTIL_SUB_VERSION   = 0;
{$ENDIF}
{$IFDEF DARWIN}
  av__codec = 'libavcodec.dylib';
  LIBAVCODEC_MAJOR_VERSION = 51;
  LIBAVCODEC_MINOR_VERSION = 0;
  LIBAVCODEC_SUB_VERSION   = 0;

  av__format = 'libavformat.dylib';
  LIBAVFORMAT_MAJOR_VERSION = 52;
  LIBAVFORMAT_MINOR_VERSION = 0;
  LIBAVFORMAT_SUB_VERSION   = 0;

  av__util = 'libavutil.dylib';
  LIBAVUTIL_MAJOR_VERSION = 49;
  LIBAVUTIL_MINOR_VERSION = 0;
  LIBAVUTIL_SUB_VERSION   = 0;
{$ENDIF}

(* Max. supported version by this header *)
(* TODO: someone has to check the changes up to version 52, add some IFDEFS and increase this version number *)

LIBAVCODEC_MAX_MAJOR_VERSION = 51;
LIBAVCODEC_MAX_MINOR_VERSION = 12;
LIBAVCODEC_MAX_SUB_VERSION   = 1;
LIBAVCODEC_MAX_VERSION = (LIBAVCODEC_MAX_MAJOR_VERSION * 10000) +
                         (LIBAVCODEC_MAX_MINOR_VERSION * 100) +
                         (LIBAVCODEC_MAX_SUB_VERSION);

LIBAVFORMAT_MAX_MAJOR_VERSION = 51;
LIBAVFORMAT_MAX_MINOR_VERSION = 12;
LIBAVFORMAT_MAX_SUB_VERSION   = 1;
LIBAVFORMAT_MAX_VERSION = (LIBAVFORMAT_MAX_MAJOR_VERSION * 10000) +
                          (LIBAVFORMAT_MAX_MINOR_VERSION * 100) +
                          (LIBAVFORMAT_MAX_SUB_VERSION);

LIBAVUTIL_MAX_MAJOR_VERSION = 49;
LIBAVUTIL_MAX_MINOR_VERSION = 4;
LIBAVUTIL_MAX_SUB_VERSION   = 1;
LIBAVUTIL_MAX_VERSION = (LIBAVUTIL_MAX_MAJOR_VERSION * 10000) +
                        (LIBAVUTIL_MAX_MINOR_VERSION * 100) +
                        (LIBAVUTIL_MAX_SUB_VERSION);

(* Calc linked version *)
LIBAVCODEC_VERSION = (LIBAVCODEC_MAJOR_VERSION * 10000) +
                     (LIBAVCODEC_MINOR_VERSION * 100) +
                     (LIBAVCODEC_SUB_VERSION);

LIBAVFORMAT_VERSION = (LIBAVFORMAT_MAJOR_VERSION * 10000) +
                      (LIBAVFORMAT_MINOR_VERSION * 100) +
                      (LIBAVFORMAT_SUB_VERSION);

LIBAVUTIL_VERSION = (LIBAVUTIL_MAJOR_VERSION * 10000) +
                    (LIBAVUTIL_MINOR_VERSION * 100) +
                    (LIBAVUTIL_SUB_VERSION);

(* Check if linked versions are supported *)

{$IF (LIBAVCODEC_VERSION > LIBAVCODEC_MAX_VERSION)}
  {$MESSAGE Warn 'Linked version of libavcodec may be unsupported!'}
{$IFEND}

{$IF (LIBAVFORMAT_VERSION > LIBAVFORMAT_MAX_VERSION)}
  {$MESSAGE Warn 'Linked version of libavformat may be unsupported!'}
{$IFEND}

{$IF (LIBAVUTIL_VERSION > LIBAVUTIL_MAX_VERSION)}
  {$MESSAGE Warn 'Linked version of libavutil may be unsupported!'}
{$IFEND}