79 if (
scanargs( argc, argv,
"% o!-outfile!s infile%s\n(\
80 \tConvert RLE file to TARGA format.\n\
81 \tNote that output file name is required.)", &i, &outfname, &infname ) == 0 )
130 fprintf(stderr,
"%s: Invalid number of color channels (%d).\n",
139 fprintf(stderr,
"%s: Not enough memory.\n", hdr.
cmd);
175 if (aflag)
PUTBYTE(inprows[-1][j]);
int scanargs(int argc, char **argv, const char *format,...)
unsigned char image_pix_size
int rle_row_alloc(rle_hdr *the_hdr, rle_pixel ***scanp)
unsigned short image_width
unsigned char image_descriptor
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
unsigned short cmap_origin
unsigned short image_x_origin
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
unsigned short cmap_length
char * cmd_name(char **argv)
struct targafile tga_head
unsigned char num_char_id
unsigned short image_height
void rle_get_setup_ok(rle_hdr *the_hdr, const char *prog_name, const char *file_name)
int rle_getrow(rle_hdr *the_hdr, rle_pixel *scanline[])
unsigned short image_y_origin
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)