diff mbox series

[FFmpeg-devel,1/1] fate/jpegxl: add multiframe permuted TOC image parser test

Message ID 20231209194938.308992-2-leo.izen@gmail.com
State Accepted
Commit 1a049595320094bb3a03a0893fe69990c2eb4964
Headers show
Series fate/jpegxl: add multiframe permuted TOC image parser | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

Leo Izen Dec. 9, 2023, 7:49 p.m. UTC
This test verifies the parser's handling of multiframe JXL files that
have an entropy-encoded permuted table of contents for each frame. The
testcase is actually six JXL codestreams concatenated together, and the
parser needs to be able to find the boundaries.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
---
 tests/fate/jxl.mak                         |  3 +++
 tests/ref/fate/jxl-multiframe-permuted-toc | 11 +++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 tests/ref/fate/jxl-multiframe-permuted-toc
diff mbox series

Patch

diff --git a/tests/fate/jxl.mak b/tests/fate/jxl.mak
index d653eb644a..1416b98f6d 100644
--- a/tests/fate/jxl.mak
+++ b/tests/fate/jxl.mak
@@ -19,6 +19,9 @@  fate-jxl-anim-demux: $(FATE_JPEGXL_ANIM_DEMUX)
 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-jxl-multiframe-permuted-toc
+fate-jxl-multiframe-permuted-toc: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/orange.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-multiframe-permuted-toc b/tests/ref/fate/jxl-multiframe-permuted-toc
new file mode 100644
index 0000000000..94fc008143
--- /dev/null
+++ b/tests/ref/fate/jxl-multiframe-permuted-toc
@@ -0,0 +1,11 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: jpegxl
+#dimensions 0: 2400x2400
+#sar 0: 0/1
+0,          0,          0,        1,   197602, 0x6f8fc984
+0,          1,          1,        1,    52335, 0x30421469
+0,          2,          2,        1,    20784, 0xaecb1df0
+0,          3,          3,        1,    11204, 0x6c7b0759
+0,          4,          4,        1,     5653, 0xa2ac56da
+0,          5,          5,        1,    11204, 0x6c7b0759