/*

gbmppm.h - Poskancers PPM format

Reads and writes 24 bit RGB.

*/

extern GBM_ERR ppm_qft(GBMFT *gbmft);
extern GBM_ERR ppm_rhdr(const char *fn, int fd, GBM *gbm, const char *opt);
extern GBM_ERR ppm_rpal(int fd, GBM *gbm, GBMRGB *gbmrgb);
extern GBM_ERR ppm_rdata(int fd, GBM *gbm, gbm_u8 *data);
extern GBM_ERR ppm_w(const char *fn, int fd, const GBM *gbm, const GBMRGB *gbmrgb, const gbm_u8 *data, const char *opt);
extern const char *ppm_err(GBM_ERR rc);
