blob: 60a05b8c7910e452bbc5b539b8ccba3f315ad8b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <tinyff/common.h>
#include <tinyff/result.h>
#ifndef GENERIC_IMAGE_H
#define GENERIC_IMAGE_H
// Tracks which format the image was decoded from
typedef enum {
FF_IMAGE_ORIGIN_PNG,
FF_IMAGE_ORIGIN_BMP
} ff_image_origin;
// Warning: Data is RGBA8888, scanlines top to bottom
typedef struct {
uint32_t width;
uint32_t height;
ff_image_origin origin;
uint8_t* data;
} ff_image_ctx;
#endif
|