Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common Modified Files: evas_convert_main.c evas_convert_rgb_24.c Log Message: dont always use backign buffer in fbs < 24bpp 24bpp code... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_main.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- evas_convert_main.c 20 Jan 2003 23:04:37 -0000 1.3 +++ evas_convert_main.c 11 Apr 2005 15:45:12 -0000 1.4 @@ -432,6 +432,20 @@ } if (depth == 24) { +#ifdef BUILD_CONVERT_24_RGB_888 + if ((rmask == 0x00ff0000) && (gmask == 0x0000ff00) && (bmask == 0x000000ff)) + { + if (rotation == 0) + return evas_common_convert_rgba_to_24bpp_rgb_888; + } +#endif +#ifdef BUILD_CONVERT_24_BGR_888 + if ((rmask == 0x000000ff) && (gmask == 0x0000ff00) && (bmask == 0x00ff0000)) + { + if (rotation == 0) + return evas_common_convert_rgba_to_24bpp_bgr_888; + } +#endif } printf("depth = %i mode = %i\n", depth, pal_mode); if (depth == 8) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_convert_rgb_24.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_convert_rgb_24.c 14 Nov 2002 05:38:10 -0000 1.2 +++ evas_convert_rgb_24.c 11 Apr 2005 15:45:12 -0000 1.3 @@ -1,8 +1,37 @@ #include "evas_common.h" #ifdef BUILD_CONVERT_24_RGB_888 -void evas_common_convert_rgba_to_24bpp_rgb_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_24bpp_rgb_888(DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal) +{ + DATA32 *src_ptr; + DATA8 *dst_ptr; + int x, y; + + dst_ptr = (DATA8 *)dst; + + for (y = 0; y < h; y++) + { + for (x = 0; x < w; x++) + { + dst_ptr[0] = R_VAL(src_ptr); + dst_ptr[1] = G_VAL(src_ptr); + dst_ptr[2] = B_VAL(src_ptr); + src_ptr++; + dst_ptr+=3; + } + src_ptr += src_jump; + dst_ptr += (dst_jump * 3); + } + return; + pal = 0; + dith_x = 0; + dith_y = 0; +} #endif #ifdef BUILD_CONVERT_24_BGR_888 -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_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) +{ +} #endif ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs