376 |
|
printargs(i, argv, stdout); |
377 |
|
if (expval < .99 || expval > 1.01) |
378 |
|
fputexpos(expval, stdout); |
379 |
+ |
if (swapbytes) { |
380 |
+ |
if (nativebigendian()) |
381 |
+ |
puts("BigEndian=0"); |
382 |
+ |
else |
383 |
+ |
puts("BigEndian=1"); |
384 |
+ |
} else if ((format != 'a') & (format != 'i')) |
385 |
+ |
fputendian(stdout); |
386 |
|
fputformat(fmtid, stdout); |
387 |
|
putchar('\n'); |
388 |
|
} |
405 |
|
char fmt[MAXFMTLEN]; |
406 |
|
double d; |
407 |
|
COLOR ctmp; |
408 |
+ |
int rv; |
409 |
|
|
410 |
|
if (formatval(fmt, line)) { |
411 |
|
if (!strcmp(fmt, CIEFMT)) |
424 |
|
colval(exposure,GRN)/colval(ctmp,GRN), |
425 |
|
colval(exposure,BLU)/colval(ctmp,BLU)); |
426 |
|
doexposure++; |
427 |
+ |
} else if (reverse && (rv = isbigendian(line)) >= 0) { |
428 |
+ |
swapbytes = (nativebigendian() != rv); |
429 |
|
} else if (header) |
430 |
|
fputs(line, stdout); |
431 |
|
return(0); |