]> mj.ucw.cz Git - libucw.git/blob - images/object.h
Released as 6.5.17.
[libucw.git] / images / object.h
1 #ifndef _IMAGES_OBJECT_H
2 #define _IMAGES_OBJECT_H
3
4 #include <images/images.h>
5
6 #ifdef CONFIG_UCW_CLEAN_ABI
7 #define get_image_obj_info ucw_get_image_obj_info
8 #define get_image_obj_signature ucw_get_image_obj_signature
9 #define get_image_obj_thumb ucw_get_image_obj_thumb
10 #define put_image_obj_signature ucw_put_image_obj_signature
11 #define read_image_obj_thumb ucw_read_image_obj_thumb
12 #endif
13
14 struct image_obj_info {
15   uint cols;
16   uint rows;
17   uint colors;
18   enum image_format thumb_format;
19   uint thumb_cols;
20   uint thumb_rows;
21   uint thumb_size;
22   byte *thumb_data;
23 };
24
25 struct odes;
26 struct mempool;
27 struct image_signature;
28
29 uint get_image_obj_info(struct image_obj_info *ioi, struct odes *o);
30 uint get_image_obj_thumb(struct image_obj_info *ioi, struct odes *o, struct mempool *pool);
31 struct image *read_image_obj_thumb(struct image_obj_info *ioi, struct fastbuf *fb, struct image_io *io, struct mempool *pool);
32 void put_image_obj_signature(struct odes *o, struct image_signature *sig);
33 uint get_image_obj_signature(struct image_signature *sig, struct odes *o);
34
35 #endif