69 float xfact, yfact = 0;
71 char * rlename = NULL, * out_fname = NULL;
73 int oflag = 0, fflag = 0;
80 "% f%- o%-outfile!s factor!f y-factor%f rlefile%s",
81 &fflag, &oflag, &out_fname, &xfact, &yfact, &rlename )
88 fprintf( stderr,
"%s: Zoom factor (%g) must be >= 0\n",
94 fprintf( stderr,
"%s: Y zoom factor (%g) must be >= 0\n",
122 if ( (
float)(out_hdr.
xmax + 1) * xfact > 32767 )
125 "%s: X zoom factor (%g) makes image too large (%g)\n",
127 (
float)(out_hdr.
xmax + 1) * xfact );
130 if ( (
float)(out_hdr.
ymax + 1) * yfact > 32767 )
133 "%s: Y zoom factor (%g) makes image too large (%g)\n",
135 (
float)(out_hdr.
ymax + 1) * (
float)yfact );
157 if ( xfact == (
float)(
int)xfact && yfact == (
float)(
int)yfact )
158 integer_zoom( &in_hdr, (
int)xfact, (
int)yfact, &out_hdr );
160 float_zoom( &in_hdr, xfact, yfact, &out_hdr );
int scanargs(int argc, char **argv, const char *format,...)
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)
int rle_get_setup(rle_hdr *the_hdr)
static void integer_zoom()
int rle_get_error(int code, const char *pgmname, const char *fname)
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)
char * cmd_name(char **argv)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)