📄 readme
字号:
Subject: tiff stream interface (contrib)Date: Thu, 30 Mar 2000 10:48:51 -0800From: "Avi Bleiweiss" <avi@shutterfly.com>To: <warmerda@home.com>, <mike@onshore.com>Here at Shutterfly we have augmented the file based tiff library to supportC++ 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 returnsa tiff handle. The class retains the tiff handle in its local state andprovides a helper function (getTiffHandle) to query the handle at any time.Additional helper method - getStreamSize - provides the stream size to theuser. The implementation assumes client responsibility to delete the streamobject. 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 tothe tiff core piece and the class sits on top of the library. The code isfairly tested at this point and is used internally in Shutterfly imagingsoftware. The code is portable across WindowsNT/Linux/Solaris.We at Shutterfly believe this software has benefits to the larger communityof tiff library users and would like to contribute this software to be partof the tiff distributed package. Let me know of any issue.ThanksAvi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -