amiga_imgv

view src/image.h @ 11:3d9aaefb8ba6

interlace mode
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 30 Oct 2017 15:24:23 +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_ */