swresample/resample: do not allow odd filter_length
[ffmpeg.git] / tests / fate / libswresample.mak
1 CROSS_TEST = $(foreach I,$(1),                                        \
2                  $(foreach J,$(1),                                    \
3                      $(if $(filter-out $(I),$(J)),                    \
4                          $(eval $(call $(2),$(I),$(J),$(3),$(4),$(5))),    \
5                      )))
6
7
8 SAMPLERATES = 2626 8000 44100 48000 96000
9
10 SAMPLERATES_LITE = 8000 44100 48000
11
12 SAMPLERATES_NN = 8000 44100
13
14 define ARESAMPLE
15 FATE_SWR_RESAMPLE += fate-swr-resample-$(3)-$(1)-$(2)
16 fate-swr-resample-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
17 fate-swr-resample-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):internal_sample_fmt=$(3),aformat=$(3),aresample=$(1):internal_sample_fmt=$(3) -f wav -acodec pcm_s16le -
18
19 fate-swr-resample-$(3)-$(1)-$(2): CMP = stddev
20 fate-swr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
21 fate-swr-resample-$(3)-$(1)-$(2): FUZZ = 0.1
22 fate-swr-resample-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
23 endef
24
25 #below list is generated by:
26 #you can use this if you need to update it!
27 #make -k  `make fate-list | grep swr` | egrep 'TEST|stddev' | tr '\n' '@' | sed 's#TEST *\([^@]*\)@stddev: *\([0-9.]*\)[^b@]*bytes: *\([0-9]*\) */ *\([0-9]*\)@#fate-\1: CMP_TARGET = \2@fate-\1: SIZE_TOLERANCE = \3 - \4@@#g' | tr '@' '\n'
28
29 fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1352.67
30 fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
31
32 fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.66
33 fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
34
35 fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1352.56
36 fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
37
38 fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1352.67
39 fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
40
41 fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.82
42 fate-swr-resample-dblp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
43
44 fate-swr-resample-dblp-44100-48000: CMP_TARGET = 9.69
45 fate-swr-resample-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
46
47 fate-swr-resample-dblp-44100-8000: CMP_TARGET = 75.45
48 fate-swr-resample-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
49
50 fate-swr-resample-dblp-44100-96000: CMP_TARGET = 11.46
51 fate-swr-resample-dblp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
52
53 fate-swr-resample-dblp-48000-2626: CMP_TARGET = 456.51
54 fate-swr-resample-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
55
56 fate-swr-resample-dblp-48000-44100: CMP_TARGET = 1.00
57 fate-swr-resample-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
58
59 fate-swr-resample-dblp-48000-8000: CMP_TARGET = 62.38
60 fate-swr-resample-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
61
62 fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.47
63 fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
64
65 fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2503.33
66 fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
67
68 fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.09
69 fate-swr-resample-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
70
71 fate-swr-resample-dblp-8000-48000: CMP_TARGET = 14.69
72 fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
73
74 fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.81
75 fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
76
77 fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.07
78 fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
79
80 fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.44
81 fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
82
83 fate-swr-resample-dblp-96000-48000: CMP_TARGET = 0.99
84 fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
85
86 fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.57
87 fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
88
89 fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1352.67
90 fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
91
92 fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.66
93 fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
94
95 fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1352.56
96 fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
97
98 fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1352.67
99 fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
100
101 fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.82
102 fate-swr-resample-fltp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
103
104 fate-swr-resample-fltp-44100-48000: CMP_TARGET = 9.69
105 fate-swr-resample-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
106
107 fate-swr-resample-fltp-44100-8000: CMP_TARGET = 75.45
108 fate-swr-resample-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
109
110 fate-swr-resample-fltp-44100-96000: CMP_TARGET = 11.46
111 fate-swr-resample-fltp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
112
113 fate-swr-resample-fltp-48000-2626: CMP_TARGET = 456.51
114 fate-swr-resample-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
115
116 fate-swr-resample-fltp-48000-44100: CMP_TARGET = 1.00
117 fate-swr-resample-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
118
119 fate-swr-resample-fltp-48000-8000: CMP_TARGET = 62.38
120 fate-swr-resample-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
121
122 fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47
123 fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
124
125 fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2503.33
126 fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
127
128 fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09
129 fate-swr-resample-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
130
131 fate-swr-resample-fltp-8000-48000: CMP_TARGET = 14.69
132 fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
133
134 fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.81
135 fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
136
137 fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.07
138 fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
139
140 fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.44
141 fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
142
143 fate-swr-resample-fltp-96000-48000: CMP_TARGET = 0.99
144 fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
145
146 fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.57
147 fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
148
149 fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1392.98
150 fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
151
152 fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1393.01
153 fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
154
155 fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.36
156 fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
157
158 fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.07
159 fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
160
161 fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84
162 fate-swr-resample-s16p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
163
164 fate-swr-resample-s16p-44100-48000: CMP_TARGET = 9.71
165 fate-swr-resample-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
166
167 fate-swr-resample-s16p-44100-8000: CMP_TARGET = 75.46
168 fate-swr-resample-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
169
170 fate-swr-resample-s16p-44100-96000: CMP_TARGET = 11.48
171 fate-swr-resample-s16p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
172
173 fate-swr-resample-s16p-48000-2626: CMP_TARGET = 456.55
174 fate-swr-resample-s16p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
175
176 fate-swr-resample-s16p-48000-44100: CMP_TARGET = 1.20
177 fate-swr-resample-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
178
179 fate-swr-resample-s16p-48000-8000: CMP_TARGET = 62.41
180 fate-swr-resample-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
181
182 fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.73
183 fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
184
185 fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2503.32
186 fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
187
188 fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.13
189 fate-swr-resample-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
190
191 fate-swr-resample-s16p-8000-48000: CMP_TARGET = 14.69
192 fate-swr-resample-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
193
194 fate-swr-resample-s16p-8000-96000: CMP_TARGET = 13.83
195 fate-swr-resample-s16p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
196
197 fate-swr-resample-s16p-96000-2626: CMP_TARGET = 675.15
198 fate-swr-resample-s16p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
199
200 fate-swr-resample-s16p-96000-44100: CMP_TARGET = 1.62
201 fate-swr-resample-s16p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
202
203 fate-swr-resample-s16p-96000-48000: CMP_TARGET = 1.12
204 fate-swr-resample-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
205
206 fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60
207 fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
208
209 fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1392.99
210 fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
211
212 fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1393.01
213 fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
214
215 fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.36
216 fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
217
218 fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.00
219 fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
220
221 fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.82
222 fate-swr-resample-s32p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
223
224 fate-swr-resample-s32p-44100-48000: CMP_TARGET = 9.69
225 fate-swr-resample-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
226
227 fate-swr-resample-s32p-44100-8000: CMP_TARGET = 75.45
228 fate-swr-resample-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
229
230 fate-swr-resample-s32p-44100-96000: CMP_TARGET = 11.46
231 fate-swr-resample-s32p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
232
233 fate-swr-resample-s32p-48000-2626: CMP_TARGET = 456.51
234 fate-swr-resample-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
235
236 fate-swr-resample-s32p-48000-44100: CMP_TARGET = 1.00
237 fate-swr-resample-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
238
239 fate-swr-resample-s32p-48000-8000: CMP_TARGET = 62.38
240 fate-swr-resample-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
241
242 fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47
243 fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
244
245 fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2503.33
246 fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
247
248 fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09
249 fate-swr-resample-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
250
251 fate-swr-resample-s32p-8000-48000: CMP_TARGET = 14.69
252 fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
253
254 fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.81
255 fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
256
257 fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.07
258 fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
259
260 fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.44
261 fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
262
263 fate-swr-resample-s32p-96000-48000: CMP_TARGET = 0.99
264 fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
265
266 fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.57
267 fate-swr-resample-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
268
269
270 define ARESAMPLE_LIN
271 FATE_SWR_RESAMPLE += fate-swr-resample_lin-$(3)-$(1)-$(2)
272 fate-swr-resample_lin-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
273 fate-swr-resample_lin-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):linear_interp=1:internal_sample_fmt=$(3),aformat=$(3),aresample=$(1):linear_interp=1:internal_sample_fmt=$(3) -f wav -acodec pcm_s16le -
274
275 fate-swr-resample_lin-$(3)-$(1)-$(2): CMP = stddev
276 fate-swr-resample_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
277 fate-swr-resample_lin-$(3)-$(1)-$(2): FUZZ = 0.1
278 fate-swr-resample_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
279 endef
280
281 fate-swr-resample_lin-s16p-8000-44100: CMP_TARGET = 14.61
282 fate-swr-resample_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
283
284 fate-swr-resample_lin-s16p-8000-48000: CMP_TARGET = 14.53
285 fate-swr-resample_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
286
287 fate-swr-resample_lin-s16p-44100-8000: CMP_TARGET = 75.41
288 fate-swr-resample_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
289
290 fate-swr-resample_lin-s16p-44100-48000: CMP_TARGET = 9.66
291 fate-swr-resample_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
292
293 fate-swr-resample_lin-s16p-48000-8000: CMP_TARGET = 62.38
294 fate-swr-resample_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
295
296 fate-swr-resample_lin-s16p-48000-44100: CMP_TARGET = 0.65
297 fate-swr-resample_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
298
299 fate-swr-resample_lin-fltp-8000-44100: CMP_TARGET = 14.59
300 fate-swr-resample_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
301
302 fate-swr-resample_lin-fltp-8000-48000: CMP_TARGET = 14.50
303 fate-swr-resample_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
304
305 fate-swr-resample_lin-fltp-44100-8000: CMP_TARGET = 75.38
306 fate-swr-resample_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
307
308 fate-swr-resample_lin-fltp-44100-48000: CMP_TARGET = 9.64
309 fate-swr-resample_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
310
311 fate-swr-resample_lin-fltp-48000-8000: CMP_TARGET = 62.36
312 fate-swr-resample_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
313
314 fate-swr-resample_lin-fltp-48000-44100: CMP_TARGET = 0.23
315 fate-swr-resample_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
316
317 fate-swr-resample_lin-dblp-8000-44100: CMP_TARGET = 14.59
318 fate-swr-resample_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
319
320 fate-swr-resample_lin-dblp-8000-48000: CMP_TARGET = 14.50
321 fate-swr-resample_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
322
323 fate-swr-resample_lin-dblp-44100-8000: CMP_TARGET = 75.38
324 fate-swr-resample_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
325
326 fate-swr-resample_lin-dblp-44100-48000: CMP_TARGET = 9.64
327 fate-swr-resample_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
328
329 fate-swr-resample_lin-dblp-48000-8000: CMP_TARGET = 62.36
330 fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
331
332 fate-swr-resample_lin-dblp-48000-44100: CMP_TARGET = 0.23
333 fate-swr-resample_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
334
335 define ARESAMPLE_NN
336 FATE_SWR_RESAMPLE += fate-swr-resample_nn-$(3)-$(1)-$(2)
337 fate-swr-resample_nn-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
338 fate-swr-resample_nn-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):filter_size=1:phase_shift=0:internal_sample_fmt=$(3),aformat=$(3),aresample=$(1):internal_sample_fmt=$(3) -f wav -acodec pcm_s16le -
339
340 fate-swr-resample_nn-$(3)-$(1)-$(2): CMP = stddev
341 fate-swr-resample_nn-$(3)-$(1)-$(2): CMP_UNIT = $(5)
342 fate-swr-resample_nn-$(3)-$(1)-$(2): FUZZ = 0.1
343 fate-swr-resample_nn-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
344 endef
345
346 fate-swr-resample_nn-fltp-44100-8000: CMP_TARGET = 591.03
347 fate-swr-resample_nn-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
348
349 fate-swr-resample_nn-fltp-8000-44100: CMP_TARGET = 3163.32
350 fate-swr-resample_nn-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
351
352 fate-swr-resample_nn-s16p-44100-8000: CMP_TARGET = 590.98
353 fate-swr-resample_nn-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
354
355 fate-swr-resample_nn-s16p-8000-44100: CMP_TARGET = 3163.39
356 fate-swr-resample_nn-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
357
358 define ARESAMPLE_ASYNC
359 FATE_SWR_RESAMPLE += fate-swr-resample_async-$(3)-$(1)-$(2)
360 fate-swr-resample_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
361 fate-swr-resample_async-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,asetpts=PTS+random\(0\)*200-100,aresample=$(2):async=50:min_hard_comp=0.100000:first_pts=0:internal_sample_fmt=$(3),aformat=$(3),aresample=$(1):internal_sample_fmt=$(3) -f wav -acodec pcm_s16le -
362
363 fate-swr-resample_async-$(3)-$(1)-$(2): CMP = stddev
364 fate-swr-resample_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
365 fate-swr-resample_async-$(3)-$(1)-$(2): FUZZ = 0.1
366 fate-swr-resample_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
367 endef
368
369 fate-swr-resample_async-fltp-44100-8000: CMP_TARGET = 4020.60
370 fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
371
372 fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11186.66
373 fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
374
375 fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4020.71
376 fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
377
378 fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11186.94
379 fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
380
381 define ARESAMPLE_EXACT
382 FATE_SWR_RESAMPLE += fate-swr-resample_exact-$(3)-$(1)-$(2)
383 fate-swr-resample_exact-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
384 fate-swr-resample_exact-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):internal_sample_fmt=$(3):exact_rational=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on -f wav -acodec pcm_s16le -
385
386 fate-swr-resample_exact-$(3)-$(1)-$(2): CMP = stddev
387 fate-swr-resample_exact-$(3)-$(1)-$(2): CMP_UNIT = $(5)
388 fate-swr-resample_exact-$(3)-$(1)-$(2): FUZZ = 0.1
389 fate-swr-resample_exact-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
390 endef
391
392 fate-swr-resample_exact-dblp-2626-44100: CMP_TARGET = 1352.67
393 fate-swr-resample_exact-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
394
395 fate-swr-resample_exact-dblp-2626-48000: CMP_TARGET = 1352.66
396 fate-swr-resample_exact-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
397
398 fate-swr-resample_exact-dblp-2626-8000: CMP_TARGET = 1352.56
399 fate-swr-resample_exact-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
400
401 fate-swr-resample_exact-dblp-2626-96000: CMP_TARGET = 1352.67
402 fate-swr-resample_exact-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
403
404 fate-swr-resample_exact-dblp-44100-2626: CMP_TARGET = 185.82
405 fate-swr-resample_exact-dblp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
406
407 fate-swr-resample_exact-dblp-44100-48000: CMP_TARGET = 9.64
408 fate-swr-resample_exact-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
409
410 fate-swr-resample_exact-dblp-44100-8000: CMP_TARGET = 75.38
411 fate-swr-resample_exact-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
412
413 fate-swr-resample_exact-dblp-44100-96000: CMP_TARGET = 11.45
414 fate-swr-resample_exact-dblp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
415
416 fate-swr-resample_exact-dblp-48000-2626: CMP_TARGET = 456.51
417 fate-swr-resample_exact-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
418
419 fate-swr-resample_exact-dblp-48000-44100: CMP_TARGET = 0.23
420 fate-swr-resample_exact-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
421
422 fate-swr-resample_exact-dblp-48000-8000: CMP_TARGET = 62.36
423 fate-swr-resample_exact-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
424
425 fate-swr-resample_exact-dblp-48000-96000: CMP_TARGET = 0.47
426 fate-swr-resample_exact-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
427
428 fate-swr-resample_exact-dblp-8000-2626: CMP_TARGET = 2503.33
429 fate-swr-resample_exact-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
430
431 fate-swr-resample_exact-dblp-8000-44100: CMP_TARGET = 14.59
432 fate-swr-resample_exact-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
433
434 fate-swr-resample_exact-dblp-8000-48000: CMP_TARGET = 14.50
435 fate-swr-resample_exact-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
436
437 fate-swr-resample_exact-dblp-8000-96000: CMP_TARGET = 13.62
438 fate-swr-resample_exact-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
439
440 fate-swr-resample_exact-dblp-96000-2626: CMP_TARGET = 675.07
441 fate-swr-resample_exact-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
442
443 fate-swr-resample_exact-dblp-96000-44100: CMP_TARGET = 1.23
444 fate-swr-resample_exact-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
445
446 fate-swr-resample_exact-dblp-96000-48000: CMP_TARGET = 0.99
447 fate-swr-resample_exact-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
448
449 fate-swr-resample_exact-dblp-96000-8000: CMP_TARGET = 58.52
450 fate-swr-resample_exact-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
451
452 fate-swr-resample_exact-fltp-2626-44100: CMP_TARGET = 1352.67
453 fate-swr-resample_exact-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
454
455 fate-swr-resample_exact-fltp-2626-48000: CMP_TARGET = 1352.66
456 fate-swr-resample_exact-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
457
458 fate-swr-resample_exact-fltp-2626-8000: CMP_TARGET = 1352.56
459 fate-swr-resample_exact-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
460
461 fate-swr-resample_exact-fltp-2626-96000: CMP_TARGET = 1352.67
462 fate-swr-resample_exact-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
463
464 fate-swr-resample_exact-fltp-44100-2626: CMP_TARGET = 185.82
465 fate-swr-resample_exact-fltp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
466
467 fate-swr-resample_exact-fltp-44100-48000: CMP_TARGET = 9.64
468 fate-swr-resample_exact-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
469
470 fate-swr-resample_exact-fltp-44100-8000: CMP_TARGET = 75.38
471 fate-swr-resample_exact-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
472
473 fate-swr-resample_exact-fltp-44100-96000: CMP_TARGET = 11.45
474 fate-swr-resample_exact-fltp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
475
476 fate-swr-resample_exact-fltp-48000-2626: CMP_TARGET = 456.51
477 fate-swr-resample_exact-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
478
479 fate-swr-resample_exact-fltp-48000-44100: CMP_TARGET = 0.23
480 fate-swr-resample_exact-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
481
482 fate-swr-resample_exact-fltp-48000-8000: CMP_TARGET = 62.36
483 fate-swr-resample_exact-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
484
485 fate-swr-resample_exact-fltp-48000-96000: CMP_TARGET = 0.47
486 fate-swr-resample_exact-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
487
488 fate-swr-resample_exact-fltp-8000-2626: CMP_TARGET = 2503.33
489 fate-swr-resample_exact-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
490
491 fate-swr-resample_exact-fltp-8000-44100: CMP_TARGET = 14.59
492 fate-swr-resample_exact-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
493
494 fate-swr-resample_exact-fltp-8000-48000: CMP_TARGET = 14.50
495 fate-swr-resample_exact-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
496
497 fate-swr-resample_exact-fltp-8000-96000: CMP_TARGET = 13.62
498 fate-swr-resample_exact-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
499
500 fate-swr-resample_exact-fltp-96000-2626: CMP_TARGET = 675.07
501 fate-swr-resample_exact-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
502
503 fate-swr-resample_exact-fltp-96000-44100: CMP_TARGET = 1.23
504 fate-swr-resample_exact-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
505
506 fate-swr-resample_exact-fltp-96000-48000: CMP_TARGET = 0.99
507 fate-swr-resample_exact-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
508
509 fate-swr-resample_exact-fltp-96000-8000: CMP_TARGET = 58.52
510 fate-swr-resample_exact-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
511
512 fate-swr-resample_exact-s16p-2626-44100: CMP_TARGET = 1392.98
513 fate-swr-resample_exact-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
514
515 fate-swr-resample_exact-s16p-2626-48000: CMP_TARGET = 1393.01
516 fate-swr-resample_exact-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
517
518 fate-swr-resample_exact-s16p-2626-8000: CMP_TARGET = 1393.36
519 fate-swr-resample_exact-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
520
521 fate-swr-resample_exact-s16p-2626-96000: CMP_TARGET = 1393.07
522 fate-swr-resample_exact-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
523
524 fate-swr-resample_exact-s16p-44100-2626: CMP_TARGET = 185.84
525 fate-swr-resample_exact-s16p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
526
527 fate-swr-resample_exact-s16p-44100-48000: CMP_TARGET = 9.66
528 fate-swr-resample_exact-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
529
530 fate-swr-resample_exact-s16p-44100-8000: CMP_TARGET = 75.43
531 fate-swr-resample_exact-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
532
533 fate-swr-resample_exact-s16p-44100-96000: CMP_TARGET = 11.46
534 fate-swr-resample_exact-s16p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
535
536 fate-swr-resample_exact-s16p-48000-2626: CMP_TARGET = 456.55
537 fate-swr-resample_exact-s16p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
538
539 fate-swr-resample_exact-s16p-48000-44100: CMP_TARGET = 0.68
540 fate-swr-resample_exact-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
541
542 fate-swr-resample_exact-s16p-48000-8000: CMP_TARGET = 62.39
543 fate-swr-resample_exact-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
544
545 fate-swr-resample_exact-s16p-48000-96000: CMP_TARGET = 0.73
546 fate-swr-resample_exact-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
547
548 fate-swr-resample_exact-s16p-8000-2626: CMP_TARGET = 2503.32
549 fate-swr-resample_exact-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
550
551 fate-swr-resample_exact-s16p-8000-44100: CMP_TARGET = 14.63
552 fate-swr-resample_exact-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
553
554 fate-swr-resample_exact-s16p-8000-48000: CMP_TARGET = 14.54
555 fate-swr-resample_exact-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
556
557 fate-swr-resample_exact-s16p-8000-96000: CMP_TARGET = 13.65
558 fate-swr-resample_exact-s16p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
559
560 fate-swr-resample_exact-s16p-96000-2626: CMP_TARGET = 675.15
561 fate-swr-resample_exact-s16p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
562
563 fate-swr-resample_exact-s16p-96000-44100: CMP_TARGET = 1.44
564 fate-swr-resample_exact-s16p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
565
566 fate-swr-resample_exact-s16p-96000-48000: CMP_TARGET = 1.12
567 fate-swr-resample_exact-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
568
569 fate-swr-resample_exact-s16p-96000-8000: CMP_TARGET = 58.56
570 fate-swr-resample_exact-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
571
572 fate-swr-resample_exact-s32p-2626-44100: CMP_TARGET = 1392.99
573 fate-swr-resample_exact-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
574
575 fate-swr-resample_exact-s32p-2626-48000: CMP_TARGET = 1393.01
576 fate-swr-resample_exact-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
577
578 fate-swr-resample_exact-s32p-2626-8000: CMP_TARGET = 1393.36
579 fate-swr-resample_exact-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
580
581 fate-swr-resample_exact-s32p-2626-96000: CMP_TARGET = 1393.00
582 fate-swr-resample_exact-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
583
584 fate-swr-resample_exact-s32p-44100-2626: CMP_TARGET = 185.82
585 fate-swr-resample_exact-s32p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
586
587 fate-swr-resample_exact-s32p-44100-48000: CMP_TARGET = 9.64
588 fate-swr-resample_exact-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
589
590 fate-swr-resample_exact-s32p-44100-8000: CMP_TARGET = 75.38
591 fate-swr-resample_exact-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
592
593 fate-swr-resample_exact-s32p-44100-96000: CMP_TARGET = 11.45
594 fate-swr-resample_exact-s32p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
595
596 fate-swr-resample_exact-s32p-48000-2626: CMP_TARGET = 456.51
597 fate-swr-resample_exact-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
598
599 fate-swr-resample_exact-s32p-48000-44100: CMP_TARGET = 0.23
600 fate-swr-resample_exact-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
601
602 fate-swr-resample_exact-s32p-48000-8000: CMP_TARGET = 62.36
603 fate-swr-resample_exact-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
604
605 fate-swr-resample_exact-s32p-48000-96000: CMP_TARGET = 0.47
606 fate-swr-resample_exact-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
607
608 fate-swr-resample_exact-s32p-8000-2626: CMP_TARGET = 2503.33
609 fate-swr-resample_exact-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
610
611 fate-swr-resample_exact-s32p-8000-44100: CMP_TARGET = 14.59
612 fate-swr-resample_exact-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
613
614 fate-swr-resample_exact-s32p-8000-48000: CMP_TARGET = 14.50
615 fate-swr-resample_exact-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
616
617 fate-swr-resample_exact-s32p-8000-96000: CMP_TARGET = 13.62
618 fate-swr-resample_exact-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
619
620 fate-swr-resample_exact-s32p-96000-2626: CMP_TARGET = 675.07
621 fate-swr-resample_exact-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
622
623 fate-swr-resample_exact-s32p-96000-44100: CMP_TARGET = 1.23
624 fate-swr-resample_exact-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
625
626 fate-swr-resample_exact-s32p-96000-48000: CMP_TARGET = 0.99
627 fate-swr-resample_exact-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
628
629 fate-swr-resample_exact-s32p-96000-8000: CMP_TARGET = 58.52
630 fate-swr-resample_exact-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
631
632 define ARESAMPLE_EXACT_ASYNC
633 FATE_SWR_RESAMPLE += fate-swr-resample_exact_async-$(3)-$(1)-$(2)
634 fate-swr-resample_exact_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
635 fate-swr-resample_exact_async-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,asetpts=PTS+random\(0\)*200-100,aresample=$(2):async=50:min_hard_comp=0.100000:first_pts=0:internal_sample_fmt=$(3):exact_rational=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on -f wav -acodec pcm_s16le -
636
637 fate-swr-resample_exact_async-$(3)-$(1)-$(2): CMP = stddev
638 fate-swr-resample_exact_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
639 fate-swr-resample_exact_async-$(3)-$(1)-$(2): FUZZ = 0.1
640 fate-swr-resample_exact_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
641 endef
642
643 fate-swr-resample_exact_async-dblp-44100-48000: CMP_TARGET = 7791.50
644 fate-swr-resample_exact_async-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20300
645
646 fate-swr-resample_exact_async-dblp-44100-8000: CMP_TARGET = 4022.87
647 fate-swr-resample_exact_async-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
648
649 fate-swr-resample_exact_async-dblp-48000-44100: CMP_TARGET = 1923.97
650 fate-swr-resample_exact_async-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20298
651
652 fate-swr-resample_exact_async-dblp-48000-8000: CMP_TARGET = 2592.00
653 fate-swr-resample_exact_async-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20304
654
655 fate-swr-resample_exact_async-dblp-8000-44100: CMP_TARGET = 11187.24
656 fate-swr-resample_exact_async-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
657
658 fate-swr-resample_exact_async-dblp-8000-48000: CMP_TARGET = 11326.80
659 fate-swr-resample_exact_async-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20344
660
661 fate-swr-resample_exact_async-fltp-44100-48000: CMP_TARGET = 7791.50
662 fate-swr-resample_exact_async-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20300
663
664 fate-swr-resample_exact_async-fltp-44100-8000: CMP_TARGET = 4022.87
665 fate-swr-resample_exact_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
666
667 fate-swr-resample_exact_async-fltp-48000-44100: CMP_TARGET = 1923.97
668 fate-swr-resample_exact_async-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20298
669
670 fate-swr-resample_exact_async-fltp-48000-8000: CMP_TARGET = 2592.00
671 fate-swr-resample_exact_async-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20304
672
673 fate-swr-resample_exact_async-fltp-8000-44100: CMP_TARGET = 11187.24
674 fate-swr-resample_exact_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
675
676 fate-swr-resample_exact_async-fltp-8000-48000: CMP_TARGET = 11326.80
677 fate-swr-resample_exact_async-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20344
678
679 fate-swr-resample_exact_async-s16p-44100-48000: CMP_TARGET = 7791.50
680 fate-swr-resample_exact_async-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20300
681
682 fate-swr-resample_exact_async-s16p-44100-8000: CMP_TARGET = 4023.05
683 fate-swr-resample_exact_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
684
685 fate-swr-resample_exact_async-s16p-48000-44100: CMP_TARGET = 1923.96
686 fate-swr-resample_exact_async-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20298
687
688 fate-swr-resample_exact_async-s16p-48000-8000: CMP_TARGET = 2592.15
689 fate-swr-resample_exact_async-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20304
690
691 fate-swr-resample_exact_async-s16p-8000-44100: CMP_TARGET = 11187.58
692 fate-swr-resample_exact_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
693
694 fate-swr-resample_exact_async-s16p-8000-48000: CMP_TARGET = 11327.48
695 fate-swr-resample_exact_async-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20344
696
697 fate-swr-resample_exact_async-s32p-44100-48000: CMP_TARGET = 7791.50
698 fate-swr-resample_exact_async-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20300
699
700 fate-swr-resample_exact_async-s32p-44100-8000: CMP_TARGET = 4022.87
701 fate-swr-resample_exact_async-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
702
703 fate-swr-resample_exact_async-s32p-48000-44100: CMP_TARGET = 1923.97
704 fate-swr-resample_exact_async-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20298
705
706 fate-swr-resample_exact_async-s32p-48000-8000: CMP_TARGET = 2592.00
707 fate-swr-resample_exact_async-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20304
708
709 fate-swr-resample_exact_async-s32p-8000-44100: CMP_TARGET = 11187.24
710 fate-swr-resample_exact_async-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
711
712 fate-swr-resample_exact_async-s32p-8000-48000: CMP_TARGET = 11326.80
713 fate-swr-resample_exact_async-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20344
714
715 define ARESAMPLE_EXACT_LIN
716 FATE_SWR_RESAMPLE += fate-swr-resample_exact_lin-$(3)-$(1)-$(2)
717 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
718 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,aresample=$(2):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on -f wav -acodec pcm_s16le -
719
720 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMP = stddev
721 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
722 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): FUZZ = 0.1
723 fate-swr-resample_exact_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
724 endef
725
726 fate-swr-resample_exact_lin-dblp-44100-48000: CMP_TARGET = 9.64
727 fate-swr-resample_exact_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
728
729 fate-swr-resample_exact_lin-dblp-44100-8000: CMP_TARGET = 75.38
730 fate-swr-resample_exact_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
731
732 fate-swr-resample_exact_lin-dblp-48000-44100: CMP_TARGET = 0.23
733 fate-swr-resample_exact_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
734
735 fate-swr-resample_exact_lin-dblp-48000-8000: CMP_TARGET = 62.36
736 fate-swr-resample_exact_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
737
738 fate-swr-resample_exact_lin-dblp-8000-44100: CMP_TARGET = 14.59
739 fate-swr-resample_exact_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
740
741 fate-swr-resample_exact_lin-dblp-8000-48000: CMP_TARGET = 14.50
742 fate-swr-resample_exact_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
743
744 fate-swr-resample_exact_lin-fltp-44100-48000: CMP_TARGET = 9.64
745 fate-swr-resample_exact_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
746
747 fate-swr-resample_exact_lin-fltp-44100-8000: CMP_TARGET = 75.38
748 fate-swr-resample_exact_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
749
750 fate-swr-resample_exact_lin-fltp-48000-44100: CMP_TARGET = 0.23
751 fate-swr-resample_exact_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
752
753 fate-swr-resample_exact_lin-fltp-48000-8000: CMP_TARGET = 62.36
754 fate-swr-resample_exact_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
755
756 fate-swr-resample_exact_lin-fltp-8000-44100: CMP_TARGET = 14.59
757 fate-swr-resample_exact_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
758
759 fate-swr-resample_exact_lin-fltp-8000-48000: CMP_TARGET = 14.50
760 fate-swr-resample_exact_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
761
762 fate-swr-resample_exact_lin-s16p-44100-48000: CMP_TARGET = 9.66
763 fate-swr-resample_exact_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
764
765 fate-swr-resample_exact_lin-s16p-44100-8000: CMP_TARGET = 75.43
766 fate-swr-resample_exact_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
767
768 fate-swr-resample_exact_lin-s16p-48000-44100: CMP_TARGET = 0.68
769 fate-swr-resample_exact_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
770
771 fate-swr-resample_exact_lin-s16p-48000-8000: CMP_TARGET = 62.39
772 fate-swr-resample_exact_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
773
774 fate-swr-resample_exact_lin-s16p-8000-44100: CMP_TARGET = 14.63
775 fate-swr-resample_exact_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
776
777 fate-swr-resample_exact_lin-s16p-8000-48000: CMP_TARGET = 14.54
778 fate-swr-resample_exact_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
779
780 fate-swr-resample_exact_lin-s32p-44100-48000: CMP_TARGET = 9.64
781 fate-swr-resample_exact_lin-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
782
783 fate-swr-resample_exact_lin-s32p-44100-8000: CMP_TARGET = 75.38
784 fate-swr-resample_exact_lin-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
785
786 fate-swr-resample_exact_lin-s32p-48000-44100: CMP_TARGET = 0.23
787 fate-swr-resample_exact_lin-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
788
789 fate-swr-resample_exact_lin-s32p-48000-8000: CMP_TARGET = 62.36
790 fate-swr-resample_exact_lin-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
791
792 fate-swr-resample_exact_lin-s32p-8000-44100: CMP_TARGET = 14.59
793 fate-swr-resample_exact_lin-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
794
795 fate-swr-resample_exact_lin-s32p-8000-48000: CMP_TARGET = 14.50
796 fate-swr-resample_exact_lin-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
797
798 define ARESAMPLE_EXACT_LIN_ASYNC
799 FATE_SWR_RESAMPLE += fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2)
800 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
801 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -af atrim=end_sample=10240,asetpts=PTS+random\(0\)*200-100,aresample=$(2):async=50:min_hard_comp=0.100000:first_pts=0:internal_sample_fmt=$(3):exact_rational=on:linear_interp=on,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on:linear_interp=on -f wav -acodec pcm_s16le -
802
803 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMP = stddev
804 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
805 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): FUZZ = 0.1
806 fate-swr-resample_exact_lin_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
807 endef
808
809 fate-swr-resample_exact_lin_async-dblp-44100-48000: CMP_TARGET = 7791.72
810 fate-swr-resample_exact_lin_async-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20300
811
812 fate-swr-resample_exact_lin_async-dblp-44100-8000: CMP_TARGET = 4023.01
813 fate-swr-resample_exact_lin_async-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
814
815 fate-swr-resample_exact_lin_async-dblp-48000-44100: CMP_TARGET = 1923.79
816 fate-swr-resample_exact_lin_async-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20298
817
818 fate-swr-resample_exact_lin_async-dblp-48000-8000: CMP_TARGET = 2591.72
819 fate-swr-resample_exact_lin_async-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20304
820
821 fate-swr-resample_exact_lin_async-dblp-8000-44100: CMP_TARGET = 11187.25
822 fate-swr-resample_exact_lin_async-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
823
824 fate-swr-resample_exact_lin_async-dblp-8000-48000: CMP_TARGET = 11326.80
825 fate-swr-resample_exact_lin_async-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20344
826
827 fate-swr-resample_exact_lin_async-fltp-44100-48000: CMP_TARGET = 7791.72
828 fate-swr-resample_exact_lin_async-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20300
829
830 fate-swr-resample_exact_lin_async-fltp-44100-8000: CMP_TARGET = 4023.01
831 fate-swr-resample_exact_lin_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
832
833 fate-swr-resample_exact_lin_async-fltp-48000-44100: CMP_TARGET = 1923.79
834 fate-swr-resample_exact_lin_async-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20298
835
836 fate-swr-resample_exact_lin_async-fltp-48000-8000: CMP_TARGET = 2591.72
837 fate-swr-resample_exact_lin_async-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20304
838
839 fate-swr-resample_exact_lin_async-fltp-8000-44100: CMP_TARGET = 11187.25
840 fate-swr-resample_exact_lin_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
841
842 fate-swr-resample_exact_lin_async-fltp-8000-48000: CMP_TARGET = 11326.80
843 fate-swr-resample_exact_lin_async-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20344
844
845 fate-swr-resample_exact_lin_async-s16p-44100-48000: CMP_TARGET = 7791.72
846 fate-swr-resample_exact_lin_async-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20300
847
848 fate-swr-resample_exact_lin_async-s16p-44100-8000: CMP_TARGET = 4023.19
849 fate-swr-resample_exact_lin_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
850
851 fate-swr-resample_exact_lin_async-s16p-48000-44100: CMP_TARGET = 1923.79
852 fate-swr-resample_exact_lin_async-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20298
853
854 fate-swr-resample_exact_lin_async-s16p-48000-8000: CMP_TARGET = 2591.85
855 fate-swr-resample_exact_lin_async-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20304
856
857 fate-swr-resample_exact_lin_async-s16p-8000-44100: CMP_TARGET = 11187.57
858 fate-swr-resample_exact_lin_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
859
860 fate-swr-resample_exact_lin_async-s16p-8000-48000: CMP_TARGET = 11327.48
861 fate-swr-resample_exact_lin_async-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20344
862
863 fate-swr-resample_exact_lin_async-s32p-44100-48000: CMP_TARGET = 7791.72
864 fate-swr-resample_exact_lin_async-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20300
865
866 fate-swr-resample_exact_lin_async-s32p-44100-8000: CMP_TARGET = 4023.01
867 fate-swr-resample_exact_lin_async-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
868
869 fate-swr-resample_exact_lin_async-s32p-48000-44100: CMP_TARGET = 1923.79
870 fate-swr-resample_exact_lin_async-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20298
871
872 fate-swr-resample_exact_lin_async-s32p-48000-8000: CMP_TARGET = 2591.72
873 fate-swr-resample_exact_lin_async-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20304
874
875 fate-swr-resample_exact_lin_async-s32p-8000-44100: CMP_TARGET = 11187.25
876 fate-swr-resample_exact_lin_async-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
877
878 fate-swr-resample_exact_lin_async-s32p-8000-48000: CMP_TARGET = 11326.80
879 fate-swr-resample_exact_lin_async-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20344
880
881 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
882 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
883 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16)
884 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,dblp,f64le,s16)
885
886 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,s16p,s16le,s16)
887 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,fltp,f32le,s16)
888 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,dblp,f64le,s16)
889
890 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,s16p,s16le,s16)
891 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,fltp,f32le,s16)
892
893 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,s16p,s16le,s16)
894 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,fltp,f32le,s16)
895
896 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,s16p,s16le,s16)
897 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,s32p,s32le,s16)
898 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,fltp,f32le,s16)
899 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,dblp,f64le,s16)
900
901 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,s16p,s16le,s16)
902 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,s32p,s32le,s16)
903 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,fltp,f32le,s16)
904 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,dblp,f64le,s16)
905
906 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,s16p,s16le,s16)
907 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,s32p,s32le,s16)
908 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,fltp,f32le,s16)
909 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN,dblp,f64le,s16)
910
911 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,s16p,s16le,s16)
912 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,s32p,s32le,s16)
913 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,fltp,f32le,s16)
914 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_LIN_ASYNC,dblp,f64le,s16)
915
916 FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE)
917 fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
918 FATE_SWR += $(FATE_SWR_RESAMPLE-yes)
919
920 FATE_SWR_AUDIOCONVERT-$(call FILTERDEMDECENCMUX, AFORMAT AEVAL, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-swr-audioconvert
921 fate-swr-audioconvert: tests/data/asynth-44100-1.wav
922 fate-swr-audioconvert: REF = tests/data/asynth-44100-1.wav
923 fate-swr-audioconvert: CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -af "aformat=fltp,aeval=val(0)+(random(0)-0.5)/33000,aformat=fltp" -f wav -acodec pcm_s16le -
924 fate-swr-audioconvert: CMP = stddev
925 fate-swr-audioconvert: FUZZ = 0
926
927 FATE_SWR += $(FATE_SWR_AUDIOCONVERT-yes)
928 FATE_FFMPEG += $(FATE_SWR)
929 fate-swr: $(FATE_SWR)