oops - this DOESNT actually work - i thought as much! i knew i had my

reasons...


SVN revision: 9387
This commit is contained in:
Carsten Haitzler 2004-03-18 09:06:12 +00:00
parent 0ee90d2918
commit 84d4cac05e
5 changed files with 8 additions and 13 deletions

View File

@ -169,8 +169,7 @@ evas_common_blend_alpha_color_rgba_to_rgba_c (DATA8 *src, DATA32 *dst, int len,
BLEND_COLOR(a, B_VAL(dst_ptr),
B_VAL(&col), B_VAL(dst_ptr),
tmp);
BLEND_COLOR(A_VAL(src),A_VAL(dst),255,A_VAL(dst),tmp);
/* A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);*/
A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);
break;
}
src_ptr++;

View File

@ -105,8 +105,7 @@ evas_common_blend_color_rgba_to_rgba_c(DATA32 src, DATA32 *dst, int len)
BLEND_COLOR(a, B_VAL(dst_ptr),
B_VAL(&src), B_VAL(dst_ptr),
tmp);
BLEND_COLOR(A_VAL(src),A_VAL(dst),255,A_VAL(dst),tmp);
/* A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((A_VAL(&src) * (255 - A_VAL(dst_ptr))) / 255);*/
A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((A_VAL(&src) * (255 - A_VAL(dst_ptr))) / 255);
dst_ptr++;
}

View File

@ -4,7 +4,7 @@
#include "evas_mmx.h"
#endif
static void blend_init__evas_pow_lut(void);
static void evas_blend_init_evas_pow_lut(void);
DATA8 _evas_pow_lut[256][256];
const DATA16 _evas_const_c1[4] = {1, 1, 1, 1};
@ -22,11 +22,11 @@ evas_common_blend_init(void)
evas_common_cpu_can_do(&mmx, &sse, &sse2);
blend_init__evas_pow_lut();
evas_blend_init_evas_pow_lut();
}
void
blend_init__evas_pow_lut(void)
evas_blend_init_evas_pow_lut(void)
{
int i, j;

View File

@ -211,8 +211,7 @@ evas_common_blend_pixels_mul_color_rgba_to_rgba_c(DATA32 *src, DATA32 *dst, int
BLEND_COLOR(a, B_VAL(dst_ptr),
B_VAL(src_ptr), B_VAL(dst_ptr),
tmp);
BLEND_COLOR(A_VAL(src),A_VAL(dst),255,A_VAL(dst),tmp);
/* A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);*/
A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);
break;
}
src_ptr++;
@ -249,8 +248,7 @@ evas_common_blend_pixels_mul_color_rgba_to_rgba_c(DATA32 *src, DATA32 *dst, int
BLEND_COLOR(a, B_VAL(dst_ptr),
((B_VAL(src_ptr) * (B_VAL(&mul_color) + 1)) >> 8), B_VAL(dst_ptr),
tmp);
BLEND_COLOR(A_VAL(src),A_VAL(dst),255,A_VAL(dst),tmp);
/* A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);*/
A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((aa * (255 - A_VAL(dst_ptr))) / 255);
break;
}
src_ptr++;

View File

@ -149,8 +149,7 @@ evas_common_blend_pixels_rgba_to_rgba_c(DATA32 *src, DATA32 *dst, int len)
BLEND_COLOR(a, B_VAL(dst_ptr),
B_VAL(src_ptr), B_VAL(dst_ptr),
tmp);
BLEND_COLOR(A_VAL(src),A_VAL(dst),255,A_VAL(dst),tmp);
/* A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((A_VAL(src_ptr) * (255 - A_VAL(dst_ptr))) / 255);*/
A_VAL(dst_ptr) = A_VAL(dst_ptr) + ((A_VAL(src_ptr) * (255 - A_VAL(dst_ptr))) / 255);
}
src_ptr++;
dst_ptr++;