Home | History | Annotate | Download | only in source

Lines Matching defs:SHADE

765 #define SHADE(f, v) v* f >> 24
782 dst_argb[0] = SHADE(b, b_scale);
783 dst_argb[1] = SHADE(g, g_scale);
784 dst_argb[2] = SHADE(r, r_scale);
785 dst_argb[3] = SHADE(a, a_scale);
791 #undef SHADE
794 #define SHADE(f, v) v* f >> 16
810 dst_argb[0] = SHADE(b, b_scale);
811 dst_argb[1] = SHADE(g, g_scale);
812 dst_argb[2] = SHADE(r, r_scale);
813 dst_argb[3] = SHADE(a, a_scale);
820 #undef SHADE
822 #define SHADE(f, v) clamp255(v + f)
838 dst_argb[0] = SHADE(b, b_add);
839 dst_argb[1] = SHADE(g, g_add);
840 dst_argb[2] = SHADE(r, r_add);
841 dst_argb[3] = SHADE(a, a_add);
847 #undef SHADE
849 #define SHADE(f, v) clamp0(f - v)
865 dst_argb[0] = SHADE(b, b_sub);
866 dst_argb[1] = SHADE(g, g_sub);
867 dst_argb[2] = SHADE(r, r_sub);
868 dst_argb[3] = SHADE(a, a_sub);
874 #undef SHADE