libtiff/contrib/stream
Bob Friesenhahn c7ff695d1b * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for
purposes of security issue reporting.
2016-04-08 02:34:00 +00:00
..
.cvsignore Use consistent line terminations. 2015-08-28 22:19:26 +00:00
CMakeLists.txt * CMakeLists.txt: Add CMake patchset by Roger Leigh as posted to 2015-06-25 02:27:58 +00:00
Makefile.am All the CMakeLists.txt files were missing from the distribution tarball. 2015-08-30 21:26:45 +00:00
Makefile.in * html/bugs.html: Replace Andrey Kiselev with Bob Friesenhahn for 2016-04-08 02:34:00 +00:00
README New 2000-03-30 21:57:46 +00:00
tiffstream.cpp * contrib: Add an emacs formatting mode footer to all source files 2010-06-08 18:55:15 +00:00
tiffstream.h * contrib: Add an emacs formatting mode footer to all source files 2010-06-08 18:55:15 +00:00

Subject: tiff stream interface (contrib)
Date: Thu, 30 Mar 2000 10:48:51 -0800
From: "Avi Bleiweiss" <avi@shutterfly.com>
To: <warmerda@home.com>, <mike@onshore.com>

Here at Shutterfly we have augmented the file based tiff library to support
C++ streams. The implementation is an adaptor class, which takes any C++
stream from the user and in return it deposits i/o operation method pointers
(e.g. read, write, seek and close) into the tiff's library client state.

The class TiffStream has an overloaded factory method - makeFileStream -
which takes the C++ stream as an argument, calls TIFFClientOpen and returns
a tiff handle. The class retains the tiff handle in its local state and
provides a helper function (getTiffHandle) to query the handle at any time.
Additional helper method - getStreamSize - provides the stream size to the
user. The implementation assumes client responsibility to delete the stream
object. The class calls TIFFClose at destruction time.

Attached are a definition (tiffstream.h) and an implementation
(tiffstream.cpp) files of the TiffStream class. No changes are required to
the tiff core piece and the class sits on top of the library. The code is
fairly tested at this point and is used internally in Shutterfly imaging
software. The code is portable across WindowsNT/Linux/Solaris.

We at Shutterfly believe this software has benefits to the larger community
of tiff library users and would like to contribute this software to be part
of the tiff distributed package. Let me know of any issue.

Thanks
Avi