Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/include
Modified Files:
evas_common.h evas_macros.h
Log Message:
rotation patches for 180 degrees - thankyoooo! :)
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/include/evas_common.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- evas_common.h 10 Feb 2007 17:23:06 -0000 1.74
+++ evas_common.h 2 Mar 2007 14:51:16 -0000 1.75
@@ -709,6 +709,17 @@
void evas_common_convert_rgba2_to_16bpp_rgb_555_dith (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_16bpp_rgb_555_dith (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba2_to_16bpp_rgb_565_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_16bpp_rgb_565_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba2_to_16bpp_bgr_565_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_16bpp_bgr_565_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba2_to_16bpp_rgb_444_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_16bpp_rgb_444_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba2_to_16bpp_rgb_454645_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_16bpp_rgb_454645_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba2_to_16bpp_rgb_555_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_16bpp_rgb_555_dith_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+
void evas_common_convert_rgba2_to_16bpp_rgb_565_dith_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_16bpp_rgb_565_dith_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba2_to_16bpp_bgr_565_dith_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
@@ -735,15 +746,19 @@
void evas_common_convert_rgba_to_24bpp_bgr_888 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgb_8888 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgb_8888_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgb_8888_rot_90 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgbx_8888 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_32bpp_rgbx_8888_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgbx_8888_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_rgbx_8888_rot_90 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgr_8888 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_32bpp_bgr_8888_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgr_8888_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgr_8888_rot_90 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgrx_8888 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
+void evas_common_convert_rgba_to_32bpp_bgrx_8888_rot_180 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgrx_8888_rot_270 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
void evas_common_convert_rgba_to_32bpp_bgrx_8888_rot_90 (DATA32 *src,
DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y,
DATA8 *pal);
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/include/evas_macros.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_macros.h 2 May 2006 07:28:48 -0000 1.2
+++ evas_macros.h 2 Mar 2007 14:51:16 -0000 1.3
@@ -94,6 +94,21 @@
dst_ptr += dst_jump; \
}
+#define CONVERT_LOOP_START_ROT_180() \
+ src_ptr = src + (w - 1) + ((h - 1) * (w + src_jump)); \
+ for (y = 0; y < h; y++) \
+ { \
+ for (x = 0; x < w; x++) \
+ {
+
+#define CONVERT_LOOP_END_ROT_180() \
+ dst_ptr++; \
+ src_ptr--; \
+ } \
+ src_ptr = src + (w - 1) + ((h - y - 2) * (w + src_jump)); \
+ dst_ptr += dst_jump; \
+ }
+
#define CONVERT_LOOP_START_ROT_270() \
src_ptr = src + ((w - 1) * (h + src_jump)); \
for (y = 0; y < h; y++) \
@@ -140,6 +155,25 @@
src_ptr++; \
} \
src_ptr += src_jump; \
+ dst_ptr += dst_jump; \
+ }
+
+#define CONVERT_LOOP2_START_ROT_180() \
+ src_ptr = src + (w - 1) + ((h - 1) * (w + src_jump)); \
+ for (y = 0; y < h; y++) \
+ { \
+ for (x = 0; x < w; x++) \
+ {
+
+#define CONVERT_LOOP2_INC_ROT_180() \
+src_ptr--; \
+x++;
+
+#define CONVERT_LOOP2_END_ROT_180() \
+ dst_ptr+=2; \
+ src_ptr--; \
+ } \
+ src_ptr = src + (w - 1) + ((h - y - 2) * (w + src_jump)); \
dst_ptr += dst_jump; \
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs