#include /* Map from dest pixel to source pixels */ typedef struct map_elem_t { int x, y; int a1, a2, a3, a4; /* ul, ur, ll, lr */ } map_elem_t; typedef struct map_t { int w, h; map_elem_t* e; } map_t; /* Map from intensity to text character */ typedef int font_t; /* misc.c */ extern void generate_palette(PALETTE pal); /* permute.c */ extern map_t* init_permutation(int width, int height); extern void cleanup_permutation(map_t* map); extern void permute_bmp(map_t* map, BITMAP* victim, BITMAP* buffer); /* bmp2txt.c */ extern font_t* init_bmp2txt(void); extern void cleanup_bmp2txt(font_t* font); extern void asciify_bmp(font_t* font, BITMAP* bmp);