95 |
|
} |
96 |
|
|
97 |
|
|
98 |
+ |
#ifdef DEBUG |
99 |
|
pict_stats() /* print out picture read statistics */ |
100 |
|
{ |
101 |
|
static long lastcall = 0L; /* ncall at last report */ |
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 |
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]; |
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); |