29 int verbose_flag = 0, double_flag = 0, exposures = 1, exp_flag = 0;
30 int center_flag = 0, pos_flag = 0, fourK = 0, xstart = 0, ystart = 0;
33 "% v%- d%- c%- f%- p%-xpos!dyposn!d e%-num!d infile!s",
34 &verbose_flag
, &double_flag
, ¢er_flag
,
35 &fourK
, &pos_flag
, &xstart
, &ystart
,
36 &exp_flag
, &exposures
, &filename
))
40 rle_names( &hdr, cmd_name( argv ), filename );
43 init_qcr( verbose_flag );
55 fprintf(
"Can't pipe color data to %s.\n", hdr
.cmd );
76 malloc( (hdr
.xmax + 1) * ysize);
86 rows[color] = camera_data;
89 set_up_qcr( hdr
.xmax + 1, ysize, ysize, 0 );
91 set_up_qcr_nc( xstart, ystart,
92 hdr
.xmax + 1, ysize, fourK );
97 rows[color] = &(rows[color][hdr
.xmax+1]);
100 for ( i = 0; i < exposures; i++)
101 send_pixel_image( color, camera_data,
102 (hdr
.xmax + 1) * ysize);
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
#define RLE_SET_BIT(glob, bit)
void main(int argc, char **argv)
int rle_getrow(rle_hdr *the_hdr, scanline)
int scanargs(int argc, char **argv, const char *format,...)
void rle_get_setup_ok(rle_hdr *the_hdr, const char *prog_name, const char *file_name)
#define RLE_CLR_BIT(glob, bit)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
#define RLE_CHECK_ALLOC(pgm, ptr, name)