libswresample.mak 17.1 KB
Newer Older
1 2 3 4 5 6 7 8 9
CROSS_TEST = $(foreach I,$(1),                                        \
                 $(foreach J,$(1),                                    \
                     $(if $(filter-out $(I),$(J)),                    \
                         $(eval $(call $(2),$(I),$(J),$(3),$(4),$(5))),    \
                     )))


SAMPLERATES = 2626 8000 44100 48000 96000

10 11
SAMPLERATES_LITE = 8000 44100 48000

12 13
SAMPLERATES_NN = 8000 44100

14 15 16 17 18 19 20 21 22
define ARESAMPLE
FATE_SWR_RESAMPLE += fate-swr-resample-$(3)-$(1)-$(2)
fate-swr-resample-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
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 -

fate-swr-resample-$(3)-$(1)-$(2): CMP = stddev
fate-swr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
fate-swr-resample-$(3)-$(1)-$(2): FUZZ = 0.1
fate-swr-resample-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
23
endef
24 25 26 27 28

#below list is generated by:
#you can use this if you need to update it!
#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
fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1352.68
30 31
fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480

32
fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.65
33 34
fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480

35
fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1353.08
36 37
fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482

38
fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1352.67
39 40
fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480

41
fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.82
42 43 44 45 46
fate-swr-resample-dblp-44100-2626: SIZE_TOLERANCE = 529200 - 20490

fate-swr-resample-dblp-44100-48000: CMP_TARGET = 9.70
fate-swr-resample-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482

47
fate-swr-resample-dblp-44100-8000: CMP_TARGET = 75.45
48 49 50 51 52
fate-swr-resample-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486

fate-swr-resample-dblp-44100-96000: CMP_TARGET = 11.47
fate-swr-resample-dblp-44100-96000: SIZE_TOLERANCE = 529200 - 20482

53
fate-swr-resample-dblp-48000-2626: CMP_TARGET = 456.51
54 55
fate-swr-resample-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510

56
fate-swr-resample-dblp-48000-44100: CMP_TARGET = 1.02
57 58
fate-swr-resample-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480

59
fate-swr-resample-dblp-48000-8000: CMP_TARGET = 62.38
60 61 62 63 64
fate-swr-resample-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484

fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.47
fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480

65
fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2506.02
66 67 68 69 70
fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486

fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.09
fate-swr-resample-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480

71
fate-swr-resample-dblp-8000-48000: CMP_TARGET = 14.69
72 73
fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480

74
fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.81
75 76
fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480

77
fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.08
78 79
fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474

80
fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.45
81 82
fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480

83
fate-swr-resample-dblp-96000-48000: CMP_TARGET = 1.00
84 85
fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480

86
fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.57
87 88
fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496

89
fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1352.68
90 91
fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480

92
fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.65
93 94
fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480

95
fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1353.08
96 97
fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482

98
fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1352.67
99 100
fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480

101
fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.82
102 103 104 105 106
fate-swr-resample-fltp-44100-2626: SIZE_TOLERANCE = 529200 - 20490

fate-swr-resample-fltp-44100-48000: CMP_TARGET = 9.70
fate-swr-resample-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482

107
fate-swr-resample-fltp-44100-8000: CMP_TARGET = 75.45
108 109 110 111 112
fate-swr-resample-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486

fate-swr-resample-fltp-44100-96000: CMP_TARGET = 11.47
fate-swr-resample-fltp-44100-96000: SIZE_TOLERANCE = 529200 - 20482

113
fate-swr-resample-fltp-48000-2626: CMP_TARGET = 456.51
114 115
fate-swr-resample-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510

116
fate-swr-resample-fltp-48000-44100: CMP_TARGET = 1.02
117 118
fate-swr-resample-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480

119
fate-swr-resample-fltp-48000-8000: CMP_TARGET = 62.38
120 121 122 123 124
fate-swr-resample-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484

fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47
fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480

125
fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2506.02
126 127 128 129 130
fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486

fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09
fate-swr-resample-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480

131
fate-swr-resample-fltp-8000-48000: CMP_TARGET = 14.69
132 133
fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480

134
fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.81
135 136
fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480

137
fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.08
138 139
fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474

140
fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.45
141 142
fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480

143
fate-swr-resample-fltp-96000-48000: CMP_TARGET = 1.00
144 145
fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480

146
fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.57
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496

fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1393.01
fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480

fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1392.99
fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480

fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.90
fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482

fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.08
fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480

fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84
fate-swr-resample-s16p-44100-2626: SIZE_TOLERANCE = 529200 - 20490

fate-swr-resample-s16p-44100-48000: CMP_TARGET = 9.71
fate-swr-resample-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482

fate-swr-resample-s16p-44100-8000: CMP_TARGET = 75.46
fate-swr-resample-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486

fate-swr-resample-s16p-44100-96000: CMP_TARGET = 11.48
fate-swr-resample-s16p-44100-96000: SIZE_TOLERANCE = 529200 - 20482

fate-swr-resample-s16p-48000-2626: CMP_TARGET = 456.55
fate-swr-resample-s16p-48000-2626: SIZE_TOLERANCE = 576000 - 20510

fate-swr-resample-s16p-48000-44100: CMP_TARGET = 1.22
fate-swr-resample-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480

fate-swr-resample-s16p-48000-8000: CMP_TARGET = 62.41
fate-swr-resample-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484

fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.50
fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480

fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2506.02
fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486

fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.12
fate-swr-resample-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample-s16p-8000-48000: CMP_TARGET = 14.69
fate-swr-resample-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample-s16p-8000-96000: CMP_TARGET = 13.83
fate-swr-resample-s16p-8000-96000: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample-s16p-96000-2626: CMP_TARGET = 675.14
fate-swr-resample-s16p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474

fate-swr-resample-s16p-96000-44100: CMP_TARGET = 1.62
fate-swr-resample-s16p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480

fate-swr-resample-s16p-96000-48000: CMP_TARGET = 1.03
fate-swr-resample-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480

fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60
fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496

fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1393.01
fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480

212
fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1392.99
213 214
fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480

215
fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.89
216 217
fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482

218
fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.00
219 220
fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480

221
fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.82
222 223 224 225 226
fate-swr-resample-s32p-44100-2626: SIZE_TOLERANCE = 529200 - 20490

fate-swr-resample-s32p-44100-48000: CMP_TARGET = 9.70
fate-swr-resample-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482

227
fate-swr-resample-s32p-44100-8000: CMP_TARGET = 75.45
228 229 230 231 232
fate-swr-resample-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486

fate-swr-resample-s32p-44100-96000: CMP_TARGET = 11.47
fate-swr-resample-s32p-44100-96000: SIZE_TOLERANCE = 529200 - 20482

233
fate-swr-resample-s32p-48000-2626: CMP_TARGET = 456.51
234 235
fate-swr-resample-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510

236
fate-swr-resample-s32p-48000-44100: CMP_TARGET = 1.02
237 238
fate-swr-resample-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480

239
fate-swr-resample-s32p-48000-8000: CMP_TARGET = 62.38
240 241 242 243 244
fate-swr-resample-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484

fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47
fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480

245
fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2506.02
246 247 248 249 250
fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486

fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09
fate-swr-resample-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480

251
fate-swr-resample-s32p-8000-48000: CMP_TARGET = 14.69
252 253
fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480

254
fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.81
255 256
fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480

257
fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.08
258 259
fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474

260
fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.45
261 262
fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480

263
fate-swr-resample-s32p-96000-48000: CMP_TARGET = 1.00
264 265
fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480

266
fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.57
267 268
fate-swr-resample-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496

269

270 271 272
define ARESAMPLE_LIN
FATE_SWR_RESAMPLE += fate-swr-resample_lin-$(3)-$(1)-$(2)
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 276 277 278

fate-swr-resample_lin-$(3)-$(1)-$(2): CMP = stddev
fate-swr-resample_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
fate-swr-resample_lin-$(3)-$(1)-$(2): FUZZ = 0.1
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 283 284 285 286
fate-swr-resample_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample_lin-s16p-8000-48000: CMP_TARGET = 14.53
fate-swr-resample_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480

287
fate-swr-resample_lin-s16p-44100-8000: CMP_TARGET = 75.41
288 289
fate-swr-resample_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486

290
fate-swr-resample_lin-s16p-44100-48000: CMP_TARGET = 9.66
291 292
fate-swr-resample_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482

293
fate-swr-resample_lin-s16p-48000-8000: CMP_TARGET = 62.39
294 295
fate-swr-resample_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484

296
fate-swr-resample_lin-s16p-48000-44100: CMP_TARGET = 0.68
297 298
fate-swr-resample_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480

299
fate-swr-resample_lin-fltp-8000-44100: CMP_TARGET = 14.59
300 301 302 303 304
fate-swr-resample_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample_lin-fltp-8000-48000: CMP_TARGET = 14.50
fate-swr-resample_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480

305
fate-swr-resample_lin-fltp-44100-8000: CMP_TARGET = 75.38
306 307
fate-swr-resample_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486

308
fate-swr-resample_lin-fltp-44100-48000: CMP_TARGET = 9.65
309 310
fate-swr-resample_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482

311
fate-swr-resample_lin-fltp-48000-8000: CMP_TARGET = 62.36
312 313
fate-swr-resample_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484

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 319 320 321 322
fate-swr-resample_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample_lin-dblp-8000-48000: CMP_TARGET = 14.50
fate-swr-resample_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480

323
fate-swr-resample_lin-dblp-44100-8000: CMP_TARGET = 75.38
324 325
fate-swr-resample_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486

326
fate-swr-resample_lin-dblp-44100-48000: CMP_TARGET = 9.65
327 328
fate-swr-resample_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482

329
fate-swr-resample_lin-dblp-48000-8000: CMP_TARGET = 62.36
330 331
fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484

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 336 337 338 339 340 341 342 343
define ARESAMPLE_NN
FATE_SWR_RESAMPLE += fate-swr-resample_nn-$(3)-$(1)-$(2)
fate-swr-resample_nn-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
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 -

fate-swr-resample_nn-$(3)-$(1)-$(2): CMP = stddev
fate-swr-resample_nn-$(3)-$(1)-$(2): CMP_UNIT = $(5)
fate-swr-resample_nn-$(3)-$(1)-$(2): FUZZ = 0.1
fate-swr-resample_nn-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
344
endef
345 346 347 348

fate-swr-resample_nn-fltp-44100-8000: CMP_TARGET = 590.98
fate-swr-resample_nn-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486

349
fate-swr-resample_nn-fltp-8000-44100: CMP_TARGET = 3163.32
350 351 352 353 354
fate-swr-resample_nn-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480

fate-swr-resample_nn-s16p-44100-8000: CMP_TARGET = 590.97
fate-swr-resample_nn-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486

355
fate-swr-resample_nn-s16p-8000-44100: CMP_TARGET = 3163.39
356 357
fate-swr-resample_nn-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480

358 359 360 361 362 363 364 365 366
define ARESAMPLE_ASYNC
FATE_SWR_RESAMPLE += fate-swr-resample_async-$(3)-$(1)-$(2)
fate-swr-resample_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
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 -

fate-swr-resample_async-$(3)-$(1)-$(2): CMP = stddev
fate-swr-resample_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
fate-swr-resample_async-$(3)-$(1)-$(2): FUZZ = 0.1
fate-swr-resample_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
367
endef
368

369
fate-swr-resample_async-fltp-44100-8000: CMP_TARGET = 4020.62
370
fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
371

372
fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11186.69
373
fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
374

375
fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4020.73
376
fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
377

378
fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11187.01
379
fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
380

381 382 383 384 385
$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16)
$(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,dblp,f64le,s16)

386 387
$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,s16p,s16le,s16)
$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,fltp,f32le,s16)
388
$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,dblp,f64le,s16)
389

390 391 392
$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,s16p,s16le,s16)
$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,fltp,f32le,s16)

393 394 395 396
$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,s16p,s16le,s16)
$(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,fltp,f32le,s16)


397 398 399 400 401 402
FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE)
fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
FATE_SWR += $(FATE_SWR_RESAMPLE-yes)

FATE_FFMPEG += $(FATE_SWR)
fate-swr: $(FATE_SWR)