00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __PPM_H__
00018 #define __PPM_H__
00019
00020 typedef struct {
00021 unsigned char *data;
00022 int width, height;
00023 int maxVal;
00024 } PPMFile;
00025
00026 void ppmRead(char *filename, PPMFile *ppmFile);
00027 void ppmWrite(char *filename, PPMFile *ppmFile);
00028
00029 #endif