nuclear@0: #ifndef IMAGE_H_ nuclear@0: #define IMAGE_H_ nuclear@0: nuclear@0: #include "inttypes.h" nuclear@0: nuclear@0: struct palchange { nuclear@2: uint16_t line; nuclear@0: uint16_t entry; /* [ idx | r | g | b ] */ nuclear@0: struct palchange *next; nuclear@0: }; nuclear@0: nuclear@0: struct ham_image { nuclear@0: int width, height; nuclear@0: unsigned char *pixels; nuclear@7: uint16_t palette[256]; nuclear@7: int nbitplanes, ham; nuclear@0: struct palchange *chglist; nuclear@0: }; nuclear@0: nuclear@0: struct ham_image *load_ham_image(const char *fname); nuclear@0: struct ham_image *gen_ham_image(int w, int h, int nbpl); nuclear@7: struct ham_image *load_ilbm(const char *fname); nuclear@0: nuclear@0: #endif /* IMAGE_H_ */