amiga_imgv

view src/image.h @ 0:a4788c959918

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 25 Oct 2017 19:34:53 +0300
parents
children f75893a33234
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 #include "inttypes.h"
6 struct palchange {
7 int 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[16];
16 int nbitplanes;
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);
23 #endif /* IMAGE_H_ */