AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1998.05.13 04:44 "Reading concatenated tiff files", by Richard Beare
1998.05.13 08:33 "Re: Reading concatenated tiff files", by Bjorn Brox
1998.05.14 07:53 "Re: Reading concatenated tiff files", by Bruno Ledoux
1998.05.14 10:23 "Re: Reading concatenated tiff files", by Howard Kaikow
1998.05.14 11:02 "Re: Reading concatenated tiff files", by Bjorn Brox

1998.05.13 04:44 "Reading concatenated tiff files", by Richard Beare

I'm thinking about using concatenated tiff files as a simple movie format for visualisation. I am testing the feasability at the moment using libtiff-v3.4beta031, but I am having trouble reading the second image. My plan was to open the file, read the first tiff, and then parse for the header of the second file, and then call TIFFFdOpen again. This process doesn't seem to work. I'm reasonably confident that the parser is doing the correct thing, and I suspect that the TIFF i/o routines are reseting the file descriptors to the start of the file. (The error message is "Can not read TIFF directory.")

If I place a couple of spaces at the start of the file, seek past them, and then try to call TIFFFdOpen, I also get errors.

Is there some other technique I could be using? Is this approach intended to be discouraged by the tiff library? I know that tiff supports multiple images, and I intended to support that option later. The concatenated file was just meant to be an easily created format.

Any advice appreciated.

--
Richard Beare
Richard.Beare@cmis.csiro.au