Skip to main content

Module tiff

Module tiff 

Source
Expand description

Low-level TIFF engine.

This module provides the core TIFF parsing and writing functionality used by all TIFF-based RAW formats (ARW, CR2, DNG, etc.).

§Structure

  • [parser] - IFD parsing and navigation
  • [tags] - Known TIFF tag definitions
  • [types] - TIFF data types and values
  • writer - TIFF/DNG file writing

Re-exports§

pub use writer::IfdEntry;
pub use writer::TiffWriter;

Modules§

metadata_helper
Helpers for extracting structured metadata from parsed TIFF IFDs.
writer
TIFF/DNG file writer.

Structs§

Ifd
A parsed IFD (Image File Directory).
Rational
Unsigned rational number (two 32-bit unsigned integers).
RawBigTiffHeader
Raw BigTIFF header (16 bytes) for binrw parsing.
RawBigTiffIfdEntry
Raw IFD entry for BigTIFF (20 bytes).
RawBigTiffIfdEntryBinReadArgBuilder
A builder for RawBigTiffIfdEntryBinReadArgs objects. Compatible with binrw::args!.
RawBigTiffIfdEntryBinReadArgs
Named arguments for the BinRead::read_options implementation of RawBigTiffIfdEntry.
RawIfdEntry
Raw IFD entry for standard TIFF (12 bytes).
RawIfdEntryBinReadArgBuilder
A builder for RawIfdEntryBinReadArgs objects. Compatible with binrw::args!.
RawIfdEntryBinReadArgs
Named arguments for the BinRead::read_options implementation of RawIfdEntry.
RawTiffHeader
Raw standard TIFF header (8 bytes) for binrw parsing.
SRational
Signed rational number (two 32-bit signed integers).
TiffHeader
TIFF file header (first 8 bytes).
TiffParser
TIFF file parser.

Enums§

ByteOrder
Byte order marker for TIFF files.
CompressionType
Compression type values for the Compression tag (0x0103).
PhotometricInterpretation
Photometric interpretation values (0x0106).
TiffTag
Known TIFF tag IDs.
TiffType
TIFF data type codes.
TiffValue
Container for parsed TIFF tag values.

Constants§

BIGTIFF_MAGIC
BigTIFF magic number (43).
TIFF_MAGIC
Standard TIFF magic number (42).