AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2014.05.08 23:14 "[Tiff] what's up with all the seeking?", by Jeff Breidenbach
2014.05.08 23:50 "Re: [Tiff] what's up with all the seeking?", by Scott Ribe
2014.05.09 02:53 "Re: [Tiff] what's up with all the seeking?", by Steve Underwood
2014.05.09 20:57 "Re: [Tiff] what's up with all the seeking?", by Prophet of the Way
2014.05.09 14:03 "Re: [Tiff] what's up with all the seeking?", by Bob Friesenhahn
2014.05.09 18:46 "Re: [Tiff] what's up with all the seeking?", by Even Rouault
2014.05.10 00:58 "Re: [Tiff] what's up with all the seeking?", by Toby Thain
2014.05.10 14:06 "Re: [Tiff] what's up with all the seeking?", by Bob Friesenhahn

2014.05.10 14:06 "Re: [Tiff] what's up with all the seeking?", by Bob Friesenhahn

On Fri, 9 May 2014, Toby Thain wrote:

On 09/05/14 10:03 AM, Bob Friesenhahn wrote:

Is TIFF fundamentally incompatible with streaming?

In order for TIFF to be "streamed" you would need to implement an I/O layer for libtiff to use and the I/O layer would need to add any necessary buffering so that it buffers all data up to any requested seek or read offset. It might be necessary to buffer the entire image data.

A simple workaround is to read the input into a temporary file.

Or mmap()?

Mmap() does not help for input via a pipe or socket. It can be used to map the temporary file (which libtiff does by default).

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/