AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.10.18 22:43 "open/write/close tiff in local buffer instead of using file?", by Horvat Johann
2009.10.19 16:16 "Re: open/write/close tiff in local buffer instead of using file?", by Bob Friesenhahn
2009.10.19 17:12 "Re: open/write/close tiff in local buffer instead of using file?", by Edward Lam

2009.10.19 16:16 "Re: open/write/close tiff in local buffer instead of using file?", by Bob Friesenhahn

On Mon, 19 Oct 2009, Horvat Johann wrote:

> Dear TIFF forum members,
>
> Is there any possibility to let the following simple (modified) sample
> from http://www.ibm.com/developerworks/linux/library/l-libtiff/ use the
> tiffbuffer instead of writing the output.tif to the filesystem?
>
> I'll need this, because I'm trying to write mxf files (single large
> file),
> which will contain a sequence of DNG/TIFF images...

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.

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