X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgocr%2Fpnm.h;fp=lib%2Fgocr%2Fpnm.h;h=7d5bc8a1a94a529bab0d86a4f9fa826bd9b396b6;hp=0000000000000000000000000000000000000000;hb=8154e11e1c06aefe18c16b33f2b12d6de21273a4;hpb=e8fe2f290123fc66181709a8a5263ad9e91c6939 diff --git a/lib/gocr/pnm.h b/lib/gocr/pnm.h new file mode 100644 index 0000000..7d5bc8a --- /dev/null +++ b/lib/gocr/pnm.h @@ -0,0 +1,24 @@ +/* Handle PNM-files Dez98 JS + * 0,0 = left up + * PAM-formats + * PAM any P7 + * PNM-formats + * PGM gray ASCII=P2 RAW=P5 dx dy col gray + * PPM RGB ASCII=P3 RAW=P6 dx dy col RGB + * PBM B/W ASCII=P1 RAW=P4 dx dy bitmap + */ + +#ifndef GOCR_PNM_H +#define GOCR_PNM_H 1 + +#include "../../config.h" + +struct pixmap { + unsigned char *p; /* pointer of image buffer (pixmap) */ + int x; /* xsize */ + int y; /* ysize */ + int bpp; /* bytes per pixel: 1=gray 3=rgb */ + }; +typedef struct pixmap pix; + +#endif