]>
git.saurik.com Git - wxWidgets.git/blob - src/tiff/contrib/stream/tiffstream.h
a583ae24b2807205f3500ffbe1995d30391a3127
1 // tiff stream interface class definition
3 #ifndef _TIFF_STREAM_H_
4 #define _TIFF_STREAM_H_
26 TIFF
* makeFileStream(iostream
* str
);
27 TIFF
* makeFileStream(istream
* str
);
28 TIFF
* makeFileStream(ostream
* str
);
31 // tiff client methods
32 static tsize_t
read(thandle_t fd
, tdata_t buf
, tsize_t size
);
33 static tsize_t
write(thandle_t fd
, tdata_t buf
, tsize_t size
);
34 static toff_t
seek(thandle_t fd
, toff_t offset
, int origin
);
35 static toff_t
size(thandle_t fd
);
36 static int close(thandle_t fd
);
37 static int map(thandle_t fd
, tdata_t
* phase
, toff_t
* psize
);
38 static void unmap(thandle_t fd
, tdata_t base
, tsize_t size
);
42 TIFF
* getTiffHandle() const { return m_tif
; }
43 unsigned int getStreamLength() { return m_streamLength
; }
47 unsigned int getSize(thandle_t fd
);
48 unsigned int tell(thandle_t fd
);
49 bool seekInt(thandle_t fd
, unsigned int offset
, int origin
);
50 bool isOpen(thandle_t fd
);
55 static const char* m_name
;
63 #endif // _TIFF_STREAM_H_