[FFmpeg-devel] [PATCH 3/3] fate/qmage: add tests
Peter Ross
pross at xvid.org
Thu Nov 21 07:47:14 EET 2024
---
Test files:
https://pross.sdf.org/sandpit/ani_alpha.qmg
https://pross.sdf.org/sandpit/dynamic_table.qmg
https://pross.sdf.org/sandpit/w2_pass.qmg
tests/fate/video.mak | 11 +++++++++++
tests/ref/fate/qmage-ani_alpha | 10 ++++++++++
tests/ref/fate/qmage-dynamic_table | 15 +++++++++++++++
tests/ref/fate/qmage-w2_pass | 6 ++++++
4 files changed, 42 insertions(+)
create mode 100644 tests/ref/fate/qmage-ani_alpha
create mode 100644 tests/ref/fate/qmage-dynamic_table
create mode 100644 tests/ref/fate/qmage-w2_pass
diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index dd886843e7..450027d6a9 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -397,6 +397,17 @@ fate-rv60-72x72: CMD = framecrc -i $(TARGET_SAMPLES)/rv60/test72x72.rmhd -an
fate-rv60: fate-rv60-72x72 fate-rv60-512x512
+FATE_VIDEO-$(call FRAMECRC, QMAGE, QMAGE) += fate-qmage-ani_alpha
+fate-qmage-ani_alpha: CMD = framecrc -i $(TARGET_SAMPLES)/qmage/ani_alpha.qmg
+
+FATE_VIDEO-$(call FRAMECRC, QMAGE, QMAGE) += fate-qmage-dynamic_table
+fate-qmage-dynamic_table: CMD = framecrc -i $(TARGET_SAMPLES)/qmage/dynamic_table.qmg
+
+FATE_VIDEO-$(call FRAMECRC, QMAGE, QMAGE) += fate-qmage-w2_pass
+fate-qmage-w2_pass: CMD = framecrc -i $(TARGET_SAMPLES)/qmage/w2_pass.qmg
+
+fate-qmage: fate-qmage-ani_alpha fate-qmage-dynamic_table fate-qmage-w2_pass
+
FATE_VIDEO += $(FATE_VIDEO-yes)
FATE_SAMPLES_FFMPEG += $(FATE_VIDEO)
diff --git a/tests/ref/fate/qmage-ani_alpha b/tests/ref/fate/qmage-ani_alpha
new file mode 100644
index 0000000000..d91d7811bc
--- /dev/null
+++ b/tests/ref/fate/qmage-ani_alpha
@@ -0,0 +1,10 @@
+#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 480x800
+#sar 0: 0/1
+0, 0, 0, 1, 768000, 0x929e0d0f
+0, 1, 1, 1, 768000, 0x6722b84e
+0, 2, 2, 1, 768000, 0x0aaed34a
+0, 3, 3, 1, 768000, 0xe945b17e
+0, 4, 4, 1, 768000, 0xf4821102
diff --git a/tests/ref/fate/qmage-dynamic_table b/tests/ref/fate/qmage-dynamic_table
new file mode 100644
index 0000000000..e1b5d21b62
--- /dev/null
+++ b/tests/ref/fate/qmage-dynamic_table
@@ -0,0 +1,15 @@
+#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1600x2560
+#sar 0: 0/1
+0, 0, 0, 1, 8192000, 0xb8e34dd1
+0, 1, 1, 1, 8192000, 0xb8e34dd1
+0, 2, 2, 1, 8192000, 0xb8e34dd1
+0, 3, 3, 1, 8192000, 0xb8e34dd1
+0, 4, 4, 1, 8192000, 0xb8e34dd1
+0, 5, 5, 1, 8192000, 0xb8e34dd1
+0, 6, 6, 1, 8192000, 0xb8e34dd1
+0, 7, 7, 1, 8192000, 0xb8e34dd1
+0, 8, 8, 1, 8192000, 0xb8e34dd1
+0, 9, 9, 1, 8192000, 0xb8e34dd1
diff --git a/tests/ref/fate/qmage-w2_pass b/tests/ref/fate/qmage-w2_pass
new file mode 100644
index 0000000000..2fd7eed456
--- /dev/null
+++ b/tests/ref/fate/qmage-w2_pass
@@ -0,0 +1,6 @@
+#tb 0: 1/15
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 32x32
+#sar 0: 0/1
+0, 0, 0, 1, 2048, 0xb9fddd43
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241121/f65f379a/attachment.sig>
More information about the ffmpeg-devel
mailing list