diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2016-06-15 13:58:01 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2016-06-16 00:21:39 +0700 |
commit | f92b56de966469d98a59edf7f8d0c3d96ecf7437 (patch) | |
tree | 5e8540672461f1b5045ef6fc2f113486cc498e41 | |
parent | aec96e233f60cc0c0477b5e96750c323ea636d36 (diff) | |
download | ffmpeg-f92b56de966469d98a59edf7f8d0c3d96ecf7437.tar.gz |
fate: add swr-resample_exact_async tests
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
-rw-r--r-- | tests/fate/libswresample.mak | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/tests/fate/libswresample.mak b/tests/fate/libswresample.mak index 4e76405bfd..93b8d6e63b 100644 --- a/tests/fate/libswresample.mak +++ b/tests/fate/libswresample.mak @@ -629,6 +629,89 @@ fate-swr-resample_exact-s32p-96000-48000: SIZE_TOLERANCE = 1152000 - 20480 fate-swr-resample_exact-s32p-96000-8000: CMP_TARGET = 58.52 fate-swr-resample_exact-s32p-96000-8000: SIZE_TOLERANCE = 1152000 - 20496 +define ARESAMPLE_EXACT_ASYNC +FATE_SWR_RESAMPLE += fate-swr-resample_exact_async-$(3)-$(1)-$(2) +fate-swr-resample_exact_async-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav +fate-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,aformat=$(3),aresample=$(1):internal_sample_fmt=$(3):exact_rational=on -f wav -acodec pcm_s16le - + +fate-swr-resample_exact_async-$(3)-$(1)-$(2): CMP = stddev +fate-swr-resample_exact_async-$(3)-$(1)-$(2): CMP_UNIT = $(5) +fate-swr-resample_exact_async-$(3)-$(1)-$(2): FUZZ = 0.1 +fate-swr-resample_exact_async-$(3)-$(1)-$(2): REF = tests/data/asynth-$(1)-1.wav +endef + +fate-swr-resample_exact_async-dblp-44100-48000: CMP_TARGET = 7791.55 +fate-swr-resample_exact_async-dblp-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_async-dblp-44100-8000: CMP_TARGET = 4022.89 +fate-swr-resample_exact_async-dblp-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_async-dblp-48000-44100: CMP_TARGET = 1923.99 +fate-swr-resample_exact_async-dblp-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_async-dblp-48000-8000: CMP_TARGET = 2592.02 +fate-swr-resample_exact_async-dblp-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_async-dblp-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_async-dblp-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-dblp-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_async-dblp-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-fltp-44100-48000: CMP_TARGET = 7791.55 +fate-swr-resample_exact_async-fltp-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_async-fltp-44100-8000: CMP_TARGET = 4022.89 +fate-swr-resample_exact_async-fltp-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_async-fltp-48000-44100: CMP_TARGET = 1923.98 +fate-swr-resample_exact_async-fltp-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_async-fltp-48000-8000: CMP_TARGET = 2592.02 +fate-swr-resample_exact_async-fltp-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_async-fltp-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_async-fltp-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-fltp-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_async-fltp-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-s16p-44100-48000: CMP_TARGET = 7791.56 +fate-swr-resample_exact_async-s16p-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_async-s16p-44100-8000: CMP_TARGET = 4023.06 +fate-swr-resample_exact_async-s16p-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_async-s16p-48000-44100: CMP_TARGET = 1923.98 +fate-swr-resample_exact_async-s16p-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_async-s16p-48000-8000: CMP_TARGET = 2592.15 +fate-swr-resample_exact_async-s16p-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_async-s16p-8000-44100: CMP_TARGET = 11187.62 +fate-swr-resample_exact_async-s16p-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-s16p-8000-48000: CMP_TARGET = 11327.50 +fate-swr-resample_exact_async-s16p-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-s32p-44100-48000: CMP_TARGET = 7791.55 +fate-swr-resample_exact_async-s32p-44100-48000: SIZE_TOLERANCE = 529200 - 20300 + +fate-swr-resample_exact_async-s32p-44100-8000: CMP_TARGET = 4022.89 +fate-swr-resample_exact_async-s32p-44100-8000: SIZE_TOLERANCE = 529200 - 20310 + +fate-swr-resample_exact_async-s32p-48000-44100: CMP_TARGET = 1923.98 +fate-swr-resample_exact_async-s32p-48000-44100: SIZE_TOLERANCE = 576000 - 20298 + +fate-swr-resample_exact_async-s32p-48000-8000: CMP_TARGET = 2592.02 +fate-swr-resample_exact_async-s32p-48000-8000: SIZE_TOLERANCE = 576000 - 20304 + +fate-swr-resample_exact_async-s32p-8000-44100: CMP_TARGET = 11187.37 +fate-swr-resample_exact_async-s32p-8000-44100: SIZE_TOLERANCE = 96000 - 20344 + +fate-swr-resample_exact_async-s32p-8000-48000: CMP_TARGET = 11326.82 +fate-swr-resample_exact_async-s32p-8000-48000: SIZE_TOLERANCE = 96000 - 20344 + $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s16p,s16le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,s32p,s32le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE,fltp,f32le,s16) @@ -649,6 +732,10 @@ $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,s32p,s32le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,fltp,f32le,s16) $(call CROSS_TEST,$(SAMPLERATES),ARESAMPLE_EXACT,dblp,f64le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,s16p,s16le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,s32p,s32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,fltp,f32le,s16) +$(call CROSS_TEST,$(SAMPLERATES_LITE),ARESAMPLE_EXACT_ASYNC,dblp,f64le,s16) FATE_SWR_RESAMPLE-$(call FILTERDEMDECENCMUX, ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_SWR_RESAMPLE) fate-swr-resample: $(FATE_SWR_RESAMPLE-yes) |