AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.04.06 10:22 "[Tiff] What if the given data is not the complete image/file?", by katrina maramba
2005.04.06 10:53 "Re: [Tiff] What if the given data is not the complete image/file?", by Joris
2005.05.12 22:27 "[Tiff] Array of open TIFFs limited to 2045?", by S Smith
2005.05.12 22:33 "RE: [Tiff] Array of open TIFFs limited to 2045?", by Frank, Jason
2005.05.12 22:42 "Re: [Tiff] Array of open TIFFs limited to 2045?", by Chris Cox
2005.05.12 23:14 "Re: [Tiff] Array of open TIFFs limited to 2045?", by Frank Warmerdam
2005.05.13 00:32 "Re: [Tiff] Array of open TIFFs limited to 2045?", by S Smith
2005.06.13 04:19 "[Tiff] Libtiff and Delphi 5", by samantha priyadarshana
2005.06.13 11:07 "Re: [Tiff] Libtiff and Delphi 5", by Joris

2005.04.06 10:22 "[Tiff] What if the given data is not the complete image/file?", by katrina maramba

Hello,

What if the data supplied to me is not the whole file? It is passed to me in chunks/ bands for example, 10 kb at a time.

My first step is to know whether it is the header or the directory or the image. And respectively do the processes to parse each of these.

Obviously, the first data to be given to me is the header. I would keep the information I need like the offset to the directory in my own structure.

Then (maybe) I would keep the remaining data in another buffer so I could go back to it later.

Then I will keep receiving data and keep it in the buffer until I get to the directory. I would then parse the directory and put it in the TIFF struct and also keep the information I would need (like the offsets to the strips) in my own structure.

After that I would go back to the buffer and get the image data and convert it to RGB.

That is my initial plan and I believe its going to work.

However, what I would need from you experts of libtiff is what API's can I use from libtiff in order to get this done.

I realize this is a bit hard since TIFFClientOpen would accept the whole image and parse it for you already. This time, I would have to do everything myself. I would be providing an alternative to TIFFClientOpen. Thats exactly what I need.. an alternative to TiffClientOpen.

Any help would be deeply appreciated. Thanks a lot!

Regards,
Katrina

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com