#define BLACK		0	/* dark colors */
#define BLUE		1
#define GREEN		2
#define CYAN		3
#define RED		4
#define MAGENTA		5
#define BROWN		6
#define LIGHTGRAY	7
#define DARKGRAY	8	/* light colors */
#define LIGHTBLUE	9
#define LIGHTGREEN	10
#define LIGHTCYAN	11
#define LIGHTRED	12
#define LIGHTMAGENTA	13
#define YELLOW		14
#define WHITE		15

#ifndef PAGE_COLOR
#define PAGE_COLOR	RED
#endif
#ifndef TEXT_COLOR
#define TEXT_COLOR	LIGHTGREEN
#endif
#ifndef BORDER_COLOR
#define BORDER_COLOR	RED
#endif

typedef struct {
	char **data;
	int wid;
	int ht;
	int *rgb;
	float scale;
	char *filename;
} vga_image;

#include <vga.h>
#include <vgagl.h>
#define min(x,y) (x<y?x:y)
void display (char **, int);
void decode (char *);
