Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / ffmpeg / tests / fate / libswresample.mak
CommitLineData
2ba45a60
DM
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
14define ARESAMPLE
15FATE_SWR_RESAMPLE += fate-swr-resample-$(3)-$(1)-$(2)
16fate-swr-resample-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
17fate-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
19fate-swr-resample-$(3)-$(1)-$(2): CMP = stddev
20fate-swr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
21fate-swr-resample-$(3)-$(1)-$(2): FUZZ = 0.1
22fate-swr-resample-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
23endef
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
29fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1393.01
30fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
31
32fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1393.01
33fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
34
35fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1393.90
36fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
37
38fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1393.01
39fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
40
41fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.84
42fate-swr-resample-dblp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
43
44fate-swr-resample-dblp-44100-48000: CMP_TARGET = 9.70
45fate-swr-resample-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
46
47fate-swr-resample-dblp-44100-8000: CMP_TARGET = 75.46
48fate-swr-resample-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
49
50fate-swr-resample-dblp-44100-96000: CMP_TARGET = 11.47
51fate-swr-resample-dblp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
52
53fate-swr-resample-dblp-48000-2626: CMP_TARGET = 456.55
54fate-swr-resample-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
55
56fate-swr-resample-dblp-48000-44100: CMP_TARGET = 1.16
57fate-swr-resample-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
58
59fate-swr-resample-dblp-48000-8000: CMP_TARGET = 62.41
60fate-swr-resample-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
61
62fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.47
63fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
64
65fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2506.01
66fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
67
68fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.09
69fate-swr-resample-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
70
71fate-swr-resample-dblp-8000-48000: CMP_TARGET = 14.68
72fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
73
74fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.82
75fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
76
77fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.14
78fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
79
80fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.58
81fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
82
83fate-swr-resample-dblp-96000-48000: CMP_TARGET = 1.04
84fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
85
86fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.60
87fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
88
89fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1393.01
90fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
91
92fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1393.01
93fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
94
95fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1393.90
96fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
97
98fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1393.01
99fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
100
101fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.84
102fate-swr-resample-fltp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
103
104fate-swr-resample-fltp-44100-48000: CMP_TARGET = 9.70
105fate-swr-resample-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
106
107fate-swr-resample-fltp-44100-8000: CMP_TARGET = 75.46
108fate-swr-resample-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
109
110fate-swr-resample-fltp-44100-96000: CMP_TARGET = 11.47
111fate-swr-resample-fltp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
112
113fate-swr-resample-fltp-48000-2626: CMP_TARGET = 456.55
114fate-swr-resample-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
115
116fate-swr-resample-fltp-48000-44100: CMP_TARGET = 1.16
117fate-swr-resample-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
118
119fate-swr-resample-fltp-48000-8000: CMP_TARGET = 62.41
120fate-swr-resample-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
121
122fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47
123fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
124
125fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2506.01
126fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
127
128fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09
129fate-swr-resample-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
130
131fate-swr-resample-fltp-8000-48000: CMP_TARGET = 14.68
132fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
133
134fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.82
135fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
136
137fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.14
138fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
139
140fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.58
141fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
142
143fate-swr-resample-fltp-96000-48000: CMP_TARGET = 1.04
144fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
145
146fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.60
147fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
148
149fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1393.01
150fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
151
152fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1392.99
153fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
154
155fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.90
156fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
157
158fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.08
159fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
160
161fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84
162fate-swr-resample-s16p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
163
164fate-swr-resample-s16p-44100-48000: CMP_TARGET = 9.71
165fate-swr-resample-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
166
167fate-swr-resample-s16p-44100-8000: CMP_TARGET = 75.46
168fate-swr-resample-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
169
170fate-swr-resample-s16p-44100-96000: CMP_TARGET = 11.48
171fate-swr-resample-s16p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
172
173fate-swr-resample-s16p-48000-2626: CMP_TARGET = 456.55
174fate-swr-resample-s16p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
175
176fate-swr-resample-s16p-48000-44100: CMP_TARGET = 1.22
177fate-swr-resample-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
178
179fate-swr-resample-s16p-48000-8000: CMP_TARGET = 62.41
180fate-swr-resample-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
181
182fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.50
183fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
184
185fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2506.02
186fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
187
188fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.12
189fate-swr-resample-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
190
191fate-swr-resample-s16p-8000-48000: CMP_TARGET = 14.69
192fate-swr-resample-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
193
194fate-swr-resample-s16p-8000-96000: CMP_TARGET = 13.83
195fate-swr-resample-s16p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
196
197fate-swr-resample-s16p-96000-2626: CMP_TARGET = 675.14
198fate-swr-resample-s16p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
199
200fate-swr-resample-s16p-96000-44100: CMP_TARGET = 1.62
201fate-swr-resample-s16p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
202
203fate-swr-resample-s16p-96000-48000: CMP_TARGET = 1.03
204fate-swr-resample-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
205
206fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60
207fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
208
209fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1393.01
210fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
211
212fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1393.01
213fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
214
215fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.90
216fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
217
218fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.01
219fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
220
221fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.84
222fate-swr-resample-s32p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
223
224fate-swr-resample-s32p-44100-48000: CMP_TARGET = 9.70
225fate-swr-resample-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
226
227fate-swr-resample-s32p-44100-8000: CMP_TARGET = 75.46
228fate-swr-resample-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
229
230fate-swr-resample-s32p-44100-96000: CMP_TARGET = 11.47
231fate-swr-resample-s32p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
232
233fate-swr-resample-s32p-48000-2626: CMP_TARGET = 456.55
234fate-swr-resample-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
235
236fate-swr-resample-s32p-48000-44100: CMP_TARGET = 1.16
237fate-swr-resample-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
238
239fate-swr-resample-s32p-48000-8000: CMP_TARGET = 62.41
240fate-swr-resample-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
241
242fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47
243fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
244
245fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2506.01
246fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
247
248fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09
249fate-swr-resample-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
250
251fate-swr-resample-s32p-8000-48000: CMP_TARGET = 14.68
252fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
253
254fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.82
255fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
256
257fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.14
258fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
259
260fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.58
261fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
262
263fate-swr-resample-s32p-96000-48000: CMP_TARGET = 1.04
264fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
265
266fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.60
267fate-swr-resample-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
268
269define ARESAMPLE_LIN
270FATE_SWR_RESAMPLE += fate-swr-resample_lin-$(3)-$(1)-$(2)
271fate-swr-resample_lin-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
272fate-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 -
273
274fate-swr-resample_lin-$(3)-$(1)-$(2): CMP = stddev
275fate-swr-resample_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
276fate-swr-resample_lin-$(3)-$(1)-$(2): FUZZ = 0.1
277fate-swr-resample_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
278endef
279
280fate-swr-resample_lin-s16p-8000-44100: CMP_TARGET = 14.63
281fate-swr-resample_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
282
283fate-swr-resample_lin-s16p-8000-48000: CMP_TARGET = 14.53
284fate-swr-resample_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
285
286fate-swr-resample_lin-s16p-44100-8000: CMP_TARGET = 75.45
287fate-swr-resample_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
288
289fate-swr-resample_lin-s16p-44100-48000: CMP_TARGET = 9.68
290fate-swr-resample_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
291
292fate-swr-resample_lin-s16p-48000-8000: CMP_TARGET = 62.41
293fate-swr-resample_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
294
295fate-swr-resample_lin-s16p-48000-44100: CMP_TARGET = 0.68
296fate-swr-resample_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
297
298fate-swr-resample_lin-fltp-8000-44100: CMP_TARGET = 14.61
299fate-swr-resample_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
300
301fate-swr-resample_lin-fltp-8000-48000: CMP_TARGET = 14.50
302fate-swr-resample_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
303
304fate-swr-resample_lin-fltp-44100-8000: CMP_TARGET = 75.45
305fate-swr-resample_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
306
307fate-swr-resample_lin-fltp-44100-48000: CMP_TARGET = 9.67
308fate-swr-resample_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
309
310fate-swr-resample_lin-fltp-48000-8000: CMP_TARGET = 62.41
311fate-swr-resample_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
312
313fate-swr-resample_lin-fltp-48000-44100: CMP_TARGET = 0.63
314fate-swr-resample_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
315
316fate-swr-resample_lin-dblp-8000-44100: CMP_TARGET = 14.61
317fate-swr-resample_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
318
319fate-swr-resample_lin-dblp-8000-48000: CMP_TARGET = 14.50
320fate-swr-resample_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
321
322fate-swr-resample_lin-dblp-44100-8000: CMP_TARGET = 75.45
323fate-swr-resample_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
324
325fate-swr-resample_lin-dblp-44100-48000: CMP_TARGET = 9.67
326fate-swr-resample_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
327
328fate-swr-resample_lin-dblp-48000-8000: CMP_TARGET = 62.41
329fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
330
331fate-swr-resample_lin-dblp-48000-44100: CMP_TARGET = 0.63
332fate-swr-resample_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
333
334define ARESAMPLE_NN
335FATE_SWR_RESAMPLE += fate-swr-resample_nn-$(3)-$(1)-$(2)
336fate-swr-resample_nn-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
337fate-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 -
338
339fate-swr-resample_nn-$(3)-$(1)-$(2): CMP = stddev
340fate-swr-resample_nn-$(3)-$(1)-$(2): CMP_UNIT = $(5)
341fate-swr-resample_nn-$(3)-$(1)-$(2): FUZZ = 0.1
342fate-swr-resample_nn-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
343endef
344
345fate-swr-resample_nn-fltp-44100-8000: CMP_TARGET = 590.98
346fate-swr-resample_nn-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
347
348fate-swr-resample_nn-fltp-8000-44100: CMP_TARGET = 3163.32
349fate-swr-resample_nn-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
350
351fate-swr-resample_nn-s16p-44100-8000: CMP_TARGET = 590.97
352fate-swr-resample_nn-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
353
354fate-swr-resample_nn-s16p-8000-44100: CMP_TARGET = 3163.39
355fate-swr-resample_nn-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
356
357define ARESAMPLE_ASYNC
358FATE_SWR_RESAMPLE += fate-swr-resample_async-$(3)-$(1)-$(2)
359fate-swr-resample_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
360fate-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 -
361
362fate-swr-resample_async-$(3)-$(1)-$(2): CMP = stddev
363fate-swr-resample_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
364fate-swr-resample_async-$(3)-$(1)-$(2): FUZZ = 0.1
365fate-swr-resample_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
366endef
367
f6fa7814
DM
368fate-swr-resample_async-fltp-44100-8000: CMP_TARGET = 4031.60
369fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
2ba45a60 370
f6fa7814
DM
371fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11185.34
372fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
2ba45a60 373
f6fa7814
DM
374fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4031.59
375fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
2ba45a60 376
f6fa7814
DM
377fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11185.65
378fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
2ba45a60
DM
379
380$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
381$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
382$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16)
383$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,dblp,f64le,s16)
384
385$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,s16p,s16le,s16)
386$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,fltp,f32le,s16)
387$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,dblp,f64le,s16)
388
389$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,s16p,s16le,s16)
390$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,fltp,f32le,s16)
391
392$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,s16p,s16le,s16)
393$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,fltp,f32le,s16)
394
395
396FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE)
397fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
398FATE_SWR += $(FATE_SWR_RESAMPLE-yes)
399
400FATE_FFMPEG += $(FATE_SWR)
401fate-swr: $(FATE_SWR)