This commit is contained in:
2026-02-19 23:10:41 +01:00
commit d935aeaf9a
13 changed files with 8350 additions and 0 deletions

17
image.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef IMAGE_H
#define IMAGE_H
#include <stdint.h>
typedef struct {
int width;
int height;
uint8_t *data;
} image_t;
int image_load(image_t *img, const char *filename);
int image_resize(image_t *src, image_t *dst, int new_w, int new_h);
void image_free(image_t *img);
void image_free_raw(image_t *img);
#endif // !IMAGE_H