From 3113ade53d0dd889058c7838bb19c0fa0492b410 Mon Sep 17 00:00:00 2001 From: jvech Date: Sun, 18 Jun 2023 15:03:25 -0500 Subject: init: ppm library utilities implemented It is not completed at all but it works well --- src/ppm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ppm.h (limited to 'src/ppm.h') diff --git a/src/ppm.h b/src/ppm.h new file mode 100644 index 0000000..5cf8b02 --- /dev/null +++ b/src/ppm.h @@ -0,0 +1,15 @@ +#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 -- cgit v1.2.3-70-g09d2