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.26 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 2.27 by greg, Fri Oct 1 07:45:30 2004 UTC

# Line 375 | Line 375 | checkhead(                             /* deal with line from header */
375          COLOR   ctmp;
376  
377          if (formatval(fmt, line)) {
378 <                if (!strcmp(fmt, CIEFMT)) {
378 >                if (!strcmp(fmt, CIEFMT))
379                          mybright = &xyz_bright;
380 <                        if (original) {
381 <                                scalecolor(exposure, 1./WHTEFFICACY);
382 <                                doexposure++;
383 <                        }
384 <                } else if (!strcmp(fmt, COLRFMT))
380 >                else if (!strcmp(fmt, COLRFMT))
381                          mybright = &rgb_bright;
382                  else
383                          wrongformat++;
384          } else if (original && isexpos(line)) {
385                  d = 1.0/exposval(line);
386                  scalecolor(exposure, d);
387 + fprintf(stderr, "scaled exposure by %f, now at %f\n", d, bright(exposure));
388                  doexposure++;
389          } else if (original && iscolcor(line)) {
390                  colcorval(ctmp, line);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines