#include "gl.h"
#include "device.h"
#include "stdio.h"
#include "rle.h"
Go to the source code of this file.
|
#define | MIN(a, b) ( a<b ? a : b) |
|
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ( a<b ? a : b) |
main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file getiris.c.
33 if (
scanargs( argc, argv,
"% infile%s\n(\
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 );
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]);
int scanargs(int argc, char **argv, const char *format,...)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
int rle_get_setup(rle_hdr *the_hdr)
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
char * cmd_name(char **argv)
int rle_getrow(rle_hdr *the_hdr, rle_pixel *scanline[])
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)