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.08 23:14 "[Tiff] what's up with all the seeking?", by Jeff Breidenbach

Is TIFF fundamentally incompatible with streaming?

===

#include <tiffio.h>
#include <stdio.h>

main() {
  TIFF *tiff = TIFFFdOpen(fileno(stdin), "stdin", "rb");
  TIFFClose(tiff);
}

===

$ gcc -o mypgram mypgram.c -ltiff
$ pbmmake 1000 1000 | pnmtotiff -g4 > foo tif
$ myprogram < foo.tif

TIFFFetchDirectory: stdin: Seek error accessing TIFF directory. TIFFReadDirectory: Failed to read directory at offset 40. Segmentation fault (core dumped)