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_private.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_private.h')
-rw-r--r-- | src/lib/ethumb/ethumb_private.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/lib/ethumb/ethumb_private.h b/src/lib/ethumb/ethumb_private.h new file mode 100644 index 0000000000..49e4de9f67 --- /dev/null +++ b/src/lib/ethumb/ethumb_private.h | |||
@@ -0,0 +1,57 @@ | |||
1 | #ifndef __ETHUMB_PRIVATE_H__ | ||
2 | #define __ETHUMB_PRIVATE_H__ 1 | ||
3 | |||
4 | #include <Ethumb.h> | ||
5 | #include <Ethumb_Plugin.h> | ||
6 | |||
7 | typedef struct _Ethumb_Frame Ethumb_Frame; | ||
8 | |||
9 | struct _Ethumb_Frame | ||
10 | { | ||
11 | const char *file; | ||
12 | const char *group; | ||
13 | const char *swallow; | ||
14 | Evas_Object *edje; | ||
15 | }; | ||
16 | |||
17 | struct _Ethumb | ||
18 | { | ||
19 | const char *thumb_dir; | ||
20 | const char *category; | ||
21 | int tw, th; | ||
22 | int format; | ||
23 | int aspect; | ||
24 | int orientation; | ||
25 | float crop_x, crop_y; | ||
26 | int quality; | ||
27 | int compress; | ||
28 | const char *src_hash; | ||
29 | const char *src_path; | ||
30 | const char *src_key; | ||
31 | const char *thumb_path; | ||
32 | const char *thumb_key; | ||
33 | int rw, rh; | ||
34 | struct | ||
35 | { | ||
36 | double start, time, interval; | ||
37 | unsigned int ntimes, fps; | ||
38 | } video; | ||
39 | struct | ||
40 | { | ||
41 | unsigned int page; | ||
42 | } document; | ||
43 | Ethumb_Frame *frame; | ||
44 | Ecore_Evas *ee, *sub_ee; | ||
45 | Evas *e, *sub_e; | ||
46 | Evas_Object *o, *img; | ||
47 | Ecore_Idler *finished_idler; | ||
48 | Ethumb_Generate_Cb finished_cb; | ||
49 | void *cb_data; | ||
50 | Eina_Free_Cb cb_data_free; | ||
51 | int cb_result; | ||
52 | |||
53 | void *pdata; | ||
54 | Ethumb_Plugin *plugin; | ||
55 | }; | ||
56 | |||
57 | #endif /* __ETHUMB_PRIVATE_H__ */ | ||