80 if ( in_hdr->
priv.
get.vert_skip > 0 )
83 if ( in_hdr->
priv.
get.vert_skip > 1 )
93 if ( the_hdr->
priv.
put.nblank > 0 )
100 buflen = in_hdr->
xmax - in_hdr->
xmin + 2;
101 buffer = (
char *)
malloc( buflen );
108 inst[0] = getc( infile );
109 inst[1] = getc( infile );
122 putc( inst[0], outfile );
123 putc( inst[1], outfile );
126 putc( getc( infile ), outfile );
127 putc( getc( infile ), outfile );
132 putc( inst[0], outfile );
133 putc( inst[1], outfile );
137 putc( inst[0], outfile );
138 putc( inst[1], outfile );
141 putc( getc( infile ), outfile );
142 putc( getc( infile ), outfile );
147 putc( inst[0], outfile );
148 putc( inst[1], outfile );
157 nc = 2 * ((nc + 1) / 2);
159 while ( nc > buflen )
161 fread( buffer, nc, 1, infile );
162 fwrite( buffer, nc, 1, outfile );
166 fread( buffer, nc, 1, infile );
167 fwrite( buffer, nc, 1, outfile );
171 putc( inst[0], outfile );
172 putc( inst[1], outfile );
175 putc( getc( infile ), outfile );
176 putc( getc( infile ), outfile );
179 putc( getc( infile ), outfile );
180 putc( getc( infile ), outfile );
190 "%s: rle_cp: Unrecognized opcode: %d, reading %s\n",
201 in_hdr->
priv.
get.vert_skip = 0;
void rle_skiprow(rle_hdr *the_hdr, int nrow)
struct rle_hdr::@0::@2 put
struct rle_hdr::@0::@1 get
void rle_puteof(rle_hdr *the_hdr)
#define SkipBlankLines(n)
#define VAXSHORT(var, fp)