aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffmpeg-2.4/ff_api-defines.inc
blob: 72a7f4c60b81bad8759fec5e9d4369f0a413c424 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// prevent pasdoc from parsing this file
{$IFNDEF PASDOC}

(**
 * FF_API_* defines may be placed below to indicate public API that will be
 * dropped at a future version bump. The defines themselves are not part of
 * the public API and may change, break or disappear at any time.
 *)

(** avcodec defines *)
{$ifndef FF_API_REQUEST_CHANNELS}
{$define FF_API_REQUEST_CHANNELS := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_OLD_DECODE_AUDIO}
{$define FF_API_OLD_DECODE_AUDIO := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_OLD_ENCODE_AUDIO}
{$define FF_API_OLD_ENCODE_AUDIO := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_OLD_ENCODE_VIDEO}
{$define FF_API_OLD_ENCODE_VIDEO := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_CODEC_ID}
{$define FF_API_CODEC_ID         := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_AUDIO_CONVERT}
{$define FF_API_AUDIO_CONVERT    := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_AVCODEC_RESAMPLE}
{$define FF_API_AVCODEC_RESAMPLE := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_DEINTERLACE}
{$define FF_API_DEINTERLACE      := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_DESTRUCT_PACKET}
{$define FF_API_DESTRUCT_PACKET  := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_GET_BUFFER}
{$define FF_API_GET_BUFFER       := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_MISSING_SAMPLE}
{$define FF_API_MISSING_SAMPLE   := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_LOWRES}
{$define FF_API_LOWRES           := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_CAP_VDPAU}
{$define FF_API_CAP_VDPAU        := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_BUFS_VDPAU}
{$define FF_API_BUFS_VDPAU       := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_VOXWARE}
{$define FF_API_VOXWARE          := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_SET_DIMENSIONS}
{$define FF_API_SET_DIMENSIONS   := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_DEBUG_MV}
{$define FF_API_DEBUG_MV         := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_AC_VLC}
{$define FF_API_AC_VLC           := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_OLD_MSMPEG4}
{$define FF_API_OLD_MSMPEG4      := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_ASPECT_EXTENDED}
{$define FF_API_ASPECT_EXTENDED  := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_THREAD_OPAQUE}
{$define FF_API_THREAD_OPAQUE    := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_CODEC_PKT}
{$define FF_API_CODEC_PKT        := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_ARCH_ALPHA}
{$define FF_API_ARCH_ALPHA       := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_XVMC}
{$define FF_API_XVMC             := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_ERROR_RATE}
{$define FF_API_ERROR_RATE       := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_QSCALE_TYPE}
{$define FF_API_QSCALE_TYPE      := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_MB_TYPE}
{$define FF_API_MB_TYPE          := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_MAX_BFRAMES}
{$define FF_API_MAX_BFRAMES      := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_FAST_MALLOC}
{$define FF_API_FAST_MALLOC      := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_NEG_LINESIZES}
{$define FF_API_NEG_LINESIZES    := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_EMU_EDGE}
{$define FF_API_EMU_EDGE         := (LIBAVCODEC_VERSION_MAJOR < 56)}
{$endif}

(* avutil defines *)
{$ifndef FF_API_GET_BITS_PER_SAMPLE_FMT}
{$define FF_API_GET_BITS_PER_SAMPLE_FMT := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_FIND_OPT}
{$define FF_API_FIND_OPT                := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_OLD_AVOPTIONS}
{$define FF_API_OLD_AVOPTIONS           := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_PIX_FMT}
{$define FF_API_PIX_FMT                 := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_CONTEXT_SIZE}
{$define FF_API_CONTEXT_SIZE            := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_PIX_FMT_DESC}
{$define FF_API_PIX_FMT_DESC            := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_AV_REVERSE}
{$define FF_API_AV_REVERSE              := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_AUDIOCONVERT}
{$define FF_API_AUDIOCONVERT            := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_CPU_FLAG_MMX2}
{$define FF_API_CPU_FLAG_MMX2           := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_SAMPLES_UTILS_RETURN_ZERO}
{$define FF_API_SAMPLES_UTILS_RETURN_ZERO := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_LLS_PRIVATE}
{$define FF_API_LLS_PRIVATE              := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_LLS1}
{$define FF_API_LLS1                     :=(LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_AVFRAME_LAVC}
{$define FF_API_AVFRAME_LAVC             := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_VDPAU}
{$define FF_API_VDPAU                    := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_GET_CHANNEL_LAYOUT_COMPAT}
{$define FF_API_GET_CHANNEL_LAYOUT_COMPAT := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_OLD_OPENCL}
{$define FF_API_OLD_OPENCL               := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_XVMC}
{$define FF_API_XVMC                     := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_INTFLOAT
{$define FF_API_INTFLOAT                 := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}
{$ifndef FF_API_OPT_TYPE_METADATA}
{$define FF_API_OPT_TYPE_METADATA        := (LIBAVUTIL_VERSION_MAJOR < 54)}
{$endif}

(** avformat FF_API defines *)
{$ifndef FF_API_REFERENCE_DTS}
{$define FF_API_REFERENCE_DTS          := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_ALLOC_OUTPUT_CONTEXT}
{$define FF_API_ALLOC_OUTPUT_CONTEXT  := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_FORMAT_PARAMETERS}
{$define FF_API_FORMAT_PARAMETERS     := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_NEW_STREAM}
{$define FF_API_NEW_STREAM            := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_SET_PTS_INFO}
{$define FF_API_SET_PTS_INFO          := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_CLOSE_INPUT_FILE}
{$define FF_API_CLOSE_INPUT_FILE      := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_READ_PACKET}
{$define FF_API_READ_PACKET           := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_ASS_SSA}
{$define FF_API_ASS_SSA               := (LIBAVFORMAT_VERSION_MAJOR < 56)}
{$endif}
{$ifndef FF_API_R_FRAME_RATE}
{$define FF_API_R_FRAME_RATE          := 1}
{$endif}

(** swscale FF_API defines *)
{$ifndef FF_API_SWS_GETCONTEXT}
{$define FF_API_SWS_GETCONTEXT        := (LIBSWSCALE_VERSION_MAJOR < 3)}
{$endif}
{$ifndef FF_API_SWS_CPU_CAPS}
{$define FF_API_SWS_CPU_CAPS          := (LIBSWSCALE_VERSION_MAJOR < 3)}
{$endif}
{$ifndef FF_API_SWS_FORMAT_NAME}
{$define FF_API_SWS_FORMAT_NAME       := (LIBSWSCALE_VERSION_MAJOR < 3)}
{$endif}

{$ENDIF PASDOC}