From dd7595a3475407a7fa96a97393bae8c5220e8762 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 18:41:13 +1000 Subject: 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. --- .../src/lib/engines/common/evas_convert_grypal_6.c | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c (limited to 'libraries/evas/src/lib/engines/common/evas_convert_grypal_6.c') 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 @@ +#include "evas_common.h" +#include "evas_convert_grypal_6.h" + +#ifdef BUILD_CONVERT_8_GRAYSCALE_64 +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) +{ + DATA32 *src_ptr; + DATA8 *dst_ptr; + int x, y; + DATA8 Y; + + dst_ptr = dst; + CONVERT_LOOP_START_ROT_0(); + + /* RGB -> YUV conversion */ + Y = ((R_VAL(src_ptr) * 76) + + (G_VAL(src_ptr) * 151) + + (B_VAL(src_ptr) * 29)) >> 10; + *dst_ptr = pal[Y]; + + CONVERT_LOOP_END_ROT_0(); +} +#endif -- cgit v1.1