]> git.sesse.net Git - ffmpeg/blob - tests/fate/libswresample.mak
Merge commit 'a5a6a786bfebb85c269abc25559fd71963983581'
[ffmpeg] / 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.68
30 fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
31
32 fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.65
33 fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
34
35 fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1353.08
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.70
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.47
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.02
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 = 2506.02
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.08
78 fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
79
80 fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.45
81 fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
82
83 fate-swr-resample-dblp-96000-48000: CMP_TARGET = 1.00
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.68
90 fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
91
92 fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.65
93 fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
94
95 fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1353.08
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.70
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.47
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.02
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 = 2506.02
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.08
138 fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
139
140 fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.45
141 fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
142
143 fate-swr-resample-fltp-96000-48000: CMP_TARGET = 1.00
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 = 1393.01
150 fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
151
152 fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1392.99
153 fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
154
155 fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.90
156 fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
157
158 fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.08
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.22
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.50
183 fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
184
185 fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2506.02
186 fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
187
188 fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.12
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.14
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.03
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 = 1393.01
210 fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
211
212 fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1392.99
213 fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
214
215 fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.89
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.70
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.47
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.02
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 = 2506.02
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.08
258 fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
259
260 fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.45
261 fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
262
263 fate-swr-resample-s32p-96000-48000: CMP_TARGET = 1.00
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.39
294 fate-swr-resample_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
295
296 fate-swr-resample_lin-s16p-48000-44100: CMP_TARGET = 0.68
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.65
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.26
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.65
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.26
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 = 590.98
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.97
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 = 4031.48
370 fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
371
372 fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11185.34
373 fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
374
375 fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4031.59
376 fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
377
378 fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11185.65
379 fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
380
381 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
382 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
383 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16)
384 $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,dblp,f64le,s16)
385
386 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,s16p,s16le,s16)
387 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,fltp,f32le,s16)
388 $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,dblp,f64le,s16)
389
390 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,s16p,s16le,s16)
391 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,fltp,f32le,s16)
392
393 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,s16p,s16le,s16)
394 $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,fltp,f32le,s16)
395
396
397 FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE)
398 fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
399 FATE_SWR += $(FATE_SWR_RESAMPLE-yes)
400
401 FATE_FFMPEG += $(FATE_SWR)
402 fate-swr: $(FATE_SWR)