12 static char rcsid[] =
"$Header: /l/spencer/src/urt/tools/RCS/unslice.c,v 3.0.1.2 1992/04/30 14:14:54 spencer Exp $";
62 int y_flag, oflag = 0;
64 char * ctlfilename = NULL, * out_fname = NULL;
70 "% y%-ymax!d f%-ctlfile!s files!*s o%-outfile!s",
82 start_line = (
int *) malloc( nfiles *
sizeof(
int) );
84 stop_line = (
int *) malloc( nfiles *
sizeof(
int) );
97 while (! feof( ctlfile ))
99 fscanf( ctlfile,
"%d %d",
103 fprintf( stderr,
"%s: ctl file garbled? (start %d, stop %d)\n",
112 "%s: Warning: not enough slices for ctl file\n",
progname);
115 "%s: Warning: too many slices for ctl file\n",
progname);
122 "%s: max y (-y ymax) must be given if no ctl file used\n",
129 for (i = 0; i < nfiles; i++)
149 static int current_y = 0;
164 fprintf(stderr,
"%s: %s is out of slice range (%d %d)\n",
204 "%s: warning: slice %s completely ignored (wrong order?)\n",
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
rle_hdr * rle_hdr_cp(rle_hdr *from_hdr, rle_hdr *to_hdr)
void rle_freeraw(rle_hdr *the_hdr, scanraw, nraw)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
int rle_raw_alloc(rle_hdr *the_hdr, rle_op ***scanp, int **nrawp)
char * cmd_name(char **argv)
void main(int argc, char **argv)
void rle_putraw(rle_op **scanraw, int *nraw, rle_hdr *the_hdr)
int scanargs(int argc, char **argv, const char *format,...)
void rle_puteof(rle_hdr *the_hdr)
void do_slice(int num, char *filename)
void rle_addhist(argv, rle_hdr *in_hdr, rle_hdr *out_hdr)
void copy_scanline(int ypos, int copy_flag)
void rle_get_setup_ok(rle_hdr *the_hdr, const char *prog_name, const char *file_name)
void rle_skiprow(rle_hdr *the_hdr, int nrow)
void rle_put_setup(rle_hdr *the_hdr)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
unsigned int rle_getraw(rle_hdr *the_hdr, scanraw, nraw)
#define RLE_CHECK_ALLOC(pgm, ptr, name)