Lines Matching refs:coverage
80 int coverage);
190 /* A cell records the effect on pixel coverage of polygon edges
192 * coverage.
194 * Consider the effects of a polygon edge on the coverage of a pixel
195 * it intersects and that of the following one. The coverage of the
197 * of the pixel, and the coverage of the pixel itself is the area of
218 * Since the coverage of the following pixel will always be a multiple
220 * area instead. The coverage of the pixel itself is the total
221 * coverage minus the area of the uncovered area to the left of the
223 * that and subtract it from the total coverage later when forming
370 /* Add a subpixel span covering [x1, x2) to the coverage cells. */
1051 int coverage)
1053 __DBG(("%s: %d -> %d @ %d\n", __FUNCTION__, box->x1, box->x2, coverage));
1055 op->box(sna, op, box, AREA_TO_FLOAT(coverage));
1064 int coverage)
1066 __DBG(("%s: %d -> %d @ %d\n", __FUNCTION__, box->x1, box->x2, coverage));
1068 op->box(sna, op, box, AREA_TO_FLOAT(coverage));
1076 int coverage)
1081 opacity = AREA_TO_FLOAT(coverage);
1105 int coverage),
1180 int coverage),
1671 int coverage)
1673 __DBG(("%s: %d -> %d @ %d\n", __FUNCTION__, box->x1, box->x2, coverage));
1674 span_thread_add_boxes(sna, op, box, 1, AREA_TO_FLOAT(coverage));
1682 int coverage)
1687 AREA_TO_FLOAT(coverage)));
1695 AREA_TO_FLOAT(coverage));
1946 int coverage)
1952 coverage = TO_ALPHA(coverage);
1958 *ptr = coverage;
1961 *ptr = coverage;
1965 memset(ptr, coverage, w);
2180 static force_inline uint8_t coverage_opacity(int coverage, uint8_t opacity)
2182 coverage = TO_ALPHA(coverage);
2183 return opacity == 255 ? coverage : mul_8_8(coverage, opacity);
2213 int coverage)
2217 _tor_blt_src(in, box, coverage_opacity(coverage, in->opacity));
2225 int coverage)
2235 tor_blt_src(sna, op, NULL, box++, coverage);
2244 int coverage)
2250 if (coverage == 0 || in->opacity == 0) {
2255 coverage = coverage_opacity(coverage, in->opacity);
2256 if (coverage == 0xff)
2265 ptr[i] = mul_8_8(ptr[i], coverage);
2275 int coverage)
2285 tor_blt_in(sna, op, NULL, box++, coverage);
2294 int coverage)
2300 if (coverage == 0)
2303 coverage = coverage_opacity(coverage, in->opacity);
2304 if (coverage == 0xff) {
2314 v = coverage + *ptr;
2319 v = coverage + ptr[i];
2332 int coverage)
2342 tor_blt_add(sna, op, NULL, box++, coverage);
2351 int coverage)
2358 if (coverage == 0)
2365 if (coverage == GRID_AREA) {
2381 coverage = TO_ALPHA(coverage);
2383 *ptr = lerp8x4(in->color, coverage, *ptr);
2386 *ptr = lerp8x4(in->color, coverage, *ptr);
2392 ptr[i] = lerp8x4(in->color, coverage, ptr[i]);
2404 int coverage)
2414 tor_blt_lerp32(sna, op, NULL, box++, coverage);
2432 int coverage)
2435 if (coverage != GRID_AREA)
2436 *pi->bits = mul_4x8_8(pi->color, TO_ALPHA(coverage));
2450 int coverage)
2460 pixmask_span_solid(sna, op, NULL, box++, coverage);
2469 int coverage)
2473 if (coverage != GRID_AREA) {
2474 *pi->bits = TO_ALPHA(coverage);
2488 int coverage)
2498 pixmask_span(sna, op, NULL, box++, coverage);