Lines Matching refs:BLEND_MODE
1085 #define BLEND_MODE(name) \ macro
1099 BLEND_MODE(clear) { return 0; } in BLEND_MODE() function
1100 BLEND_MODE(srcatop) { return s*da + d*inv(sa); } in BLEND_MODE() function
1101 BLEND_MODE(dstatop) { return d*sa + s*inv(da); } in BLEND_MODE() function
1102 BLEND_MODE(srcin) { return s * da; } in BLEND_MODE() function
1103 BLEND_MODE(dstin) { return d * sa; } in BLEND_MODE() function
1104 BLEND_MODE(srcout) { return s * inv(da); } in BLEND_MODE() function
1105 BLEND_MODE(dstout) { return d * inv(sa); } in BLEND_MODE() function
1106 BLEND_MODE(srcover) { return mad(d, inv(sa), s); } in BLEND_MODE() function
1107 BLEND_MODE(dstover) { return mad(s, inv(da), d); } in BLEND_MODE() function
1109 BLEND_MODE(modulate) { return s*d; } in BLEND_MODE() function
1110 BLEND_MODE(multiply) { return s*inv(da) + d*inv(sa) + s*d; } in BLEND_MODE() function
1111 BLEND_MODE(plus_) { return min(s + d, 1.0f); } // We can clamp to either 1 or sa. in BLEND_MODE() function
1112 BLEND_MODE(screen) { return s + d - s*d; } in BLEND_MODE() function
1113 BLEND_MODE(xor_) { return s*inv(da) + d*inv(sa); } in BLEND_MODE() function
1114 #undef BLEND_MODE
1117 #define BLEND_MODE(name) \ macro
1127 BLEND_MODE(darken) { return s + d - max(s*da, d*sa) ; } in BLEND_MODE() function
1128 BLEND_MODE(lighten) { return s + d - min(s*da, d*sa) ; } in BLEND_MODE() function
1129 BLEND_MODE(difference) { return s + d - two(min(s*da, d*sa)); } in BLEND_MODE() function
1130 BLEND_MODE(exclusion) { return s + d - two(s*d); } in BLEND_MODE() function
1132 BLEND_MODE(colorburn) { in BLEND_MODE() function
1137 BLEND_MODE(colordodge) { in BLEND_MODE() function
1142 BLEND_MODE(hardlight) { in BLEND_MODE() function
1146 BLEND_MODE(overlay) { in BLEND_MODE() function
1151 BLEND_MODE(softlight) { in BLEND_MODE() function
1166 #undef BLEND_MODE
2673 #define BLEND_MODE(name) \
2683 BLEND_MODE(clear) { return 0; }
2684 BLEND_MODE(srcatop) { return div255( s*da + d*inv(sa) ); }
2685 BLEND_MODE(dstatop) { return div255( d*sa + s*inv(da) ); }
2686 BLEND_MODE(srcin) { return div255( s*da ); }
2687 BLEND_MODE(dstin) { return div255( d*sa ); }
2688 BLEND_MODE(srcout) { return div255( s*inv(da) ); }
2689 BLEND_MODE(dstout) { return div255( d*inv(sa) ); }
2690 BLEND_MODE(srcover) { return s + div255( d*inv(sa) ); }
2691 BLEND_MODE(dstover) { return d + div255( s*inv(da) ); }
2692 BLEND_MODE(modulate) { return div255( s*d ); }
2693 BLEND_MODE(multiply) { return div255( s*inv(da) + d*inv(sa) + s*d ); }
2694 BLEND_MODE(plus_) { return min(s+d, 255); }
2695 BLEND_MODE(screen) { return s + d - div255( s*d ); }
2696 BLEND_MODE(xor_) { return div255( s*inv(da) + d*inv(sa) ); }
2697 #undef BLEND_MODE
2700 #define BLEND_MODE(name) \
2710 BLEND_MODE(darken) { return s + d - div255( max(s*da, d*sa) ); }
2711 BLEND_MODE(lighten) { return s + d - div255( min(s*da, d*sa) ); }
2712 BLEND_MODE(difference) { return s + d - 2*div255( min(s*da, d*sa) ); }
2713 BLEND_MODE(exclusion) { return s + d - 2*div255( s*d ); }
2715 BLEND_MODE(hardlight) {
2719 BLEND_MODE(overlay) {
2723 #undef BLEND_MODE