• Home
  • Raw
  • Download

Lines Matching refs:BLEND_MODE

1372 #define BLEND_MODE(name)                       \  macro
1386 BLEND_MODE(clear) { return 0; } in BLEND_MODE() function
1387 BLEND_MODE(srcatop) { return s*da + d*inv(sa); } in BLEND_MODE() function
1388 BLEND_MODE(dstatop) { return d*sa + s*inv(da); } in BLEND_MODE() function
1389 BLEND_MODE(srcin) { return s * da; } in BLEND_MODE() function
1390 BLEND_MODE(dstin) { return d * sa; } in BLEND_MODE() function
1391 BLEND_MODE(srcout) { return s * inv(da); } in BLEND_MODE() function
1392 BLEND_MODE(dstout) { return d * inv(sa); } in BLEND_MODE() function
1393 BLEND_MODE(srcover) { return mad(d, inv(sa), s); } in BLEND_MODE() function
1394 BLEND_MODE(dstover) { return mad(s, inv(da), d); } in BLEND_MODE() function
1396 BLEND_MODE(modulate) { return s*d; } in BLEND_MODE() function
1397 BLEND_MODE(multiply) { return s*inv(da) + d*inv(sa) + s*d; } in BLEND_MODE() function
1398 BLEND_MODE(plus_) { return min(s + d, 1.0f); } // We can clamp to either 1 or sa. in BLEND_MODE() function
1399 BLEND_MODE(screen) { return s + d - s*d; } in BLEND_MODE() function
1400 BLEND_MODE(xor_) { return s*inv(da) + d*inv(sa); } in BLEND_MODE() function
1401 #undef BLEND_MODE
1404 #define BLEND_MODE(name) \ macro
1414 BLEND_MODE(darken) { return s + d - max(s*da, d*sa) ; } in BLEND_MODE() function
1415 BLEND_MODE(lighten) { return s + d - min(s*da, d*sa) ; } in BLEND_MODE() function
1416 BLEND_MODE(difference) { return s + d - two(min(s*da, d*sa)); } in BLEND_MODE() function
1417 BLEND_MODE(exclusion) { return s + d - two(s*d); } in BLEND_MODE() function
1419 BLEND_MODE(colorburn) { in BLEND_MODE() function
1424 BLEND_MODE(colordodge) { in BLEND_MODE() function
1429 BLEND_MODE(hardlight) { in BLEND_MODE() function
1433 BLEND_MODE(overlay) { in BLEND_MODE() function
1438 BLEND_MODE(softlight) { in BLEND_MODE() function
1457 #undef BLEND_MODE
3294 #define BLEND_MODE(name) \
3304 BLEND_MODE(clear) { return 0; }
3305 BLEND_MODE(srcatop) { return div255( s*da + d*inv(sa) ); }
3306 BLEND_MODE(dstatop) { return div255( d*sa + s*inv(da) ); }
3307 BLEND_MODE(srcin) { return div255( s*da ); }
3308 BLEND_MODE(dstin) { return div255( d*sa ); }
3309 BLEND_MODE(srcout) { return div255( s*inv(da) ); }
3310 BLEND_MODE(dstout) { return div255( d*inv(sa) ); }
3311 BLEND_MODE(srcover) { return s + div255( d*inv(sa) ); }
3312 BLEND_MODE(dstover) { return d + div255( s*inv(da) ); }
3313 BLEND_MODE(modulate) { return div255( s*d ); }
3314 BLEND_MODE(multiply) { return div255( s*inv(da) + d*inv(sa) + s*d ); }
3315 BLEND_MODE(plus_) { return min(s+d, 255); }
3316 BLEND_MODE(screen) { return s + d - div255( s*d ); }
3317 BLEND_MODE(xor_) { return div255( s*inv(da) + d*inv(sa) ); }
3318 #undef BLEND_MODE
3321 #define BLEND_MODE(name) \
3331 BLEND_MODE(darken) { return s + d - div255( max(s*da, d*sa) ); }
3332 BLEND_MODE(lighten) { return s + d - div255( min(s*da, d*sa) ); }
3333 BLEND_MODE(difference) { return s + d - 2*div255( min(s*da, d*sa) ); }
3334 BLEND_MODE(exclusion) { return s + d - 2*div255( s*d ); }
3336 BLEND_MODE(hardlight) {
3340 BLEND_MODE(overlay) {
3344 #undef BLEND_MODE