amiga_imgv
view src/image.h @ 12:20c7238c60be
img2ham unfinished
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 20 Nov 2017 08:36:16 +0200 |
parents | f75893a33234 |
children |
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 #include "inttypes.h"
6 struct palchange {
7 uint16_t line;
8 uint16_t entry; /* [ idx | r | g | b ] */
9 struct palchange *next;
10 };
12 struct ham_image {
13 int width, height;
14 unsigned char *pixels;
15 uint16_t palette[256];
16 int nbitplanes, ham;
17 struct palchange *chglist;
18 };
20 struct ham_image *load_ham_image(const char *fname);
21 struct ham_image *gen_ham_image(int w, int h, int nbpl);
22 struct ham_image *load_ilbm(const char *fname);
24 #endif /* IMAGE_H_ */