|
|
@ -26,6 +26,10 @@ typedef unsigned short int bool_t; |
|
|
|
static const bool_t false = 0; |
|
|
|
static const bool_t true = 1; |
|
|
|
|
|
|
|
/* MINTAGS - MAXTAGS is range of possible existing TAG numbers */ |
|
|
|
#define MINTAGS 254 |
|
|
|
#define MAXTAGS 65536 |
|
|
|
|
|
|
|
typedef enum{ is_memmap, is_filep } ct_ioflag_t ; /* flag */ |
|
|
|
|
|
|
|
typedef enum{ has_sorted_tags, has_unsorted_tags, unknown_tag_order } tagorder_t; |
|
|
@ -41,7 +45,7 @@ typedef struct ctiff_s { |
|
|
|
uint32 ifd0pos; /* offset in tif stream (in bytes) */ |
|
|
|
uint16 ifd0c; /* count of tags in first ifd */ |
|
|
|
bool_t isbyteswapped; /* true if BigEndian */ |
|
|
|
int tag_cache[65536]; |
|
|
|
int tag_cache[MAXTAGS]; |
|
|
|
} ctiff_t; |
|
|
|
|
|
|
|
typedef enum{ |
|
|
@ -230,7 +234,7 @@ typedef struct mem_map_s { |
|
|
|
#define EXPECTSTRLEN 500 |
|
|
|
#define VALUESTRLEN 500 |
|
|
|
#define TIFFAILSTRLEN (EXPECTSTRLEN + VALUESTRLEN) |
|
|
|
#define MAXRESULT 200000 |
|
|
|
#define MAXRESULT 48000U |
|
|
|
|
|
|
|
#ifdef HARDEN |
|
|
|
#define TIFP_CHECK( ctif, ret ) \ |
|
|
|