diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-12 01:15:45 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-12 01:15:45 +0000 |
commit | 34f53151414bcdf44ec81e582b007f74da595694 (patch) | |
tree | 863058f0d94e9d39998774a375aa6d242d8714a4 /src/lib/ethumb/Ethumb_Plugin.h | |
parent | ae51833bac7ba5f72bd40a96beb13081c8d573f6 (diff) |
merge ethumb.
This one was a painful bitch. The edbus2 port was quite broken, mainly
leaking eina_stringshare and also not adding the '\0' to the strings
that are represented as bytearray (paths cannot be utf8 to avoid
translations).
Emotion plugin was also quite bogus and the video thumbnail as edje
(animated) is not working yet due bug in Edje_Edit api -- someone
needs to investigate this, seems strange.
Emotion plugin also had a bug that it was deleting the object from
inside object callback.
Now it seems to work. Please report if it does not.
SVN revision: 82675
Diffstat (limited to 'src/lib/ethumb/Ethumb_Plugin.h')
-rw-r--r-- | src/lib/ethumb/Ethumb_Plugin.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/ethumb/Ethumb_Plugin.h b/src/lib/ethumb/Ethumb_Plugin.h new file mode 100644 index 0000000000..3eb6f020cd --- /dev/null +++ b/src/lib/ethumb/Ethumb_Plugin.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef _ETHUMB_PLUGIN_H_ | ||
2 | #define _ETHUMB_PLUGIN_H_ | ||
3 | |||
4 | #include <Evas.h> | ||
5 | #include <Ecore_Evas.h> | ||
6 | #include <Ethumb.h> | ||
7 | |||
8 | typedef struct _Ethumb_Plugin Ethumb_Plugin; | ||
9 | |||
10 | struct _Ethumb_Plugin | ||
11 | { | ||
12 | const char **extensions; | ||
13 | void *(*thumb_generate)(Ethumb *); | ||
14 | void (*thumb_cancel)(Ethumb *, void *); | ||
15 | }; | ||
16 | |||
17 | EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h); | ||
18 | EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h); | ||
19 | EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh); | ||
20 | EAPI void ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int *fh); | ||
21 | EAPI Eina_Bool ethumb_plugin_image_resize(Ethumb *e, int w, int h); | ||
22 | EAPI Eina_Bool ethumb_image_save(Ethumb *e); | ||
23 | EAPI void ethumb_finished_callback_call(Ethumb *e, int result); | ||
24 | EAPI Evas * ethumb_evas_get(const Ethumb *e); | ||
25 | EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e); | ||
26 | |||
27 | #endif /* _ETHUMB_PLUGIN_H_ */ | ||