2020.12.30 15:15 "[Tiff] Multithreading support?", by OnlineCop

2020.12.31 03:10 "Re: [Tiff] Multithreading support?", by Olivier Paquet

I think that the minimal step forward would be to expose a stateless/reentrant TIFF{Encode,Decode}{Strip,Tile}, which would be a simple way to access libtiff's implementations of the compression codecs (e.g. TIFFReadEncodedStrip would be equivalent to TIFFReadRawStrip followed immediately by TIFFDecodeStrip) -- that would allow apps to do all the thread policy stuff by using libtiff to serially perform the I/O and then

While that's a good idea in theory, I don't think it could be entirely stateless. Some compression codecs have a significant setup time and we need to reuse an initialized state several times to get good performance. The general idea is still valid but the implementation will be more difficult. I should probably give it a try at some point as I've also had to write my own multithread support which also only handles a handful of cases.

Olivier