diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c new file mode 100644 index 0000000..7a6e403 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c | |||
@@ -0,0 +1,72 @@ | |||
1 | /* mul mask x color -> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_mas_c_dp(DATA32 *s __UNUSED__, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l, nc = ~c; | ||
7 | while (d < e) | ||
8 | { | ||
9 | DATA32 a = *m; | ||
10 | switch(a) | ||
11 | { | ||
12 | case 0: | ||
13 | break; | ||
14 | case 255: | ||
15 | *d = MUL4_SYM(c, *d); | ||
16 | break; | ||
17 | default: | ||
18 | a = ~MUL_SYM(a, nc); | ||
19 | *d = MUL4_SYM(a, *d); | ||
20 | break; | ||
21 | } | ||
22 | m++; d++; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | #define _op_mul_mas_can_dp _op_mul_mas_c_dp | ||
27 | #define _op_mul_mas_caa_dp _op_mul_mas_c_dp | ||
28 | |||
29 | #define _op_mul_mas_c_dpan _op_mul_mas_c_dp | ||
30 | #define _op_mul_mas_can_dpan _op_mul_mas_can_dp | ||
31 | #define _op_mul_mas_caa_dpan _op_mul_mas_caa_dp | ||
32 | |||
33 | static void | ||
34 | init_mul_mask_color_span_funcs_c(void) | ||
35 | { | ||
36 | op_mul_span_funcs[SP_N][SM_AS][SC][DP][CPU_C] = _op_mul_mas_c_dp; | ||
37 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP][CPU_C] = _op_mul_mas_can_dp; | ||
38 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP][CPU_C] = _op_mul_mas_caa_dp; | ||
39 | |||
40 | op_mul_span_funcs[SP_N][SM_AS][SC][DP_AN][CPU_C] = _op_mul_mas_c_dpan; | ||
41 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_C] = _op_mul_mas_can_dpan; | ||
42 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_C] = _op_mul_mas_caa_dpan; | ||
43 | } | ||
44 | #endif | ||
45 | |||
46 | #ifdef BUILD_C | ||
47 | static void | ||
48 | _op_mul_pt_mas_c_dp(DATA32 s __UNUSED__, DATA8 m, DATA32 c, DATA32 *d) { | ||
49 | c = ~c; | ||
50 | c = ~MUL_SYM(m, c); | ||
51 | *d = MUL4_SYM(c, *d); | ||
52 | } | ||
53 | |||
54 | #define _op_mul_pt_mas_can_dp _op_mul_pt_mas_c_dp | ||
55 | #define _op_mul_pt_mas_caa_dp _op_mul_pt_mas_c_dp | ||
56 | |||
57 | #define _op_mul_pt_mas_c_dpan _op_mul_pt_mas_c_dp | ||
58 | #define _op_mul_pt_mas_can_dpan _op_mul_pt_mas_can_dp | ||
59 | #define _op_mul_pt_mas_caa_dpan _op_mul_pt_mas_caa_dp | ||
60 | |||
61 | static void | ||
62 | init_mul_mask_color_pt_funcs_c(void) | ||
63 | { | ||
64 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP][CPU_C] = _op_mul_pt_mas_c_dp; | ||
65 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP][CPU_C] = _op_mul_pt_mas_can_dp; | ||
66 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP][CPU_C] = _op_mul_pt_mas_caa_dp; | ||
67 | |||
68 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP_AN][CPU_C] = _op_mul_pt_mas_c_dpan; | ||
69 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_C] = _op_mul_pt_mas_can_dpan; | ||
70 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_C] = _op_mul_pt_mas_caa_dpan; | ||
71 | } | ||
72 | #endif | ||