10 |
|
#include <stdio.h> |
11 |
|
#include <math.h> |
12 |
|
#include <ctype.h> |
13 |
+ |
#include <time.h> |
14 |
|
#include "tiffio.h" |
15 |
|
#include "color.h" |
16 |
|
#include "resolu.h" |
161 |
|
if (i != argc-2) |
162 |
|
goto userr; |
163 |
|
/* consistency checks */ |
164 |
< |
if (CHK(C_GRY)) |
164 |
> |
if (CHK(C_GRY)) { |
165 |
|
if (cvts.phot == PHOTOMETRIC_RGB) |
166 |
|
cvts.phot = PHOTOMETRIC_MINISBLACK; |
167 |
|
else { |
168 |
|
cvts.phot = PHOTOMETRIC_LOGL; |
169 |
|
cvts.comp = COMPRESSION_SGILOG; |
170 |
|
} |
171 |
+ |
} |
172 |
|
if (CHK(C_TWRD|C_TFLT) == (C_TWRD|C_TFLT)) |
173 |
|
goto userr; |
174 |
|
|