From ec57f80b20e2309774b7e3a215640637e1c8e0f7 Mon Sep 17 00:00:00 2001 From: kartofen Date: Tue, 9 Aug 2022 23:07:37 +0300 Subject: better --- src/ppm.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ppm.h') 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 +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 -- cgit v1.2.3