summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_op_add_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_add_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_add_main_.c')
-rw-r--r--src/lib/evas/common/evas_op_add_main_.c146
1 files changed, 73 insertions, 73 deletions
diff --git a/src/lib/evas/common/evas_op_add_main_.c b/src/lib/evas/common/evas_op_add_main_.c
index 1a96380af8..19bb88e8cd 100644
--- a/src/lib/evas/common/evas_op_add_main_.c
+++ b/src/lib/evas/common/evas_op_add_main_.c
@@ -5,17 +5,17 @@ static RGBA_Gfx_Pt_Func op_add_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU
5static void op_add_init(void); 5static void op_add_init(void);
6static void op_add_shutdown(void); 6static void op_add_shutdown(void);
7 7
8static RGBA_Gfx_Func op_add_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 8static RGBA_Gfx_Func op_add_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
9static RGBA_Gfx_Func op_add_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 9static RGBA_Gfx_Func op_add_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
10static RGBA_Gfx_Func op_add_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); 10static RGBA_Gfx_Func op_add_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, DATA32 col, Eina_Bool dst_alpha, int pixels);
11static RGBA_Gfx_Func op_add_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 11static RGBA_Gfx_Func op_add_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
12static RGBA_Gfx_Func op_add_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 12static RGBA_Gfx_Func op_add_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
13 13
14static RGBA_Gfx_Pt_Func op_add_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 14static RGBA_Gfx_Pt_Func op_add_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
15static RGBA_Gfx_Pt_Func op_add_color_pt_get(DATA32 col, RGBA_Image *dst); 15static RGBA_Gfx_Pt_Func op_add_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
16static RGBA_Gfx_Pt_Func op_add_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); 16static RGBA_Gfx_Pt_Func op_add_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha);
17static RGBA_Gfx_Pt_Func op_add_mask_color_pt_get(DATA32 col, RGBA_Image *dst); 17static RGBA_Gfx_Pt_Func op_add_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
18static RGBA_Gfx_Pt_Func op_add_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 18static RGBA_Gfx_Pt_Func op_add_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
19 19
20static RGBA_Gfx_Compositor _composite_add = { "add", 20static RGBA_Gfx_Compositor _composite_add = { "add",
21 op_add_init, op_add_shutdown, 21 op_add_init, op_add_shutdown,
@@ -39,17 +39,17 @@ static RGBA_Gfx_Pt_Func op_add_rel_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST]
39static void op_add_rel_init(void); 39static void op_add_rel_init(void);
40static void op_add_rel_shutdown(void); 40static void op_add_rel_shutdown(void);
41 41
42static RGBA_Gfx_Func op_add_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 42static RGBA_Gfx_Func op_add_rel_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
43static RGBA_Gfx_Func op_add_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 43static RGBA_Gfx_Func op_add_rel_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
44static RGBA_Gfx_Func op_add_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); 44static RGBA_Gfx_Func op_add_rel_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, DATA32 col, Eina_Bool dst_alpha, int pixels);
45static RGBA_Gfx_Func op_add_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); 45static RGBA_Gfx_Func op_add_rel_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels);
46static RGBA_Gfx_Func op_add_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); 46static RGBA_Gfx_Func op_add_rel_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, Eina_Bool dst_alpha, int pixels);
47 47
48static RGBA_Gfx_Pt_Func op_add_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 48static RGBA_Gfx_Pt_Func op_add_rel_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
49static RGBA_Gfx_Pt_Func op_add_rel_color_pt_get(DATA32 col, RGBA_Image *dst); 49static RGBA_Gfx_Pt_Func op_add_rel_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
50static RGBA_Gfx_Pt_Func op_add_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); 50static RGBA_Gfx_Pt_Func op_add_rel_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha);
51static RGBA_Gfx_Pt_Func op_add_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst); 51static RGBA_Gfx_Pt_Func op_add_rel_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha);
52static RGBA_Gfx_Pt_Func op_add_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); 52static RGBA_Gfx_Pt_Func op_add_rel_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha);
53 53
54static RGBA_Gfx_Compositor _composite_add_rel = { "add_rel", 54static RGBA_Gfx_Compositor _composite_add_rel = { "add_rel",
55 op_add_rel_init, op_add_rel_shutdown, 55 op_add_rel_init, op_add_rel_shutdown,
@@ -141,19 +141,19 @@ add_gfx_span_func_cpu(int s, int m, int c, int d)
141} 141}
142 142
143static RGBA_Gfx_Func 143static RGBA_Gfx_Func
144op_add_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 144op_add_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
145{ 145{
146 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 146 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
147 147
148 if (src && src->cache_entry.flags.alpha) 148 if (src_alpha)
149 s = SP; 149 s = SP;
150 if (dst && dst->cache_entry.flags.alpha) 150 if (dst_alpha)
151 d = DP; 151 d = DP;
152 return add_gfx_span_func_cpu(s, m, c, d); 152 return add_gfx_span_func_cpu(s, m, c, d);
153} 153}
154 154
155static RGBA_Gfx_Func 155static RGBA_Gfx_Func
156op_add_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 156op_add_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
157{ 157{
158 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 158 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
159 159
@@ -163,17 +163,17 @@ op_add_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED)
163 c = SC_AA; 163 c = SC_AA;
164 if (col == 0xffffffff) 164 if (col == 0xffffffff)
165 c = SC_N; 165 c = SC_N;
166 if (dst && dst->cache_entry.flags.alpha) 166 if (dst_alpha)
167 d = DP; 167 d = DP;
168 return add_gfx_span_func_cpu(s, m, c, d); 168 return add_gfx_span_func_cpu(s, m, c, d);
169} 169}
170 170
171static RGBA_Gfx_Func 171static RGBA_Gfx_Func
172op_add_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 172op_add_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)
173{ 173{
174 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 174 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
175 175
176 if (src && src->cache_entry.flags.alpha) 176 if (src_alpha)
177 s = SP; 177 s = SP;
178 if ((col >> 24) < 255) 178 if ((col >> 24) < 255)
179 c = SC; 179 c = SC;
@@ -181,13 +181,13 @@ op_add_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pi
181 c = SC_AA; 181 c = SC_AA;
182 if (col == 0xffffffff) 182 if (col == 0xffffffff)
183 c = SC_N; 183 c = SC_N;
184 if (dst && dst->cache_entry.flags.alpha) 184 if (dst_alpha)
185 d = DP; 185 d = DP;
186 return add_gfx_span_func_cpu(s, m, c, d); 186 return add_gfx_span_func_cpu(s, m, c, d);
187} 187}
188 188
189static RGBA_Gfx_Func 189static RGBA_Gfx_Func
190op_add_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 190op_add_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
191{ 191{
192 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 192 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
193 193
@@ -197,19 +197,19 @@ op_add_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED)
197 c = SC_AA; 197 c = SC_AA;
198 if (col == 0xffffffff) 198 if (col == 0xffffffff)
199 c = SC_N; 199 c = SC_N;
200 if (dst && dst->cache_entry.flags.alpha) 200 if (dst_alpha)
201 d = DP; 201 d = DP;
202 return add_gfx_span_func_cpu(s, m, c, d); 202 return add_gfx_span_func_cpu(s, m, c, d);
203} 203}
204 204
205static RGBA_Gfx_Func 205static RGBA_Gfx_Func
206op_add_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 206op_add_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
207{ 207{
208 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 208 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
209 209
210 if (src && src->cache_entry.flags.alpha) 210 if (src_alpha)
211 s = SP; 211 s = SP;
212 if (dst && dst->cache_entry.flags.alpha) 212 if (dst_alpha)
213 d = DP; 213 d = DP;
214 return add_gfx_span_func_cpu(s, m, c, d); 214 return add_gfx_span_func_cpu(s, m, c, d);
215} 215}
@@ -234,19 +234,19 @@ add_gfx_pt_func_cpu(int s, int m, int c, int d)
234} 234}
235 235
236static RGBA_Gfx_Pt_Func 236static RGBA_Gfx_Pt_Func
237op_add_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 237op_add_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
238{ 238{
239 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 239 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
240 240
241 if (src_flags.alpha) 241 if (src_alpha)
242 s = SP; 242 s = SP;
243 if (dst && dst->cache_entry.flags.alpha) 243 if (dst_alpha)
244 d = DP; 244 d = DP;
245 return add_gfx_pt_func_cpu(s, m, c, d); 245 return add_gfx_pt_func_cpu(s, m, c, d);
246} 246}
247 247
248static RGBA_Gfx_Pt_Func 248static RGBA_Gfx_Pt_Func
249op_add_color_pt_get(DATA32 col, RGBA_Image *dst) 249op_add_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
250{ 250{
251 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 251 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
252 252
@@ -256,17 +256,17 @@ op_add_color_pt_get(DATA32 col, RGBA_Image *dst)
256 c = SC_AA; 256 c = SC_AA;
257 if (col == 0xffffffff) 257 if (col == 0xffffffff)
258 c = SC_N; 258 c = SC_N;
259 if (dst && dst->cache_entry.flags.alpha) 259 if (dst_alpha)
260 d = DP; 260 d = DP;
261 return add_gfx_pt_func_cpu(s, m, c, d); 261 return add_gfx_pt_func_cpu(s, m, c, d);
262} 262}
263 263
264static RGBA_Gfx_Pt_Func 264static RGBA_Gfx_Pt_Func
265op_add_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) 265op_add_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha)
266{ 266{
267 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 267 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
268 268
269 if (src_flags.alpha) 269 if (src_alpha)
270 s = SP; 270 s = SP;
271 if ((col >> 24) < 255) 271 if ((col >> 24) < 255)
272 c = SC; 272 c = SC;
@@ -274,13 +274,13 @@ op_add_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *d
274 c = SC_AA; 274 c = SC_AA;
275 if (col == 0xffffffff) 275 if (col == 0xffffffff)
276 c = SC_N; 276 c = SC_N;
277 if (dst && dst->cache_entry.flags.alpha) 277 if (dst_alpha)
278 d = DP; 278 d = DP;
279 return add_gfx_pt_func_cpu(s, m, c, d); 279 return add_gfx_pt_func_cpu(s, m, c, d);
280} 280}
281 281
282static RGBA_Gfx_Pt_Func 282static RGBA_Gfx_Pt_Func
283op_add_mask_color_pt_get(DATA32 col, RGBA_Image *dst) 283op_add_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
284{ 284{
285 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 285 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
286 286
@@ -290,19 +290,19 @@ op_add_mask_color_pt_get(DATA32 col, RGBA_Image *dst)
290 c = SC_AA; 290 c = SC_AA;
291 if (col == 0xffffffff) 291 if (col == 0xffffffff)
292 c = SC_N; 292 c = SC_N;
293 if (dst && dst->cache_entry.flags.alpha) 293 if (dst_alpha)
294 d = DP; 294 d = DP;
295 return add_gfx_pt_func_cpu(s, m, c, d); 295 return add_gfx_pt_func_cpu(s, m, c, d);
296} 296}
297 297
298static RGBA_Gfx_Pt_Func 298static RGBA_Gfx_Pt_Func
299op_add_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 299op_add_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
300{ 300{
301 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 301 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
302 302
303 if (src_flags.alpha) 303 if (src_alpha)
304 s = SP; 304 s = SP;
305 if (dst && dst->cache_entry.flags.alpha) 305 if (dst_alpha)
306 d = DP; 306 d = DP;
307 return add_gfx_pt_func_cpu(s, m, c, d); 307 return add_gfx_pt_func_cpu(s, m, c, d);
308} 308}
@@ -365,19 +365,19 @@ add_rel_gfx_span_func_cpu(int s, int m, int c, int d)
365} 365}
366 366
367static RGBA_Gfx_Func 367static RGBA_Gfx_Func
368op_add_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 368op_add_rel_pixel_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
369{ 369{
370 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 370 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
371 371
372 if (src && src->cache_entry.flags.alpha) 372 if (src_alpha)
373 s = SP; 373 s = SP;
374 if (dst && dst->cache_entry.flags.alpha) 374 if (dst_alpha)
375 d = DP; 375 d = DP;
376 return add_rel_gfx_span_func_cpu(s, m, c, d); 376 return add_rel_gfx_span_func_cpu(s, m, c, d);
377} 377}
378 378
379static RGBA_Gfx_Func 379static RGBA_Gfx_Func
380op_add_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 380op_add_rel_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
381{ 381{
382 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 382 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
383 383
@@ -387,17 +387,17 @@ op_add_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED)
387 c = SC_AA; 387 c = SC_AA;
388 if (col == 0xffffffff) 388 if (col == 0xffffffff)
389 c = SC_N; 389 c = SC_N;
390 if (dst && dst->cache_entry.flags.alpha) 390 if (dst_alpha)
391 d = DP; 391 d = DP;
392 return add_rel_gfx_span_func_cpu(s, m, c, d); 392 return add_rel_gfx_span_func_cpu(s, m, c, d);
393} 393}
394 394
395static RGBA_Gfx_Func 395static RGBA_Gfx_Func
396op_add_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 396op_add_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)
397{ 397{
398 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 398 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
399 399
400 if (src && src->cache_entry.flags.alpha) 400 if (src_alpha)
401 s = SP; 401 s = SP;
402 if ((col >> 24) < 255) 402 if ((col >> 24) < 255)
403 c = SC; 403 c = SC;
@@ -405,13 +405,13 @@ op_add_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, in
405 c = SC_AA; 405 c = SC_AA;
406 if (col == 0xffffffff) 406 if (col == 0xffffffff)
407 c = SC_N; 407 c = SC_N;
408 if (dst && dst->cache_entry.flags.alpha) 408 if (dst_alpha)
409 d = DP; 409 d = DP;
410 return add_rel_gfx_span_func_cpu(s, m, c, d); 410 return add_rel_gfx_span_func_cpu(s, m, c, d);
411} 411}
412 412
413static RGBA_Gfx_Func 413static RGBA_Gfx_Func
414op_add_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUSED) 414op_add_rel_mask_color_span_get(DATA32 col, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
415{ 415{
416 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 416 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
417 417
@@ -421,19 +421,19 @@ op_add_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels EINA_UNUS
421 c = SC_AA; 421 c = SC_AA;
422 if (col == 0xffffffff) 422 if (col == 0xffffffff)
423 c = SC_N; 423 c = SC_N;
424 if (dst && dst->cache_entry.flags.alpha) 424 if (dst_alpha)
425 d = DP; 425 d = DP;
426 return add_rel_gfx_span_func_cpu(s, m, c, d); 426 return add_rel_gfx_span_func_cpu(s, m, c, d);
427} 427}
428 428
429static RGBA_Gfx_Func 429static RGBA_Gfx_Func
430op_add_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels EINA_UNUSED) 430op_add_rel_pixel_mask_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha EINA_UNUSED, Eina_Bool dst_alpha, int pixels EINA_UNUSED)
431{ 431{
432 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 432 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
433 433
434 if (src && src->cache_entry.flags.alpha) 434 if (src_alpha)
435 s = SP; 435 s = SP;
436 if (dst && dst->cache_entry.flags.alpha) 436 if (dst_alpha)
437 d = DP; 437 d = DP;
438 return add_rel_gfx_span_func_cpu(s, m, c, d); 438 return add_rel_gfx_span_func_cpu(s, m, c, d);
439} 439}
@@ -458,19 +458,19 @@ add_rel_gfx_pt_func_cpu(int s, int m, int c, int d)
458} 458}
459 459
460static RGBA_Gfx_Pt_Func 460static RGBA_Gfx_Pt_Func
461op_add_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 461op_add_rel_pixel_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
462{ 462{
463 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; 463 int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN;
464 464
465 if (src_flags.alpha) 465 if (src_alpha)
466 s = SP; 466 s = SP;
467 if (dst && dst->cache_entry.flags.alpha) 467 if (dst_alpha)
468 d = DP; 468 d = DP;
469 return add_rel_gfx_pt_func_cpu(s, m, c, d); 469 return add_rel_gfx_pt_func_cpu(s, m, c, d);
470} 470}
471 471
472static RGBA_Gfx_Pt_Func 472static RGBA_Gfx_Pt_Func
473op_add_rel_color_pt_get(DATA32 col, RGBA_Image *dst) 473op_add_rel_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
474{ 474{
475 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; 475 int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN;
476 476
@@ -480,17 +480,17 @@ op_add_rel_color_pt_get(DATA32 col, RGBA_Image *dst)
480 c = SC_AA; 480 c = SC_AA;
481 if (col == 0xffffffff) 481 if (col == 0xffffffff)
482 c = SC_N; 482 c = SC_N;
483 if (dst && dst->cache_entry.flags.alpha) 483 if (dst_alpha)
484 d = DP; 484 d = DP;
485 return add_rel_gfx_pt_func_cpu(s, m, c, d); 485 return add_rel_gfx_pt_func_cpu(s, m, c, d);
486} 486}
487 487
488static RGBA_Gfx_Pt_Func 488static RGBA_Gfx_Pt_Func
489op_add_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) 489op_add_rel_pixel_color_pt_get(Eina_Bool src_alpha, DATA32 col, Eina_Bool dst_alpha)
490{ 490{
491 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; 491 int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN;
492 492
493 if (src_flags.alpha) 493 if (src_alpha)
494 s = SP; 494 s = SP;
495 if ((col >> 24) < 255) 495 if ((col >> 24) < 255)
496 c = SC; 496 c = SC;
@@ -498,13 +498,13 @@ op_add_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Imag
498 c = SC_AA; 498 c = SC_AA;
499 if (col == 0xffffffff) 499 if (col == 0xffffffff)
500 c = SC_N; 500 c = SC_N;
501 if (dst && dst->cache_entry.flags.alpha) 501 if (dst_alpha)
502 d = DP; 502 d = DP;
503 return add_rel_gfx_pt_func_cpu(s, m, c, d); 503 return add_rel_gfx_pt_func_cpu(s, m, c, d);
504} 504}
505 505
506static RGBA_Gfx_Pt_Func 506static RGBA_Gfx_Pt_Func
507op_add_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst) 507op_add_rel_mask_color_pt_get(DATA32 col, Eina_Bool dst_alpha)
508{ 508{
509 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; 509 int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN;
510 510
@@ -514,19 +514,19 @@ op_add_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst)
514 c = SC_AA; 514 c = SC_AA;
515 if (col == 0xffffffff) 515 if (col == 0xffffffff)
516 c = SC_N; 516 c = SC_N;
517 if (dst && dst->cache_entry.flags.alpha) 517 if (dst_alpha)
518 d = DP; 518 d = DP;
519 return add_rel_gfx_pt_func_cpu(s, m, c, d); 519 return add_rel_gfx_pt_func_cpu(s, m, c, d);
520} 520}
521 521
522static RGBA_Gfx_Pt_Func 522static RGBA_Gfx_Pt_Func
523op_add_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) 523op_add_rel_pixel_mask_pt_get(Eina_Bool src_alpha, Eina_Bool dst_alpha)
524{ 524{
525 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; 525 int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN;
526 526
527 if (src_flags.alpha) 527 if (src_alpha)
528 s = SP; 528 s = SP;
529 if (dst && dst->cache_entry.flags.alpha) 529 if (dst_alpha)
530 d = DP; 530 d = DP;
531 return add_rel_gfx_pt_func_cpu(s, m, c, d); 531 return add_rel_gfx_pt_func_cpu(s, m, c, d);
532} 532}