libswresample.mak 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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 = 1393.01
  22. fate-swr-resample-dblp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  23. fate-swr-resample-dblp-2626-48000: CMP_TARGET = 1393.01
  24. fate-swr-resample-dblp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  25. fate-swr-resample-dblp-2626-8000: CMP_TARGET = 1393.90
  26. fate-swr-resample-dblp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  27. fate-swr-resample-dblp-2626-96000: CMP_TARGET = 1393.01
  28. fate-swr-resample-dblp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  29. fate-swr-resample-dblp-44100-2626: CMP_TARGET = 185.84
  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.46
  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.55
  38. fate-swr-resample-dblp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  39. fate-swr-resample-dblp-48000-44100: CMP_TARGET = 1.16
  40. fate-swr-resample-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  41. fate-swr-resample-dblp-48000-8000: CMP_TARGET = 62.41
  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.01
  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.68
  50. fate-swr-resample-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  51. fate-swr-resample-dblp-8000-96000: CMP_TARGET = 13.82
  52. fate-swr-resample-dblp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  53. fate-swr-resample-dblp-96000-2626: CMP_TARGET = 675.14
  54. fate-swr-resample-dblp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  55. fate-swr-resample-dblp-96000-44100: CMP_TARGET = 1.58
  56. fate-swr-resample-dblp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  57. fate-swr-resample-dblp-96000-48000: CMP_TARGET = 1.04
  58. fate-swr-resample-dblp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  59. fate-swr-resample-dblp-96000-8000: CMP_TARGET = 58.60
  60. fate-swr-resample-dblp-96000-8000: SIZE_TOLERANCE = 1152000 - 20496
  61. fate-swr-resample-fltp-2626-44100: CMP_TARGET = 1393.01
  62. fate-swr-resample-fltp-2626-44100: SIZE_TOLERANCE = 31512 - 20480
  63. fate-swr-resample-fltp-2626-48000: CMP_TARGET = 1393.01
  64. fate-swr-resample-fltp-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  65. fate-swr-resample-fltp-2626-8000: CMP_TARGET = 1393.90
  66. fate-swr-resample-fltp-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  67. fate-swr-resample-fltp-2626-96000: CMP_TARGET = 1393.01
  68. fate-swr-resample-fltp-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  69. fate-swr-resample-fltp-44100-2626: CMP_TARGET = 185.84
  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.46
  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.55
  78. fate-swr-resample-fltp-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  79. fate-swr-resample-fltp-48000-44100: CMP_TARGET = 1.16
  80. fate-swr-resample-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  81. fate-swr-resample-fltp-48000-8000: CMP_TARGET = 62.41
  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.01
  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.68
  90. fate-swr-resample-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  91. fate-swr-resample-fltp-8000-96000: CMP_TARGET = 13.82
  92. fate-swr-resample-fltp-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  93. fate-swr-resample-fltp-96000-2626: CMP_TARGET = 675.14
  94. fate-swr-resample-fltp-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  95. fate-swr-resample-fltp-96000-44100: CMP_TARGET = 1.58
  96. fate-swr-resample-fltp-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  97. fate-swr-resample-fltp-96000-48000: CMP_TARGET = 1.04
  98. fate-swr-resample-fltp-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  99. fate-swr-resample-fltp-96000-8000: CMP_TARGET = 58.60
  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 = 1393.01
  144. fate-swr-resample-s32p-2626-48000: SIZE_TOLERANCE = 31512 - 20480
  145. fate-swr-resample-s32p-2626-8000: CMP_TARGET = 1393.90
  146. fate-swr-resample-s32p-2626-8000: SIZE_TOLERANCE = 31512 - 20482
  147. fate-swr-resample-s32p-2626-96000: CMP_TARGET = 1393.01
  148. fate-swr-resample-s32p-2626-96000: SIZE_TOLERANCE = 31512 - 20480
  149. fate-swr-resample-s32p-44100-2626: CMP_TARGET = 185.84
  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.46
  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.55
  158. fate-swr-resample-s32p-48000-2626: SIZE_TOLERANCE = 576000 - 20510
  159. fate-swr-resample-s32p-48000-44100: CMP_TARGET = 1.16
  160. fate-swr-resample-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  161. fate-swr-resample-s32p-48000-8000: CMP_TARGET = 62.41
  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.01
  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.68
  170. fate-swr-resample-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20480
  171. fate-swr-resample-s32p-8000-96000: CMP_TARGET = 13.82
  172. fate-swr-resample-s32p-8000-96000: SIZE_TOLERANCE = 96000 - 20480
  173. fate-swr-resample-s32p-96000-2626: CMP_TARGET = 675.14
  174. fate-swr-resample-s32p-96000-2626: SIZE_TOLERANCE = 1152000 - 20474
  175. fate-swr-resample-s32p-96000-44100: CMP_TARGET = 1.58
  176. fate-swr-resample-s32p-96000-44100: SIZE_TOLERANCE = 1152000 - 20480
  177. fate-swr-resample-s32p-96000-48000: CMP_TARGET = 1.04
  178. fate-swr-resample-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480
  179. fate-swr-resample-s32p-96000-8000: CMP_TARGET = 58.60
  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.63
  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.45
  195. fate-swr-resample_lin-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  196. fate-swr-resample_lin-s16p-44100-48000: CMP_TARGET = 9.68
  197. fate-swr-resample_lin-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  198. fate-swr-resample_lin-s16p-48000-8000: CMP_TARGET = 62.41
  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.61
  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.45
  207. fate-swr-resample_lin-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  208. fate-swr-resample_lin-fltp-44100-48000: CMP_TARGET = 9.67
  209. fate-swr-resample_lin-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  210. fate-swr-resample_lin-fltp-48000-8000: CMP_TARGET = 62.41
  211. fate-swr-resample_lin-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  212. fate-swr-resample_lin-fltp-48000-44100: CMP_TARGET = 0.63
  213. fate-swr-resample_lin-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20480
  214. fate-swr-resample_lin-dblp-8000-44100: CMP_TARGET = 14.61
  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.45
  219. fate-swr-resample_lin-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20486
  220. fate-swr-resample_lin-dblp-44100-48000: CMP_TARGET = 9.67
  221. fate-swr-resample_lin-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20482
  222. fate-swr-resample_lin-dblp-48000-8000: CMP_TARGET = 62.41
  223. fate-swr-resample_lin-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20484
  224. fate-swr-resample_lin-dblp-48000-44100: CMP_TARGET = 0.63
  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 = 4047.25
  253. fate-swr-resample_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20132
  254. fate-swr-resample_async-fltp-8000-44100: CMP_TARGET = 11193.77
  255. fate-swr-resample_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20312
  256. fate-swr-resample_async-s16p-44100-8000: CMP_TARGET = 4047.24
  257. fate-swr-resample_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20132
  258. fate-swr-resample_async-s16p-8000-44100: CMP_TARGET = 11194.08
  259. fate-swr-resample_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20312
  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)