nice refactors, now way cleaner to work with!
This commit is contained in:
17
include/encoder/image.h
Normal file
17
include/encoder/image.h
Normal 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
|
||||
Reference in New Issue
Block a user