Accessing float32 pixels from tiff or tiff->RGB-raw in pure C language

Ah, missed a question. This bears inspection:

https://www.awaresystems.be/imaging/tiff/tifftags/planarconfiguration.html

The “chunks” are the RGB triples in contiguous mode, as opposed to RRRR…GGGGG…BBBBB… where the channels are stored in separate planes.

Here’s s “good” read on strips:

https://www.awaresystems.be/imaging/tiff/tifftags/rowsperstrip.html

If you are reading general tiff files, beware that they may be 1 or 2 or 4 (or 64) bits per sample.

1 Like

Most compression and decompression algorithims do not parallelize well. As a result, it is beneficial to split a file into tiles or strips - encode/decode each tile/strip in its own thread.

Uncompressed images getting stripped/tiled is likely just a side effect of making sure that the compressed images load/save more efficiently.