Browse Source

- comment cleanup

development
Andreas Romeyke 2 years ago
parent
commit
6cec9f4040
1 changed files with 7 additions and 8 deletions
  1. +7
    -8
      src/headers/check.h

+ 7
- 8
src/headers/check.h View File

@ -1,7 +1,7 @@
/* rule based checks if given TIFF is a specific baseline TIFF
*
*
* author: Andreas Romeyke, 2015-2017
* licensed under conditions of libtiff
* licensed under conditions of libtiff
* (see file LICENSE)
*
*/
@ -29,15 +29,14 @@ typedef struct ctiff_s {
ct_ioflag_t ioflag;
tagorder_t tagorder;
int tag_cache[65536];
uint8 * streamp; /* TODO: address of memory-mapped tif stream */
uint8 * streamp; /* address of memory-mapped tif stream */
uint8 * actual_streamp;
uint32 streamlen; /* TODO: length of tif stream/file (in bytes) */
uint32 streamlen; /* length of tif stream/file (in bytes) */
thandle_t fd; /* filedescriptor */
uint32 ifd0pos; /* offset in tif stream (in bytes) */
uint16 ifd0c; /* count of tags in first ifd */
int isbyteswapped; /* true if BigEndian */
char *filename; /* filename */
/* TODO: add file size */
} ctiff_t;
typedef enum{
@ -129,7 +128,7 @@ typedef enum {
tagerror_count_results_in_offsets_overflow, /* example: rational is defined as 2 uint32. offset is defined as uint32. If we read count>2147483647 we got offset overflow */
parser_logical_combine_open, /* if fc_logicalcombine was called first (no error) */
parser_logical_combine_close, /* if fc_logicalcombine was called first (no error) */
tagerror_offset_is_zero,
tagerror_offset_is_zero,
} returncode_t;
@ -232,7 +231,7 @@ typedef struct mem_map_s {
#define TIFFAILSTRLEN (EXPECTSTRLEN + VALUESTRLEN)
#define MAXRESULT 200000
returncode_t tifp_check( ctiff_t * ctif);
/*
/*
ret_t tif_returns(tag_t tag, const char* expected, const char* value);
ret_t tif_fails_tag(tag_t tag, const char* expected, const char* value);
ret_t tif_fails(const char* fail_message);
@ -264,7 +263,7 @@ ret_t check_datetime(ctiff_t * ctif);
ret_t check_icc(ctiff_t * ctif);
ret_t check_has_only_one_ifd(ctiff_t * ctif);
ret_t check_tagorder(ctiff_t * ctif);
ret_t check_tag_has_valid_asciivalue(ctiff_t * ctif, tag_t tag);
ret_t check_tag_has_valid_asciivalue(ctiff_t * ctif, tag_t tag);
ret_t check_tag_has_value_matching_regex(ctiff_t * ctif, tag_t tag, const char* regex_string);
ret_t check_all_offsets_are_word_aligned(ctiff_t * ctif);
ret_t check_all_offsets_are_used_once_only(ctiff_t * ctif);


Loading…
Cancel
Save