61 |
|
COLOR *ourspict; /* output pixel sums (averaging) */ |
62 |
|
float *ourweigh = NULL; /* output pixel weights (averaging) */ |
63 |
|
float *ourzbuf; /* corresponding z-buffer */ |
64 |
< |
COLOR *ourbpict = NULL; /* blurred picture */ |
64 |
> |
COLOR *ourbpict = NULL; /* blurred picture (view averaging) */ |
65 |
|
|
66 |
|
VIEW avgview; /* average view for -B option */ |
67 |
|
int nvavg; /* number of views averaged */ |
92 |
|
#define childpid (PDesc[2]) |
93 |
|
unsigned short queue[PACKSIZ][2]; /* pending pixels */ |
94 |
|
int packsiz; /* actual packet size */ |
95 |
< |
int queuesiz; /* number of pixels pending */ |
95 |
> |
int queuesiz = 0; /* number of pixels pending */ |
96 |
|
|
97 |
|
extern double movepixel(); |
98 |
|
|
516 |
|
{ |
517 |
|
double m4t[4][4]; |
518 |
|
|
519 |
< |
if (vw1->type != VT_PER && vw1->type != VT_PAR) |
519 |
> |
if (vw1->type != VT_PER & vw1->type != VT_PAR) |
520 |
|
return(0); |
521 |
< |
if (vw2->type != VT_PER && vw2->type != VT_PAR) |
521 |
> |
if (vw2->type != VT_PER & vw2->type != VT_PAR) |
522 |
|
return(0); |
523 |
|
setident4(xfmat); |
524 |
|
xfmat[0][0] = vw1->hvec[0]; |
635 |
|
y1 = p0->y + c1*s1y/l1; |
636 |
|
for (c2 = l2; c2-- > 0; ) { |
637 |
|
x = x1 + c2*s2x/l2; |
638 |
< |
if (x < 0 || x >= hresolu) |
638 |
> |
if (x < 0 | x >= hresolu) |
639 |
|
continue; |
640 |
|
y = y1 + c2*s2y/l2; |
641 |
< |
if (y < 0 || y >= vresolu) |
641 |
> |
if (y < 0 | y >= vresolu) |
642 |
|
continue; |
643 |
|
if (averaging) { |
644 |
|
if (zscan(y)[x] <= 0 || zscan(y)[x]-z |
673 |
|
if (usematrix) { |
674 |
|
pos[0] += theirview.hoff - .5; |
675 |
|
pos[1] += theirview.voff - .5; |
676 |
< |
if (normdist && theirview.type == VT_PER) |
676 |
> |
if (normdist & theirview.type == VT_PER) |
677 |
|
d = sqrt(1. + pos[0]*pos[0]*theirview.hn2 |
678 |
|
+ pos[1]*pos[1]*theirview.vn2); |
679 |
|
else |
707 |
|
if (pos[2] <= 0) |
708 |
|
return(0); |
709 |
|
} |
710 |
< |
if (pos[0] < 0 || pos[0] >= 1-FTINY || pos[1] < 0 || pos[1] >= 1-FTINY) |
710 |
> |
if (pos[0] < 0 | pos[0] >= 1-FTINY | pos[1] < 0 | pos[1] >= 1-FTINY) |
711 |
|
return(0); |
712 |
|
if (!averaging) |
713 |
|
return(1); |
924 |
|
for (x = 0; x < hresolu; x++) |
925 |
|
if (zscan(y)[x] <= 0) |
926 |
|
(*fill)(x,y); |
927 |
+ |
if (fill == rcalfill) |
928 |
+ |
clearqueue(); |
929 |
|
} |
930 |
|
|
931 |
|
|