home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Graphics / ToyViewer-2.6a / src / ppm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-06  |  504 b   |  14 lines

  1. #include  "common.h"
  2.  
  3. #define  PBMa    1    /* pbm (bits) in ASCII */
  4. #define  PGMa    2    /* pgm (gray) in ASCII */
  5. #define  PPMa    3    /* ppm (color) in ASCII */
  6. #define  PBMb    4    /* pbm (bits) in BINARY */
  7. #define  PGMb    5    /* pgm (gray) in BINARY */
  8. #define  PPMb    6    /* ppm (color) in BINARY */
  9. #define  isPPMascii(x)    ((x)==PBMa || (x)==PGMa || (x)==PPMa)
  10. #define  PPMname(x)    (&"PPM\0PBM\0PGM"[(x)%3 * 4])
  11.  
  12. commonInfo *loadPpmHeader(FILE *, int *);
  13. int ppmGetImage(FILE *, commonInfo *, unsigned char **, const char *);
  14.