20 int z1,dzdx,dzdy,dzdl_min,dzdl_max;
23 int r1,drdx,drdy,drdl_min,drdl_max;
24 int g1,dgdx,dgdy,dgdl_min,dgdl_max;
25 int b1,dbdx,dbdy,dbdl_min,dbdl_max;
28 int s1,dsdx,dsdy,dsdl_min,dsdl_max;
29 int t1,dtdx,dtdy,dtdl_min,dtdl_max;
32 float sz1,dszdx,dszdy,dszdl_min,dszdl_max;
33 float tz1,dtzdx,dtzdy,dtzdl_min,dtzdl_max;
47 }
else if (p2->y < p1->y) {
112 p0->sz= (
float) p0->s * zz;
113 p0->tz= (float) p0->t * zz;
115 p1->sz= (float) p1->s * zz;
116 p1->tz= (
float) p1->t * zz;
118 p2->sz= (
float) p2->s * zz;
119 p2->tz= (float) p2->t * zz;
121 d1 = p1->sz - p0->sz;
122 d2 = p2->sz - p0->sz;
126 d1 = p1->tz - p0->tz;
127 d2 = p2->tz - p0->tz;
135 pp1 = (
PIXEL *) ((
char *) zb->pbuf + zb->linesize * p0->y);
136 pz1 = zb->zbuf + p0->y * zb->xsize;
192 dzdl_max=dzdl_min + dzdx;
197 drdl_max=drdl_min + drdx;
201 dgdl_max=dgdl_min + dgdx;
205 dbdl_max=dbdl_min + dbdx;
210 dsdl_max=dsdl_min + dsdx;
214 dtdl_max=dtdl_min + dtdx;
218 dszdl_min=(dszdy + dszdx *
dxdy_min);
219 dszdl_max=dszdl_min + dszdx;
222 dtzdl_min=(dtzdy + dtzdx *
dxdy_min);
223 dtzdl_max=dtzdl_min + dtzdx;
230 dx2 = (pr2->
x - pr1->
x);
231 dy2 = (pr2->
y - pr1->
y);
249 register unsigned short *pz;
250 register unsigned int z,zz;
253 register unsigned int or1,og1,ob1;
256 register unsigned int s,t;