aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-09-30 12:15:02 +0200
committerAnton Khirnov <anton@khirnov.net>2013-10-12 15:07:46 +0200
commit364af376f343d4706c4cdb7ab9fe0863994e6c01 (patch)
tree8e8934d6943cf971b6196abae0ca076b0cc7db2e /tests
parent9ab5f7107d2f1411e9fda6c36af64524e5ed31d1 (diff)
downloadffmpeg-364af376f343d4706c4cdb7ab9fe0863994e6c01.tar.gz
FATE: add lavr resampling tests
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/libavresample.mak19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/fate/libavresample.mak b/tests/fate/libavresample.mak
index 15da42ce78..516c6e6316 100644
--- a/tests/fate/libavresample.mak
+++ b/tests/fate/libavresample.mak
@@ -22,5 +22,24 @@ FATE_LAVR_MIX-$(call FILTERDEMDECENCMUX, RESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WA
fate-lavr-mix: $(FATE_LAVR_MIX-yes)
FATE_LAVR += $(FATE_LAVR_MIX-yes)
+SAMPLERATES = 2626 8000 44100 48000 96000
+
+define RESAMPLE
+FATE_LAVR_RESAMPLE += fate-lavr-resample-$(3)-$(1)-$(2)
+fate-lavr-resample-$(3)-$(1)-$(2): tests/data/asynth-$(1)-1.wav
+fate-lavr-resample-$(3)-$(1)-$(2): CMD = avconv -i $(TARGET_PATH)/tests/data/asynth-$(1)-1.wav -ar $(2) -internal_sample_fmt $(3) -f $(4) -af atrim=end_sample=10240 -
+fate-lavr-resample-$(3)-$(1)-$(2): CMP = oneoff
+fate-lavr-resample-$(3)-$(1)-$(2): REF = $(SAMPLES)/lavr/lavr-resample-$(3)-$(1)-$(2)
+endef
+
+$(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,s16p,s16le)
+$(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,s32p,s32le)
+$(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,fltp,f32le)
+$(call CROSS_TEST,$(SAMPLERATES),RESAMPLE,dblp,f64le)
+
+FATE_LAVR_RESAMPLE-$(call FILTERDEMDECENCMUX, RESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_LAVR_RESAMPLE)
+fate-lavr-resample: $(FATE_LAVR_RESAMPLE-yes)
+FATE_LAVR += $(FATE_LAVR_RESAMPLE-yes)
+
FATE_SAMPLES_AVCONV += $(FATE_LAVR)
fate-lavr: $(FATE_LAVR)