started working on bitmap splitter
[swftools.git] / lib / pdf / bbox.h
diff --git a/lib/pdf/bbox.h b/lib/pdf/bbox.h
new file mode 100644 (file)
index 0000000..053472b
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef __bbox_h__
+#define __bbox_h__
+
+typedef struct _ibbox {
+    int xmin,ymin,xmax,ymax;
+    struct _ibbox*next;
+} ibbox_t;
+
+ibbox_t* ibbox_new(int x1, int y1, int x2, int y2);
+void ibbox_destroy(ibbox_t*b);
+ibbox_t*get_bitmap_bboxes(unsigned char*alpha, int width, int height);
+
+#endif //__bbox_h__