amiga_imgv

view src/image.h @ 2:f75893a33234

hammer -> ham image converter
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Oct 2017 10:04:29 +0300
parents a4788c959918
children 4c36d0f44aa6
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[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_ */