8 static char rcsid[] =
"$Header:$";
31 rasterInit(fd, width, height)
43 Globals.width = width;
44 Globals.height = height;
48 rleFile = fdopen(fd,
"r");
54 fprintf(stderr,
"Warning: RLE width (%d) exceeds maximum (%d)\n",
58 fprintf(stderr,
"Warning: RLE height (%d) exceeds maximum (%d)\n",
62 Globals.scan = (
unsigned char **) malloc((
hdr.ncolors +
64 sizeof(
unsigned char *));
75 rasterRowGet(red, green, blue)
76 unsigned char *red, *green, *blue;
81 for (i = 0; i < Globals.width; i++) {
90 for (i = 0 ; i < max; i++) {
91 red[i] = Globals.scan[0][i];
92 green[i] = Globals.scan[1][i];
93 blue[i] = Globals.scan[2][i];
95 for (; i < Globals.width; i++) {
96 red[i] = green[i] = blue[i] = 0;
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
int rle_getrow(rle_hdr *the_hdr, scanline)
void rle_puteof(rle_hdr *the_hdr)
void rle_get_setup_ok(rle_hdr *the_hdr, const char *prog_name, const char *file_name)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)