reduced memory requirements for Illustrator files
[swftools.git] / lib / pdf / bbox.h
1 #ifndef __bbox_h__
2 #define __bbox_h__
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 typedef struct _ibbox {
9     int xmin,ymin,xmax,ymax;
10     struct _ibbox*next;
11 } ibbox_t;
12
13 ibbox_t ibbox_clip(ibbox_t* outer, ibbox_t* inner);
14
15 ibbox_t* ibbox_new(int x1, int y1, int x2, int y2, int rowsize);
16 void ibbox_destroy(ibbox_t*b);
17 ibbox_t*get_bitmap_bboxes(unsigned char*alpha, int width, int height, int rowsize);
18
19 #ifdef __cplusplus
20 }
21 #endif
22
23 #endif //__bbox_h__