/* error num. */
#define	OUT_OF_MEMORY		7
#define	ILLEGAL_FILENAME	55
#define	ILLEGAL_DATA		58
#define	CANT_LOAD			1
#define	READ_FAIL			1
#define	CANT_SAVE			2
#define	WRITE_FAIL			2

/* for tif load */
#define LOADBUFSIZE	 (151*1024)	/* ファイル読み込みバッファ */
#define EXPBUFSIZE   (100*1024)	/* 展開用バッファ */
/* for tif save */
#define SAVEBUFSIZE	 (151*1024)	/* ファイル読み込みバッファ */
#define GETBUFSIZE   (100*1024)	/* 展開用バッファ */

/* 関数の定義 */
extern int tifLoad16m( char *, char *, char *, int *, int * ) ;
extern int cov16mTo32k( char *sour, char *dest, int n ) ;
extern int tiffCheckHead( char *name, int *c, int *x, int *y,
						  int *comp, int *fill, long *strip, long *clut ) ;
extern int tifSave32kAnd16m( char *work, char *name, char *buffer,
							int bpp, int comp, int x, int y ) ;

