aboutsummaryrefslogtreecommitdiff
path: root/src/ppm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppm.h')
-rw-r--r--src/ppm.h15
1 files changed, 15 insertions, 0 deletions
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 <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+
+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
Feel free to download, copy and edit any repo