amiga_imgv

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/image.h	Wed Oct 25 19:34:53 2017 +0300
     1.3 @@ -0,0 +1,23 @@
     1.4 +#ifndef IMAGE_H_
     1.5 +#define IMAGE_H_
     1.6 +
     1.7 +#include "inttypes.h"
     1.8 +
     1.9 +struct palchange {
    1.10 +	int line;
    1.11 +	uint16_t entry;	/* [ idx | r | g | b ] */
    1.12 +	struct palchange *next;
    1.13 +};
    1.14 +
    1.15 +struct ham_image {
    1.16 +	int width, height;
    1.17 +	unsigned char *pixels;
    1.18 +	uint16_t palette[16];
    1.19 +	int nbitplanes;
    1.20 +	struct palchange *chglist;
    1.21 +};
    1.22 +
    1.23 +struct ham_image *load_ham_image(const char *fname);
    1.24 +struct ham_image *gen_ham_image(int w, int h, int nbpl);
    1.25 +
    1.26 +#endif	/* IMAGE_H_ */