summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_op_blend_main_.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-11-13 11:27:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-13 12:20:57 +0900
commit05aee3e3706867605d3b1bb84c3a70ccafba0673 (patch)
treecf2ee2630803ac7cadacd2a51c987e65d9d69426 /src/lib/evas/common/evas_op_blend_main_.c
parent35beedd3d7e84723fb5ce7aca7102b594edece66 (diff)
Evas: Don't pass whole RGBA_Image to low-level render functions
Idea originated from Cedric the b0rker. This is a big fat search-and-replace commit. This commit also introduces space changes... Sorry for the mix. NOTE: This commit may have one side effect as there was some very dubious code chaning the dst image's alpha flag in the Gfx get functions. Logically this didn't make sense (at draw time the dst alpha should already be well defined), so it should be safe.
Diffstat (limited to 'src/lib/evas/common/evas_op_blend_main_.c')
-rw-r--r--src/lib/evas/common/evas_op_blend_main_.c156
1 files changed, 78 insertions, 78 deletions
diff --git a/src/lib/evas/common/evas_op_blend_main_.c b/src/lib/evas/common/evas_op_blend_main_.c
index 5c85673463..aff6cdb8b7 100644
--- a/src/lib/evas/common/evas_op_blend_main_.c
+++ b/src/lib/evas/common/evas_op_blend_main_.c
@@ -6,17 +6,17 @@ RGBA_Gfx_Pt_Func op_blend_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST
6static void op_blend_init(void); 6static void op_blend_init(void);
7static void op_blend_shutdown(void); 7static void op_blend_shutdown(void);
8 8
9static RGBA_Gfx_Func op_blend_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 9static RGBA_Gfx_Func op_blend_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels);
10static RGBA_Gfx_Func op_blend_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 10static RGBA_Gfx_Func op_blend_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
11static RGBA_Gfx_Func op_blend_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); 11static RGBA_Gfx_Func op_blend_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, DATA32 col, Eina_Bool dst_alpha, int pixels);
12static RGBA_Gfx_Func op_blend_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 12static RGBA_Gfx_Func op_blend_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
13static RGBA_Gfx_Func op_blend_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 13static RGBA_Gfx_Func op_blend_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels);
14 14
15static RGBA_Gfx_Pt_Func op_blend_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 15static RGBA_Gfx_Pt_Func op_blend_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
16static RGBA_Gfx_Pt_Func op_blend_color_pt_get(DATA32 col, RGBA_Image *dst); 16static RGBA_Gfx_Pt_Func op_blend_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
17static RGBA_Gfx_Pt_Func op_blend_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); 17static RGBA_Gfx_Pt_Func op_blend_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha);
18static RGBA_Gfx_Pt_Func op_blend_mask_color_pt_get(DATA32 col, RGBA_Image *dst); 18static RGBA_Gfx_Pt_Func op_blend_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
19static RGBA_Gfx_Pt_Func op_blend_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 19static RGBA_Gfx_Pt_Func op_blend_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
20 20
21static RGBA_Gfx_Compositor _composite_blend = { "blend", 21static RGBA_Gfx_Compositor _composite_blend = { "blend",
22 op_blend_init, op_blend_shutdown, 22 op_blend_init, op_blend_shutdown,
@@ -41,17 +41,17 @@ RGBA_Gfx_Pt_Func op_blend_rel_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_
41static void op_blend_rel_init(void); 41static void op_blend_rel_init(void);
42static void op_blend_rel_shutdown(void); 42static void op_blend_rel_shutdown(void);
43 43
44static RGBA_Gfx_Func op_blend_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 44static RGBA_Gfx_Func op_blend_rel_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
45static RGBA_Gfx_Func op_blend_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 45static RGBA_Gfx_Func op_blend_rel_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
46static RGBA_Gfx_Func op_blend_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); 46static RGBA_Gfx_Func op_blend_rel_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, DATA32 col, Eina_Bool dst_alpha, int pixels);
47static RGBA_Gfx_Func op_blend_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 47static RGBA_Gfx_Func op_blend_rel_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
48static RGBA_Gfx_Func op_blend_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 48static RGBA_Gfx_Func op_blend_rel_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
49 49
50static RGBA_Gfx_Pt_Func op_blend_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 50static RGBA_Gfx_Pt_Func op_blend_rel_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
51static RGBA_Gfx_Pt_Func op_blend_rel_color_pt_get(DATA32 col, RGBA_Image *dst); 51static RGBA_Gfx_Pt_Func op_blend_rel_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
52static RGBA_Gfx_Pt_Func op_blend_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); 52static RGBA_Gfx_Pt_Func op_blend_rel_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha);
53static RGBA_Gfx_Pt_Func op_blend_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst); 53static RGBA_Gfx_Pt_Func op_blend_rel_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
54static RGBA_Gfx_Pt_Func op_blend_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 54static RGBA_Gfx_Pt_Func op_blend_rel_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
55 55
56static RGBA_Gfx_Compositor _composite_blend_rel = { "blend_rel", 56static RGBA_Gfx_Compositor _composite_blend_rel = { "blend_rel",
57 op_blend_rel_init, op_blend_rel_shutdown, 57 op_blend_rel_init, op_blend_rel_shutdown,
@@ -190,23 +190,23 @@ blend_gfx_span_func_cpu(int s, int m, int c, int d)
190} 190}
191 191
192static RGBA_Gfx_Func 192static RGBA_Gfx_Func
193op_blend_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 193op_blend_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
194{ 194{
195 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 195 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
196 196
197 if (src && src->cache_entry.flags.alpha) 197 if (src_alpha)
198 { 198 {
199 s = SP; 199 s = SP;
200 if (src->cache_entry.flags.alpha_sparse) 200 if (src_sparse_alpha)
201 s = SP_AS; 201 s = SP_AS;
202 } 202 }
203 if (dst && dst->cache_entry.flags.alpha) 203 if (dst_alpha)
204 d = DP; 204 d = DP;
205 return blend_gfx_span_func_cpu(s, m, c, d); 205 return blend_gfx_span_func_cpu(s, m, c, d);
206} 206}
207 207
208static RGBA_Gfx_Func 208static RGBA_Gfx_Func
209op_blend_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 209op_blend_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
210{ 210{
211 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 211 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
212 212
@@ -216,20 +216,20 @@ op_blend_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED)
216 c = SC_AA; 216 c = SC_AA;
217 if (col == 0xffffffff) 217 if (col == 0xffffffff)
218 c = SC_N; 218 c = SC_N;
219 if (dst && dst->cache_entry.flags.alpha) 219 if (dst_alpha)
220 d = DP; 220 d = DP;
221 return blend_gfx_span_func_cpu(s, m, c, d); 221 return blend_gfx_span_func_cpu(s, m, c, d);
222} 222}
223 223
224static RGBA_Gfx_Func 224static RGBA_Gfx_Func
225op_blend_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 225op_blend_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
226{ 226{
227 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 227 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
228 228
229 if (src && src->cache_entry.flags.alpha) 229 if (src_alpha)
230 { 230 {
231 s = SP; 231 s = SP;
232 if (src->cache_entry.flags.alpha_sparse) 232 if (src_sparse_alpha)
233 s = SP_AS; 233 s = SP_AS;
234 } 234 }
235 if ((col >> 24) < 255) 235 if ((col >> 24) < 255)
@@ -238,13 +238,13 @@ op_blend_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int
238 c = SC_AA; 238 c = SC_AA;
239 if (col == 0xffffffff) 239 if (col == 0xffffffff)
240 c = SC_N; 240 c = SC_N;
241 if (dst && dst->cache_entry.flags.alpha) 241 if (dst_alpha)
242 d = DP; 242 d = DP;
243 return blend_gfx_span_func_cpu(s, m, c, d); 243 return blend_gfx_span_func_cpu(s, m, c, d);
244} 244}
245 245
246static RGBA_Gfx_Func 246static RGBA_Gfx_Func
247op_blend_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 247op_blend_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
248{ 248{
249 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 249 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
250 250
@@ -254,23 +254,23 @@ op_blend_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED
254 c = SC_AA; 254 c = SC_AA;
255 if (col == 0xffffffff) 255 if (col == 0xffffffff)
256 c = SC_N; 256 c = SC_N;
257 if (dst && dst->cache_entry.flags.alpha) 257 if (dst_alpha)
258 d = DP; 258 d = DP;
259 return blend_gfx_span_func_cpu(s, m, c, d); 259 return blend_gfx_span_func_cpu(s, m, c, d);
260} 260}
261 261
262static RGBA_Gfx_Func 262static RGBA_Gfx_Func
263op_blend_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 263op_blend_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
264{ 264{
265 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 265 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
266 266
267 if (src && src->cache_entry.flags.alpha) 267 if (src_alpha)
268 { 268 {
269 s = SP; 269 s = SP;
270 if (src->cache_entry.flags.alpha_sparse) 270 if (src_sparse_alpha)
271 s = SP_AS; 271 s = SP_AS;
272 } 272 }
273 if (dst && dst->cache_entry.flags.alpha) 273 if (dst_alpha)
274 d = DP; 274 d = DP;
275 return blend_gfx_span_func_cpu(s, m, c, d); 275 return blend_gfx_span_func_cpu(s, m, c, d);
276} 276}
@@ -312,19 +312,19 @@ blend_gfx_pt_func_cpu(int s, int m, int c, int d)
312} 312}
313 313
314static RGBA_Gfx_Pt_Func 314static RGBA_Gfx_Pt_Func
315op_blend_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 315op_blend_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
316{ 316{
317 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 317 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
318 318
319 if (src_flags.alpha) 319 if (src_alpha)
320 s = SP; 320 s = SP;
321 if (dst && dst->cache_entry.flags.alpha) 321 if (dst_alpha)
322 d = DP; 322 d = DP;
323 return blend_gfx_pt_func_cpu(s, m, c, d); 323 return blend_gfx_pt_func_cpu(s, m, c, d);
324} 324}
325 325
326static RGBA_Gfx_Pt_Func 326static RGBA_Gfx_Pt_Func
327op_blend_color_pt_get(DATA32 col, RGBA_Image *dst) 327op_blend_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
328{ 328{
329 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 329 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
330 330
@@ -334,17 +334,17 @@ op_blend_color_pt_get(DATA32 col, RGBA_Image *dst)
334 c = SC_AA; 334 c = SC_AA;
335 if (col == 0xffffffff) 335 if (col == 0xffffffff)
336 c = SC_N; 336 c = SC_N;
337 if (dst && dst->cache_entry.flags.alpha) 337 if (dst_alpha)
338 d = DP; 338 d = DP;
339 return blend_gfx_pt_func_cpu(s, m, c, d); 339 return blend_gfx_pt_func_cpu(s, m, c, d);
340} 340}
341 341
342static RGBA_Gfx_Pt_Func 342static RGBA_Gfx_Pt_Func
343op_blend_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) 343op_blend_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha)
344{ 344{
345 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 345 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
346 346
347 if (src_flags.alpha) 347 if (src_alpha)
348 s = SP; 348 s = SP;
349 if ((col >> 24) < 255) 349 if ((col >> 24) < 255)
350 c = SC; 350 c = SC;
@@ -352,13 +352,13 @@ op_blend_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image
352 c = SC_AA; 352 c = SC_AA;
353 if (col == 0xffffffff) 353 if (col == 0xffffffff)
354 c = SC_N; 354 c = SC_N;
355 if (dst && dst->cache_entry.flags.alpha) 355 if (dst_alpha)
356 d = DP; 356 d = DP;
357 return blend_gfx_pt_func_cpu(s, m, c, d); 357 return blend_gfx_pt_func_cpu(s, m, c, d);
358} 358}
359 359
360static RGBA_Gfx_Pt_Func 360static RGBA_Gfx_Pt_Func
361op_blend_mask_color_pt_get(DATA32 col, RGBA_Image *dst) 361op_blend_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
362{ 362{
363 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 363 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
364 364
@@ -368,19 +368,19 @@ op_blend_mask_color_pt_get(DATA32 col, RGBA_Image *dst)
368 c = SC_AA; 368 c = SC_AA;
369 if (col == 0xffffffff) 369 if (col == 0xffffffff)
370 c = SC_N; 370 c = SC_N;
371 if (dst && dst->cache_entry.flags.alpha) 371 if (dst_alpha)
372 d = DP; 372 d = DP;
373 return blend_gfx_pt_func_cpu(s, m, c, d); 373 return blend_gfx_pt_func_cpu(s, m, c, d);
374} 374}
375 375
376static RGBA_Gfx_Pt_Func 376static RGBA_Gfx_Pt_Func
377op_blend_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 377op_blend_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
378{ 378{
379 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 379 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
380 380
381 if (src_flags.alpha) 381 if (src_alpha)
382 s = SP; 382 s = SP;
383 if (dst && dst->cache_entry.flags.alpha) 383 if (dst_alpha)
384 d = DP; 384 d = DP;
385 return blend_gfx_pt_func_cpu(s, m, c, d); 385 return blend_gfx_pt_func_cpu(s, m, c, d);
386} 386}
@@ -475,23 +475,23 @@ blend_rel_gfx_span_func_cpu(int s, int m, int c, int d)
475} 475}
476 476
477static RGBA_Gfx_Func 477static RGBA_Gfx_Func
478op_blend_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 478op_blend_rel_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
479{ 479{
480 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 480 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
481 481
482 if (src && src->cache_entry.flags.alpha) 482 if (src_alpha)
483 { 483 {
484 s = SP; 484 s = SP;
485 if (src->cache_entry.flags.alpha_sparse) 485 if (src_sparse_alpha)
486 s = SP_AS; 486 s = SP_AS;
487 } 487 }
488 if (dst && dst->cache_entry.flags.alpha) 488 if (dst_alpha)
489 d = DP; 489 d = DP;
490 return blend_rel_gfx_span_func_cpu(s, m, c, d); 490 return blend_rel_gfx_span_func_cpu(s, m, c, d);
491} 491}
492 492
493static RGBA_Gfx_Func 493static RGBA_Gfx_Func
494op_blend_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 494op_blend_rel_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
495{ 495{
496 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 496 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
497 497
@@ -501,17 +501,17 @@ op_blend_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED)
501 c = SC_AA; 501 c = SC_AA;
502 if (col == 0xffffffff) 502 if (col == 0xffffffff)
503 c = SC_N; 503 c = SC_N;
504 if (dst && dst->cache_entry.flags.alpha) 504 if (dst_alpha)
505 d = DP; 505 d = DP;
506 return blend_rel_gfx_span_func_cpu(s, m, c, d); 506 return blend_rel_gfx_span_func_cpu(s, m, c, d);
507} 507}
508 508
509static RGBA_Gfx_Func 509static RGBA_Gfx_Func
510op_blend_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 510op_blend_rel_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
511{ 511{
512 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 512 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
513 513
514 if (src && src->cache_entry.flags.alpha) 514 if (src_alpha)
515 s = SP; 515 s = SP;
516 if ((col >> 24) < 255) 516 if ((col >> 24) < 255)
517 c = SC; 517 c = SC;
@@ -519,13 +519,13 @@ op_blend_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst,
519 c = SC_AA; 519 c = SC_AA;
520 if (col == 0xffffffff) 520 if (col == 0xffffffff)
521 c = SC_N; 521 c = SC_N;
522 if (dst && dst->cache_entry.flags.alpha) 522 if (dst_alpha)
523 d = DP; 523 d = DP;
524 return blend_rel_gfx_span_func_cpu(s, m, c, d); 524 return blend_rel_gfx_span_func_cpu(s, m, c, d);
525} 525}
526 526
527static RGBA_Gfx_Func 527static RGBA_Gfx_Func
528op_blend_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 528op_blend_rel_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
529{ 529{
530 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 530 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
531 531
@@ -535,23 +535,23 @@ op_blend_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UN
535 c = SC_AA; 535 c = SC_AA;
536 if (col == 0xffffffff) 536 if (col == 0xffffffff)
537 c = SC_N; 537 c = SC_N;
538 if (dst && dst->cache_entry.flags.alpha) 538 if (dst_alpha)
539 d = DP; 539 d = DP;
540 return blend_rel_gfx_span_func_cpu(s, m, c, d); 540 return blend_rel_gfx_span_func_cpu(s, m, c, d);
541} 541}
542 542
543static RGBA_Gfx_Func 543static RGBA_Gfx_Func
544op_blend_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 544op_blend_rel_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
545{ 545{
546 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 546 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
547 547
548 if (src && src->cache_entry.flags.alpha) 548 if (src_alpha)
549 { 549 {
550 s = SP; 550 s = SP;
551 if (src->cache_entry.flags.alpha_sparse) 551 if (src_sparse_alpha)
552 s = SP_AS; 552 s = SP_AS;
553 } 553 }
554 if (dst && dst->cache_entry.flags.alpha) 554 if (dst_alpha)
555 d = DP; 555 d = DP;
556 return blend_rel_gfx_span_func_cpu(s, m, c, d); 556 return blend_rel_gfx_span_func_cpu(s, m, c, d);
557} 557}
@@ -592,19 +592,19 @@ blend_rel_gfx_pt_func_cpu(int s, int m, int c, int d)
592} 592}
593 593
594static RGBA_Gfx_Pt_Func 594static RGBA_Gfx_Pt_Func
595op_blend_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 595op_blend_rel_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
596{ 596{
597 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 597 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
598 598
599 if (src_flags.alpha) 599 if (src_alpha)
600 s = SP; 600 s = SP;
601 if (dst && dst->cache_entry.flags.alpha) 601 if (dst_alpha)
602 d = DP; 602 d = DP;
603 return blend_rel_gfx_pt_func_cpu(s, m, c, d); 603 return blend_rel_gfx_pt_func_cpu(s, m, c, d);
604} 604}
605 605
606static RGBA_Gfx_Pt_Func 606static RGBA_Gfx_Pt_Func
607op_blend_rel_color_pt_get(DATA32 col, RGBA_Image *dst) 607op_blend_rel_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
608{ 608{
609 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 609 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
610 610
@@ -614,17 +614,17 @@ op_blend_rel_color_pt_get(DATA32 col, RGBA_Image *dst)
614 c = SC_AA; 614 c = SC_AA;
615 if (col == 0xffffffff) 615 if (col == 0xffffffff)
616 c = SC_N; 616 c = SC_N;
617 if (dst && dst->cache_entry.flags.alpha) 617 if (dst_alpha)
618 d = DP; 618 d = DP;
619 return blend_rel_gfx_pt_func_cpu(s, m, c, d); 619 return blend_rel_gfx_pt_func_cpu(s, m, c, d);
620} 620}
621 621
622static RGBA_Gfx_Pt_Func 622static RGBA_Gfx_Pt_Func
623op_blend_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) 623op_blend_rel_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha)
624{ 624{
625 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 625 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
626 626
627 if (src_flags.alpha) 627 if (src_alpha)
628 s = SP; 628 s = SP;
629 if ((col >> 24) < 255) 629 if ((col >> 24) < 255)
630 c = SC; 630 c = SC;
@@ -632,13 +632,13 @@ op_blend_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Im
632 c = SC_AA; 632 c = SC_AA;
633 if (col == 0xffffffff) 633 if (col == 0xffffffff)
634 c = SC_N; 634 c = SC_N;
635 if (dst && dst->cache_entry.flags.alpha) 635 if (dst_alpha)
636 d = DP; 636 d = DP;
637 return blend_rel_gfx_pt_func_cpu(s, m, c, d); 637 return blend_rel_gfx_pt_func_cpu(s, m, c, d);
638} 638}
639 639
640static RGBA_Gfx_Pt_Func 640static RGBA_Gfx_Pt_Func
641op_blend_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst) 641op_blend_rel_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
642{ 642{
643 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 643 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
644 644
@@ -648,19 +648,19 @@ op_blend_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst)
648 c = SC_AA; 648 c = SC_AA;
649 if (col == 0xffffffff) 649 if (col == 0xffffffff)
650 c = SC_N; 650 c = SC_N;
651 if (dst && dst->cache_entry.flags.alpha) 651 if (dst_alpha)
652 d = DP; 652 d = DP;
653 return blend_rel_gfx_pt_func_cpu(s, m, c, d); 653 return blend_rel_gfx_pt_func_cpu(s, m, c, d);
654} 654}
655 655
656static RGBA_Gfx_Pt_Func 656static RGBA_Gfx_Pt_Func
657op_blend_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 657op_blend_rel_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
658{ 658{
659 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 659 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
660 660
661 if (src_flags.alpha) 661 if (src_alpha)
662 s = SP; 662 s = SP;
663 if (dst && dst->cache_entry.flags.alpha) 663 if (dst_alpha)
664 d = DP; 664 d = DP;
665 return blend_rel_gfx_pt_func_cpu(s, m, c, d); 665 return blend_rel_gfx_pt_func_cpu(s, m, c, d);
666} 666}