00001 /* 00002 /-------------------------------------------------------------------- 00003 | 00004 | $Id: tif__msrc_8h-source.html,v 1.4 2004/09/15 15:26:32 uzadow Exp $ 00005 | 00006 | Copyright (c) 1996-2002 Ulrich von Zadow 00007 | 00008 \-------------------------------------------------------------------- 00009 */ 00010 00011 //! \file 00012 //! Custom data source for libtiff. Assumes all data is in memory at 00013 //! start. 00014 00015 00016 #include <tiffio.h> 00017 00018 extern TIFF* TIFFOpenMem (unsigned char* pData, 00019 int FileSize, 00020 int* pCurPos); 00021 00022 00023 typedef struct 00024 { 00025 unsigned char* pData; 00026 int CurPos; 00027 int MaxFileSize; 00028 // used when open for reading 00029 int rFileSize; 00030 // not NULL when open for writing 00031 int* pFileSize; 00032 char mode[2]; 00033 } 00034 MemSrcTIFFInfo; 00035 /* 00036 /-------------------------------------------------------------------- 00037 | 00038 | $Log: tif__msrc_8h-source.html,v $ 00038 | Revision 1.4 2004/09/15 15:26:32 uzadow 00038 | Linux compatibility changes, doc update. 00038 | 00039 | Revision 1.8 2004/06/06 12:56:38 uzadow 00040 | Doxygenified documentation. 00041 | 00042 | Revision 1.7 2002/08/07 19:03:58 uzadow 00043 | no message 00044 | 00045 | Revision 1.6 2002/08/07 18:33:51 uzadow 00046 | Removed dependency on internal libtiff header tiffiop.h 00047 | 00048 | Revision 1.5 2002/02/24 13:00:43 uzadow 00049 | Documentation update; removed buggy PLFilterRotate. 00050 | 00051 | Revision 1.4 2000/01/10 23:52:59 Ulrich von Zadow 00052 | Changed formatting & removed tabs. 00053 | 00054 | Revision 1.3 1999/10/03 18:50:52 Ulrich von Zadow 00055 | Added automatic logging of changes. 00056 | 00057 | 00058 -------------------------------------------------------------------- 00059 */