chiark / gitweb /
wip fetching images from X
[ypp-sc-tools.web-live.git] / pctb / ocr.h
index 4b8ff05b9db1e760c528e54fb4d29448cb8f9bbc..d8491e68f7dfef0eb0ad634e5473353bfeb092a6 100644 (file)
 #include <sys/types.h>
 #include <sys/wait.h>
 
+
+typedef struct {
+  int w,h;
+  char d[];
+} CanonImage;
+
+
 typedef uint32_t Pixcol;
 #define PSPIXCOL(priscan) priscan##32
 
@@ -42,8 +49,11 @@ void debug_flush(void);
 
 const char *get_vardir(void);
 
+CanonImage *file_read_image(FILE *f);
+int main_test(void);
+
 
-// #define DEBUG_RECTANGLES
+#define DEBUG_RECTANGLES
 // #define DEBUG_OCR
 
 #endif /*OCR_H*/