32 #define VAXSHORT( var, fp )
33 { var = fgetc(fp)&0xFF
; var |= (fgetc(fp)) << 8
; }
37 #define OPCODE(inst) (inst[0
] & ~LONG)
38 #define LONGP(inst) (inst[0
] & LONG)
39 #define DATUM(inst) (inst[1
] & 0xff
)
60 unsigned char inst[2];
65 if ( the_hdr->priv.get.vert_skip > 0)
66 the_hdr->priv.get.scan_y += the_hdr->priv.get.vert_skip;
67 the_hdr->priv.get.vert_skip = 0;
69 if ( the_hdr->priv.get.is_eof )
77 inst[0] = getc( infile );
78 inst[1] = getc( infile );
81 the_hdr->priv.get.is_eof = 1;
90 VAXSHORT( the_hdr->priv.get.vert_skip, infile );
93 the_hdr->priv.get.vert_skip =
DATUM(inst);
103 (
void)getc( infile );
104 (
void)getc( infile );
116 if ( the_hdr->priv.get.is_seek )
117 fseek( infile, ((nc + 1) / 2) * 2, 1 );
121 for ( ii = ((nc + 1) / 2) * 2; ii > 0; ii-- )
122 (
void) getc( infile );
130 (
void)getc( infile );
131 (
void)getc( infile );
133 (
void)getc( infile );
134 (
void)getc( infile );
138 the_hdr->priv.get.is_eof = 1;
143 "%s: rle_getskip: Unrecognized opcode: %d, reading %s\n",
154 the_hdr->priv.get.scan_y +=
155 the_hdr->priv.get.vert_skip;
156 the_hdr->priv.get.vert_skip = 0;
158 if ( the_hdr->priv.get.is_eof )
161 return the_hdr->priv.get.scan_y;
unsigned int rle_getskip(rle_hdr *the_hdr)
#define VAXSHORT(var, fp)