Skip to content

Commit

Permalink
Add more unit tests for decoding files with TLM
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 1, 2024
1 parent 954c6e3 commit 206ede7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/nonregression/md5refs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,6 @@ c34637a0f218e4074936e0c89534c5b5 byte.jph.png
c34637a0f218e4074936e0c89534c5b5 byte_causal.jhc.png
bc4f704c723329147bf6601a8b113bb2 huge-tile-size.png
922d2a15b57d7f0e628d00cf17e1d25d small_world_non_consecutive_tilepart_tlm-t0.png
922d2a15b57d7f0e628d00cf17e1d25d small_world_non_consecutive_tilepart_tlm-t0-d.png
e3294b452af3ad2bf27146e04e8856dc small_world_non_consecutive_tilepart_tlm-t1.png
e3294b452af3ad2bf27146e04e8856dc small_world_non_consecutive_tilepart_tlm-t1-d.png
5 changes: 5 additions & 0 deletions tests/nonregression/test_suite.ctest.in
Original file line number Diff line number Diff line change
Expand Up @@ -664,3 +664,8 @@ opj_decompress -i @INPUT_NR_PATH@/huge-tile-size.jp2 -o @TEMP_PATH@/huge-tile-si

# 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
opj_decompress -t 1 -i @INPUT_NR_PATH@/small_world_non_consecutive_tilepart_tlm.jp2 -o @TEMP_PATH@/small_world_non_consecutive_tilepart_tlm-t1.png

# decompress a subset of tiles, where tile-parts are not consecutive, and with a TLM index
opj_decompress -i @INPUT_NR_PATH@/small_world_non_consecutive_tilepart_tlm.jp2 -o @TEMP_PATH@/small_world_non_consecutive_tilepart_tlm-t0-d.png -d 0,0,256,200
opj_decompress -i @INPUT_NR_PATH@/small_world_non_consecutive_tilepart_tlm.jp2 -o @TEMP_PATH@/small_world_non_consecutive_tilepart_tlm-t1-d.png -d 256,0,400,200

0 comments on commit 206ede7

Please sign in to comment.