|
|
|
@ -11,27 +11,12 @@ |
|
|
|
|
|
|
|
|
|
#include "tsuite_file_data.h" |
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
|
{ |
|
|
|
|
int w; |
|
|
|
|
int h; |
|
|
|
|
void *pixels; |
|
|
|
|
int pixels_len; |
|
|
|
|
} Exactness_Image; |
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
|
{ |
|
|
|
|
void *p1; |
|
|
|
|
void *p2; |
|
|
|
|
} _Two_Ptrs; |
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
|
{ |
|
|
|
|
Lists_st *scn; |
|
|
|
|
// Exactness_Scenario *scn;
|
|
|
|
|
Eina_List *imgs; /* List of Exactness_Image */ |
|
|
|
|
} Exactness_Unit; |
|
|
|
|
|
|
|
|
|
static Eo *_main_box = NULL; |
|
|
|
|
static Eina_List *_gls = NULL; |
|
|
|
|
static Eina_List *_units = NULL; |
|
|
|
@ -202,8 +187,8 @@ _pixels_compare(Exactness_Image *img1, Exactness_Image *img2, Eina_Bool *has_dif |
|
|
|
|
free(imgO); |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
imgO->pixels_len = imgO->w * imgO->h *4; |
|
|
|
|
imgO->pixels = malloc(imgO->pixels_len); |
|
|
|
|
imgO->pixels_count = imgO->w * imgO->h *4; |
|
|
|
|
imgO->pixels = malloc(imgO->pixels_count); |
|
|
|
|
|
|
|
|
|
pxs1 = img1 ? img1->pixels : NULL; |
|
|
|
|
pxs2 = img2 ? img2->pixels : NULL; |
|
|
|
@ -455,8 +440,8 @@ _gui_unit_display(Exactness_Unit *unit1, Exactness_Unit *unit2, int position) |
|
|
|
|
} |
|
|
|
|
_itc_init(); |
|
|
|
|
|
|
|
|
|
itr1 = unit1 && unit1->scn ? unit1->scn->variant_list : NULL; |
|
|
|
|
itr2 = unit2 && unit2->scn ? unit2->scn->variant_list : NULL; |
|
|
|
|
itr1 = unit1 ? unit1->events : NULL; |
|
|
|
|
itr2 = unit2 ? unit2->events : NULL; |
|
|
|
|
|
|
|
|
|
if (itr1) |
|
|
|
|
elm_genlist_item_append(gl, _grp_itc, "Scenario", NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL); |
|
|
|
@ -529,8 +514,8 @@ _image_read(const char *filename) |
|
|
|
|
evas_object_image_size_get(img, &w, &h); |
|
|
|
|
ex_img->w = w; |
|
|
|
|
ex_img->h = h; |
|
|
|
|
ex_img->pixels_len = w * h * 4; |
|
|
|
|
len = ex_img->pixels_len; |
|
|
|
|
ex_img->pixels_count = w * h * 4; |
|
|
|
|
len = ex_img->pixels_count; |
|
|
|
|
ex_img->pixels = malloc(len); |
|
|
|
|
memcpy(ex_img->pixels, evas_object_image_data_get(img, EINA_FALSE), len); |
|
|
|
|
|
|
|
|
@ -635,7 +620,7 @@ main(int argc, char *argv[]) |
|
|
|
|
unsigned int tm = evt_time_get(0, v); |
|
|
|
|
if (tm) evt_time_set(tm - list->first_timestamp, v); |
|
|
|
|
} |
|
|
|
|
ex_unit->scn = list; |
|
|
|
|
ex_unit->events = list->variant_list; |
|
|
|
|
_units = eina_list_append(_units, ex_unit); |
|
|
|
|
} |
|
|
|
|
else if (!strcmp(ext, ".png")) |
|
|
|
|