2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
9 # include "config.h" /* so that EAPI in Evas.h is correctly defined */
15 /* macros needed to log message through eina_log */
16 extern EAPI int _evas_log_dom_global;
17 #ifdef _EVAS_DEFAULT_LOG_DOM
18 # undef _EVAS_DEFAULT_LOG_DOM
20 #define _EVAS_DEFAULT_LOG_DOM _evas_log_dom_global
22 #ifdef EVAS_DEFAULT_LOG_COLOR
23 # undef EVAS_DEFAULT_LOG_COLOR
25 #define EVAS_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
30 #define ERR(...) EINA_LOG_DOM_ERR(_EVAS_DEFAULT_LOG_DOM, __VA_ARGS__)
35 #define DBG(...) EINA_LOG_DOM_DBG(_EVAS_DEFAULT_LOG_DOM, __VA_ARGS__)
40 #define INF(...) EINA_LOG_DOM_INFO(_EVAS_DEFAULT_LOG_DOM, __VA_ARGS__)
45 #define WRN(...) EINA_LOG_DOM_WARN(_EVAS_DEFAULT_LOG_DOM, __VA_ARGS__)
50 #define CRIT(...) EINA_LOG_DOM_CRIT(_EVAS_DEFAULT_LOG_DOM, __VA_ARGS__)
52 /*****************************************************************************/
54 #include "evas_options.h"
56 #if defined(__ARM_ARCH_3M__)
57 # define __ARM_ARCH__ 40
59 #if defined(__ARM_ARCH_4__)
60 # define __ARM_ARCH__ 40
62 #if defined(__ARM_ARCH_4T__)
63 # define __ARM_ARCH__ 41
66 #if defined(__ARM_ARCH_5__)
67 # define __ARM_ARCH__ 50
69 #if defined(__ARM_ARCH_5T__)
70 # define __ARM_ARCH__ 51
72 #if defined(__ARM_ARCH_5E__)
73 # define __ARM_ARCH__ 52
75 #if defined(__ARM_ARCH_5TE__)
76 # define __ARM_ARCH__ 53
78 #if defined(__ARM_ARCH_5TEJ__)
79 # define __ARM_ARCH__ 54
82 #if defined(__ARM_ARCH_6__)
83 # define __ARM_ARCH__ 60
85 #if defined(__ARM_ARCH_6J__)
86 # define __ARM_ARCH__ 61
88 #if defined(__ARM_ARCH_6K__)
89 # define __ARM_ARCH__ 62
91 #if defined(__ARM_ARCH_6Z__)
92 # define __ARM_ARCH__ 63
94 #if defined(__ARM_ARCH_6ZK__)
95 # define __ARM_ARCH__ 64
97 #if defined(__ARM_ARCH_6T2__)
98 # define __ARM_ARCH__ 65
101 #if defined(__ARM_ARCH_7__)
102 # define __ARM_ARCH__ 70
104 #if defined(__ARM_ARCH_7A__)
105 # define __ARM_ARCH__ 71
107 #if defined(__ARM_ARCH_7R__)
108 # define __ARM_ARCH__ 72
110 #if defined(__ARM_ARCH_7M__)
111 # define __ARM_ARCH__ 73
118 #ifndef BUILD_PTHREAD
119 # undef BUILD_PIPE_RENDER
128 # include <pthread.h>
130 # define LK(x) pthread_mutex_t x
131 # define LKI(x) pthread_mutex_init(&(x), NULL);
132 # define LKD(x) pthread_mutex_destroy(&(x));
133 # define LKL(x) pthread_mutex_lock(&(x));
134 # define LKT(x) pthread_mutex_trylock(&(x));
135 # define LKU(x) pthread_mutex_unlock(&(x));
136 # define TH(x) pthread_t x
137 # define THI(x) int x
140 // even though in theory having every Nth rendered line done by a different
141 // thread might even out load across threads - it actually slows things down.
158 #elif defined __GNUC__
159 # define alloca __builtin_alloca
161 # define alloca __alloca
162 #elif defined _MSC_VER
164 # define alloca _alloca
170 void *alloca (size_t);
176 #include <sys/types.h>
177 #include <sys/stat.h>
185 #include <ft2build.h>
186 #include FT_FREETYPE_H
193 // BROKEN in gcc 4 on amd64
194 //# pragma GCC visibility push(hidden)
196 #define LIKELY(x) __builtin_expect(!!(x), 1)
197 #define UNLIKELY(x) __builtin_expect(!!(x), 0)
199 #define LIKELY(x) (x)
200 #define UNLIKELY(x) (x)
203 /*****************************************************************************/
205 /* use exact rects for updates not tiles */
206 /* #define RECTUPDATE */
208 #define IMG_MAX_SIZE 65000
210 #define IMG_TOO_BIG(w, h) \
211 ((((unsigned long long)w) * ((unsigned long long)h)) >= \
212 ((1ULL << (29 * (sizeof(void *) / 4))) - 2048))
214 #ifdef BUILD_SMALL_DITHER_MASK
215 # define DM_TABLE _evas_dither_44
219 # define USE_DITHER_44 1
220 # define DM_MSK (DM_SIZE - 1)
221 # define DM_SHF(_b) (DM_BITS - (8 - _b))
223 # define DM_TABLE _evas_dither_128128
227 # define USE_DITHER_128128 1
228 # define DM_MSK (DM_SIZE - 1)
229 # define DM_SHF(_b) (DM_BITS - (8 - _b))
232 /* if more than 1/ALPHA_SPARSE_INV_FRACTION is "alpha" (1-254) then sparse
233 * alpha flag gets set */
234 #define ALPHA_SPARSE_INV_FRACTION 3
236 /*****************************************************************************/
238 #if defined(__ARM_ARCH_3M__)
239 # define __ARM_ARCH__ 40
241 #if defined(__ARM_ARCH_4__)
242 # define __ARM_ARCH__ 40
244 #if defined(__ARM_ARCH_4T__)
245 # define __ARM_ARCH__ 41
248 #if defined(__ARM_ARCH_5__)
249 # define __ARM_ARCH__ 50
251 #if defined(__ARM_ARCH_5T__)
252 # define __ARM_ARCH__ 51
254 #if defined(__ARM_ARCH_5E__)
255 # define __ARM_ARCH__ 52
257 #if defined(__ARM_ARCH_5TE__)
258 # define __ARM_ARCH__ 53
260 #if defined(__ARM_ARCH_5TEJ__)
261 # define __ARM_ARCH__ 54
264 #if defined(__ARM_ARCH_6__)
265 # define __ARM_ARCH__ 60
267 #if defined(__ARM_ARCH_6J__)
268 # define __ARM_ARCH__ 61
270 #if defined(__ARM_ARCH_6K__)
271 # define __ARM_ARCH__ 62
273 #if defined(__ARM_ARCH_6Z__)
274 # define __ARM_ARCH__ 63
276 #if defined(__ARM_ARCH_6ZK__)
277 # define __ARM_ARCH__ 64
279 #if defined(__ARM_ARCH_6T2__)
280 # define __ARM_ARCH__ 65
283 #if defined(__ARM_ARCH_7__)
284 # define __ARM_ARCH__ 70
286 #if defined(__ARM_ARCH_7A__)
287 # define __ARM_ARCH__ 71
289 #if defined(__ARM_ARCH_7R__)
290 # define __ARM_ARCH__ 72
292 #if defined(__ARM_ARCH_7M__)
293 # define __ARM_ARCH__ 73
296 #if defined(__ARM_ARCH__) && (__ARM_ARCH__ >= 52)
297 /* tested on ARMv6 (arm1136j-s), Nokia N800 CPU */
298 #define pld(addr, off) \
299 __asm__("pld [%[address], %[offset]]":: \
300 [address] "r" (addr), [offset] "i" (off))
302 #define pld(addr, off)
303 #endif /* __ARMEL__ */
305 /*****************************************************************************/
307 #define UNROLL2(op...) op op
308 #define UNROLL4(op...) UNROLL2(op) UNROLL2(op)
309 #define UNROLL8(op...) UNROLL4(op) UNROLL4(op)
310 #define UNROLL16(op...) UNROLL8(op) UNROLL8(op)
312 #define UNROLL8_PLD_WHILE(start, size, end, op) \
314 end = start + (size & ~7); \
315 while (start < end) \
322 while (start < end) \
327 /*****************************************************************************/
329 typedef unsigned long long DATA64;
330 typedef unsigned int DATA32;
331 typedef unsigned short DATA16;
332 typedef unsigned char DATA8;
334 typedef struct _Image_Entry Image_Entry;
335 typedef struct _Image_Entry_Flags Image_Entry_Flags;
336 typedef struct _Engine_Image_Entry Engine_Image_Entry;
337 typedef struct _Evas_Cache_Target Evas_Cache_Target;
339 typedef struct _RGBA_Image_Loadopts RGBA_Image_Loadopts;
340 #ifdef BUILD_PIPE_RENDER
341 typedef struct _RGBA_Pipe_Op RGBA_Pipe_Op;
342 typedef struct _RGBA_Pipe RGBA_Pipe;
343 typedef struct _RGBA_Pipe_Thread_Info RGBA_Pipe_Thread_Info;
345 typedef struct _RGBA_Image RGBA_Image;
346 typedef struct _RGBA_Image_Span RGBA_Image_Span;
347 typedef struct _RGBA_Draw_Context RGBA_Draw_Context;
348 typedef struct _RGBA_Gradient RGBA_Gradient;
349 typedef struct _RGBA_Gradient_Color_Stop RGBA_Gradient_Color_Stop;
350 typedef struct _RGBA_Gradient_Alpha_Stop RGBA_Gradient_Alpha_Stop;
351 typedef struct _RGBA_Gradient_Type RGBA_Gradient_Type;
352 typedef struct _RGBA_Gradient2 RGBA_Gradient2;
353 typedef struct _RGBA_Gradient2_Type RGBA_Gradient2_Type;
354 typedef struct _RGBA_Gradient2_Color_Np_Stop RGBA_Gradient2_Color_Np_Stop;
355 typedef struct _RGBA_Polygon_Point RGBA_Polygon_Point;
356 typedef struct _RGBA_Font RGBA_Font;
357 typedef struct _RGBA_Font_Int RGBA_Font_Int;
358 typedef struct _RGBA_Font_Source RGBA_Font_Source;
359 typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph;
360 typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor;
362 typedef struct _Cutout_Rect Cutout_Rect;
363 typedef struct _Cutout_Rects Cutout_Rects;
365 typedef struct _Convert_Pal Convert_Pal;
367 typedef struct _Tilebuf Tilebuf;
368 typedef struct _Tilebuf_Tile Tilebuf_Tile;
369 typedef struct _Tilebuf_Rect Tilebuf_Rect;
371 typedef struct _Evas_Common_Transform Evas_Common_Transform;
374 typedef struct _Regionbuf Regionbuf;
375 typedef struct _Regionspan Regionspan;
378 typedef void (*RGBA_Gfx_Func) (DATA32 *src, DATA8 *mask, DATA32 col, DATA32 *dst, int len);
379 typedef void (*RGBA_Gfx_Pt_Func) (DATA32 src, DATA8 mask, DATA32 col, DATA32 *dst);
380 typedef void (*Gfx_Func_Copy) (DATA32 *src, DATA32 *dst, int len);
382 typedef void (*Gfx_Func_Convert) (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal);
384 typedef void (*Gfx_Func_Gradient_Fill)(DATA32 *src, int src_len,
385 DATA32 *dst, DATA8 *mask, int len,
386 int x, int y, int axx, int axy, int ayx, int ayy,
389 typedef void (*Gfx_Func_Gradient2_Fill)(DATA32 *src, int src_len,
390 DATA32 *dst, DATA8 *mask, int len,
394 #include "../cache/evas_cache.h"
396 /*****************************************************************************/
398 typedef enum _RGBA_Image_Flags
400 RGBA_IMAGE_NOTHING = (0),
401 /* RGBA_IMAGE_HAS_ALPHA = (1 << 0), */
402 RGBA_IMAGE_IS_DIRTY = (1 << 1),
403 RGBA_IMAGE_INDEXED = (1 << 2),
404 RGBA_IMAGE_ALPHA_ONLY = (1 << 3),
405 RGBA_IMAGE_ALPHA_TILES = (1 << 4),
406 /* RGBA_IMAGE_ALPHA_SPARSE = (1 << 5), */
407 /* RGBA_IMAGE_LOADED = (1 << 6), */
408 /* RGBA_IMAGE_NEED_DATA = (1 << 7) */
411 typedef enum _Convert_Pal_Mode
429 typedef enum _CPU_Features
432 CPU_FEATURE_MMX = (1 << 0),
433 CPU_FEATURE_MMX2 = (1 << 1),
434 CPU_FEATURE_SSE = (1 << 2),
435 CPU_FEATURE_ALTIVEC = (1 << 3),
436 CPU_FEATURE_VIS = (1 << 4),
437 CPU_FEATURE_VIS2 = (1 << 5),
438 CPU_FEATURE_NEON = (1 << 6)
441 typedef enum _Font_Hint_Flags
448 /*****************************************************************************/
450 struct _RGBA_Image_Loadopts
452 int scale_down_by; // if > 1 then use this
453 double dpi; // if > 0.0 use this
454 int w, h; // if > 0 use this
460 struct _Image_Entry_Flags
462 Eina_Bool loaded : 1;
465 Eina_Bool need_data : 1;
466 Eina_Bool lru_nodata : 1;
467 Eina_Bool cached : 1;
469 Eina_Bool alpha_sparse : 1;
470 #ifdef BUILD_ASYNC_PRELOAD
471 Eina_Bool preload : 1;
472 Eina_Bool pending : 1;
473 Eina_Bool in_pipe : 1;
477 struct _Evas_Cache_Target
487 Evas_Cache_Image *cache;
489 const char *cache_key;
494 Evas_Cache_Target *targets;
503 RGBA_Image_Loadopts load_opts;
520 #ifdef BUILD_ASYNC_PRELOAD
524 Image_Entry_Flags flags;
525 Evas_Image_Scale_Hint scale_hint;
532 struct _Engine_Image_Entry
536 /* Upper Engine data. */
540 Evas_Cache_Engine_Image *cache;
541 const char *cache_key;
545 Eina_Bool cached : 1;
548 Eina_Bool loaded : 1;
549 Eina_Bool need_parent : 1;
569 struct _Evas_Common_Transform
576 struct _RGBA_Draw_Context
585 struct RGBA_Draw_Context_clip {
592 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg);
593 void (*gl_free) (void *ext_dat);
594 void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y);
605 Eina_Bool anti_alias : 1;
608 #ifdef BUILD_PIPE_RENDER
611 RGBA_Draw_Context context;
612 void (*op_func) (RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Thread_Info *info);
613 void (*free_func) (RGBA_Pipe_Op *op);
623 RGBA_Polygon_Point *points;
630 RGBA_Gradient2 *grad;
640 int sx, sy, sw, sh, dx, dy, dw, dh;
653 RGBA_Pipe_Op op[PIPE_LEN];
656 struct _RGBA_Pipe_Thread_Info
665 Image_Entry cache_entry;
667 RGBA_Image_Flags flags;
672 /* char *real_file; */
678 #ifdef BUILD_PIPE_RENDER
683 /* unsigned char scale; */
685 /* Colorspace stuff. */
688 Eina_Bool no_free : 1;
695 Eina_Bool no_free : 1;
701 unsigned long long orig_usage;
702 unsigned long long usage_count;
704 unsigned long long newest_usage;
705 unsigned long long newest_usage_count;
709 struct _RGBA_Gradient_Color_Stop
716 struct _RGBA_Gradient_Alpha_Stop
723 struct _RGBA_Gradient
732 Eina_Bool has_alpha : 1;
758 RGBA_Gradient_Type *geometer;
764 Eina_Bool imported_data : 1;
765 Eina_Bool has_alpha : 1;
768 struct _RGBA_Gradient_Type
772 void (*shutdown)(void);
773 void (*geom_init)(RGBA_Gradient *gr);
774 void (*geom_set)(RGBA_Gradient *gr);
775 void (*geom_free)(void *gdata);
776 int (*has_alpha)(RGBA_Gradient *gr, int render_op);
777 int (*has_mask)(RGBA_Gradient *gr, int render_op);
778 int (*get_map_len)(RGBA_Gradient *gr);
779 Gfx_Func_Gradient_Fill (*get_fill_func)(RGBA_Gradient *gr, int render_op, unsigned char aa);
782 struct _RGBA_Gradient2_Color_Np_Stop
790 struct _RGBA_Gradient2
796 Eina_Bool has_alpha : 1;
809 Evas_Common_Transform transform;
815 RGBA_Gradient2_Type *geometer;
821 Eina_Bool has_alpha : 1;
824 struct _RGBA_Gradient2_Type
828 void (*shutdown)(void);
829 void (*geom_init)(RGBA_Gradient2 *gr);
830 void (*geom_update)(RGBA_Gradient2 *gr);
831 void (*geom_free)(void *gdata);
832 int (*has_alpha)(RGBA_Gradient2 *gr, int render_op);
833 int (*has_mask)(RGBA_Gradient2 *gr, int render_op);
834 int (*get_map_len)(RGBA_Gradient2 *gr);
835 Gfx_Func_Gradient2_Fill (*get_fill_func)(RGBA_Gradient2 *gr, int render_op);
839 struct _RGBA_Polygon_Point
848 Font_Hint_Flags hinting;
853 struct _RGBA_Font_Int
855 RGBA_Font_Source *src;
873 Font_Hint_Flags hinting;
879 struct _RGBA_Font_Source
887 #if 0 /* FIXME: charmap user is disabled and use a deprecated data type. */
888 Evas_Array_Hash *charmap;
899 struct _RGBA_Font_Glyph
903 FT_BitmapGlyph glyph_out;
904 /* this is a problem - only 1 engine at a time can extend such a font... grrr */
906 void (*ext_dat_free) (void *ext_dat);
910 struct _RGBA_Gfx_Compositor
915 void (*shutdown)(void);
917 RGBA_Gfx_Func (*composite_pixel_span_get)(RGBA_Image *src, RGBA_Image *dst, int pixels);
918 RGBA_Gfx_Func (*composite_color_span_get)(DATA32 col, RGBA_Image *dst, int pixels);
919 RGBA_Gfx_Func (*composite_pixel_color_span_get)(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels);
920 RGBA_Gfx_Func (*composite_mask_color_span_get)(DATA32 col, RGBA_Image *dst, int pixels);
921 RGBA_Gfx_Func (*composite_pixel_mask_span_get)(RGBA_Image *src, RGBA_Image *dst, int pixels);
923 RGBA_Gfx_Pt_Func (*composite_pixel_pt_get)(Image_Entry_Flags src_flags, RGBA_Image *dst);
924 RGBA_Gfx_Pt_Func (*composite_color_pt_get)(DATA32 col, RGBA_Image *dst);
925 RGBA_Gfx_Pt_Func (*composite_pixel_color_pt_get)(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst);
926 RGBA_Gfx_Pt_Func (*composite_mask_color_pt_get)(DATA32 col, RGBA_Image *dst);
927 RGBA_Gfx_Pt_Func (*composite_pixel_mask_pt_get)(Image_Entry_Flags src_flags, RGBA_Image *dst);
930 #define EVAS_RECT_SPLIT 1
931 #ifdef EVAS_RECT_SPLIT
932 typedef struct list_node list_node_t;
933 typedef struct list list_t;
934 typedef struct rect rect_t;
935 typedef struct rect_node rect_node_t;
939 struct list_node *next;
944 struct list_node *head;
945 struct list_node *tail;
961 struct list_node _lst;
965 void rect_list_node_pool_set_max(int max);
966 void rect_list_node_pool_flush(void);
967 list_node_t *rect_list_node_pool_get(void);
968 void rect_list_node_pool_put(list_node_t *node);
970 void rect_init(rect_t *r, int x, int y, int w, int h);
971 void rect_list_append_node(list_t *rects, list_node_t *node);
972 void rect_list_append(list_t *rects, const rect_t r);
973 void rect_list_append_xywh(list_t *rects, int x, int y, int w, int h);
974 void rect_list_concat(list_t *rects, list_t *other);
975 list_node_t *rect_list_unlink_next(list_t *rects, list_node_t *parent_node);
976 void rect_list_del_next(list_t *rects, list_node_t *parent_node);
977 void rect_list_clear(list_t *rects);
978 void rect_list_del_split_strict(list_t *rects, const rect_t del_r);
979 void rect_list_add_split_strict(list_t *rects, list_node_t *node);
980 list_node_t *rect_list_add_split_fuzzy(list_t *rects, list_node_t *node, int accepted_error);
981 void rect_list_merge_rects(list_t *rects, list_t *to_merge, int accepted_error);void rect_list_add_split_fuzzy_and_merge(list_t *rects, list_node_t *node, int split_accepted_error, int merge_accepted_error);
983 void rect_print(const rect_t r);
984 void rect_list_print(const list_t rects);
985 #endif /* EVAS_RECT_SPLIT */
998 #elif defined(EVAS_RECT_SPLIT)
1004 Tilebuf_Tile *tiles;
1009 struct _Tilebuf_Tile
1011 Eina_Bool redraw : 1;
1012 /* FIXME: need these flags later - but not now */
1024 struct _Tilebuf_Rect
1047 Convert_Pal_Mode colors;
1054 /*****************************************************************************/
1055 #include "evas_macros.h"
1057 #ifndef WORDS_BIGENDIAN
1059 #define A_VAL(p) ((DATA8 *)(p))[3]
1060 #define R_VAL(p) ((DATA8 *)(p))[2]
1061 #define G_VAL(p) ((DATA8 *)(p))[1]
1062 #define B_VAL(p) ((DATA8 *)(p))[0]
1063 #define AR_VAL(p) ((DATA16 *)(p)[1])
1064 #define GB_VAL(p) ((DATA16 *)(p)[0])
1067 #define A_VAL(p) ((DATA8 *)(p))[0]
1068 #define R_VAL(p) ((DATA8 *)(p))[1]
1069 #define G_VAL(p) ((DATA8 *)(p))[2]
1070 #define B_VAL(p) ((DATA8 *)(p))[3]
1071 #define AR_VAL(p) ((DATA16 *)(p)[0])
1072 #define GB_VAL(p) ((DATA16 *)(p)[1])
1075 #define RGB_JOIN(r,g,b) \
1076 (((r) << 16) + ((g) << 8) + (b))
1078 #define ARGB_JOIN(a,r,g,b) \
1079 (((a) << 24) + ((r) << 16) + ((g) << 8) + (b))
1081 #include "evas_blend_ops.h"
1083 #define _EVAS_RENDER_FILL -1
1084 #define _EVAS_RENDER_BLEND 0
1085 #define _EVAS_RENDER_BLEND_REL 1
1086 #define _EVAS_RENDER_COPY 2
1087 #define _EVAS_RENDER_COPY_REL 3
1088 #define _EVAS_RENDER_ADD 4
1089 #define _EVAS_RENDER_ADD_REL 5
1090 #define _EVAS_RENDER_SUB 6
1091 #define _EVAS_RENDER_SUB_REL 7
1092 #define _EVAS_RENDER_TINT 8
1093 #define _EVAS_RENDER_TINT_REL 9
1094 #define _EVAS_RENDER_MASK 10
1095 #define _EVAS_RENDER_MUL 11
1096 #define _EVAS_RENDER_CLIP 12
1098 #define _EVAS_TEXTURE_REFLECT 0
1099 #define _EVAS_TEXTURE_REPEAT 1
1100 #define _EVAS_TEXTURE_RESTRICT 2
1101 #define _EVAS_TEXTURE_RESTRICT_REFLECT 3
1102 #define _EVAS_TEXTURE_RESTRICT_REPEAT 4
1103 #define _EVAS_TEXTURE_PAD 5
1105 #define _EVAS_COLOR_SPACE_ARGB 0
1106 #define _EVAS_COLOR_SPACE_AHSV 1
1108 /*****************************************************************************/
1115 void evas_common_init (void);
1116 void evas_common_shutdown (void);
1118 EAPI void evas_common_cpu_init (void);
1120 int evas_common_cpu_have_cpuid (void);
1121 int evas_common_cpu_has_feature (unsigned int feature);
1122 EAPI void evas_common_cpu_can_do (int *mmx, int *sse, int *sse2);
1123 EAPI void evas_common_cpu_end_opt (void);
1126 #include "../engines/common/evas_blend.h"
1128 EAPI Gfx_Func_Copy evas_common_draw_func_copy_get (int pixels, int reverse);
1131 #include "../engines/common/evas_convert_color.h"
1132 #include "../engines/common/evas_convert_colorspace.h"
1133 #include "../engines/common/evas_convert_main.h"
1134 #include "../engines/common/evas_convert_yuv.h"
1135 #include "../engines/common/evas_scale_main.h"
1136 #include "../engines/common/evas_scale_smooth.h"
1137 #include "../engines/common/evas_scale_span.h"
1140 #include "../engines/common/evas_image.h"
1143 #include "../engines/common/evas_line.h"
1144 #include "../engines/common/evas_polygon.h"
1145 #include "../engines/common/evas_rectangle.h"
1148 EAPI void evas_common_blit_init (void);
1150 EAPI void evas_common_blit_rectangle (const RGBA_Image *src, RGBA_Image *dst, int src_x, int src_y, int w, int h, int dst_x, int dst_y);
1153 #include "../engines/common/evas_gradient.h"
1154 #include "../engines/common/evas_font.h"
1157 EAPI void evas_common_tilebuf_init (void);
1159 EAPI Tilebuf *evas_common_tilebuf_new (int w, int h);
1160 EAPI void evas_common_tilebuf_free (Tilebuf *tb);
1161 EAPI void evas_common_tilebuf_set_tile_size (Tilebuf *tb, int tw, int th);
1162 EAPI void evas_common_tilebuf_get_tile_size (Tilebuf *tb, int *tw, int *th);
1163 EAPI int evas_common_tilebuf_add_redraw (Tilebuf *tb, int x, int y, int w, int h);
1164 EAPI int evas_common_tilebuf_del_redraw (Tilebuf *tb, int x, int y, int w, int h);
1165 EAPI int evas_common_tilebuf_add_motion_vector (Tilebuf *tb, int x, int y, int w, int h, int dx, int dy, int alpha);
1166 EAPI void evas_common_tilebuf_clear (Tilebuf *tb);
1167 EAPI Tilebuf_Rect *evas_common_tilebuf_get_render_rects (Tilebuf *tb);
1168 EAPI void evas_common_tilebuf_free_render_rects (Tilebuf_Rect *rects);
1171 Regionbuf *evas_common_regionbuf_new (int w, int h);
1172 void evas_common_regionbuf_free (Regionbuf *rb);
1173 void evas_common_regionbuf_clear (Regionbuf *rb);
1174 void evas_common_regionbuf_span_add (Regionbuf *rb, int x1, int x2, int y);
1175 void evas_common_regionbuf_span_del (Regionbuf *rb, int x1, int x2, int y);
1176 Tilebuf_Rect *evas_common_regionbuf_rects_get (Regionbuf *rb);
1180 #include "../engines/common/evas_draw.h"
1182 #include "../engines/common/evas_map_image.h"
1185 #ifdef BUILD_PIPE_RENDER
1186 # include "../engines/common/evas_pipe.h"
1189 void evas_font_dir_cache_free(void);
1193 /*****************************************************************************/
1195 #if defined(__ARM_ARCH__) && (__ARM_ARCH__ >= 70)
1197 # include <arm_neon.h>