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_MODULE_LOG_DOM
18 # undef _EVAS_DEFAULT_MODULE_LOG_DOM
20 #define _EVAS_DEFAULT_MODULE_LOG_DOM _evas_log_dom_global
22 #ifdef EVAS_DEFAULT_LOG_COLOR
23 # undef EVAS_DEFAULT_LOG_COLOR
25 #define EVAS_DEFAULT_LOG_COLOR "\033[36m"
29 #define ERROR(...) EINA_LOG_DOM_ERR(_evas_log_dom_global, __VA_ARGS__)
33 #define DEBUG(...) EINA_LOG_DOM_DBG(_evas_log_dom_global, __VA_ARGS__)
37 #define INFO(...) EINA_LOG_DOM_INFO(_evas_log_dom_global, __VA_ARGS__)
41 #define WARN(...) EINA_LOG_DOM_WARN(_evas_log_dom_global, __VA_ARGS__)
45 #define CRITICAL(...) EINA_LOG_DOM_CRIT(_evas_log_dom_global, __VA_ARGS__)
47 * macros that are used all around the code for message processing
48 * four macros are defined ERR, WRN, DGB, INF.
49 * EFREET_MODULE_LOG_DOM should be defined individually for each module
55 #define ERR(...) EINA_LOG_DOM_ERR(_EVAS_DEFAULT_MODULE_LOG_DOM, __VA_ARGS__)
59 #define DBG(...) EINA_LOG_DOM_DBG(_EVAS_DEFAULT_MODULE_LOG_DOM, __VA_ARGS__)
63 #define INF(...) EINA_LOG_DOM_INFO(_EVAS_DEFAULT__MODULE_LOG_DOM, __VA_ARGS__)
67 #define WRN(...) EINA_LOG_DOM_WARN(_EVAS_DEFAULT_MODULE_LOG_DOM, __VA_ARGS__)
71 #define CRIT(...) EINA_LOG_DOM_CRIT(_EVAS_DEFAULT_MODULE_LOG_DOM, __VA_ARGS__)
73 /*****************************************************************************/
75 #include "evas_options.h"
77 #if defined(__ARM_ARCH_3M__)
78 # define __ARM_ARCH__ 40
80 #if defined(__ARM_ARCH_4__)
81 # define __ARM_ARCH__ 40
83 #if defined(__ARM_ARCH_4T__)
84 # define __ARM_ARCH__ 41
87 #if defined(__ARM_ARCH_5__)
88 # define __ARM_ARCH__ 50
90 #if defined(__ARM_ARCH_5T__)
91 # define __ARM_ARCH__ 51
93 #if defined(__ARM_ARCH_5E__)
94 # define __ARM_ARCH__ 52
96 #if defined(__ARM_ARCH_5TE__)
97 # define __ARM_ARCH__ 53
99 #if defined(__ARM_ARCH_5TEJ__)
100 # define __ARM_ARCH__ 54
103 #if defined(__ARM_ARCH_6__)
104 # define __ARM_ARCH__ 60
106 #if defined(__ARM_ARCH_6J__)
107 # define __ARM_ARCH__ 61
109 #if defined(__ARM_ARCH_6K__)
110 # define __ARM_ARCH__ 62
112 #if defined(__ARM_ARCH_6Z__)
113 # define __ARM_ARCH__ 63
115 #if defined(__ARM_ARCH_6ZK__)
116 # define __ARM_ARCH__ 64
118 #if defined(__ARM_ARCH_6T2__)
119 # define __ARM_ARCH__ 65
122 #if defined(__ARM_ARCH_7__)
123 # define __ARM_ARCH__ 70
125 #if defined(__ARM_ARCH_7A__)
126 # define __ARM_ARCH__ 71
128 #if defined(__ARM_ARCH_7R__)
129 # define __ARM_ARCH__ 72
131 #if defined(__ARM_ARCH_7M__)
132 # define __ARM_ARCH__ 73
139 #ifndef BUILD_PTHREAD
140 # undef BUILD_PIPE_RENDER
149 # include <pthread.h>
151 # define LK(x) pthread_mutex_t x
152 # define LKI(x) pthread_mutex_init(&(x), NULL);
153 # define LKD(x) pthread_mutex_destroy(&(x));
154 # define LKL(x) pthread_mutex_lock(&(x));
155 # define LKT(x) pthread_mutex_trylock(&(x));
156 # define LKU(x) pthread_mutex_unlock(&(x));
157 # define TH(x) pthread_t x
158 # define THI(x) int x
161 // even though in theory having every Nth rendered line done by a different
162 // thread might even out load across threads - it actually slows things down.
179 #elif defined __GNUC__
180 # define alloca __builtin_alloca
182 # define alloca __alloca
183 #elif defined _MSC_VER
185 # define alloca _alloca
191 void *alloca (size_t);
197 #include <sys/types.h>
198 #include <sys/stat.h>
206 #include <ft2build.h>
207 #include FT_FREETYPE_H
214 // BROKEN in gcc 4 on amd64
215 //# pragma GCC visibility push(hidden)
217 #define LIKELY(x) __builtin_expect(!!(x), 1)
218 #define UNLIKELY(x) __builtin_expect(!!(x), 0)
220 #define LIKELY(x) (x)
221 #define UNLIKELY(x) (x)
224 /*****************************************************************************/
226 /* use exact rects for updates not tiles */
227 /* #define RECTUPDATE */
229 #define IMG_MAX_SIZE 65000
231 #define IMG_TOO_BIG(w, h) \
232 ((((unsigned long long)w) * ((unsigned long long)h)) >= \
233 ((1ULL << (29 * (sizeof(void *) / 4))) - 2048))
235 #ifdef BUILD_SMALL_DITHER_MASK
236 # define DM_TABLE _evas_dither_44
240 # define USE_DITHER_44 1
241 # define DM_MSK (DM_SIZE - 1)
242 # define DM_SHF(_b) (DM_BITS - (8 - _b))
244 # define DM_TABLE _evas_dither_128128
248 # define USE_DITHER_128128 1
249 # define DM_MSK (DM_SIZE - 1)
250 # define DM_SHF(_b) (DM_BITS - (8 - _b))
253 /* if more than 1/ALPHA_SPARSE_INV_FRACTION is "alpha" (1-254) then sparse
254 * alpha flag gets set */
255 #define ALPHA_SPARSE_INV_FRACTION 3
257 /*****************************************************************************/
259 #if defined(__ARM_ARCH_3M__)
260 # define __ARM_ARCH__ 40
262 #if defined(__ARM_ARCH_4__)
263 # define __ARM_ARCH__ 40
265 #if defined(__ARM_ARCH_4T__)
266 # define __ARM_ARCH__ 41
269 #if defined(__ARM_ARCH_5__)
270 # define __ARM_ARCH__ 50
272 #if defined(__ARM_ARCH_5T__)
273 # define __ARM_ARCH__ 51
275 #if defined(__ARM_ARCH_5E__)
276 # define __ARM_ARCH__ 52
278 #if defined(__ARM_ARCH_5TE__)
279 # define __ARM_ARCH__ 53
281 #if defined(__ARM_ARCH_5TEJ__)
282 # define __ARM_ARCH__ 54
285 #if defined(__ARM_ARCH_6__)
286 # define __ARM_ARCH__ 60
288 #if defined(__ARM_ARCH_6J__)
289 # define __ARM_ARCH__ 61
291 #if defined(__ARM_ARCH_6K__)
292 # define __ARM_ARCH__ 62
294 #if defined(__ARM_ARCH_6Z__)
295 # define __ARM_ARCH__ 63
297 #if defined(__ARM_ARCH_6ZK__)
298 # define __ARM_ARCH__ 64
300 #if defined(__ARM_ARCH_6T2__)
301 # define __ARM_ARCH__ 65
304 #if defined(__ARM_ARCH_7__)
305 # define __ARM_ARCH__ 70
307 #if defined(__ARM_ARCH_7A__)
308 # define __ARM_ARCH__ 71
310 #if defined(__ARM_ARCH_7R__)
311 # define __ARM_ARCH__ 72
313 #if defined(__ARM_ARCH_7M__)
314 # define __ARM_ARCH__ 73
317 #if defined(__ARM_ARCH__) && (__ARM_ARCH__ >= 52)
318 /* tested on ARMv6 (arm1136j-s), Nokia N800 CPU */
319 #define pld(addr, off) \
320 __asm__("pld [%[address], %[offset]]":: \
321 [address] "r" (addr), [offset] "i" (off))
323 #define pld(addr, off)
324 #endif /* __ARMEL__ */
326 /*****************************************************************************/
328 #define UNROLL2(op...) op op
329 #define UNROLL4(op...) UNROLL2(op) UNROLL2(op)
330 #define UNROLL8(op...) UNROLL4(op) UNROLL4(op)
331 #define UNROLL16(op...) UNROLL8(op) UNROLL8(op)
333 #define UNROLL8_PLD_WHILE(start, size, end, op) \
335 end = start + (size & ~7); \
336 while (start < end) \
343 while (start < end) \
348 /*****************************************************************************/
350 typedef unsigned long long DATA64;
351 typedef unsigned int DATA32;
352 typedef unsigned short DATA16;
353 typedef unsigned char DATA8;
355 typedef struct _Image_Entry Image_Entry;
356 typedef struct _Image_Entry_Flags Image_Entry_Flags;
357 typedef struct _Engine_Image_Entry Engine_Image_Entry;
358 typedef struct _Evas_Cache_Target Evas_Cache_Target;
360 typedef struct _RGBA_Image_Loadopts RGBA_Image_Loadopts;
361 #ifdef BUILD_PIPE_RENDER
362 typedef struct _RGBA_Pipe_Op RGBA_Pipe_Op;
363 typedef struct _RGBA_Pipe RGBA_Pipe;
364 typedef struct _RGBA_Pipe_Thread_Info RGBA_Pipe_Thread_Info;
366 typedef struct _RGBA_Image RGBA_Image;
367 typedef struct _RGBA_Image_Span RGBA_Image_Span;
368 typedef struct _RGBA_Draw_Context RGBA_Draw_Context;
369 typedef struct _RGBA_Gradient RGBA_Gradient;
370 typedef struct _RGBA_Gradient_Color_Stop RGBA_Gradient_Color_Stop;
371 typedef struct _RGBA_Gradient_Alpha_Stop RGBA_Gradient_Alpha_Stop;
372 typedef struct _RGBA_Gradient_Type RGBA_Gradient_Type;
373 typedef struct _RGBA_Gradient2 RGBA_Gradient2;
374 typedef struct _RGBA_Gradient2_Type RGBA_Gradient2_Type;
375 typedef struct _RGBA_Gradient2_Color_Np_Stop RGBA_Gradient2_Color_Np_Stop;
376 typedef struct _RGBA_Polygon_Point RGBA_Polygon_Point;
377 typedef struct _RGBA_Font RGBA_Font;
378 typedef struct _RGBA_Font_Int RGBA_Font_Int;
379 typedef struct _RGBA_Font_Source RGBA_Font_Source;
380 typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph;
381 typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor;
383 typedef struct _Cutout_Rect Cutout_Rect;
384 typedef struct _Cutout_Rects Cutout_Rects;
386 typedef struct _Convert_Pal Convert_Pal;
388 typedef struct _Tilebuf Tilebuf;
389 typedef struct _Tilebuf_Tile Tilebuf_Tile;
390 typedef struct _Tilebuf_Rect Tilebuf_Rect;
392 typedef struct _Evas_Common_Transform Evas_Common_Transform;
395 typedef struct _Regionbuf Regionbuf;
396 typedef struct _Regionspan Regionspan;
399 typedef void (*RGBA_Gfx_Func) (DATA32 *src, DATA8 *mask, DATA32 col, DATA32 *dst, int len);
400 typedef void (*RGBA_Gfx_Pt_Func) (DATA32 src, DATA8 mask, DATA32 col, DATA32 *dst);
401 typedef void (*Gfx_Func_Copy) (DATA32 *src, DATA32 *dst, int len);
403 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);
405 typedef void (*Gfx_Func_Gradient_Fill)(DATA32 *src, int src_len,
406 DATA32 *dst, DATA8 *mask, int len,
407 int x, int y, int axx, int axy, int ayx, int ayy,
410 typedef void (*Gfx_Func_Gradient2_Fill)(DATA32 *src, int src_len,
411 DATA32 *dst, DATA8 *mask, int len,
415 #include "../cache/evas_cache.h"
417 /*****************************************************************************/
419 typedef enum _RGBA_Image_Flags
421 RGBA_IMAGE_NOTHING = (0),
422 /* RGBA_IMAGE_HAS_ALPHA = (1 << 0), */
423 RGBA_IMAGE_IS_DIRTY = (1 << 1),
424 RGBA_IMAGE_INDEXED = (1 << 2),
425 RGBA_IMAGE_ALPHA_ONLY = (1 << 3),
426 RGBA_IMAGE_ALPHA_TILES = (1 << 4),
427 /* RGBA_IMAGE_ALPHA_SPARSE = (1 << 5), */
428 /* RGBA_IMAGE_LOADED = (1 << 6), */
429 /* RGBA_IMAGE_NEED_DATA = (1 << 7) */
432 typedef enum _Convert_Pal_Mode
450 typedef enum _CPU_Features
453 CPU_FEATURE_MMX = (1 << 0),
454 CPU_FEATURE_MMX2 = (1 << 1),
455 CPU_FEATURE_SSE = (1 << 2),
456 CPU_FEATURE_ALTIVEC = (1 << 3),
457 CPU_FEATURE_VIS = (1 << 4),
458 CPU_FEATURE_VIS2 = (1 << 5),
459 CPU_FEATURE_NEON = (1 << 6)
462 typedef enum _Font_Hint_Flags
469 /*****************************************************************************/
471 struct _RGBA_Image_Loadopts
473 int scale_down_by; // if > 1 then use this
474 double dpi; // if > 0.0 use this
475 int w, h; // if > 0 use this
481 struct _Image_Entry_Flags
483 Eina_Bool loaded : 1;
486 Eina_Bool need_data : 1;
487 Eina_Bool lru_nodata : 1;
488 Eina_Bool cached : 1;
490 Eina_Bool alpha_sparse : 1;
491 #ifdef BUILD_ASYNC_PRELOAD
492 Eina_Bool preload : 1;
493 Eina_Bool pending : 1;
497 struct _Evas_Cache_Target
507 Evas_Cache_Image *cache;
509 const char *cache_key;
514 Evas_Cache_Target *targets;
523 RGBA_Image_Loadopts load_opts;
540 #ifdef BUILD_ASYNC_PRELOAD
544 Image_Entry_Flags flags;
545 Evas_Image_Scale_Hint scale_hint;
552 struct _Engine_Image_Entry
556 /* Upper Engine data. */
560 Evas_Cache_Engine_Image *cache;
561 const char *cache_key;
565 Eina_Bool cached : 1;
568 Eina_Bool loaded : 1;
569 Eina_Bool need_parent : 1;
589 struct _Evas_Common_Transform
596 struct _RGBA_Draw_Context
605 struct RGBA_Draw_Context_clip {
612 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg);
613 void (*gl_free) (void *ext_dat);
614 void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y);
625 Eina_Bool anti_alias : 1;
628 #ifdef BUILD_PIPE_RENDER
631 RGBA_Draw_Context context;
632 void (*op_func) (RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Thread_Info *info);
633 void (*free_func) (RGBA_Pipe_Op *op);
643 RGBA_Polygon_Point *points;
650 RGBA_Gradient2 *grad;
660 int sx, sy, sw, sh, dx, dy, dw, dh;
673 RGBA_Pipe_Op op[PIPE_LEN];
676 struct _RGBA_Pipe_Thread_Info
685 Image_Entry cache_entry;
687 RGBA_Image_Flags flags;
692 /* char *real_file; */
698 #ifdef BUILD_PIPE_RENDER
703 /* unsigned char scale; */
705 /* Colorspace stuff. */
708 Eina_Bool no_free : 1;
715 Eina_Bool no_free : 1;
721 unsigned long long orig_usage;
722 unsigned long long usage_count;
724 unsigned long long newest_usage;
725 unsigned long long newest_usage_count;
729 struct _RGBA_Gradient_Color_Stop
736 struct _RGBA_Gradient_Alpha_Stop
743 struct _RGBA_Gradient
752 Eina_Bool has_alpha : 1;
778 RGBA_Gradient_Type *geometer;
784 Eina_Bool imported_data : 1;
785 Eina_Bool has_alpha : 1;
788 struct _RGBA_Gradient_Type
792 void (*shutdown)(void);
793 void (*geom_init)(RGBA_Gradient *gr);
794 void (*geom_set)(RGBA_Gradient *gr);
795 void (*geom_free)(void *gdata);
796 int (*has_alpha)(RGBA_Gradient *gr, int render_op);
797 int (*has_mask)(RGBA_Gradient *gr, int render_op);
798 int (*get_map_len)(RGBA_Gradient *gr);
799 Gfx_Func_Gradient_Fill (*get_fill_func)(RGBA_Gradient *gr, int render_op, unsigned char aa);
802 struct _RGBA_Gradient2_Color_Np_Stop
810 struct _RGBA_Gradient2
816 Eina_Bool has_alpha : 1;
829 Evas_Common_Transform transform;
835 RGBA_Gradient2_Type *geometer;
841 Eina_Bool has_alpha : 1;
844 struct _RGBA_Gradient2_Type
848 void (*shutdown)(void);
849 void (*geom_init)(RGBA_Gradient2 *gr);
850 void (*geom_update)(RGBA_Gradient2 *gr);
851 void (*geom_free)(void *gdata);
852 int (*has_alpha)(RGBA_Gradient2 *gr, int render_op);
853 int (*has_mask)(RGBA_Gradient2 *gr, int render_op);
854 int (*get_map_len)(RGBA_Gradient2 *gr);
855 Gfx_Func_Gradient2_Fill (*get_fill_func)(RGBA_Gradient2 *gr, int render_op);
859 struct _RGBA_Polygon_Point
868 Font_Hint_Flags hinting;
873 struct _RGBA_Font_Int
875 RGBA_Font_Source *src;
893 Font_Hint_Flags hinting;
899 struct _RGBA_Font_Source
907 #if 0 /* FIXME: charmap user is disabled and use a deprecated data type. */
908 Evas_Array_Hash *charmap;
919 struct _RGBA_Font_Glyph
923 FT_BitmapGlyph glyph_out;
924 /* this is a problem - only 1 engine at a time can extend such a font... grrr */
926 void (*ext_dat_free) (void *ext_dat);
930 struct _RGBA_Gfx_Compositor
935 void (*shutdown)(void);
937 RGBA_Gfx_Func (*composite_pixel_span_get)(RGBA_Image *src, RGBA_Image *dst, int pixels);
938 RGBA_Gfx_Func (*composite_color_span_get)(DATA32 col, RGBA_Image *dst, int pixels);
939 RGBA_Gfx_Func (*composite_pixel_color_span_get)(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels);
940 RGBA_Gfx_Func (*composite_mask_color_span_get)(DATA32 col, RGBA_Image *dst, int pixels);
941 RGBA_Gfx_Func (*composite_pixel_mask_span_get)(RGBA_Image *src, RGBA_Image *dst, int pixels);
943 RGBA_Gfx_Pt_Func (*composite_pixel_pt_get)(Image_Entry_Flags src_flags, RGBA_Image *dst);
944 RGBA_Gfx_Pt_Func (*composite_color_pt_get)(DATA32 col, RGBA_Image *dst);
945 RGBA_Gfx_Pt_Func (*composite_pixel_color_pt_get)(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst);
946 RGBA_Gfx_Pt_Func (*composite_mask_color_pt_get)(DATA32 col, RGBA_Image *dst);
947 RGBA_Gfx_Pt_Func (*composite_pixel_mask_pt_get)(Image_Entry_Flags src_flags, RGBA_Image *dst);
950 #define EVAS_RECT_SPLIT 1
951 #ifdef EVAS_RECT_SPLIT
952 typedef struct list_node list_node_t;
953 typedef struct list list_t;
954 typedef struct rect rect_t;
955 typedef struct rect_node rect_node_t;
959 struct list_node *next;
964 struct list_node *head;
965 struct list_node *tail;
981 struct list_node _lst;
985 void rect_list_node_pool_set_max(int max);
986 void rect_list_node_pool_flush(void);
987 list_node_t *rect_list_node_pool_get(void);
988 void rect_list_node_pool_put(list_node_t *node);
990 void rect_init(rect_t *r, int x, int y, int w, int h);
991 void rect_list_append_node(list_t *rects, list_node_t *node);
992 void rect_list_append(list_t *rects, const rect_t r);
993 void rect_list_append_xywh(list_t *rects, int x, int y, int w, int h);
994 void rect_list_concat(list_t *rects, list_t *other);
995 list_node_t *rect_list_unlink_next(list_t *rects, list_node_t *parent_node);
996 void rect_list_del_next(list_t *rects, list_node_t *parent_node);
997 void rect_list_clear(list_t *rects);
998 void rect_list_del_split_strict(list_t *rects, const rect_t del_r);
999 void rect_list_add_split_strict(list_t *rects, list_node_t *node);
1000 list_node_t *rect_list_add_split_fuzzy(list_t *rects, list_node_t *node, int accepted_error);
1001 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);
1003 void rect_print(const rect_t r);
1004 void rect_list_print(const list_t rects);
1005 #endif /* EVAS_RECT_SPLIT */
1018 #elif defined(EVAS_RECT_SPLIT)
1024 Tilebuf_Tile *tiles;
1029 struct _Tilebuf_Tile
1031 Eina_Bool redraw : 1;
1032 /* FIXME: need these flags later - but not now */
1044 struct _Tilebuf_Rect
1067 Convert_Pal_Mode colors;
1074 /*****************************************************************************/
1075 #include "evas_macros.h"
1077 #ifndef WORDS_BIGENDIAN
1079 #define A_VAL(p) ((DATA8 *)(p))[3]
1080 #define R_VAL(p) ((DATA8 *)(p))[2]
1081 #define G_VAL(p) ((DATA8 *)(p))[1]
1082 #define B_VAL(p) ((DATA8 *)(p))[0]
1083 #define AR_VAL(p) ((DATA16 *)(p)[1])
1084 #define GB_VAL(p) ((DATA16 *)(p)[0])
1087 #define A_VAL(p) ((DATA8 *)(p))[0]
1088 #define R_VAL(p) ((DATA8 *)(p))[1]
1089 #define G_VAL(p) ((DATA8 *)(p))[2]
1090 #define B_VAL(p) ((DATA8 *)(p))[3]
1091 #define AR_VAL(p) ((DATA16 *)(p)[0])
1092 #define GB_VAL(p) ((DATA16 *)(p)[1])
1095 #define RGB_JOIN(r,g,b) \
1096 (((r) << 16) + ((g) << 8) + (b))
1098 #define ARGB_JOIN(a,r,g,b) \
1099 (((a) << 24) + ((r) << 16) + ((g) << 8) + (b))
1101 #include "evas_blend_ops.h"
1103 #define _EVAS_RENDER_FILL -1
1104 #define _EVAS_RENDER_BLEND 0
1105 #define _EVAS_RENDER_BLEND_REL 1
1106 #define _EVAS_RENDER_COPY 2
1107 #define _EVAS_RENDER_COPY_REL 3
1108 #define _EVAS_RENDER_ADD 4
1109 #define _EVAS_RENDER_ADD_REL 5
1110 #define _EVAS_RENDER_SUB 6
1111 #define _EVAS_RENDER_SUB_REL 7
1112 #define _EVAS_RENDER_TINT 8
1113 #define _EVAS_RENDER_TINT_REL 9
1114 #define _EVAS_RENDER_MASK 10
1115 #define _EVAS_RENDER_MUL 11
1116 #define _EVAS_RENDER_CLIP 12
1118 #define _EVAS_TEXTURE_REFLECT 0
1119 #define _EVAS_TEXTURE_REPEAT 1
1120 #define _EVAS_TEXTURE_RESTRICT 2
1121 #define _EVAS_TEXTURE_RESTRICT_REFLECT 3
1122 #define _EVAS_TEXTURE_RESTRICT_REPEAT 4
1123 #define _EVAS_TEXTURE_PAD 5
1125 #define _EVAS_COLOR_SPACE_ARGB 0
1126 #define _EVAS_COLOR_SPACE_AHSV 1
1128 /*****************************************************************************/
1135 void evas_common_init (void);
1136 void evas_common_shutdown (void);
1138 EAPI void evas_common_cpu_init (void);
1140 int evas_common_cpu_have_cpuid (void);
1141 int evas_common_cpu_has_feature (unsigned int feature);
1142 EAPI void evas_common_cpu_can_do (int *mmx, int *sse, int *sse2);
1143 EAPI void evas_common_cpu_end_opt (void);
1146 #include "../engines/common/evas_blend.h"
1148 EAPI Gfx_Func_Copy evas_common_draw_func_copy_get (int pixels, int reverse);
1151 #include "../engines/common/evas_convert_color.h"
1152 #include "../engines/common/evas_convert_colorspace.h"
1153 #include "../engines/common/evas_convert_main.h"
1154 #include "../engines/common/evas_convert_yuv.h"
1155 #include "../engines/common/evas_scale_main.h"
1156 #include "../engines/common/evas_scale_smooth.h"
1157 #include "../engines/common/evas_scale_span.h"
1160 #include "../engines/common/evas_image.h"
1163 #include "../engines/common/evas_line.h"
1164 #include "../engines/common/evas_polygon.h"
1165 #include "../engines/common/evas_rectangle.h"
1168 EAPI void evas_common_blit_init (void);
1170 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);
1173 #include "../engines/common/evas_gradient.h"
1174 #include "../engines/common/evas_font.h"
1177 EAPI void evas_common_tilebuf_init (void);
1179 EAPI Tilebuf *evas_common_tilebuf_new (int w, int h);
1180 EAPI void evas_common_tilebuf_free (Tilebuf *tb);
1181 EAPI void evas_common_tilebuf_set_tile_size (Tilebuf *tb, int tw, int th);
1182 EAPI void evas_common_tilebuf_get_tile_size (Tilebuf *tb, int *tw, int *th);
1183 EAPI int evas_common_tilebuf_add_redraw (Tilebuf *tb, int x, int y, int w, int h);
1184 EAPI int evas_common_tilebuf_del_redraw (Tilebuf *tb, int x, int y, int w, int h);
1185 EAPI int evas_common_tilebuf_add_motion_vector (Tilebuf *tb, int x, int y, int w, int h, int dx, int dy, int alpha);
1186 EAPI void evas_common_tilebuf_clear (Tilebuf *tb);
1187 EAPI Tilebuf_Rect *evas_common_tilebuf_get_render_rects (Tilebuf *tb);
1188 EAPI void evas_common_tilebuf_free_render_rects (Tilebuf_Rect *rects);
1191 Regionbuf *evas_common_regionbuf_new (int w, int h);
1192 void evas_common_regionbuf_free (Regionbuf *rb);
1193 void evas_common_regionbuf_clear (Regionbuf *rb);
1194 void evas_common_regionbuf_span_add (Regionbuf *rb, int x1, int x2, int y);
1195 void evas_common_regionbuf_span_del (Regionbuf *rb, int x1, int x2, int y);
1196 Tilebuf_Rect *evas_common_regionbuf_rects_get (Regionbuf *rb);
1200 #include "../engines/common/evas_draw.h"
1203 #ifdef BUILD_PIPE_RENDER
1204 # include "../engines/common/evas_pipe.h"
1207 void evas_font_dir_cache_free(void);
1211 /*****************************************************************************/
1213 #if defined(__ARM_ARCH__) && (__ARM_ARCH__ >= 70)
1215 # include <arm_neon.h>