Add support for UNDEFINED type

According to TIFF spec this is an byte-array that may contain arbitrary
data.
This commit is contained in:
raph authored and ruffson committed 2020-09-25 19:37:24 +02:00
1 parent 727d78a57c
commit 647de77b70
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -425,7 +425,10 @@ impl Entry {
let string = decoder.read_string(n)?;
Ok(Ascii(string))
}
}
},
(Type::UNDEFINED, n) => self.decode_offset(n, bo, limits, decoder, |decoder| {
Ok(Unsigned(u32::from(decoder.read_byte()?)))
}),
_ => Err(TiffError::UnsupportedError(
TiffUnsupportedError::UnsupportedDataType,
)),