2009-04-21 16:06:57 -07:00
|
|
|
#ifndef __ETHUMB_PRIVATE_H__
|
|
|
|
#define __ETHUMB_PRIVATE_H__ 1
|
|
|
|
|
|
|
|
#include <Ethumb.h>
|
|
|
|
|
2009-09-17 07:05:04 -07:00
|
|
|
typedef struct _Ethumb_Frame Ethumb_Frame;
|
|
|
|
|
2009-04-21 16:06:57 -07:00
|
|
|
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;
|
2010-09-19 10:07:35 -07:00
|
|
|
int orientation;
|
2009-04-21 16:06:57 -07:00
|
|
|
float crop_x, crop_y;
|
2009-07-09 12:16:02 -07:00
|
|
|
int quality;
|
|
|
|
int compress;
|
2009-04-21 16:08:17 -07:00
|
|
|
const char *src_path;
|
|
|
|
const char *src_key;
|
|
|
|
const char *thumb_path;
|
|
|
|
const char *thumb_key;
|
|
|
|
int rw, rh;
|
2009-04-21 16:06:57 -07:00
|
|
|
struct
|
|
|
|
{
|
2009-07-13 12:38:17 -07:00
|
|
|
double start, time, interval;
|
2009-09-17 07:05:04 -07:00
|
|
|
unsigned int ntimes, fps;
|
2009-04-21 16:06:57 -07:00
|
|
|
} video;
|
|
|
|
struct
|
|
|
|
{
|
2009-09-17 07:05:04 -07:00
|
|
|
unsigned int page;
|
2009-04-21 16:06:57 -07:00
|
|
|
} document;
|
|
|
|
Ethumb_Frame *frame;
|
|
|
|
Ecore_Evas *ee, *sub_ee;
|
|
|
|
Evas *e, *sub_e;
|
|
|
|
Evas_Object *o, *img;
|
|
|
|
Ecore_Idler *finished_idler;
|
2009-09-12 11:23:05 -07:00
|
|
|
Ethumb_Generate_Cb finished_cb;
|
2009-04-21 16:06:57 -07:00
|
|
|
void *cb_data;
|
2009-09-12 11:23:05 -07:00
|
|
|
Eina_Free_Cb cb_data_free;
|
2009-05-19 04:58:29 -07:00
|
|
|
int cb_result;
|
2009-04-21 16:06:57 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ETHUMB_PRIVATE_H__ */
|