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