Expand description
Zero-copy TIFF / TIFF-EP / DNG IFD parsing.
Most RAW formats are TIFF-based (DNG, CR2, NEF, ARW, PEF, ORF, RW2, SRW, 3FR,
IIQ maker data, …). Tiff::parse reads the IFD chain plus SubIFDs and the
EXIF/GPS IFDs into an in-memory tree of Ifds whose entries reference the
source bytes. Values are decoded lazily by the typed accessors on Entry.
Robustness: IFD offsets are tracked in a visited set (cyclic chains are cut), recursion depth and total IFD count are bounded, and every value access is bounds checked.
Modules§
Structs§
- Entry
- A single IFD entry.
dataholds the raw value bytes (inline or referenced). - Ifd
- An Image File Directory.
- Tiff
- A parsed TIFF structure.
- Tiff
Options - Parsing options.
Functions§
- parse_
ifd_ at - Parse a single IFD (and its children) at
offsetofdata. - type_
size - Byte size of one value of TIFF type
t(0 for unknown types).