From dbb44b497ca313d02c524eae5ea2195a4a1751a7 Mon Sep 17 00:00:00 2001
From: Petru Rares Sincraian <psincraian@outlook.com>
Date: Fri, 12 Aug 2016 19:00:09 +0200
Subject: [PATCH] fate: add test for compand filter
---
tests/fate/filter-audio.mak | 6 ++++++
tests/filtergraphs/compand | 1 +
tests/ref/fate/filter-compand | 25 +++++++++++++++++++++++++
3 files changed, 32 insertions(+)
create mode 100644 tests/filtergraphs/compand
create mode 100644 tests/ref/fate/filter-compand
@@ -122,6 +122,12 @@ FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, STEREOTOOLS, WAV, PCM_S16LE, PCM
fate-filter-stereotools: SRC = $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
fate-filter-stereotools: CMD = framecrc -i $(SRC) -aframes 20 -af stereotools=mlev=0.015625
+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)/$< \
new file mode 100644
@@ -0,0 +1 @@
+compand='points=-80/-80|-9/-9|0/-5.3|20/2.9'
\ No newline at end of file
new file mode 100644
@@ -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
--
1.9.1