Lines Matching refs:sums
1210 int sums[2][4];
1219 memset(sums, 0, sizeof sums);
1231 sums[endpoint][i] += p[i];
1239 sums[endpoint][3] += p[3];
1251 (sums[0][i] + sums[1][i]) / (width * height);
1254 endpoints[0][i] = sums[0][i] / rgb_left_endpoint_count;
1255 endpoints[1][i] = (sums[1][i] /
1263 (sums[0][3] + sums[1][3]) / (width * height);
1265 endpoints[0][3] = sums[0][3] / alpha_left_endpoint_count;
1266 endpoints[1][3] = (sums[1][3] /
1514 float sums[2][3];
1522 memset(sums, 0, sizeof sums);
1534 sums[endpoint][i] += p[i];
1546 (sums[0][i] + sums[1][i]) / (width * height);
1549 endpoints[0][i] = sums[0][i] / left_endpoint_count;
1550 endpoints[1][i] = sums[1][i] / (width * height - left_endpoint_count);