46 int out_alpha = 0, cur_out_alpha, uniq = 0, first;
51 &out_alpha
, &uniq
, &infname
) == 0 )
69 cur_out_alpha = in_hdr
.alpha && out_alpha ;
71 for ( j = in_hdr
.ymin; j <= in_hdr
.ymax ; j++ )
79 for ( chan = -cur_out_alpha;
82 if ( rows0[chan][i] != prev[chan] )
88 for ( chan = 0; chan < in_hdr
.ncolors; chan++ )
90 printf(
"%d ", rows0[chan][i] );
91 prev[chan] = rows0[chan][i];
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
void rle_row_free(rle_hdr *the_hdr, rle_pixel **scanp)
char * cmd_name(char **argv)
void main(int argc, char **argv)
int rle_get_setup(rle_hdr *the_hdr)
int rle_row_alloc(rle_hdr *the_hdr, rle_pixel ***scanp)
int rle_getrow(rle_hdr *the_hdr, scanline)
int rle_get_error(int code, const char *pgmname, const char *fname)
int scanargs(int argc, char **argv, const char *format,...)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
#define RLE_CHECK_ALLOC(pgm, ptr, name)