29 char rcsid[] =
"$Header: /l/spencer/src/urt/tools/RCS/rlestereo.c,v 3.0.1.3 1992/04/30 14:14:07 spencer Exp $";
39 #define RIGHTSCALE 1.0
87 int y, i, Xtmp, Ytmp, scaleflag = 0;
88 char *leftname = NULL, *rightname = NULL;
90 FILE *outfile = stdout;
93 rle_hdr left_hdr, right_hdr, out_hdr;
94 int rle_cnt = 0, rle_err;
95 char *err_name = NULL;
102 "% g%- l%-leftscale!f r%-rightscale!f o%-outfile!s \n\
103 leftimage!s rightimage!s",
106 &leftname
, &rightname
) == 0) {
121 for ( rle_cnt = 0;; rle_cnt++ )
135 err_name = rightname;
144 fprintf(stderr,
"Images are of different sizes.\n");
160 for (i = 3; i < left_hdr
.ncolors; i++)
162 for (i = 3; i < right_hdr
.ncolors; i++)
213 for (y = 0; y <
Yres; y++) {
269 for (i = 0; i <
Xres; i++) {
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
void convert_line(rle_pixel **out, rle_pixel **left, rle_pixel **right)
rle_hdr * rle_hdr_cp(rle_hdr *from_hdr, rle_hdr *to_hdr)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
void rle_row_free(rle_hdr *the_hdr, rle_pixel **scanp)
char * cmd_name(char **argv)
void main(int argc, char **argv)
int rle_get_setup(rle_hdr *the_hdr)
int rle_row_alloc(rle_hdr *the_hdr, rle_pixel ***scanp)
int rle_getrow(rle_hdr *the_hdr, scanline)
int rle_get_error(int code, const char *pgmname, const char *fname)
int get_rle_setup(rle_hdr *the_hdr, int *xres, int *yres)
int scanargs(int argc, char **argv, const char *format,...)
rle_pixel ** buildmap(rle_hdr *the_hdr, int minmap, double orig_gamma, double new_gamma)
void rle_puteof(rle_hdr *the_hdr)
void rle_putrow(rows, int rowlen, rle_hdr *the_hdr)
void rle_addhist(argv, rle_hdr *in_hdr, rle_hdr *out_hdr)
unsigned int rle_getskip(rle_hdr *the_hdr)
#define RLE_CLR_BIT(glob, bit)
#define GREYCONV(r, g, b, m)
void rle_put_setup(rle_hdr *the_hdr)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
#define RLE_CHECK_ALLOC(pgm, ptr, name)