amiga_imgv
view src/image.h @ 8:a9edbbdb8213
forgot to add the ILBM image loader
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 29 Oct 2017 15:08:29 +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_ */