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

Comparing ray/src/px/pcond2.c (file contents):
Revision 3.4 by greg, Thu Jan 9 13:56:28 1997 UTC vs.
Revision 3.5 by greg, Tue Jan 28 16:31:16 1997 UTC

# Line 60 | Line 60 | COLOR *
60   nextscan()                              /* read and condition next scanline */
61   {
62          if (nread >= numscans(&inpres)) {
63 #ifdef DEBUG
64                fputs("done\n", stderr);
65 #endif
63                  free((char *)scanbuf);
64                  return(scanbuf = NULL);
65          }
# Line 100 | Line 97 | firstscan()                            /* return first processed scanline */
97                          comprgb2rgbmat(mbcond.cmat, inprims, outprims);
98                  else
99                          compxyz2rgbmat(mbcond.cmat, outprims);
100 <        if (what2do&DO_ACUITY) {
104 < #ifdef DEBUG
105 <                fprintf(stderr, "%s: initializing acuity sampling...",
106 <                                progname);
107 < #endif
100 >        if (what2do&DO_ACUITY)
101                  initacuity();
109 #ifdef DEBUG
110                fprintf(stderr, "done\n");
111 #endif
112        }
102          scanbuf = (COLOR *)malloc(scanlen(&inpres)*sizeof(COLOR));
103          if (scanbuf == NULL)
104                  syserror("malloc");
105          nread = 0;
117 #ifdef DEBUG
118        fprintf(stderr, "%s: processing image...", progname);
119 #endif
106          return(nextscan());
107   }
108  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines