You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

403 lines
17KB

  1. CROSS_TEST = $(foreach I,$(1), \
  2. $(foreach J,$(1), \
  3. $(if $(filter-out $(I),$(J)), \
  4. $(eval $(call $(2),$(I),$(J),$(3),$(4),$(5))), \
  5. )))
  6. SAMPLERATES = 2626 8000 44100 48000 96000
  7. SAMPLERATES_LITE = 8000 44100 48000
  8. SAMPLERATES_NN = 8000 44100
  9. define ARESAMPLE
  10. FATE_SWR_RESAMPLE += fate-swr-resample-$(3)-$(1)-$(2)
  11. fate-swr-resample-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
  12. 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 -
  13. fate-swr-resample-$(3)-$(1)-$(2): CMP = stddev
  14. fate-swr-resample-$(3)-$(1)-$(2): CMP_UNIT = $(5)
  15. fate-swr-resample-$(3)-$(1)-$(2): FUZZ = 0.1
  16. fate-swr-resample-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
  17. endef
  18. #below list is generated by:
  19. #you can use this if you need to update it!
  20. #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'
  21. fate-swr-resample-dblp-2626-44100: CMP_TARGET = 1352.68
  22. fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  23. fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1352.65
  24. fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  25. fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1353.08
  26. fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  27. fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1352.67
  28. fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  29. fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.82
  30. fate-swr-resample-dblp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
  31. fate-swr-resample-dblp-44100-48000: CMP_TARGET = 9.70
  32. fate-swr-resample-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  33. fate-swr-resample-dblp-44100-8000: CMP_TARGET = 75.45
  34. fate-swr-resample-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  35. fate-swr-resample-dblp-44100-96000: CMP_TARGET = 11.47
  36. fate-swr-resample-dblp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
  37. fate-swr-resample-dblp-48000-2626: CMP_TARGET = 456.51
  38. fate-swr-resample-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  39. fate-swr-resample-dblp-48000-44100: CMP_TARGET = 1.02
  40. fate-swr-resample-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  41. fate-swr-resample-dblp-48000-8000: CMP_TARGET = 62.38
  42. fate-swr-resample-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  43. fate-swr-resample-dblp-48000-96000: CMP_TARGET = 0.47
  44. fate-swr-resample-dblp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
  45. fate-swr-resample-dblp-8000-2626: CMP_TARGET = 2506.02
  46. fate-swr-resample-dblp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
  47. fate-swr-resample-dblp-8000-44100: CMP_TARGET = 15.09
  48. fate-swr-resample-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  49. fate-swr-resample-dblp-8000-48000: CMP_TARGET = 14.69
  50. fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  51. fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.81
  52. fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  53. fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.08
  54. fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  55. fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.45
  56. fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  57. fate-swr-resample-dblp-96000-48000: CMP_TARGET = 1.00
  58. fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  59. fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.57
  60. fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
  61. fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1352.68
  62. fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  63. fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1352.65
  64. fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  65. fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1353.08
  66. fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  67. fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1352.67
  68. fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  69. fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.82
  70. fate-swr-resample-fltp-44100-2626: SIZE_TOLERANCE = 529200 - 20490
  71. fate-swr-resample-fltp-44100-48000: CMP_TARGET = 9.70
  72. fate-swr-resample-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  73. fate-swr-resample-fltp-44100-8000: CMP_TARGET = 75.45
  74. fate-swr-resample-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  75. fate-swr-resample-fltp-44100-96000: CMP_TARGET = 11.47
  76. fate-swr-resample-fltp-44100-96000: SIZE_TOLERANCE = 529200 - 20482
  77. fate-swr-resample-fltp-48000-2626: CMP_TARGET = 456.51
  78. fate-swr-resample-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  79. fate-swr-resample-fltp-48000-44100: CMP_TARGET = 1.02
  80. fate-swr-resample-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  81. fate-swr-resample-fltp-48000-8000: CMP_TARGET = 62.38
  82. fate-swr-resample-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  83. fate-swr-resample-fltp-48000-96000: CMP_TARGET = 0.47
  84. fate-swr-resample-fltp-48000-96000: SIZE_TOLERANCE = 576000 - 20480
  85. fate-swr-resample-fltp-8000-2626: CMP_TARGET = 2506.02
  86. fate-swr-resample-fltp-8000-2626: SIZE_TOLERANCE = 96000 - 20486
  87. fate-swr-resample-fltp-8000-44100: CMP_TARGET = 15.09
  88. fate-swr-resample-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  89. fate-swr-resample-fltp-8000-48000: CMP_TARGET = 14.69
  90. fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  91. fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.81
  92. fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  93. fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.08
  94. fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  95. fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.45
  96. fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  97. fate-swr-resample-fltp-96000-48000: CMP_TARGET = 1.00
  98. fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  99. fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.57
  100. fate-swr-resample-fltp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
  101. fate-swr-resample-s16p-2626-44100: CMP_TARGET = 1393.01
  102. fate-swr-resample-s16p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  103. fate-swr-resample-s16p-2626-48000: CMP_TARGET = 1392.99
  104. fate-swr-resample-s16p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  105. fate-swr-resample-s16p-2626-8000: CMP_TARGET = 1393.90
  106. fate-swr-resample-s16p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  107. fate-swr-resample-s16p-2626-96000: CMP_TARGET = 1393.08
  108. fate-swr-resample-s16p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  109. fate-swr-resample-s16p-44100-2626: CMP_TARGET = 185.84
  110. fate-swr-resample-s16p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
  111. fate-swr-resample-s16p-44100-48000: CMP_TARGET = 9.71
  112. fate-swr-resample-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  113. fate-swr-resample-s16p-44100-8000: CMP_TARGET = 75.46
  114. fate-swr-resample-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  115. fate-swr-resample-s16p-44100-96000: CMP_TARGET = 11.48
  116. fate-swr-resample-s16p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
  117. fate-swr-resample-s16p-48000-2626: CMP_TARGET = 456.55
  118. fate-swr-resample-s16p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  119. fate-swr-resample-s16p-48000-44100: CMP_TARGET = 1.22
  120. fate-swr-resample-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  121. fate-swr-resample-s16p-48000-8000: CMP_TARGET = 62.41
  122. fate-swr-resample-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  123. fate-swr-resample-s16p-48000-96000: CMP_TARGET = 0.50
  124. fate-swr-resample-s16p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
  125. fate-swr-resample-s16p-8000-2626: CMP_TARGET = 2506.02
  126. fate-swr-resample-s16p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
  127. fate-swr-resample-s16p-8000-44100: CMP_TARGET = 15.12
  128. fate-swr-resample-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  129. fate-swr-resample-s16p-8000-48000: CMP_TARGET = 14.69
  130. fate-swr-resample-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  131. fate-swr-resample-s16p-8000-96000: CMP_TARGET = 13.83
  132. fate-swr-resample-s16p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  133. fate-swr-resample-s16p-96000-2626: CMP_TARGET = 675.14
  134. fate-swr-resample-s16p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  135. fate-swr-resample-s16p-96000-44100: CMP_TARGET = 1.62
  136. fate-swr-resample-s16p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  137. fate-swr-resample-s16p-96000-48000: CMP_TARGET = 1.03
  138. fate-swr-resample-s16p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  139. fate-swr-resample-s16p-96000-8000: CMP_TARGET = 58.60
  140. fate-swr-resample-s16p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
  141. fate-swr-resample-s32p-2626-44100: CMP_TARGET = 1393.01
  142. fate-swr-resample-s32p-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  143. fate-swr-resample-s32p-2626-48000: CMP_TARGET = 1392.99
  144. fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  145. fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.89
  146. fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  147. fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.00
  148. fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  149. fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.82
  150. fate-swr-resample-s32p-44100-2626: SIZE_TOLERANCE = 529200 - 20490
  151. fate-swr-resample-s32p-44100-48000: CMP_TARGET = 9.70
  152. fate-swr-resample-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  153. fate-swr-resample-s32p-44100-8000: CMP_TARGET = 75.45
  154. fate-swr-resample-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  155. fate-swr-resample-s32p-44100-96000: CMP_TARGET = 11.47
  156. fate-swr-resample-s32p-44100-96000: SIZE_TOLERANCE = 529200 - 20482
  157. fate-swr-resample-s32p-48000-2626: CMP_TARGET = 456.51
  158. fate-swr-resample-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  159. fate-swr-resample-s32p-48000-44100: CMP_TARGET = 1.02
  160. fate-swr-resample-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  161. fate-swr-resample-s32p-48000-8000: CMP_TARGET = 62.38
  162. fate-swr-resample-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  163. fate-swr-resample-s32p-48000-96000: CMP_TARGET = 0.47
  164. fate-swr-resample-s32p-48000-96000: SIZE_TOLERANCE = 576000 - 20480
  165. fate-swr-resample-s32p-8000-2626: CMP_TARGET = 2506.02
  166. fate-swr-resample-s32p-8000-2626: SIZE_TOLERANCE = 96000 - 20486
  167. fate-swr-resample-s32p-8000-44100: CMP_TARGET = 15.09
  168. fate-swr-resample-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  169. fate-swr-resample-s32p-8000-48000: CMP_TARGET = 14.69
  170. fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  171. fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.81
  172. fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  173. fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.08
  174. fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  175. fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.45
  176. fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  177. fate-swr-resample-s32p-96000-48000: CMP_TARGET = 1.00
  178. fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  179. fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.57
  180. fate-swr-resample-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
  181. define ARESAMPLE_LIN
  182. FATE_SWR_RESAMPLE += fate-swr-resample_lin-$(3)-$(1)-$(2)
  183. fate-swr-resample_lin-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
  184. 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 -
  185. fate-swr-resample_lin-$(3)-$(1)-$(2): CMP = stddev
  186. fate-swr-resample_lin-$(3)-$(1)-$(2): CMP_UNIT = $(5)
  187. fate-swr-resample_lin-$(3)-$(1)-$(2): FUZZ = 0.1
  188. fate-swr-resample_lin-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
  189. endef
  190. fate-swr-resample_lin-s16p-8000-44100: CMP_TARGET = 14.61
  191. fate-swr-resample_lin-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  192. fate-swr-resample_lin-s16p-8000-48000: CMP_TARGET = 14.53
  193. fate-swr-resample_lin-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  194. fate-swr-resample_lin-s16p-44100-8000: CMP_TARGET = 75.41
  195. fate-swr-resample_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  196. fate-swr-resample_lin-s16p-44100-48000: CMP_TARGET = 9.66
  197. fate-swr-resample_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  198. fate-swr-resample_lin-s16p-48000-8000: CMP_TARGET = 62.39
  199. fate-swr-resample_lin-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  200. fate-swr-resample_lin-s16p-48000-44100: CMP_TARGET = 0.68
  201. fate-swr-resample_lin-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  202. fate-swr-resample_lin-fltp-8000-44100: CMP_TARGET = 14.59
  203. fate-swr-resample_lin-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  204. fate-swr-resample_lin-fltp-8000-48000: CMP_TARGET = 14.50
  205. fate-swr-resample_lin-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  206. fate-swr-resample_lin-fltp-44100-8000: CMP_TARGET = 75.38
  207. fate-swr-resample_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  208. fate-swr-resample_lin-fltp-44100-48000: CMP_TARGET = 9.65
  209. fate-swr-resample_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  210. fate-swr-resample_lin-fltp-48000-8000: CMP_TARGET = 62.36
  211. fate-swr-resample_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  212. fate-swr-resample_lin-fltp-48000-44100: CMP_TARGET = 0.26
  213. fate-swr-resample_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  214. fate-swr-resample_lin-dblp-8000-44100: CMP_TARGET = 14.59
  215. fate-swr-resample_lin-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  216. fate-swr-resample_lin-dblp-8000-48000: CMP_TARGET = 14.50
  217. fate-swr-resample_lin-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  218. fate-swr-resample_lin-dblp-44100-8000: CMP_TARGET = 75.38
  219. fate-swr-resample_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  220. fate-swr-resample_lin-dblp-44100-48000: CMP_TARGET = 9.65
  221. fate-swr-resample_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  222. fate-swr-resample_lin-dblp-48000-8000: CMP_TARGET = 62.36
  223. fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  224. fate-swr-resample_lin-dblp-48000-44100: CMP_TARGET = 0.26
  225. fate-swr-resample_lin-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  226. define ARESAMPLE_NN
  227. FATE_SWR_RESAMPLE += fate-swr-resample_nn-$(3)-$(1)-$(2)
  228. fate-swr-resample_nn-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
  229. 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 -
  230. fate-swr-resample_nn-$(3)-$(1)-$(2): CMP = stddev
  231. fate-swr-resample_nn-$(3)-$(1)-$(2): CMP_UNIT = $(5)
  232. fate-swr-resample_nn-$(3)-$(1)-$(2): FUZZ = 0.1
  233. fate-swr-resample_nn-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
  234. endef
  235. fate-swr-resample_nn-fltp-44100-8000: CMP_TARGET = 590.98
  236. fate-swr-resample_nn-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  237. fate-swr-resample_nn-fltp-8000-44100: CMP_TARGET = 3163.32
  238. fate-swr-resample_nn-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  239. fate-swr-resample_nn-s16p-44100-8000: CMP_TARGET = 590.97
  240. fate-swr-resample_nn-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  241. fate-swr-resample_nn-s16p-8000-44100: CMP_TARGET = 3163.39
  242. fate-swr-resample_nn-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20480
  243. define ARESAMPLE_ASYNC
  244. FATE_SWR_RESAMPLE += fate-swr-resample_async-$(3)-$(1)-$(2)
  245. fate-swr-resample_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
  246. 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 -
  247. fate-swr-resample_async-$(3)-$(1)-$(2): CMP = stddev
  248. fate-swr-resample_async-$(3)-$(1)-$(2): CMP_UNIT = $(5)
  249. fate-swr-resample_async-$(3)-$(1)-$(2): FUZZ = 0.1
  250. fate-swr-resample_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav
  251. endef
  252. fate-swr-resample_async-fltp-44100-8000: CMP_TARGET = 4031.48
  253. fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310
  254. fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11185.34
  255. fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344
  256. fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4031.59
  257. fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310
  258. fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11185.65
  259. fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344
  260. $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16)
  261. $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16)
  262. $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16)
  263. $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,dblp,f64le,s16)
  264. $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,s16p,s16le,s16)
  265. $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,fltp,f32le,s16)
  266. $(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_LIN,dblp,f64le,s16)
  267. $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,s16p,s16le,s16)
  268. $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_NN,fltp,f32le,s16)
  269. $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,s16p,s16le,s16)
  270. $(call CROSS_TEST,$(SAMPLERATES_NN),ARESAMPLE_ASYNC,fltp,f32le,s16)
  271. FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE)
  272. fate-swr-resample: $(FATE_SWR_RESAMPLE-yes)
  273. FATE_SWR += $(FATE_SWR_RESAMPLE-yes)
  274. FATE_FFMPEG += $(FATE_SWR)
  275. fate-swr: $(FATE_SWR)