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_convert_grypal_6.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 '')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c b/libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c new file mode 100644 index 0000000..2351fda --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c | |||
@@ -0,0 +1,23 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_convert_grypal_6.h" | ||
3 | |||
4 | #ifdef BUILD_CONVERT_8_GRAYSCALE_64 | ||
5 | void evas_common_convert_rgba_to_8bpp_pal_gray64(DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x __UNUSED__, int dith_y __UNUSED__, DATA8 *pal) | ||
6 | { | ||
7 | DATA32 *src_ptr; | ||
8 | DATA8 *dst_ptr; | ||
9 | int x, y; | ||
10 | DATA8 Y; | ||
11 | |||
12 | dst_ptr = dst; | ||
13 | CONVERT_LOOP_START_ROT_0(); | ||
14 | |||
15 | /* RGB -> YUV conversion */ | ||
16 | Y = ((R_VAL(src_ptr) * 76) + | ||
17 | (G_VAL(src_ptr) * 151) + | ||
18 | (B_VAL(src_ptr) * 29)) >> 10; | ||
19 | *dst_ptr = pal[Y]; | ||
20 | |||
21 | CONVERT_LOOP_END_ROT_0(); | ||
22 | } | ||
23 | #endif | ||