extern long mix_alpha8(long c1, long c2, int alpha);
extern void fill_line_flat_opaque8(unsigned char *line, long pixels, long col);
extern void fill_line_flat8(unsigned char *line, long pixels, long col, int alpha);
extern void fill_line_flat_bitmap8(unsigned char *p, long n, Color *cmap, unsigned char *pixels, int pixbpl, long x1, long y1, long dx, long dy, long width, long height, int tiled);
extern void fill_line_alpha_chn_bitmap8(unsigned char *p, long n, Color *cmap, unsigned char *pixels, int pixbpl, long x1, long y1, long dx, long dy, unsigned char *alphatable, unsigned char *alphachannel, long width, long height, int tiled);
extern void fill_line_alpha_bitmap8(unsigned char *p, long n, Color *cmap, unsigned char *pixels, int pixbpl, long x1, long y1, long dx, long dy, unsigned char *alphachannel, long width, long height, int tiled);
extern int fill_line_ramp_opaque8(unsigned char *point, long n, Color *ramp, long r, long dr);
extern int fill_line_ramp8(unsigned char *point, long n, Color *ramp, long r, long dr);
extern int fill_line_ramp_2_opaque8(unsigned char *point, long n, Color *ramp, long r, long dr);
extern int fill_line_ramp_2_8(unsigned char *point, long n, Color *ramp, long r, long dr);
extern void fill_line_radial_ramp_2_8(unsigned char *point, long n, long *X, long *Y, long dx, long dy, Color *ramp, unsigned char *SQRT);
extern void fill_line_radial_ramp8(unsigned char *point, long n, long *X, long *Y, long dx, long dy, Color *ramp, unsigned char *SQRT);