ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pvalue.c
(Generate patch)

Comparing ray/src/px/pvalue.c (file contents):
Revision 2.36 by greg, Mon Jul 15 23:42:44 2019 UTC vs.
Revision 2.37 by greg, Wed Aug 14 18:20:02 2019 UTC

# Line 376 | Line 376 | unkopt:
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                  }
# Line 398 | Line 405 | checkhead(                             /* deal with line from header */
405          char    fmt[MAXFMTLEN];
406          double  d;
407          COLOR   ctmp;
408 +        int     rv;
409  
410          if (formatval(fmt, line)) {
411                  if (!strcmp(fmt, CIEFMT))
# Line 416 | Line 424 | checkhead(                             /* deal with line from header */
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines