#ifndef __PPM__ #define __PPM__ #include #include #include #include typedef struct Image { uint8_t *data; int32_t width, height, pixel_bits; } Image; void ppm_read(const char *file, Image *img); void ppm_write(const char *file, Image *img); #endif