summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/lib/ethumb_private.h
blob: a647c5b27aaef4eafd70f1a9202ff0fc1d4f1396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef __ETHUMB_PRIVATE_H__
#define __ETHUMB_PRIVATE_H__ 1

#include <Ethumb.h>

typedef struct _Ethumb_Frame Ethumb_Frame;

struct _Ethumb_Frame
{
   const char *file;
   const char *group;
   const char *swallow;
   Evas_Object *edje;
};

struct _Ethumb
{
   const char *thumb_dir;
   const char *category;
   int tw, th;
   int format;
   int aspect;
   float crop_x, crop_y;
   int quality;
   int compress;
   const char *src_path;
   const char *src_key;
   const char *thumb_path;
   const char *thumb_key;
   int rw, rh;
   struct
     {
	double start, time, interval;
	unsigned int ntimes, fps;
     } video;
   struct
     {
	unsigned int page;
     } document;
   Ethumb_Frame *frame;
   Ecore_Evas *ee, *sub_ee;
   Evas *e, *sub_e;
   Evas_Object *o, *img;
   Ecore_Idler *finished_idler;
   Ethumb_Generate_Cb finished_cb;
   void *cb_data;
   Eina_Free_Cb cb_data_free;
   int cb_result;
};

#endif /* __ETHUMB_PRIVATE_H__ */