diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-09 23:07:37 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-09 23:07:37 +0300 |
commit | ec57f80b20e2309774b7e3a215640637e1c8e0f7 (patch) | |
tree | c68058ab9e2c8294eea5dfe36a18672644d3c67a /src/ppm.h | |
parent | 00c3363ca258f160b875ec254e701017be0314db (diff) |
better
Diffstat (limited to 'src/ppm.h')
-rw-r--r-- | src/ppm.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |