1 #include "evas_common.h" /* Also includes international specific stuff */
2 #include "evas_private.h"
11 static int cpunum = 0;
12 static int _evas_soft_gen_log_dom = -1;
15 eng_output_dump(void *data __UNUSED__)
17 evas_common_image_image_all_unload();
18 evas_common_font_font_all_unload();
22 eng_context_new(void *data __UNUSED__)
24 return evas_common_draw_context_new();
28 eng_context_free(void *data __UNUSED__, void *context)
30 evas_common_draw_context_free(context);
34 eng_context_clip_set(void *data __UNUSED__, void *context, int x, int y, int w, int h)
36 evas_common_draw_context_set_clip(context, x, y, w, h);
40 eng_context_clip_clip(void *data __UNUSED__, void *context, int x, int y, int w, int h)
42 evas_common_draw_context_clip_clip(context, x, y, w, h);
46 eng_context_clip_unset(void *data __UNUSED__, void *context)
48 evas_common_draw_context_unset_clip(context);
52 eng_context_clip_get(void *data __UNUSED__, void *context, int *x, int *y, int *w, int *h)
54 *x = ((RGBA_Draw_Context *)context)->clip.x;
55 *y = ((RGBA_Draw_Context *)context)->clip.y;
56 *w = ((RGBA_Draw_Context *)context)->clip.w;
57 *h = ((RGBA_Draw_Context *)context)->clip.h;
58 return ((RGBA_Draw_Context *)context)->clip.use;
62 eng_context_color_set(void *data __UNUSED__, void *context, int r, int g, int b, int a)
64 evas_common_draw_context_set_color(context, r, g, b, a);
68 eng_context_color_get(void *data __UNUSED__, void *context, int *r, int *g, int *b, int *a)
70 *r = (int)(R_VAL(&((RGBA_Draw_Context *)context)->col.col));
71 *g = (int)(G_VAL(&((RGBA_Draw_Context *)context)->col.col));
72 *b = (int)(B_VAL(&((RGBA_Draw_Context *)context)->col.col));
73 *a = (int)(A_VAL(&((RGBA_Draw_Context *)context)->col.col));
78 eng_context_multiplier_set(void *data __UNUSED__, void *context, int r, int g, int b, int a)
80 evas_common_draw_context_set_multiplier(context, r, g, b, a);
84 eng_context_multiplier_unset(void *data __UNUSED__, void *context)
86 evas_common_draw_context_unset_multiplier(context);
90 eng_context_multiplier_get(void *data __UNUSED__, void *context, int *r, int *g, int *b, int *a)
92 *r = (int)(R_VAL(&((RGBA_Draw_Context *)context)->mul.col));
93 *g = (int)(G_VAL(&((RGBA_Draw_Context *)context)->mul.col));
94 *b = (int)(B_VAL(&((RGBA_Draw_Context *)context)->mul.col));
95 *a = (int)(A_VAL(&((RGBA_Draw_Context *)context)->mul.col));
96 return ((RGBA_Draw_Context *)context)->mul.use;
100 eng_context_mask_set(void *data __UNUSED__, void *context, void *mask, int x, int y, int w, int h)
102 evas_common_draw_context_set_mask(context, mask, x, y, w, h);
106 eng_context_mask_unset(void *data __UNUSED__, void *context)
108 evas_common_draw_context_unset_mask(context);
112 eng_context_mask_get(void *data __UNUSED__, void *context)
114 return ((RGBA_Draw_Context *)context)->mask.mask;
119 eng_context_cutout_add(void *data __UNUSED__, void *context, int x, int y, int w, int h)
121 evas_common_draw_context_add_cutout(context, x, y, w, h);
125 eng_context_cutout_clear(void *data __UNUSED__, void *context)
127 evas_common_draw_context_clear_cutouts(context);
131 eng_context_anti_alias_set(void *data __UNUSED__, void *context, unsigned char aa)
133 evas_common_draw_context_set_anti_alias(context, aa);
137 eng_context_anti_alias_get(void *data __UNUSED__, void *context)
139 return ((RGBA_Draw_Context *)context)->anti_alias;
143 eng_context_color_interpolation_set(void *data __UNUSED__, void *context, int color_space)
145 evas_common_draw_context_set_color_interpolation(context, color_space);
149 eng_context_color_interpolation_get(void *data __UNUSED__, void *context)
151 return ((RGBA_Draw_Context *)context)->interpolation.color_space;
155 eng_context_render_op_set(void *data __UNUSED__, void *context, int op)
157 evas_common_draw_context_set_render_op(context, op);
161 eng_context_render_op_get(void *data __UNUSED__, void *context)
163 return ((RGBA_Draw_Context *)context)->render_op;
169 eng_rectangle_draw(void *data __UNUSED__, void *context, void *surface, int x, int y, int w, int h)
171 #ifdef BUILD_PIPE_RENDER
173 #ifdef EVAS_FRAME_QUEUING
174 && evas_common_frameq_enabled()
177 evas_common_pipe_rectangle_draw(surface, context, x, y, w, h);
181 evas_common_rectangle_draw(surface, context, x, y, w, h);
182 evas_common_cpu_end_opt();
187 eng_line_draw(void *data __UNUSED__, void *context, void *surface, int x1, int y1, int x2, int y2)
189 #ifdef BUILD_PIPE_RENDER
191 #ifdef EVAS_FRAME_QUEUING
192 && evas_common_frameq_enabled()
195 evas_common_pipe_line_draw(surface, context, x1, y1, x2, y2);
199 evas_common_line_draw(surface, context, x1, y1, x2, y2);
200 evas_common_cpu_end_opt();
205 eng_polygon_point_add(void *data __UNUSED__, void *context __UNUSED__, void *polygon, int x, int y)
207 return evas_common_polygon_point_add(polygon, x, y);
211 eng_polygon_points_clear(void *data __UNUSED__, void *context __UNUSED__, void *polygon)
213 return evas_common_polygon_points_clear(polygon);
217 eng_polygon_draw(void *data __UNUSED__, void *context, void *surface, void *polygon, int x, int y)
219 #ifdef BUILD_PIPE_RENDER
221 #ifdef EVAS_FRAME_QUEUING
222 && evas_common_frameq_enabled()
225 evas_common_pipe_poly_draw(surface, context, polygon, x, y);
229 evas_common_polygon_draw(surface, context, polygon, x, y);
230 evas_common_cpu_end_opt();
235 eng_image_alpha_get(void *data __UNUSED__, void *image)
239 if (!image) return 1;
243 case EVAS_COLORSPACE_ARGB8888:
244 if (im->flags.alpha) return 1;
252 eng_image_colorspace_get(void *data __UNUSED__, void *image)
256 if (!image) return EVAS_COLORSPACE_ARGB8888;
262 eng_image_mask_create(void *data __UNUSED__, void *image)
271 if (im->mask.mask && !im->mask.dirty) return;
273 if (im->mask.mask) free(im->mask.mask);
274 sz = im->cache_entry.w * im->cache_entry.h;
275 im->mask.mask = malloc(sz);
278 evas_cache_image_load_data(&im->cache_entry);
279 src = im->image.data;
280 for (end = dst + sz ; dst < end ; dst ++, src ++)
287 eng_image_alpha_set(void *data __UNUSED__, void *image, int has_alpha)
291 if (!image) return NULL;
293 if (im->cache_entry.space != EVAS_COLORSPACE_ARGB8888)
295 im->cache_entry.flags.alpha = 0;
298 im = (RGBA_Image *) evas_cache_image_alone(&im->cache_entry);
299 evas_common_image_colorspace_dirty(im);
301 im->cache_entry.flags.alpha = has_alpha ? 1 : 0;
306 eng_image_border_set(void *data __UNUSED__, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__)
315 eng_image_border_get(void *data __UNUSED__, void *image, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__)
323 eng_image_comment_get(void *data __UNUSED__, void *image, char *key __UNUSED__)
327 if (!image) return NULL;
329 return im->info.comment;
333 eng_image_format_get(void *data __UNUSED__, void *image __UNUSED__)
339 eng_image_colorspace_set(void *data __UNUSED__, void *image, int cspace)
345 evas_cache_image_colorspace(im, cspace);
349 eng_image_native_set(void *data __UNUSED__, void *image, void *native __UNUSED__)
355 eng_image_native_get(void *data __UNUSED__, void *image __UNUSED__)
361 eng_image_load(void *data __UNUSED__, const char *file, const char *key, int *error, Evas_Image_Load_Opts *lo)
363 *error = EVAS_LOAD_ERROR_NONE;
364 return evas_common_load_image_from_file(file, key, lo, error);
368 eng_image_new_from_data(void *data __UNUSED__, int w, int h, DATA32 *image_data, int alpha, int cspace)
370 return evas_cache_image_data(evas_common_image_cache_get(), w, h, image_data, alpha, cspace);
374 eng_image_new_from_copied_data(void *data __UNUSED__, int w, int h, DATA32 *image_data, int alpha, int cspace)
376 return evas_cache_image_copied_data(evas_common_image_cache_get(), w, h, image_data, alpha, cspace);
380 eng_image_free(void *data __UNUSED__, void *image)
382 evas_cache_image_drop(image);
386 eng_image_size_get(void *data __UNUSED__, void *image, int *w, int *h)
396 eng_image_size_set(void *data __UNUSED__, void *image, int w, int h)
401 return evas_cache_image_size_set(image, w, h);
405 eng_image_dirty_region(void *data __UNUSED__, void *image, int x, int y, int w, int h)
407 Image_Entry *im = image;
409 if (!image) return NULL;
410 return evas_cache_image_dirty(im, x, y, w, h);
414 eng_image_data_get(void *data __UNUSED__, void *image, int to_write, DATA32 **image_data)
424 evas_cache_image_load_data(&im->cache_entry);
425 switch (im->cache_entry.space)
427 case EVAS_COLORSPACE_ARGB8888:
429 im = (RGBA_Image *) evas_cache_image_alone(&im->cache_entry);
430 *image_data = im->image.data;
432 case EVAS_COLORSPACE_YCBCR422P601_PL:
433 case EVAS_COLORSPACE_YCBCR422P709_PL:
434 *image_data = im->cs.data;
444 eng_image_data_put(void *data, void *image, DATA32 *image_data)
446 RGBA_Image *im, *im2;
448 if (!image) return NULL;
450 switch (im->cache_entry.space)
452 case EVAS_COLORSPACE_ARGB8888:
453 if (image_data != im->image.data)
457 w = im->cache_entry.w;
458 h = im->cache_entry.h;
459 im2 = eng_image_new_from_data(data, w, h, image_data,
460 eng_image_alpha_get(data, image),
461 eng_image_colorspace_get(data, image));
462 evas_cache_image_drop(&im->cache_entry);
466 case EVAS_COLORSPACE_YCBCR422P601_PL:
467 case EVAS_COLORSPACE_YCBCR422P709_PL:
468 if (image_data != im->cs.data)
472 if (!im->cs.no_free) free(im->cs.data);
474 im->cs.data = image_data;
475 evas_common_image_colorspace_dirty(im);
486 eng_image_data_preload_request(void *data __UNUSED__, void *image, const void *target)
488 RGBA_Image *im = image;
491 evas_cache_image_preload_data(&im->cache_entry, target);
495 eng_image_data_preload_cancel(void *data __UNUSED__, void *image, const void *target)
497 RGBA_Image *im = image;
500 evas_cache_image_preload_cancel(&im->cache_entry, target);
504 eng_image_draw(void *data __UNUSED__, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth)
510 #ifdef BUILD_PIPE_RENDER
512 #ifdef EVAS_FRAME_QUEUING
513 && evas_common_frameq_enabled()
517 evas_common_rgba_image_scalecache_prepare((Image_Entry *)(im),
518 surface, context, smooth,
519 src_x, src_y, src_w, src_h,
520 dst_x, dst_y, dst_w, dst_h);
522 evas_common_pipe_image_draw(im, surface, context, smooth,
523 src_x, src_y, src_w, src_h,
524 dst_x, dst_y, dst_w, dst_h);
529 // if (im->cache_entry.space == EVAS_COLORSPACE_ARGB8888)
530 // evas_cache_image_load_data(&im->cache_entry);
531 // evas_common_image_colorspace_normalize(im);
532 evas_common_rgba_image_scalecache_prepare(&im->cache_entry, surface, context, smooth,
533 src_x, src_y, src_w, src_h,
534 dst_x, dst_y, dst_w, dst_h);
535 evas_common_rgba_image_scalecache_do(&im->cache_entry, surface, context, smooth,
536 src_x, src_y, src_w, src_h,
537 dst_x, dst_y, dst_w, dst_h);
540 evas_common_scale_rgba_in_to_out_clip_smooth(im, surface, context,
541 src_x, src_y, src_w, src_h,
542 dst_x, dst_y, dst_w, dst_h);
544 evas_common_scale_rgba_in_to_out_clip_sample(im, surface, context,
545 src_x, src_y, src_w, src_h,
546 dst_x, dst_y, dst_w, dst_h);
548 evas_common_cpu_end_opt();
553 eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
558 if (npoints < 3) return;
561 if ((p[0].x == p[3].x) &&
562 (p[1].x == p[2].x) &&
563 (p[0].y == p[1].y) &&
564 (p[3].y == p[2].y) &&
565 (p[0].x <= p[1].x) &&
566 (p[0].y <= p[2].y) &&
569 (p[1].u == (int)(im->cache_entry.w << FP)) &&
571 (p[2].u == (int)(im->cache_entry.w << FP)) &&
572 (p[2].v == (int)(im->cache_entry.h << FP)) &&
574 (p[3].v == (int)(im->cache_entry.h << FP)) &&
575 (p[0].col == 0xffffffff) &&
576 (p[1].col == 0xffffffff) &&
577 (p[2].col == 0xffffffff) &&
578 (p[3].col == 0xffffffff))
584 dw = (p[2].x >> FP) - dx;
585 dh = (p[2].y >> FP) - dy;
587 (data, context, surface, image,
588 0, 0, im->cache_entry.w, im->cache_entry.h,
589 dx, dy, dw, dh, smooth);
593 #ifdef BUILD_PIPE_RENDER
595 # ifdef EVAS_FRAME_QUEUING
596 && evas_common_frameq_enabled()
599 evas_common_pipe_map_draw(im, surface, context, npoints, p, smooth, level);
602 evas_common_map_rgba(im, surface, context, npoints, p, smooth, level);
604 evas_common_cpu_end_opt();
608 eng_image_map_draw(data, context, surface, image, npoints - 2, p + 2,
614 eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha)
618 surface = evas_cache_image_copied_data(evas_common_image_cache_get(),
620 EVAS_COLORSPACE_ARGB8888);
621 pixels = evas_cache_image_pixels(surface);
626 eng_image_map_surface_free(void *data __UNUSED__, void *surface)
628 evas_cache_image_drop(surface);
632 eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
638 im->scale_hint = hint;
642 eng_image_scale_hint_get(void *data __UNUSED__, void *image)
646 if (!image) return EVAS_IMAGE_SCALE_HINT_NONE;
648 return im->scale_hint;
652 eng_image_cache_flush(void *data __UNUSED__)
656 tmp_size = evas_common_image_get_cache();
657 evas_common_image_set_cache(0);
658 evas_common_rgba_image_scalecache_flush();
659 evas_common_image_set_cache(tmp_size);
663 eng_image_cache_set(void *data __UNUSED__, int bytes)
665 evas_common_image_set_cache(bytes);
666 evas_common_rgba_image_scalecache_size_set(bytes);
670 eng_image_cache_get(void *data __UNUSED__)
672 return evas_common_image_get_cache();
676 eng_font_load(void *data __UNUSED__, const char *name, int size,
677 Font_Rend_Flags wanted_rend)
679 return evas_common_font_load(name, size, wanted_rend);
683 eng_font_memory_load(void *data __UNUSED__, char *name, int size, const void *fdata, int fdata_size, Font_Rend_Flags wanted_rend)
685 return evas_common_font_memory_load(name, size, fdata, fdata_size,
690 eng_font_add(void *data __UNUSED__, void *font, const char *name, int size, Font_Rend_Flags wanted_rend)
692 return evas_common_font_add(font, name, size, wanted_rend);
696 eng_font_memory_add(void *data __UNUSED__, void *font, char *name, int size, const void *fdata, int fdata_size, Font_Rend_Flags wanted_rend)
698 return evas_common_font_memory_add(font, name, size, fdata, fdata_size,
703 eng_font_free(void *data __UNUSED__, void *font)
705 evas_common_font_free(font);
709 eng_font_ascent_get(void *data __UNUSED__, void *font)
711 return evas_common_font_ascent_get(font);
715 eng_font_descent_get(void *data __UNUSED__, void *font)
717 return evas_common_font_descent_get(font);
721 eng_font_max_ascent_get(void *data __UNUSED__, void *font)
723 return evas_common_font_max_ascent_get(font);
727 eng_font_max_descent_get(void *data __UNUSED__, void *font)
729 return evas_common_font_max_descent_get(font);
733 eng_font_string_size_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props, int *w, int *h)
735 evas_common_font_query_size(font, text_props, w, h);
739 eng_font_inset_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props)
741 return evas_common_font_query_inset(font, text_props);
745 eng_font_right_inset_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props)
747 return evas_common_font_query_right_inset(font, text_props);
751 eng_font_h_advance_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props)
755 evas_common_font_query_advance(font, text_props, &h, &v);
760 eng_font_v_advance_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props)
764 evas_common_font_query_advance(font, text_props, &h, &v);
769 eng_font_pen_coords_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props, int pos, int *cpen_x, int *cy, int *cadv, int *ch)
771 return evas_common_font_query_pen_coords(font, text_props, pos, cpen_x, cy, cadv, ch);
775 eng_font_text_props_info_create(void *data __UNUSED__, void *font, const Eina_Unicode *text, Evas_Text_Props *text_props, const Evas_BiDi_Paragraph_Props *par_props, size_t par_pos, size_t len)
777 return evas_common_text_props_content_create(font, text, text_props,
778 par_props, par_pos, len);
782 eng_font_char_coords_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props, int pos, int *cx, int *cy, int *cw, int *ch)
784 return evas_common_font_query_char_coords(font, text_props, pos, cx, cy, cw, ch);
788 eng_font_char_at_coords_get(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props, int x, int y, int *cx, int *cy, int *cw, int *ch)
790 return evas_common_font_query_char_at_coords(font, text_props, x, y, cx, cy, cw, ch);
794 eng_font_last_up_to_pos(void *data __UNUSED__, void *font, const Evas_Text_Props *text_props, int x, int y)
796 return evas_common_font_query_last_up_to_pos(font, text_props, x, y);
800 eng_font_draw(void *data __UNUSED__, void *context, void *surface, void *font, int x, int y, int w __UNUSED__, int h __UNUSED__, int ow __UNUSED__, int oh __UNUSED__, const Evas_Text_Props *text_props)
802 #ifdef BUILD_PIPE_RENDER
804 #ifdef EVAS_FRAME_QUEUING
805 && evas_common_frameq_enabled()
808 evas_common_pipe_text_draw(surface, context, font, x, y, text_props);
812 evas_common_font_draw(surface, context, font, x, y, text_props);
813 evas_common_cpu_end_opt();
818 eng_font_cache_flush(void *data __UNUSED__)
822 tmp_size = evas_common_font_cache_get();
823 evas_common_font_cache_set(0);
824 evas_common_font_flush();
825 evas_common_font_cache_set(tmp_size);
829 eng_font_cache_set(void *data __UNUSED__, int bytes)
831 evas_common_font_cache_set(bytes);
835 eng_font_cache_get(void *data __UNUSED__)
837 return evas_common_font_cache_get();
841 eng_font_hinting_set(void *data __UNUSED__, void *font, int hinting)
843 evas_common_font_hinting_set(font, hinting);
847 eng_font_hinting_can_hint(void *data __UNUSED__, int hinting)
849 return evas_common_hinting_available(hinting);
853 eng_canvas_alpha_get(void *data __UNUSED__, void *info __UNUSED__)
861 eng_image_draw_filtered(void *data __UNUSED__, void *context __UNUSED__,
862 void *surface, void *image, Evas_Filter_Info *filter)
864 Evas_Software_Filter_Fn fn;
865 RGBA_Image *im = image;
867 fn = evas_filter_software_get(filter);
869 if (im->cache_entry.cache) evas_cache_image_load_data(&im->cache_entry);
870 fn(filter, image, surface);
875 static Filtered_Image *
876 eng_image_filtered_get(void *image, uint8_t *key, size_t keylen)
878 RGBA_Image *im = image;
882 for (l = im->filtered ; l ; l = l->next)
885 if (fi->keylen != keylen) continue;
886 if (memcmp(key, fi->key, keylen) != 0) continue;
894 static Filtered_Image *
895 eng_image_filtered_save(void *image, void *fimage, uint8_t *key, size_t keylen)
897 RGBA_Image *im = image;
901 for (l = im->filtered ; l ; l = l->next)
904 if (fi->keylen != keylen) continue;
905 if (memcmp(key, fi->key, keylen) == 0) continue;
906 evas_cache_image_drop((void *)fi->image);
911 fi = calloc(1,sizeof(Filtered_Image));
912 if (!fi) return NULL;
915 fi->key = malloc(keylen);
916 memcpy(fi->key, key, keylen);
920 im->filtered = eina_list_prepend(im->filtered, fi);
926 eng_image_filtered_free(void *image, Filtered_Image *fi)
928 RGBA_Image *im = image;
934 evas_cache_image_drop(&fi->image->cache_entry);
937 im->filtered = eina_list_remove(im->filtered, fi);
948 static Evas_Func func =
964 /* draw context virtual methods */
966 eng_canvas_alpha_get,
968 eng_context_clip_set,
969 eng_context_clip_clip,
970 eng_context_clip_unset,
971 eng_context_clip_get,
972 eng_context_mask_set,
973 eng_context_mask_unset,
974 eng_context_color_set,
975 eng_context_color_get,
976 eng_context_multiplier_set,
977 eng_context_multiplier_unset,
978 eng_context_multiplier_get,
979 eng_context_cutout_add,
980 eng_context_cutout_clear,
981 eng_context_anti_alias_set,
982 eng_context_anti_alias_get,
983 eng_context_color_interpolation_set,
984 eng_context_color_interpolation_get,
985 eng_context_render_op_set,
986 eng_context_render_op_get,
987 /* rect draw funcs */
989 /* line draw funcs */
991 /* polygon draw funcs */
992 eng_polygon_point_add,
993 eng_polygon_points_clear,
995 /* image draw funcs */
997 eng_image_new_from_data,
998 eng_image_new_from_copied_data,
1003 eng_image_dirty_region,
1006 eng_image_data_preload_request,
1007 eng_image_data_preload_cancel,
1008 eng_image_alpha_set,
1009 eng_image_alpha_get,
1010 eng_image_border_set,
1011 eng_image_border_get,
1013 eng_image_comment_get,
1014 eng_image_format_get,
1015 eng_image_colorspace_set,
1016 eng_image_colorspace_get,
1017 eng_image_mask_create,
1018 eng_image_native_set,
1019 eng_image_native_get,
1020 /* image cache funcs */
1021 eng_image_cache_flush,
1022 eng_image_cache_set,
1023 eng_image_cache_get,
1024 /* font draw functions */
1026 eng_font_memory_load,
1028 eng_font_memory_add,
1030 eng_font_ascent_get,
1031 eng_font_descent_get,
1032 eng_font_max_ascent_get,
1033 eng_font_max_descent_get,
1034 eng_font_string_size_get,
1036 eng_font_h_advance_get,
1037 eng_font_v_advance_get,
1038 eng_font_char_coords_get,
1039 eng_font_char_at_coords_get,
1041 /* font cache functions */
1042 eng_font_cache_flush,
1045 /* font hinting functions */
1046 eng_font_hinting_set,
1047 eng_font_hinting_can_hint,
1048 eng_image_scale_hint_set,
1049 eng_image_scale_hint_get,
1050 /* more font draw functions */
1051 eng_font_last_up_to_pos,
1053 eng_image_map_surface_new,
1054 eng_image_map_surface_free,
1055 NULL, // eng_image_content_hint_set - software doesn't use it
1056 NULL, // eng_image_content_hint_get - software doesn't use it
1057 eng_font_pen_coords_get,
1058 eng_font_text_props_info_create,
1059 eng_font_right_inset_get,
1060 eng_image_draw_filtered,
1061 eng_image_filtered_get,
1062 eng_image_filtered_save,
1063 eng_image_filtered_free,
1064 NULL, // FIXME: need software mesa for gl rendering <- gl_surface_create
1065 NULL, // FIXME: need software mesa for gl rendering <- gl_surface_destroy
1066 NULL, // FIXME: need software mesa for gl rendering <- gl_context_create
1067 NULL, // FIXME: need software mesa for gl rendering <- gl_context_destroy
1068 NULL, // FIXME: need software mesa for gl rendering <- gl_make_current
1069 NULL, // FIXME: need software mesa for gl rendering <- gl_proc_address_get
1070 NULL, // FIXME: need software mesa for gl rendering <- gl_native_surface_get
1071 NULL // FIXME: need software mesa for gl rendering <- gl_api_get
1072 /* FUTURE software generic calls go here */
1078 ** MODULE ACCESSIBLE API API
1084 module_open(Evas_Module *em)
1087 _evas_soft_gen_log_dom = eina_log_domain_register
1088 ("evas-software_generic", EVAS_DEFAULT_LOG_COLOR);
1089 if(_evas_soft_gen_log_dom<0)
1091 EINA_LOG_ERR("Can not create a module log domain.");
1094 em->functions = (void *)(&func);
1095 cpunum = eina_cpu_count();
1100 module_close(Evas_Module *em __UNUSED__)
1102 eina_log_domain_unregister(_evas_soft_gen_log_dom);
1105 static Evas_Module_Api evas_modapi =
1107 EVAS_MODULE_API_VERSION,
1116 EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, software_generic);
1118 #ifndef EVAS_STATIC_BUILD_SOFTWARE_GENERIC
1119 EVAS_EINA_MODULE_DEFINE(engine, software_generic);