diff --git a/crates/raw/src/tiff.rs b/crates/raw/src/tiff.rs index a5c60ef57f..2f685ccb2e 100644 --- a/crates/raw/src/tiff.rs +++ b/crates/raw/src/tiff.rs @@ -116,6 +116,7 @@ impl Ifd { } } +/// Bytes per value of TIFF field type `typ`, BigTIFF's 8-byte types included, or 0 for an unknown type. pub(crate) fn type_size(typ: u16) -> usize { match typ { 1 | 2 | 6 | 7 => 1,