[FFmpeg-devel] [PATCHv2] fate: add dst decoder test

Peter Ross pross at xvid.org
Sun Dec 23 00:41:48 EET 2018


the dst->dsd decoder is bit-exact, but uses ff_dsd2pcm_translate to
output pcm.
---
thanks for spotting this michael. totally forgotten about the embedded
pcm converter.

 tests/fate/audio.mak   |  5 +++++
 tests/ref/fate/dsf-dst | 16 ++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 tests/ref/fate/dsf-dst

diff --git a/tests/fate/audio.mak b/tests/fate/audio.mak
index 4fab472f90..c41958ea2d 100644
--- a/tests/fate/audio.mak
+++ b/tests/fate/audio.mak
@@ -28,6 +28,11 @@ FATE_SAMPLES_AUDIO-$(call DEMDEC, DSS, DSS_SP) += fate-dss-lp fate-dss-sp
 fate-dss-lp: CMD = framecrc -i $(TARGET_SAMPLES)/dss/lp.dss -frames 30
 fate-dss-sp: CMD = framecrc -i $(TARGET_SAMPLES)/dss/sp.dss -frames 30
 
+FATE_SAMPLES_AUDIO-$(call DEMDEC, DSF, DST) += fate-dsf-dst
+fate-dsf-dst: CMD = pcm -i $(TARGET_SAMPLES)/dst/dst-64fs44-2ch.dff
+fate-dsf-dst: CMP = oneoff
+fate-dsf-dst: REF = $(SAMPLES)/dst/dst-64fs44-2ch.pcm
+
 FATE_SAMPLES_AUDIO-$(call DEMDEC, AVI, IMC) += fate-imc
 fate-imc: CMD = pcm -i $(TARGET_SAMPLES)/imc/imc.avi
 fate-imc: CMP = oneoff
diff --git a/tests/ref/fate/dsf-dst b/tests/ref/fate/dsf-dst
new file mode 100644
index 0000000000..a2f2921637
--- /dev/null
+++ b/tests/ref/fate/dsf-dst
@@ -0,0 +1,16 @@
+#tb 0: 1/352800
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 352800
+#channel_layout 0: 3
+#channel_layout_name 0: stereo
+0,          0,          0,     4704,    18816, 0x16bbebad
+0,       4704,       4704,     4704,    18816, 0x025d9312
+0,       9408,       9408,     4704,    18816, 0xa8a84a1d
+0,      14112,      14112,     4704,    18816, 0x44a24932
+0,      18816,      18816,     4704,    18816, 0xb60580ae
+0,      23520,      23520,     4704,    18816, 0xa23751ff
+0,      28224,      28224,     4704,    18816, 0xcaee4a16
+0,      32928,      32928,     4704,    18816, 0xc19adb0e
+0,      37632,      37632,     4704,    18816, 0xb7adec72
+0,      42336,      42336,     4704,    18816, 0x6a7f3268
-- 
2.17.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dst-64fs44-2ch.pcm
Type: application/octet-stream
Size: 188160 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181223/efba227a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181223/efba227a/attachment.sig>


More information about the ffmpeg-devel mailing list