/* Compile includes separately to make GST table */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <dos.h>

#include <dos/dos.h>
#include <dos/rdargs.h>
#include <exec/exec.h>
#include <graphics/gfxbase.h>
#include <intuition/intuition.h>
#include <workbench/startup.h>
#include <workbench/workbench.h>
#include <proto/all.h>

#include <egs/egs.h>
#include <egs/egsgfx.h>
#include <egs/egsblit.h>
#include <egs/egsintui.h>
#include <egs/proto/egs.h>
#include <egs/proto/egsgfx.h>
#include <egs/proto/egsblit.h>
#include <egs/proto/egsintui.h>

#include "c2p_000.h"
#include "c2p_020.h"
#include "c2p_040.h"
#include "c2p_akiko.h"
#include "math64.h"
#include "decode.h"

/****************************************************************************/

typedef enum mode_type {MODE_COLOUR, MODE_EHB, MODE_COLOUR4, MODE_GREY,
                        MODE_EGS};

void median_cut (UBYTE colourtable[256][3],
                 UWORD *viewcolourtable,
                 UBYTE *xlate,
                 enum mode_type mode);

extern void die (char *msg, ...);
