From 34f53151414bcdf44ec81e582b007f74da595694 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 12 Jan 2013 01:15:45 +0000 Subject: 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 --- src/lib/ethumb/Ethumb_Plugin.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/lib/ethumb/Ethumb_Plugin.h (limited to 'src/lib/ethumb/Ethumb_Plugin.h') 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 @@ +#ifndef _ETHUMB_PLUGIN_H_ +#define _ETHUMB_PLUGIN_H_ + +#include +#include +#include + +typedef struct _Ethumb_Plugin Ethumb_Plugin; + +struct _Ethumb_Plugin +{ + const char **extensions; + void *(*thumb_generate)(Ethumb *); + void (*thumb_cancel)(Ethumb *, void *); +}; + +EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h); +EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h); +EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh); +EAPI void ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int *fh); +EAPI Eina_Bool ethumb_plugin_image_resize(Ethumb *e, int w, int h); +EAPI Eina_Bool ethumb_image_save(Ethumb *e); +EAPI void ethumb_finished_callback_call(Ethumb *e, int result); +EAPI Evas * ethumb_evas_get(const Ethumb *e); +EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e); + +#endif /* _ETHUMB_PLUGIN_H_ */ -- cgit v1.2.1