Module imageio.tiff
Bounded TIFF inspection, planning and research decoder entry points.
The implemented subset is intentionally explicit and incomplete. Callers must inspect the returned error/capability state before using decoded data; no implicit colour or geospatial semantics are applied.
Functions
| Name | Description |
|---|---|
decodeJpegPlanes(encoded)
|
Decode a baseline JPEG byte range into native component planes. No YCbCr/RGB conversion or chroma upsampling is performed. |
decodeJpegRegion(encoded, x, y, width, height)
|
Decode a JPEG ROI through the bounded fallback path. |
decodeRegion(source, x, y, width, height)
|
Decode a bounded ROI from the first uncompressed, single-band strip. |
decodeRegionAtBestLevel(source, x, y, width, height, targetWidth, targetHeight)
|
Select an overview for a requested output size and decode its scaled ROI. |
decodeRegionAtLevel(source, levelIndex, x, y, width, height)
|
Decode a bounded ROI from a caller-selected classic-TIFF IFD level. |
detectFormat(source)
|
Detect the image container from its signature, not its file extension. |
inspect(source)
|
Read and validate the first classic-TIFF IFD using bounded range reads. |
inspectHeader(source)
|
Reads the fixed TIFF header through the general transport contract. |
inspectLevels(source)
|
Inspect the classic-TIFF IFD chain as potential resolution levels. |
planRegion(source, x, y, width, height)
|
Plan the bounded strip/tile reads for a region without decoding pixels. |
planRegionAtLevel(source, levelIndex, x, y, width, height)
|
Plan a region against a caller-selected IFD level. |
selectLevel(levels, requestedWidth, requestedHeight)
|
Select the coarsest available level that still covers the requested output dimensions. Ties prefer the first level in the IFD chain. |
Structs
| Name | Description |
|---|---|
TiffHeader
|
Minimal technical TIFF header information available without decoding pixels. |