Add libtiffpic test suite
Two tests are disabled, both related to tiles, since they do not follow the fully released spec themselves but incidentally decode with libtiff anyways. The two images (`cramps-tile.tif`, `quad-tile.tif`) are tiled layout which libtiff detects by the presence of TileWidth/TileHeight tags. We would detect that by chunks encoded via TileOffsets and TileByteLengths tags. However the images encoded their chunk data into the StripOffsets tag; additionally they contain a RowsPerStrip value anyways. Tests disabled as this is to be resolved in a separate issue (#338) with a decision on treatment of this situation (strictness setting or copying libtiff, also error late for mismatched lengths).
This commit is contained in:
1 parent
e41159ce05
commit
701fcc46b8
75 files changed
+472
No files matched your search
@@ -32,6 +32,8 @@ image-webp = {version = "0.2.4", optional = true }
|
||||
criterion = "0.3.1"
|
||||
# We may already depend on this via flate2
|
||||
crc32fast = "1.5"
|
||||
libtest-mimic = "0.8.1"
|
||||
walkdir = "2.5"
|
||||
|
||||
[features]
|
||||
default = ["deflate", "fax", "jpeg", "lzw"]
|
||||
@@ -47,3 +49,8 @@ zstd = ["dep:zstd"]
|
||||
[[bench]]
|
||||
name = "lzw"
|
||||
harness = false
|
||||
|
||||
[[test]]
|
||||
name = "decode_libtiffpic"
|
||||
path = "tests/decode_libtiffpic.rs"
|
||||
harness = false
|
||||
Reference in new issue
Block a user