summaryrefslogtreecommitdiff
path: root/legacy/ethumb
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2009-11-11 19:03:25 +0000
committerRafael Antognolli <antognolli@gmail.com>2009-11-11 19:03:25 +0000
commit44f0e8004608f5d2ba481a16aaa13dc25122d86d (patch)
tree986104e81939728316d0a92903081eba47bf17d7 /legacy/ethumb
parenta2f8b6a5261e9a2ca47d773130d738cb7f1eea51 (diff)
Add logging to ethumb emotion plugin.
Some debug logging info to ethumb emotion plugin. SVN revision: 43620
Diffstat (limited to 'legacy/ethumb')
-rw-r--r--legacy/ethumb/src/plugins/emotion/emotion.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/ethumb/src/plugins/emotion/emotion.c b/legacy/ethumb/src/plugins/emotion/emotion.c
index 8695b67eed..162a489968 100644
--- a/legacy/ethumb/src/plugins/emotion/emotion.c
+++ b/legacy/ethumb/src/plugins/emotion/emotion.c
@@ -15,6 +15,12 @@
15#include <Edje_Edit.h> 15#include <Edje_Edit.h>
16#include <Emotion.h> 16#include <Emotion.h>
17 17
18static int _log_dom = -1;
19#define DBG(...) EINA_LOG_DOM_DBG(_log_dom, __VA_ARGS__)
20#define INF(...) EINA_LOG_DOM_INFO(_log_dom, __VA_ARGS__)
21#define WRN(...) EINA_LOG_DOM_WARN(_log_dom, __VA_ARGS__)
22#define ERR(...) EINA_LOG_DOM_ERR(_log_dom, __VA_ARGS__)
23
18struct _emotion_plugin 24struct _emotion_plugin
19{ 25{
20 unsigned int fps; 26 unsigned int fps;
@@ -40,6 +46,7 @@ _resize_movie(struct _emotion_plugin *_plugin)
40 ratio = emotion_object_ratio_get(_plugin->video); 46 ratio = emotion_object_ratio_get(_plugin->video);
41 ethumb_calculate_aspect_from_ratio(e, ratio, &w, &h); 47 ethumb_calculate_aspect_from_ratio(e, ratio, &w, &h);
42 ethumb_calculate_fill_from_ratio(e, ratio, &fx, &fy, &fw, &fh); 48 ethumb_calculate_fill_from_ratio(e, ratio, &fx, &fy, &fw, &fh);
49 DBG("size: w=%d, h=%d fill: x=%d, y=%d, w=%d, h=%d", w, h, fx, fy, fw, fh);
43 50
44 _plugin->w = w; 51 _plugin->w = w;
45 _plugin->h = h; 52 _plugin->h = h;
@@ -187,6 +194,8 @@ _frame_grab_single(void *data)
187 if (p < _plugin->pi) 194 if (p < _plugin->pi)
188 return EINA_TRUE; 195 return EINA_TRUE;
189 196
197 DBG("saving static thumbnail at position=%f (intended=%f)", p, _plugin->pi);
198
190 ethumb_image_save(e); 199 ethumb_image_save(e);
191 200
192 evas_object_smart_callback_del(_plugin->video, "frame_resize", 201 evas_object_smart_callback_del(_plugin->video, "frame_resize",
@@ -350,6 +359,8 @@ ethumb_plugin_get(void)
350 _generate_thumb, 359 _generate_thumb,
351 }; 360 };
352 361
362 _log_dom = eina_log_domain_register("ethumb_emotion", EINA_COLOR_GREEN);
363
353 return &plugin; 364 return &plugin;
354} 365}
355 366