Lines Matching refs:weights
587 uint8_t weights[64 + 18]; /* max 64 values, plus padding for the infill interpolation */
1164 assert(num_weights <= (int)ARRAY_SIZE(weights));
1166 memset(weights, 0, sizeof(weights));
1237 weights[i] = w;
1253 weights[i] = w;
1293 p00 = weights[(v0) * 2];
1294 p01 = weights[(v0 + 1) * 2];
1295 p10 = weights[(v0 + wt_w) * 2];
1296 p11 = weights[(v0 + wt_w + 1) * 2];
1298 p00 = weights[(v0) * 2 + 1];
1299 p01 = weights[(v0 + 1) * 2 + 1];
1300 p10 = weights[(v0 + wt_w) * 2 + 1];
1301 p11 = weights[(v0 + wt_w + 1) * 2 + 1];
1302 assert((v0 + wt_w + 1) * 2 + 1 < (int)ARRAY_SIZE(weights));
1310 p00 = weights[v0];
1311 p01 = weights[v0 + 1];
1312 p10 = weights[v0 + wt_w];
1313 p11 = weights[v0 + wt_w + 1];
1314 assert(v0 + wt_w + 1 < (int)ARRAY_SIZE(weights));
1538 in.printf_bits(128 - weight_bits, weight_bits, "weights (%d bits)", weight_bits);
1551 printf("weights=[");
1555 printf("%d", weights[i]);
1560 printf("weights (plane %d):\n", plane);
1567 printf("%3d", weights[i++ * (1 + dual_plane) + plane]);
1581 printf("infilled weights (plane %d):\n", plane);
1681 /* Interpolate to produce UNORM16, applying weights. */