#include <stdio.h>
#include "rle.h"
#include "rle_raw.h"
Go to the source code of this file.
void copy_scanline |
( |
int |
ypos, |
|
|
int |
copy_flag |
|
) |
| |
Definition at line 252 of file unslice.c.
void rle_skiprow(rle_hdr *the_hdr, int nrow)
void rle_freeraw(rle_hdr *the_hdr, scanraw, nraw)
unsigned int rle_getraw(rle_hdr *the_hdr, scanraw, nraw)
void do_slice |
( |
int |
num, |
|
|
char * |
filename |
|
) |
| |
Definition at line 144 of file unslice.c.
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",
void rle_addhist(char *argv[], rle_hdr *in_hdr, rle_hdr *out_hdr)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
rle_hdr * rle_hdr_cp(rle_hdr *from_hdr, rle_hdr *to_hdr)
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
void rle_put_setup(rle_hdr *the_hdr)
void rle_get_setup_ok(rle_hdr *the_hdr, const char *prog_name, const char *file_name)
#define RLE_CHECK_ALLOC(pgm, ptr, name)
void main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 55 of file unslice.c.
64 char * ctlfilename = NULL, * out_fname = NULL;
70 "% y%-ymax!d f%-ctlfile!s files!*s o%-outfile!s",
72 &
ctlflag, &ctlfilename, &nfiles, &slicefiles,
97 while (! feof( ctlfile ))
99 fscanf( ctlfile,
"%d %d",
103 fprintf( stderr,
"%s: ctl file garbled? (start %d, stop %d)\n",
110 if (ctl_lines > nfiles)
112 "%s: Warning: not enough slices for ctl file\n",
progname);
113 if (ctl_lines < nfiles)
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++)
int scanargs(int argc, char **argv, const char *format,...)
void rle_puteof(rle_hdr *the_hdr)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
char * cmd_name(char **argv)
#define RLE_CHECK_ALLOC(pgm, ptr, name)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
char default_ctl_file[] = "unslice.ctl" |
char rcsid[] = "$Header: /l/spencer/src/urt/tools/RCS/unslice.c,v 3.0.1.2 1992/04/30 14:14:54 spencer Exp $" |
|
static |