2009.10.18 22:43 "[Tiff] open/write/close tiff in local buffer instead of using file?", by Horvat Johann

2009.10.19 17:12 "Re: [Tiff] open/write/close tiff in local buffer instead of using file?", by Edward Lam

If you use TIFFClientOpen() then you can supply your own I/O callbacks in order to use a buffer in memory. After the TIFF has been written to a memory buffer, you can append it to your MXF file. There is also the option to use TIFFClientOpen() and have your I/O wrapper functions adjust the file offsets so that a new TIFF appends to the file. TIFF I/O does seeks and requests the file size so you would need to intercept these requests and lie appropriately.

There's a similar example that can be found under the contrib/stream directory in the libtiff source distribution. If you're using C++, then you can probably use it directly, calling TiffStream::makeFileStream() with an ostrstream of your buffer.

Regards,

-Edward