RGBA_Gfx_Func evas_common_gfx_func_composite_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels, int op) { RGBA_Gfx_Compositor *comp; RGBA_Gfx_Func func = NULL; if ((src && (!src->cache_entry.flags.alpha)) && ((col & 0xff000000) == 0xff000000)) { if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY; else if (op == _EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL; } comp = evas_gfx_compositor_get(op); if (comp) func = comp->composite_pixel_color_span_get(src, col, dst, pixels); if (func) return func; return _composite_span_nothing; }
RGBA_Gfx_Func evas_common_gfx_func_composite_pixel_color_span_get(Eina_Bool src_alpha, Eina_Bool src_sparse_alpha, DATA32 col, Eina_Bool dst_alpha, int pixels, int op) { RGBA_Gfx_Compositor *comp; RGBA_Gfx_Func func = NULL; if ((!src_alpha) && ((col & 0xff000000) == 0xff000000)) { if (op == _EVAS_RENDER_BLEND) op = _EVAS_RENDER_COPY; else if (op == _EVAS_RENDER_BLEND_REL) op = _EVAS_RENDER_COPY_REL; } comp = evas_gfx_compositor_get(op); if (comp) func = comp->composite_pixel_color_span_get(src_alpha, src_sparse_alpha, col, dst_alpha, pixels); if (func) return func; return _composite_span_nothing; }