| 137 |
|
exit(rval==0 ? 0 : 1); |
| 138 |
|
userr: |
| 139 |
|
fprintf(stderr, |
| 140 |
< |
"Usage: %s [-h][-s][-c][-l][-b][-g gv][-d ld][-u lm][-z][-p xr yr xg yg xb yb xw yw] input.{tif|pic} output.tif\n", |
| 140 |
> |
"Usage: %s [-h][-s][-c][-l][-b][-g gv][-d ld][-u lm][-z][-p xr yr xg yg xb yb xw yw] input.{tif|hdr} output.tif\n", |
| 141 |
|
argv[0]); |
| 142 |
|
exit(1); |
| 143 |
|
} |
| 211 |
|
) |
| 212 |
|
{ |
| 213 |
|
uint16 orient; |
| 214 |
+ |
double paspect = (pp->rs.rt & YMAJOR) ? pp->pa : 1./pp->pa; |
| 215 |
|
int xsiz, ysiz; |
| 216 |
|
BYTE *pix; |
| 217 |
|
/* read and tone map picture */ |
| 225 |
|
orient++; |
| 226 |
|
/* put out our image */ |
| 227 |
|
if (putimage(orient, (uint32)xsiz, (uint32)ysiz, |
| 228 |
< |
72., 72./pp->pa, 2, pix) != 0) |
| 228 |
> |
72., 72./paspect, 2, pix) != 0) |
| 229 |
|
return(-1); |
| 230 |
|
/* free data and we're done */ |
| 231 |
|
free((void *)pix); |