| 1 |
/* 'checkit_tiff' is a conformance checker for baseline TIFFs |
| 2 |
* |
| 3 |
* author: Andreas Romeyke, 2015-2022 |
| 4 |
* licensed under conditions of libtiff |
| 5 |
* (see http://libtiff.maptools.org/misc.html) |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef CHECKIT_TIFF_PARSER_TYPES |
| 10 |
#define CHECKIT_TIFF_PARSER_TYPES |
| 11 |
typedef enum { mandatory, ifdepends, optdepends, optional } requirements_t; |
| 12 |
typedef enum { range, logical_or, any, only, regex, ntupel, sbit, iccprofile, datetime, printable_ascii, full_ascii } values_t; |
| 13 |
typedef enum { no_ref, any_ref, only_ref, range_ref, ntupel_ref, regex_ref } reference_t; |
| 14 |
|
| 15 |
typedef enum { |
| 16 |
mode_baseline=1, |
| 17 |
mode_enable_type_checks=2, |
| 18 |
mode_enable_offset_checks=4, |
| 19 |
mode_enable_ifd_checks=8, |
| 20 |
mode_enable_deep_geotiff_checks=16, |
| 21 |
} modes_t; |
| 22 |
|
| 23 |
typedef enum { |
| 24 |
st_LOW_GUARD=0, |
| 25 |
st_unsigned_int, |
| 26 |
st_regex, |
| 27 |
/* st_val, */ |
| 28 |
st_HIGH_GUARD=99 |
| 29 |
} internal_stacktype_t; |
| 30 |
|
| 31 |
typedef struct stat_s { |
| 32 |
size_t stat_push_count; |
| 33 |
size_t stat_pushback_count; |
| 34 |
size_t stat_realloc_count; |
| 35 |
} stat_t; |
| 36 |
|
| 37 |
|
| 38 |
#endif |