fate: add test for compand filter
authorPetru Rares Sincraian <psincraian@outlook.com>
Fri, 12 Aug 2016 17:00:09 +0000 (19:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Aug 2016 21:54:04 +0000 (23:54 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tests/fate/filter-audio.mak
tests/filtergraphs/compand [new file with mode: 0644]
tests/ref/fate/filter-compand [new file with mode: 0644]

index d9db494..d1d9d59 100644 (file)
@@ -127,6 +127,12 @@ fate-filter-tremolo: tests/data/asynth-44100-2.wav
 fate-filter-tremolo: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
 fate-filter-tremolo: CMD = framecrc -i $(SRC) -aframes 20 -af tremolo
 
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, COMPAND, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-compand
+fate-filter-compand: tests/data/asynth-44100-2.wav
+fate-filter-compand: tests/data/filtergraphs/compand
+fate-filter-compand: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+fate-filter-compand: CMD = framecrc -i $(SRC) -aframes 20 -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/compand
+
 tests/data/hls-list.m3u8: TAG = GEN
 tests/data/hls-list.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
        $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
diff --git a/tests/filtergraphs/compand b/tests/filtergraphs/compand
new file mode 100644 (file)
index 0000000..b1fdd98
--- /dev/null
@@ -0,0 +1 @@
+compand='points=-80/-80|-9/-9|0/-5.3|20/2.9'
diff --git a/tests/ref/fate/filter-compand b/tests/ref/fate/filter-compand
new file mode 100644 (file)
index 0000000..14fe0b2
--- /dev/null
@@ -0,0 +1,25 @@
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout 0: 3
+0,          0,          0,     1024,     4096, 0xfc10e61b
+0,       1024,       1024,     1024,     4096, 0x8801ef13
+0,       2048,       2048,     1024,     4096, 0xba55fc17
+0,       3072,       3072,     1024,     4096, 0x70f203a0
+0,       4096,       4096,     1024,     4096, 0x9f2ff593
+0,       5120,       5120,     1024,     4096, 0x52f0fb77
+0,       6144,       6144,     1024,     4096, 0x435502ec
+0,       7168,       7168,     1024,     4096, 0xaacfe4bb
+0,       8192,       8192,     1024,     4096, 0x38010f44
+0,       9216,       9216,     1024,     4096, 0x8a79e351
+0,      10240,      10240,     1024,     4096, 0x3d66ec91
+0,      11264,      11264,     1024,     4096, 0x03031b7e
+0,      12288,      12288,     1024,     4096, 0xd9c310ec
+0,      13312,      13312,     1024,     4096, 0x076af28b
+0,      14336,      14336,     1024,     4096, 0xb80fdfe3
+0,      15360,      15360,     1024,     4096, 0xff0fe68d
+0,      16384,      16384,     1024,     4096, 0x679efb4d
+0,      17408,      17408,     1024,     4096, 0xf84fe6e3
+0,      18432,      18432,     1024,     4096, 0x01ebf175
+0,      19456,      19456,     1024,     4096, 0xe7cdea1b