aboutsummaryrefslogtreecommitdiff
path: root/src/ppm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppm.h')
-rw-r--r--src/ppm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ppm.h b/src/ppm.h
index f6dfd82..1fff658 100644
--- a/src/ppm.h
+++ b/src/ppm.h
@@ -1,10 +1,13 @@
#ifndef PPM_H
#define PPM_H
-void save_as_ppm(char* file_path, int *t, size_t width, size_t height, size_t scaler);
+#include <stdint.h>
+typedef uint8_t small_t;
-int *load_from_ppm(char *file_path, size_t *width, size_t *height);
+void save_as_ppm(char* file_path, small_t *t, size_t width, size_t height, size_t scaler);
-void free_ppm(int *img);
+small_t *load_from_ppm(char *file_path, size_t *width, size_t *height);
+
+void free_ppm(small_t *img);
#endif