Re: [FFmpeg-devel] [PATCH] fate: Add tests for QOA decoder

2023-12-02 Thread Thilo Borgmann via ffmpeg-devel

Am 03.12.23 um 00:43 schrieb Paul B Mahol:

Files needs to be first uploaded to rsync server of FATE, and wait 24h and
after that it can be pushed.


Uploaded.

-Thilo

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH] fate: Add tests for QOA decoder

2023-12-02 Thread Paul B Mahol
Files needs to be first uploaded to rsync server of FATE, and wait 24h and
after that it can be pushed.
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] [PATCH] fate: Add tests for QOA decoder

2023-12-02 Thread Cosmin Stejerean via ffmpeg-devel
From: Cosmin Stejerean 

---
 tests/Makefile |   1 +
 tests/fate/qoa.mak |  12 
 tests/ref/fate/qoa-152 |  13 
 tests/ref/fate/qoa-278 | 135 +
 tests/ref/fate/qoa-303 |  35 +++
 5 files changed, 196 insertions(+)
 create mode 100644 tests/fate/qoa.mak
 create mode 100644 tests/ref/fate/qoa-152
 create mode 100644 tests/ref/fate/qoa-278
 create mode 100644 tests/ref/fate/qoa-303

diff --git a/tests/Makefile b/tests/Makefile
index f03cf20d8e..444c09b3de 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -226,6 +226,7 @@ include $(SRC_PATH)/tests/fate/pixfmt.mak
 include $(SRC_PATH)/tests/fate/pixlet.mak
 include $(SRC_PATH)/tests/fate/probe.mak
 include $(SRC_PATH)/tests/fate/prores.mak
+include $(SRC_PATH)/tests/fate/qoa.mak
 include $(SRC_PATH)/tests/fate/qt.mak
 include $(SRC_PATH)/tests/fate/qtrle.mak
 include $(SRC_PATH)/tests/fate/real.mak
diff --git a/tests/fate/qoa.mak b/tests/fate/qoa.mak
new file mode 100644
index 00..2e20ee5ee1
--- /dev/null
+++ b/tests/fate/qoa.mak
@@ -0,0 +1,12 @@
+FATE_QOA-$(call DEMDEC, QOA, QOA) += fate-qoa-152
+fate-qoa-152: CMD = framecrc -i $(TARGET_SAMPLES)/qoa/coin_48_1_152.qoa
+
+FATE_QOA-$(call DEMDEC, QOA, QOA) += fate-qoa-278
+fate-qoa-278: CMD = framecrc -i $(TARGET_SAMPLES)/qoa/vibra_44_2_278.qoa
+
+FATE_QOA-$(call DEMDEC, QOA, QOA) += fate-qoa-303
+fate-qoa-303: CMD = framecrc -i $(TARGET_SAMPLES)/qoa/banjo_48_2_303.qoa
+
+fate-qoa: fate-qoa-152 fate-qoa-278 fate-qoa-303
+
+FATE_SAMPLES_AUDIO += $(FATE_QOA-yes)
diff --git a/tests/ref/fate/qoa-152 b/tests/ref/fate/qoa-152
new file mode 100644
index 00..62fb6ecdf3
--- /dev/null
+++ b/tests/ref/fate/qoa-152
@@ -0,0 +1,13 @@
+#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout_name 0: mono
+0,  0,  0, 5120,10240, 0xa687046e
+0,   5120,   5120, 5120,10240, 0xa75bd341
+0,  10240,  10240, 5120,10240, 0x6a59cebe
+0,  15360,  15360, 5120,10240, 0x04771262
+0,  20480,  20480, 5120,10240, 0x3cefe573
+0,  25600,  25600, 5120,10240, 0xba329e6b
+0,  30720,  30720, 5120,10240, 0x6fabfff0
+0,  35840,  35840, 3591, 7182, 0x3fb1ae86
diff --git a/tests/ref/fate/qoa-278 b/tests/ref/fate/qoa-278
new file mode 100644
index 00..63f4f4abae
--- /dev/null
+++ b/tests/ref/fate/qoa-278
@@ -0,0 +1,135 @@
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 44100
+#channel_layout_name 0: stereo
+0,  0,  0, 5120,20480, 0xc51f1bf2
+0,   5120,   5120, 5120,20480, 0xcace16a8
+0,  10240,  10240, 5120,20480, 0x39311aac
+0,  15360,  15360, 5120,20480, 0xce741aaa
+0,  20480,  20480, 5120,20480, 0xbe47c7c2
+0,  25600,  25600, 5120,20480, 0xcc7790fa
+0,  30720,  30720, 5120,20480, 0x4be97965
+0,  35840,  35840, 5120,20480, 0x7bfe4b0e
+0,  40960,  40960, 5120,20480, 0xf99889c4
+0,  46080,  46080, 5120,20480, 0x66092d82
+0,  51200,  51200, 5120,20480, 0x34b5d044
+0,  56320,  56320, 5120,20480, 0xba76964e
+0,  61440,  61440, 5120,20480, 0x82f88eb2
+0,  66560,  66560, 5120,20480, 0xb5b9c3f3
+0,  71680,  71680, 5120,20480, 0x24e87a1d
+0,  76800,  76800, 5120,20480, 0xfa1743f2
+0,  81920,  81920, 5120,20480, 0x0d9a42ff
+0,  87040,  87040, 5120,20480, 0x43494a02
+0,  92160,  92160, 5120,20480, 0x4cfeb13e
+0,  97280,  97280, 5120,20480, 0xc7aace4d
+0, 102400, 102400, 5120,20480, 0xc435715d
+0, 107520, 107520, 5120,20480, 0x4321403b
+0, 112640, 112640, 5120,20480, 0xaea959b8
+0, 117760, 117760, 5120,20480, 0x796c9b96
+0, 122880, 122880, 5120,20480, 0x3a036bf1
+0, 128000, 128000, 5120,20480, 0xd5cb30d6
+0, 133120, 133120, 5120,20480, 0x8921cd54
+0, 138240, 138240, 5120,20480, 0x2c3ddc88
+0, 143360, 143360, 5120,20480, 0x17b6d52f
+0, 148480, 148480, 5120,20480, 0x8f6cb3fa
+0, 153600, 153600, 5120,20480, 0xd8428d98
+0, 158720, 158720, 5120,20480, 0xc295b551
+0, 163840, 163840, 5120,20480, 0x5fcb3d7a
+0, 168960, 168960, 5120,20480, 0xe31f5663
+0, 174080, 174080, 5120,20480, 0x9ef8364a
+0, 179200, 179200, 5120,20480, 0x8a256b59
+0, 184320, 184320, 5120,20480, 0xcde4dc9a
+0, 189440, 189440, 5120,20480, 0xf6f8259b
+0, 194560, 194560, 5120,20480, 0x8c61f88c
+0, 199680, 199680, 5120,20480, 0x89888a7e
+0, 204800, 204800,