Lines Matching refs:wtot
792 double w, wx, wy, wtot; /* pixel weights */ in scale_rect() local
1054 wtot = 0.0; in scale_rect()
1157 wtot += w; in scale_rect()
1195 if (wtot <= 0.0) { in scale_rect()
1196 wtot = 1.0; in scale_rect()
1198 wtot = 1.0/wtot; /* normalization factor */ in scale_rect()
1202 *(dest ) = (char) (wtot * pixave[0]); in scale_rect()
1203 *(dest+1) = (char) (wtot * pixave[1]); in scale_rect()
1204 *(dest+2) = (char) (wtot * pixave[2]); in scale_rect()
1205 *(dest+3) = (char) (wtot * pixave[3]); in scale_rect()
1208 pixave[0] *= wtot; in scale_rect()
1209 pixave[1] *= wtot; in scale_rect()
1210 pixave[2] *= wtot; in scale_rect()
1216 *(dest) = (char) (wtot * pixave[0]); in scale_rect()
1219 *(dest+b) = (char) (wtot * pixave[b]); in scale_rect()