amiga_imgv

annotate 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
rev   line source
nuclear@0 1 #ifndef IMAGE_H_
nuclear@0 2 #define IMAGE_H_
nuclear@0 3
nuclear@0 4 #include "inttypes.h"
nuclear@0 5
nuclear@0 6 struct palchange {
nuclear@2 7 uint16_t line;
nuclear@0 8 uint16_t entry; /* [ idx | r | g | b ] */
nuclear@0 9 struct palchange *next;
nuclear@0 10 };
nuclear@0 11
nuclear@0 12 struct ham_image {
nuclear@0 13 int width, height;
nuclear@0 14 unsigned char *pixels;
nuclear@7 15 uint16_t palette[256];
nuclear@7 16 int nbitplanes, ham;
nuclear@0 17 struct palchange *chglist;
nuclear@0 18 };
nuclear@0 19
nuclear@0 20 struct ham_image *load_ham_image(const char *fname);
nuclear@0 21 struct ham_image *gen_ham_image(int w, int h, int nbpl);
nuclear@7 22 struct ham_image *load_ilbm(const char *fname);
nuclear@0 23
nuclear@0 24 #endif /* IMAGE_H_ */