[FFmpeg-cvslog] fate/jpegxl: add parser test for extboxes and small files
Leo Izen
git at videolan.org
Tue Dec 5 12:55:31 EET 2023
ffmpeg | branch: master | Leo Izen <leo.izen at gmail.com> | Mon Nov 27 09:10:08 2023 -0500| [b60d39fbe2b30225e504ea9e0dc8c30c78683c90] | committer: Leo Izen
fate/jpegxl: add parser test for extboxes and small files
Add a fate test for the above commits fixing extremely small files or
files with extended box sizes.
Signed-off-by: Leo Izen <leo.izen at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b60d39fbe2b30225e504ea9e0dc8c30c78683c90
---
tests/fate/jxl.mak | 8 ++++++++
tests/ref/fate/jxl-small-ext-box | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/tests/fate/jxl.mak b/tests/fate/jxl.mak
index 057d3be0e1..d653eb644a 100644
--- a/tests/fate/jxl.mak
+++ b/tests/fate/jxl.mak
@@ -14,3 +14,11 @@ FATE_JPEGXL_ANIM_DEMUX += $(FATE_JPEGXL_ANIM_DEMUX-yes)
FATE_SAMPLES_FFMPEG-$(call FRAMECRC, JPEGXL_ANIM) += $(FATE_JPEGXL_ANIM_DEMUX)
fate-jxl-anim-demux: $(FATE_JPEGXL_ANIM_DEMUX)
+
+# parser tests
+FATE_JPEGXL_PARSE += fate-jxl-small-ext-box
+fate-jxl-small-ext-box: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/l.jxl -c copy
+
+FATE_JPEGXL_PARSE += $(FATE_JPEGXL_PARSE-yes)
+FATE_SAMPLES_FFMPEG-$(call FRAMECRC, IMAGE_JPEGXL_PIPE, , JPEGXL_PARSER) += $(FATE_JPEGXL_PARSE)
+fate-jxl-parse: $(FATE_JPEGXL_PARSE)
diff --git a/tests/ref/fate/jxl-small-ext-box b/tests/ref/fate/jxl-small-ext-box
new file mode 100644
index 0000000000..0f9adfe075
--- /dev/null
+++ b/tests/ref/fate/jxl-small-ext-box
@@ -0,0 +1,9 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: jpegxl
+#dimensions 0: 8x8
+#sar 0: 0/1
+0, 0, 0, 1, 104, 0xd12d1d10
+0, 1, 1, 1, 104, 0xd12d1d10
+0, 2, 2, 1, 104, 0xd12d1d10
+0, 3, 3, 1, 104, 0xd12d1d10
More information about the ffmpeg-cvslog
mailing list