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_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_color_.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c new file mode 100644 index 0000000..fb656b5 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c | |||
@@ -0,0 +1,65 @@ | |||
1 | /* mul color --> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_c_dp(DATA32 *s __UNUSED__, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | for (; d < e; d++) { | ||
8 | *d = MUL4_SYM(c, *d); | ||
9 | } | ||
10 | } | ||
11 | |||
12 | static void | ||
13 | _op_mul_caa_dp(DATA32 *s __UNUSED__, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
14 | DATA32 *e = d + l; | ||
15 | c = 1 + (c >> 24); | ||
16 | for (; d < e; d++) { | ||
17 | *d = MUL_256(c, *d); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | #define _op_mul_can_dp _op_mul_c_dp | ||
22 | |||
23 | #define _op_mul_c_dpan _op_mul_c_dp | ||
24 | #define _op_mul_can_dpan _op_mul_can_dp | ||
25 | #define _op_mul_caa_dpan _op_mul_caa_dp | ||
26 | |||
27 | static void | ||
28 | init_mul_color_span_funcs_c(void) | ||
29 | { | ||
30 | op_mul_span_funcs[SP_N][SM_N][SC][DP][CPU_C] = _op_mul_c_dp; | ||
31 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP][CPU_C] = _op_mul_can_dp; | ||
32 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP][CPU_C] = _op_mul_caa_dp; | ||
33 | |||
34 | op_mul_span_funcs[SP_N][SM_N][SC][DP_AN][CPU_C] = _op_mul_c_dpan; | ||
35 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_can_dpan; | ||
36 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_caa_dpan; | ||
37 | } | ||
38 | #endif | ||
39 | |||
40 | #ifdef BUILD_C | ||
41 | static void | ||
42 | _op_mul_pt_c_dp(DATA32 s __UNUSED__, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
43 | *d = MUL4_SYM(c, *d); | ||
44 | } | ||
45 | |||
46 | #define _op_mul_pt_can_dp _op_mul_pt_c_dp | ||
47 | #define _op_mul_pt_caa_dp _op_mul_pt_c_dp | ||
48 | |||
49 | #define _op_mul_pt_c_dpan _op_mul_pt_c_dp | ||
50 | #define _op_mul_pt_can_dpan _op_mul_pt_can_dp | ||
51 | #define _op_mul_pt_caa_dpan _op_mul_pt_caa_dp | ||
52 | |||
53 | static void | ||
54 | init_mul_color_pt_funcs_c(void) | ||
55 | { | ||
56 | op_mul_pt_funcs[SP_N][SM_N][SC][DP][CPU_C] = _op_mul_pt_c_dp; | ||
57 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP][CPU_C] = _op_mul_pt_can_dp; | ||
58 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP][CPU_C] = _op_mul_pt_caa_dp; | ||
59 | |||
60 | op_mul_pt_funcs[SP_N][SM_N][SC][DP_AN][CPU_C] = _op_mul_pt_c_dpan; | ||
61 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pt_can_dpan; | ||
62 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pt_caa_dpan; | ||
63 | } | ||
64 | #endif | ||
65 | |||