13 #define MIN(a,b) ( a<b ? a : b)
34 \tDisplay on SGI not running a window manager.)",
43 fprintf( stderr,
"%s: can't run under mex!\n", hdr
.cmd);
57 qdevice( RIGHTMOUSE );
58 qdevice( MIDDLEMOUSE );
71 scan = (
unsigned char **) malloc( (hdr
.ncolors +
73 sizeof(
unsigned char * ) );
75 scan[i] = (
unsigned char *)malloc( x_len );
83 for ( i = 0; i <
MIN(y_len,768) ; i ++)
88 writeRGB(x_len, scan[0], scan[1], scan[2]);
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
char * cmd_name(char **argv)
void main(int argc, char **argv)
int rle_get_setup(rle_hdr *the_hdr)
int rle_getrow(rle_hdr *the_hdr, scanline)
int scanargs(int argc, char **argv, const char *format,...)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)