nice refactors, now way cleaner to work with!

This commit is contained in:
2026-04-07 17:20:42 +02:00
parent 966c15cffb
commit bdc58f5b48
17 changed files with 61 additions and 31 deletions

17
include/encoder/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