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

Comparing ray/src/util/glareval.c (file contents):
Revision 1.5 by greg, Thu Mar 21 12:28:23 1991 UTC vs.
Revision 1.7 by greg, Tue Apr 2 14:29:17 1991 UTC

# Line 95 | Line 95 | seekerr:
95   }
96  
97  
98 + #ifdef DEBUG
99   pict_stats()                    /* print out picture read statistics */
100   {
101          static long     lastcall = 0L;  /* ncall at last report */
# Line 102 | Line 103 | pict_stats()                   /* print out picture read statistics */
103  
104          if (ncall == lastcall)
105                  return;
106 <        fprintf(stderr, "%s: %ld scanlines read, %ld reused\n",
107 <                        progname, nread-lastread,
107 <                        (ncall-lastcall)-(nread-lastread));
106 >        fprintf(stderr, "%s: %ld scanlines read in %ld calls\n",
107 >                        progname, nread-lastread, ncall-lastcall);
108          lastcall = ncall;
109          lastread = nread;
110   }
111 + #endif
112  
113  
114   double
# Line 141 | Line 142 | int    vh, vv;
142  
143          if (compdir(dir, vh, vv) < 0)
144                  return(-1.0);
145 +        npixinvw++;
146          if ((res = pict_val(dir)) >= 0.0)
147                  return(res);
148 <        if (rt_pid == -1)
148 >        if (rt_pid == -1) {
149 >                npixmiss++;
150                  return(-1.0);
151 +        }
152          rt_buf[0] = ourview.vp[0];
153          rt_buf[1] = ourview.vp[1];
154          rt_buf[2] = ourview.vp[2];
# Line 177 | Line 181 | float  *vb;
181                          vb[vh+hsize] = -1.0;
182                          continue;
183                  }
184 +                npixinvw++;
185                  if ((vb[vh+hsize] = pict_val(dir)) >= 0.0)
186                          continue;
187 <                if (rt_pid == -1)               /* missing information */
187 >                if (rt_pid == -1) {             /* missing information */
188 >                        npixmiss++;
189                          continue;
190 +                }
191                                                  /* send to rtrace */
192                  if (n >= MAXPIX) {                      /* flush */
193                          rt_compute(rt_buf, n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines