/* FIXME: If function are still running in the background, should we kill them ? */
#ifdef BUILD_ASYNC_PRELOAD
Evas_Preload_Pthread_Worker *work;
- Evas_Preload_Pthread_Data *pth;
/* Force processing of async events. */
evas_async_events_process();
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
return;
MAGIC_CHECK_END();
+ (void)src; /* method still needs to be implemented. */
}
/**
#endif
#ifdef BUILD_CONVERT_8_GRY_1
-void evas_common_convert_rgba_to_8bpp_gry_256_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal)
+void evas_common_convert_rgba_to_8bpp_gry_256_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x __UNUSED__, int dith_y __UNUSED__, DATA8 *pal __UNUSED__)
{
DATA32 *src_ptr;
DATA8 *dst_ptr;
#endif
#ifdef BUILD_CONVERT_8_GRY_4
-void evas_common_convert_rgba_to_8bpp_gry_64_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal){}
+void evas_common_convert_rgba_to_8bpp_gry_64_dith (DATA32 *src __UNUSED__, DATA8 *dst __UNUSED__, int src_jump __UNUSED__, int dst_jump __UNUSED__, int w __UNUSED__, int h __UNUSED__, int dith_x __UNUSED__, int dith_y __UNUSED__, DATA8 *pal __UNUSED__){}
#endif
#ifdef BUILD_CONVERT_8_GRY_16
-void evas_common_convert_rgba_to_8bpp_gry_16_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal)
+void evas_common_convert_rgba_to_8bpp_gry_16_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal __UNUSED__)
{
DATA32 *src_ptr;
DATA8 *dst_ptr;
#endif
#ifdef BUILD_CONVERT_8_GRY_64
-void evas_common_convert_rgba_to_8bpp_gry_4_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal){}
+void evas_common_convert_rgba_to_8bpp_gry_4_dith (DATA32 *src __UNUSED__, DATA8 *dst __UNUSED__, int src_jump __UNUSED__, int dst_jump __UNUSED__, int w __UNUSED__, int h __UNUSED__, int dith_x __UNUSED__, int dith_y __UNUSED__, DATA8 *pal __UNUSED__){}
#endif
#ifdef BUILD_CONVERT_8_GRY_256
-void evas_common_convert_rgba_to_8bpp_gry_1_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal){}
+void evas_common_convert_rgba_to_8bpp_gry_1_dith (DATA32 *src __UNUSED__, DATA8 *dst __UNUSED__, int src_jump __UNUSED__, int dst_jump __UNUSED__, int w __UNUSED__, int h __UNUSED__, int dith_x __UNUSED__, int dith_y __UNUSED__, DATA8 *pal __UNUSED__){}
#endif
}
}
-static int
-_evas_common_font_int_cmp(const int *key1, __UNUSED__ int key1_length,
- const int *key2, __UNUSED__ int key2_length)
-{
- return *key1 - *key2;
-}
+//static int
+//_evas_common_font_int_cmp(const int *key1, __UNUSED__ int key1_length,
+// const int *key2, __UNUSED__ int key2_length)
+//{
+// return *key1 - *key2;
+//}
static int
_evas_common_font_double_int_cmp(const int *key1, __UNUSED__ int key1_length,
}
static Eina_Bool
-_evas_common_font_all_clear_cb(const Eina_Hash *hash, const void *key, void *data, void *fdata)
+_evas_common_font_all_clear_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata __UNUSED__)
{
RGBA_Font_Int *fi = data;
_evas_common_font_int_clear(fi);
#include "evas_common_soft8.h"
static always_inline void
-_soft8_convert_from_rgba_pt(const DATA32 * src, DATA8 * dst, DATA8 * alpha,
- const int x, const int y)
+_soft8_convert_from_rgba_pt(const DATA32 * src, DATA8 * dst, DATA8 * alpha)
{
if (A_VAL(src) == 0)
{
static inline void
_soft8_convert_from_rgba_scanline(const DATA32 * src, DATA8 * dst,
- DATA8 * alpha, const int y, const int w)
+ DATA8 * alpha, const int w)
{
int x, m;
pld(src, 32);
UNROLL8(
{
- _soft8_convert_from_rgba_pt(src, dst, alpha, x, y);
+ _soft8_convert_from_rgba_pt(src, dst, alpha);
src++; dst++; alpha++; x++;}
);
}
for (; x < w; x++, src++, dst++, alpha++)
- _soft8_convert_from_rgba_pt(src, dst, alpha, x, y);
+ _soft8_convert_from_rgba_pt(src, dst, alpha);
}
void
for (y = 0; y < im->cache_entry.h;
y++, sp += im->cache_entry.w, dp += im->stride, ap += im->stride)
- _soft8_convert_from_rgba_scanline(sp, dp, ap, y, im->cache_entry.w);
+ _soft8_convert_from_rgba_scanline(sp, dp, ap, im->cache_entry.w);
}
static always_inline void
-_soft8_convert_from_rgb_pt(const DATA32 * src, DATA8 * dst,
- const int x, const int y)
+_soft8_convert_from_rgb_pt(const DATA32 * src, DATA8 * dst)
{
*dst = GRY_8_FROM_RGB(src);
}
static inline void
-_soft8_convert_from_rgb_scanline(const DATA32 * src, DATA8 * dst, const int y,
- const int w)
+_soft8_convert_from_rgb_scanline(const DATA32 * src, DATA8 * dst, const int w)
{
int x, m;
pld(src, 32);
UNROLL8(
{
- _soft8_convert_from_rgb_pt(src, dst, x, y); src++; dst++; x++;}
+ _soft8_convert_from_rgb_pt(src, dst); src++; dst++; x++;}
);
}
for (; x < w; x++, src++, dst++)
- _soft8_convert_from_rgb_pt(src, dst, x, y);
+ _soft8_convert_from_rgb_pt(src, dst);
}
void
for (y = 0; y < im->cache_entry.h;
y++, sp += im->cache_entry.w, dp += im->stride)
- _soft8_convert_from_rgb_scanline(sp, dp, y, im->cache_entry.w);
+ _soft8_convert_from_rgb_scanline(sp, dp, im->cache_entry.w);
}
}
static int
-_evas_common_soft8_image_colorspace_set(Image_Entry * ie_dst,
+_evas_common_soft8_image_colorspace_set(Image_Entry * ie_dst __UNUSED__,
int cspace __UNUSED__)
{
/* FIXME: handle colorspace */
int src_region_x, int src_region_y,
int src_region_w, int src_region_h,
int dst_region_x, int dst_region_y,
- int dst_region_w, int dst_region_h, int smooth)
+ int dst_region_w, int dst_region_h, int smooth __UNUSED__)
{
Eina_Rectangle sr, dr;
Cutout_Rects *rects;
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_buffer_log_dom);
}
}
static Eina_Bool
-eng_canvas_alpha_get(void *data, void *context)
+eng_canvas_alpha_get(void *data, void *context __UNUSED__)
{
Render_Engine *re;
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_fb_log_dom);
}
}
static void
-eng_output_tile_size_set(void *data, int w __UNUSED__, int h __UNUSED__)
+eng_output_tile_size_set(void *data __UNUSED__, int w __UNUSED__, int h __UNUSED__)
{
-// Render_Engine *re;
-//
-// re = (Render_Engine *)data;
}
static void
}
static void
-eng_output_redraws_rect_del(void *data, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
+eng_output_redraws_rect_del(void *data __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
{
-// Render_Engine *re;
-//
-// re = (Render_Engine *)data;
}
static void
}
static void
-eng_context_cutout_add(void *data, void *context, int x, int y, int w, int h)
+eng_context_cutout_add(void *data __UNUSED__, void *context, int x, int y, int w, int h)
{
// Render_Engine *re;
//
}
static void
-eng_context_cutout_clear(void *data, void *context)
+eng_context_cutout_clear(void *data __UNUSED__, void *context)
{
// Render_Engine *re;
//
}
static int
-eng_image_alpha_get(void *data, void *image)
+eng_image_alpha_get(void *data __UNUSED__, void *image)
{
// Render_Engine *re;
Evas_GL_Image *im;
}
static int
-eng_image_colorspace_get(void *data, void *image)
+eng_image_colorspace_get(void *data __UNUSED__, void *image)
{
// Render_Engine *re;
Evas_GL_Image *im;
}
static void *
-eng_image_border_set(void *data, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__)
+eng_image_border_set(void *data __UNUSED__, void *image, int l __UNUSED__, int r __UNUSED__, int t __UNUSED__, int b __UNUSED__)
{
// Render_Engine *re;
//
}
static void
-eng_image_border_get(void *data, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__)
+eng_image_border_get(void *data __UNUSED__, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__)
{
// Render_Engine *re;
//
}
static char *
-eng_image_comment_get(void *data, void *image, char *key __UNUSED__)
+eng_image_comment_get(void *data __UNUSED__, void *image, char *key __UNUSED__)
{
// Render_Engine *re;
Evas_GL_Image *im;
}
static char *
-eng_image_format_get(void *data, void *image)
+eng_image_format_get(void *data __UNUSED__, void *image)
{
// Render_Engine *re;
Evas_GL_Image *im;
}
static void *
-eng_image_native_get(void *data, void *image)
+eng_image_native_get(void *data __UNUSED__, void *image)
{
- Render_Engine *re = (Render_Engine *)data;
Evas_GL_Image *im = image;
Native *n;
if (!im) return NULL;
}
static void
-eng_image_size_get(void *data, void *image, int *w, int *h)
+eng_image_size_get(void *data __UNUSED__, void *image, int *w, int *h)
{
if (!image)
{
}
static void
-eng_image_stride_get(void *data, void *image, int *stride)
+eng_image_stride_get(void *data __UNUSED__, void *image, int *stride)
{
- Render_Engine *re = (Render_Engine *)data;
Evas_GL_Image *im = image;
*stride = im->w;
if ((im->tex) && (im->tex->pt->dyn.img)) *stride = im->tex->pt->dyn.w;
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_GL_X11_log_dom);
if (xrdb_user.db)
eng_image_scale_hint_set,
eng_image_scale_hint_get,
/* more font draw functions */
- eng_font_last_up_to_pos
- /* FUTURE software generic calls go here */
-// ORD(image_map4_draw);
-// ORD(image_map_surface_new);
-// ORD(image_map_surface_free);
+ eng_font_last_up_to_pos,
+ NULL, // ORD(image_map4_draw);
+ NULL, // ORD(image_map_surface_new);
+ NULL, // ORD(image_map_surface_free);
+ NULL, // eng_image_content_hint_set - software doesn't use it
+ NULL // eng_image_content_hint_get - software doesn't use it
/* FUTURE software generic calls go here */
};
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_soft16_log_dom);
}
_tmp_out_process(Render_Engine *re, int out_x, int out_y, int w, int h)
{
Soft16_Image *d, *s;
- DATA16 *dp, *sp;
- int y, x, d_dir;
d = (Soft16_Image *) re->soft16_engine_image->cache_entry.src;
s = re->tmp_out;
}
static void
-evas_engine_sdl16_image_map4_draw(void *data __UNUSED__, void *context, void *surface, void *image, RGBA_Map_Point *p, int smooth, int level)
+evas_engine_sdl16_image_map4_draw(void *data __UNUSED__, void *context __UNUSED__, void *surface __UNUSED__, void *image __UNUSED__, RGBA_Map_Point *p __UNUSED__, int smooth __UNUSED__, int level __UNUSED__)
{
}
static void
-evas_engine_sdl16_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
+evas_engine_sdl16_image_scale_hint_set(void *data __UNUSED__, void *image __UNUSED__, int hint __UNUSED__)
{
}
static int
-evas_engine_sdl16_image_scale_hint_get(void *data __UNUSED__, void *image)
+evas_engine_sdl16_image_scale_hint_get(void *data __UNUSED__, void *image __UNUSED__)
{
return EVAS_IMAGE_SCALE_HINT_NONE;
}
}
static Eina_Bool
-evas_engine_sdl16_canvas_alpha_get(void *data, void *context)
+evas_engine_sdl16_canvas_alpha_get(void *data __UNUSED__, void *context __UNUSED__)
{
return EINA_FALSE;
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_soft16_sdl_log_dom);
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_soft16_x11_log_dom);
if (xrdb_user.db)
static void
eng_font_draw(void *data __UNUSED__, void *context, void *surface, void *font,
- int x, int y, int w, int h, int ow, int oh, const Eina_Unicode *text, const Evas_BiDi_Props *intl_props)
+ int x, int y, int w __UNUSED__, int h __UNUSED__, int ow __UNUSED__, int oh __UNUSED__, const Eina_Unicode *text, const Evas_BiDi_Props *intl_props)
{
evas_common_font_draw(surface, context, font, x, y, text, intl_props);
evas_common_draw_context_font_ext_set(context, NULL, NULL, NULL, NULL);
eng_image_scale_hint_set,
eng_image_scale_hint_get,
/* more font draw functions */
- eng_font_last_up_to_pos
- /* FUTURE software generic calls go here */
-// ORD(image_map4_draw);
-// ORD(image_map_surface_new);
-// ORD(image_map_surface_free);
- /* FUTURE software generic calls go here */
+ eng_font_last_up_to_pos,
+ NULL, // ORD(image_map4_draw);
+ NULL, // ORD(image_map_surface_new);
+ NULL, // ORD(image_map_surface_free);
+ NULL, // eng_image_content_hint_set - software doesn't use it
+ NULL // eng_image_content_hint_get - software doesn't use it
+ /* FUTURE software generic calls go here */
};
/*
}
static void
-module_close(Evas_Module * em)
+module_close(Evas_Module * em __UNUSED__)
{
eina_log_domain_unregister(_evas_soft8_log_dom);
}
}
static void
-module_close(Evas_Module * em)
+module_close(Evas_Module * em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_soft8_x11_log_dom);
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_soft_gen_log_dom);
}
return 1;
}
-static void module_close(Evas_Module *em)
+static void module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_engine_soft_sdl_log_dom);
}
#endif /* BUILD_ENGINE_XRENDER_XCB */
if (!re)
- return;
+ return 0;
re->tb = evas_common_tilebuf_new(e->output.w, e->output.h);
if (re->tb)
resize = 0;
}
re = e->engine.data.output;
- if (!re) return;
+ if (!re) return 0;
if (!e->engine.data.context) e->engine.data.context = e->engine.func->context_new(e->engine.data.output);
}
static void
-eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
+eng_image_scale_hint_set(void *data __UNUSED__, void *image __UNUSED__, int hint __UNUSED__)
{
}
static int
-eng_image_scale_hint_get(void *data __UNUSED__, void *image)
+eng_image_scale_hint_get(void *data __UNUSED__, void *image __UNUSED__)
{
return EVAS_IMAGE_SCALE_HINT_NONE;
}
}
static Eina_Bool
-eng_canvas_alpha_get(void *data, void *context)
+eng_canvas_alpha_get(void *data, void *context __UNUSED__)
{
- Render_Engine *re;
-
- re = (Render_Engine *)data;
+ Render_Engine *re = (Render_Engine *)data;
return (re->destination_alpha) || (re->x11.mask);
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_xrender_xcb_log_dom);
#ifdef BUILD_ENGINE_SOFTWARE_XLIB
}
static Eina_Bool
-_xre_xlib_font_pool_cb(const Eina_Hash *hash, const void *key, void *data, void *fdata)
+_xre_xlib_font_pool_cb(const Eina_Hash *hash __UNUSED__, const void *key __UNUSED__, void *data, void *fdata)
{
char buf[256];
Eina_Hash *pool;
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
if (!rsvg_initialized) return;
//rsvg_term();
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_loader_tiff_log_dom);
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
eina_log_domain_unregister(_evas_loader_xpm_log_dom);
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}
}
static void
-module_close(Evas_Module *em)
+module_close(Evas_Module *em __UNUSED__)
{
}