From 1d4a883ea305f45989692cf28dac58eace0b8b8a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 25 Jun 2024 20:08:18 +0200 Subject: [PATCH] Add new test for file with non-consecutive tilepart and TLM marker --- tests/nonregression/md5refs.txt | 1 + tests/nonregression/test_suite.ctest.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/nonregression/md5refs.txt b/tests/nonregression/md5refs.txt index b15580247..e2a74a6f8 100644 --- a/tests/nonregression/md5refs.txt +++ b/tests/nonregression/md5refs.txt @@ -398,3 +398,4 @@ c34637a0f218e4074936e0c89534c5b5 tnsot_zero_missing_eoc.png c34637a0f218e4074936e0c89534c5b5 byte.jph.png c34637a0f218e4074936e0c89534c5b5 byte_causal.jhc.png bc4f704c723329147bf6601a8b113bb2 huge-tile-size.png +922d2a15b57d7f0e628d00cf17e1d25d small_world_non_consecutive_tilepart_tlm-t0.png diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in index 67409f9b4..1e9e6b7bc 100644 --- a/tests/nonregression/test_suite.ctest.in +++ b/tests/nonregression/test_suite.ctest.in @@ -661,3 +661,6 @@ opj_decompress -i @INPUT_NR_PATH@/htj2k/byte_causal.jhc -o @TEMP_PATH@/byte_caus # huge tile size opj_decompress -i @INPUT_NR_PATH@/huge-tile-size.jp2 -o @TEMP_PATH@/huge-tile-size.png !opj_decompress -i @INPUT_NR_PATH@/issue1438.j2k -o @TEMP_PATH@/issue1438.png + +# decompress a single tile, where tile-parts are not consecutive, and with a TLM index +opj_decompress -t 0 -i @INPUT_NR_PATH@/small_world_non_consecutive_tilepart_tlm.jp2 -o @TEMP_PATH@/small_world_non_consecutive_tilepart_tlm-t0.png