From 5c349e90279e6f95dac80cfca02bea04100566ec Mon Sep 17 00:00:00 2001 From: Stephen okra Houston Date: Thu, 23 Jun 2016 13:37:07 -0500 Subject: [PATCH] Ephoto: Clean up filters --- src/bin/ephoto_filters.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/bin/ephoto_filters.c b/src/bin/ephoto_filters.c index fd7f87c..ba7d529 100644 --- a/src/bin/ephoto_filters.c +++ b/src/bin/ephoto_filters.c @@ -29,9 +29,6 @@ struct _Ephoto_Filter Eina_List *queue; Evas_Coord w; Evas_Coord h; - int pos; - int blur_posx; - int blur_posy; int rad; int qpos; int qcount; @@ -213,7 +210,6 @@ _thread_finished_cb(void *data, Ecore_Thread *th EINA_UNUSED) if (ef->cdf) free(ef->cdf); ef->cdf = NULL; - ef->pos = 0; ef->qpos++; if (ef->qpos-1 < ef->qcount) { @@ -532,10 +528,8 @@ _blur(void *data, Ecore_Thread *th EINA_UNUSED) ef->im_data_new = memcpy(ef->im_data_new, ef->im_data, sizeof(unsigned int) * w * h); - if (ef->blur_posy < ef->h - 1) - _blur_vertical(ef, rad); - if (ef->blur_posy == ef->h -1) - _blur_horizontal(ef, rad); + _blur_vertical(ef, rad); + _blur_horizontal(ef, rad); } } @@ -1098,7 +1092,6 @@ ephoto_filter_sharpen(Evas_Object *main, Evas_Object *image) ef->im_data_orig = memcpy(ef->im_data_orig, ef->im_data, sizeof(unsigned int) * ef->w * ef->h); - ef->pos = 1; ef->rad = 9; ef->qcount = 1; ef->qpos = 0;