1 /* Handle PNM-files Dez98 JS
6 * PGM gray ASCII=P2 RAW=P5 dx dy col gray
7 * PPM RGB ASCII=P3 RAW=P6 dx dy col RGB
8 * PBM B/W ASCII=P1 RAW=P4 dx dy bitmap
14 #include "../../config.h"
17 unsigned char *p; /* pointer of image buffer (pixmap) */
20 int bpp; /* bytes per pixel: 1=gray 3=rgb */
22 typedef struct pixmap pix;