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

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:05:45 1991 UTC vs.
Revision 2.2 by greg, Fri Jan 3 22:58:08 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 89 | Line 89 | transfer()             /* transfer Radiance picture */
89          if (checkheader(stdin, COLRFMT, stdout) < 0 ||
90                          (order = fgetresolu(&xmax, &ymax, stdin)) < 0)
91                  quiterr("bad picture format");
92 +        fputs(progname, stdout);
93          if (bradj)
94 <                fputexpos(pow(2.0, (double)bradj), stdout);
95 <        if (!doflat) {
94 >                printf(" -e %+d", bradj);
95 >        if (doflat)
96 >                fputs("\n", stdout);
97 >        else {
98 >                fputs(" -r\n", stdout);
99                  fputformat(COLRFMT, stdout);
100 <                printf("%s -r\n\n", progname);
101 <        } else
102 <                printf("%s\n\n", progname);
100 >        }
101 >        if (bradj)
102 >                fputexpos(pow(2.0, (double)bradj), stdout);
103 >        fputs("\n", stdout);
104          fputresolu(order, xmax, ymax, stdout);
105                                                  /* allocate scanline */
106          scanin = (COLR *)malloc(xmax*sizeof(COLR));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines