|
|
@ -1,7 +1,7 @@ |
|
|
|
/* rule based checks if given TIFF is a specific baseline TIFF |
|
|
|
* |
|
|
|
* |
|
|
|
* author: Andreas Romeyke, 2015-2018 |
|
|
|
* licensed under conditions of libtiff |
|
|
|
* licensed under conditions of libtiff |
|
|
|
* (see http://libtiff.maptools.org/misc.html) |
|
|
|
* |
|
|
|
*/ |
|
|
@ -76,7 +76,7 @@ ret_t check_all_geotiff_tags(ctiff_t * ctif) { |
|
|
|
uint32 count = ifd_entry.count; |
|
|
|
char value[VALUESTRLEN]; |
|
|
|
memset(value, '\0', VALUESTRLEN); |
|
|
|
|
|
|
|
|
|
|
|
/* type is short? */ |
|
|
|
switch (ifd_entry.datatype) { |
|
|
|
case TIFF_SHORT: { |
|
|
@ -105,7 +105,7 @@ ret_t check_all_geotiff_tags(ctiff_t * ctif) { |
|
|
|
for (uint32 i=4; i< count; i++) { |
|
|
|
#ifdef DEBUG |
|
|
|
uint16 pval = *p; |
|
|
|
printf("SHORTOFFSET (tag=%i): v[%i]=%u p[%i]=0x%04x\n", tag, i,v[i],i,pval); |
|
|
|
printf("SHORTOFFSET (tag=%u): v[%u]=%u p[%u]=0x%04x\n", tag, i,v[i],i,pval); |
|
|
|
#endif |
|
|
|
p++; |
|
|
|
} |
|
|
|