From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- .../src/lib/engines/common/evas_op_sub_main_.c | 542 --------------------- 1 file changed, 542 deletions(-) delete mode 100644 libraries/evas/src/lib/engines/common/evas_op_sub_main_.c (limited to 'libraries/evas/src/lib/engines/common/evas_op_sub_main_.c') diff --git a/libraries/evas/src/lib/engines/common/evas_op_sub_main_.c b/libraries/evas/src/lib/engines/common/evas_op_sub_main_.c deleted file mode 100644 index 329c2e4..0000000 --- a/libraries/evas/src/lib/engines/common/evas_op_sub_main_.c +++ /dev/null @@ -1,542 +0,0 @@ -#include "evas_common.h" - -static RGBA_Gfx_Func op_sub_span_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; -static RGBA_Gfx_Pt_Func op_sub_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; - -static void op_sub_init(void); -static void op_sub_shutdown(void); - -static RGBA_Gfx_Func op_sub_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); - -static RGBA_Gfx_Pt_Func op_sub_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_color_pt_get(DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_mask_color_pt_get(DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); - -static RGBA_Gfx_Compositor _composite_sub = { "sub", - op_sub_init, op_sub_shutdown, - op_sub_pixel_span_get, op_sub_color_span_get, - op_sub_pixel_color_span_get, op_sub_mask_color_span_get, - op_sub_pixel_mask_span_get, - op_sub_pixel_pt_get, op_sub_color_pt_get, - op_sub_pixel_color_pt_get, op_sub_mask_color_pt_get, - op_sub_pixel_mask_pt_get - }; - -RGBA_Gfx_Compositor * -evas_common_gfx_compositor_sub_get(void) -{ - return &(_composite_sub); -} - -static RGBA_Gfx_Func op_sub_rel_span_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; -static RGBA_Gfx_Pt_Func op_sub_rel_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; - -static void op_sub_rel_init(void); -static void op_sub_rel_shutdown(void); - -static RGBA_Gfx_Func op_sub_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); -static RGBA_Gfx_Func op_sub_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); - -static RGBA_Gfx_Pt_Func op_sub_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_rel_color_pt_get(DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst); -static RGBA_Gfx_Pt_Func op_sub_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); - -static RGBA_Gfx_Compositor _composite_sub_rel = { "sub_rel", - op_sub_rel_init, op_sub_rel_shutdown, - op_sub_rel_pixel_span_get, op_sub_rel_color_span_get, - op_sub_rel_pixel_color_span_get, op_sub_rel_mask_color_span_get, - op_sub_rel_pixel_mask_span_get, - op_sub_rel_pixel_pt_get, op_sub_rel_color_pt_get, - op_sub_rel_pixel_color_pt_get, op_sub_rel_mask_color_pt_get, - op_sub_rel_pixel_mask_pt_get - }; - -RGBA_Gfx_Compositor * -evas_common_gfx_compositor_sub_rel_get(void) -{ - return &(_composite_sub_rel); -} - - -# include "./evas_op_sub/op_sub_pixel_.c" -# include "./evas_op_sub/op_sub_color_.c" -# include "./evas_op_sub/op_sub_pixel_color_.c" -# include "./evas_op_sub/op_sub_pixel_mask_.c" -# include "./evas_op_sub/op_sub_mask_color_.c" -//# include "./evas_op_sub/op_sub_pixel_mask_color_.c" - -# include "./evas_op_sub/op_sub_pixel_i386.c" -# include "./evas_op_sub/op_sub_color_i386.c" -# include "./evas_op_sub/op_sub_pixel_color_i386.c" -# include "./evas_op_sub/op_sub_pixel_mask_i386.c" -# include "./evas_op_sub/op_sub_mask_color_i386.c" -//# include "./evas_op_sub/op_sub_pixel_mask_color_i386.c" - -static void -op_sub_init(void) -{ - memset(op_sub_span_funcs, 0, sizeof(op_sub_span_funcs)); - memset(op_sub_pt_funcs, 0, sizeof(op_sub_pt_funcs)); -#ifdef BUILD_MMX - init_sub_pixel_span_funcs_mmx(); - init_sub_pixel_color_span_funcs_mmx(); - init_sub_pixel_mask_span_funcs_mmx(); - init_sub_color_span_funcs_mmx(); - init_sub_mask_color_span_funcs_mmx(); - - init_sub_pixel_pt_funcs_mmx(); - init_sub_pixel_color_pt_funcs_mmx(); - init_sub_pixel_mask_pt_funcs_mmx(); - init_sub_color_pt_funcs_mmx(); - init_sub_mask_color_pt_funcs_mmx(); -#endif -#ifdef BUILD_C - init_sub_pixel_span_funcs_c(); - init_sub_pixel_color_span_funcs_c(); - init_sub_rel_pixel_mask_span_funcs_c(); - init_sub_color_span_funcs_c(); - init_sub_mask_color_span_funcs_c(); - - init_sub_pixel_pt_funcs_c(); - init_sub_pixel_color_pt_funcs_c(); - init_sub_rel_pixel_mask_pt_funcs_c(); - init_sub_color_pt_funcs_c(); - init_sub_mask_color_pt_funcs_c(); -#endif -} - -static void -op_sub_shutdown(void) -{ -} - -static RGBA_Gfx_Func -sub_gfx_span_func_cpu(int s, int m, int c, int d) -{ - RGBA_Gfx_Func func = NULL; - int cpu = CPU_N; -#ifdef BUILD_MMX - if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) - { - cpu = CPU_MMX; - func = op_sub_span_funcs[s][m][c][d][cpu]; - if (func) return func; - } -#endif -#ifdef BUILD_C - cpu = CPU_C; - func = op_sub_span_funcs[s][m][c][d][cpu]; - if (func) return func; -#endif - return func; -} - -static RGBA_Gfx_Func -op_sub_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -sub_gfx_pt_func_cpu(int s, int m, int c, int d) -{ - RGBA_Gfx_Pt_Func func = NULL; - int cpu = CPU_N; -#ifdef BUILD_MMX - if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) - { - cpu = CPU_MMX; - func = op_sub_pt_funcs[s][m][c][d][cpu]; - if (func) return func; - } -#endif -#ifdef BUILD_C - cpu = CPU_C; - func = op_sub_pt_funcs[s][m][c][d][cpu]; - if (func) return func; -#endif - return func; -} - -static RGBA_Gfx_Pt_Func -op_sub_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_color_pt_get(DATA32 col, RGBA_Image *dst) -{ - int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_mask_color_pt_get(DATA32 col, RGBA_Image *dst) -{ - int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_gfx_pt_func_cpu(s, m, c, d); -} - - - -static void -op_sub_rel_init(void) -{ - memset(op_sub_rel_span_funcs, 0, sizeof(op_sub_rel_span_funcs)); - memset(op_sub_rel_pt_funcs, 0, sizeof(op_sub_rel_pt_funcs)); -#ifdef BUILD_MMX - init_sub_rel_pixel_span_funcs_mmx(); - init_sub_rel_pixel_color_span_funcs_mmx(); - init_sub_rel_pixel_mask_span_funcs_mmx(); - init_sub_rel_color_span_funcs_mmx(); - init_sub_rel_mask_color_span_funcs_mmx(); - - init_sub_rel_pixel_pt_funcs_mmx(); - init_sub_rel_pixel_color_pt_funcs_mmx(); - init_sub_rel_pixel_mask_pt_funcs_mmx(); - init_sub_rel_color_pt_funcs_mmx(); - init_sub_rel_mask_color_pt_funcs_mmx(); -#endif -#ifdef BUILD_C - init_sub_rel_pixel_span_funcs_c(); - init_sub_rel_pixel_color_span_funcs_c(); - init_sub_rel_pixel_mask_span_funcs_c(); - init_sub_rel_color_span_funcs_c(); - init_sub_rel_mask_color_span_funcs_c(); - - init_sub_rel_pixel_pt_funcs_c(); - init_sub_rel_pixel_color_pt_funcs_c(); - init_sub_rel_pixel_mask_pt_funcs_c(); - init_sub_rel_color_pt_funcs_c(); - init_sub_rel_mask_color_pt_funcs_c(); -#endif -} - -static void -op_sub_rel_shutdown(void) -{ -} - -static RGBA_Gfx_Func -sub_rel_gfx_span_func_cpu(int s, int m, int c, int d) -{ - RGBA_Gfx_Func func = NULL; - int cpu = CPU_N; -#ifdef BUILD_MMX - if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) - { - cpu = CPU_MMX; - func = op_sub_rel_span_funcs[s][m][c][d][cpu]; - if (func) return func; - } -#endif -#ifdef BUILD_C - cpu = CPU_C; - func = op_sub_rel_span_funcs[s][m][c][d][cpu]; - if (func) return func; -#endif - return func; -} - -static RGBA_Gfx_Func -op_sub_rel_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_rel_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_rel_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_rel_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Func -op_sub_rel_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) -{ - int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; - - if (src && src->cache_entry.flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_span_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -sub_rel_gfx_pt_func_cpu(int s, int m, int c, int d) -{ - RGBA_Gfx_Pt_Func func = NULL; - int cpu = CPU_N; -#ifdef BUILD_MMX - if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) - { - cpu = CPU_MMX; - func = op_sub_rel_pt_funcs[s][m][c][d][cpu]; - if (func) return func; - } -#endif -#ifdef BUILD_C - cpu = CPU_C; - func = op_sub_rel_pt_funcs[s][m][c][d][cpu]; - if (func) return func; -#endif - return func; -} - -static RGBA_Gfx_Pt_Func -op_sub_rel_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_rel_color_pt_get(DATA32 col, RGBA_Image *dst) -{ - int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_rel_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_rel_mask_color_pt_get(DATA32 col, RGBA_Image *dst) -{ - int s = SP_N, m = SM_AS, c = SC_AN, d = DP_AN; - - if ((col >> 24) < 255) - c = SC; - if (col == (col | 0x00ffffff)) - c = SC_AA; - if (col == 0xffffffff) - c = SC_N; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_pt_func_cpu(s, m, c, d); -} - -static RGBA_Gfx_Pt_Func -op_sub_rel_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) -{ - int s = SP_AN, m = SM_AS, c = SC_N, d = DP_AN; - - if (src_flags.alpha) - s = SP; - if (dst && dst->cache_entry.flags.alpha) - d = DP; - return sub_rel_gfx_pt_func_cpu(s, m, c, d); -} -- cgit v1.1