35 #define SETPIXEL(op, v) { \ 36 switch (npixels++ & 3) { \ 37 case 0: op[0] = (unsigned char) ((v) << 6); break; \ 38 case 1: op[0] |= (v) << 4; break; \ 39 case 2: op[0] |= (v) << 2; break; \ 40 case 3: *op++ |= (v); break; \ 44 #define LITERALROW 0x00 45 #define LITERALSPAN 0x40 46 #define WHITE ((1<<2)-1) 51 unsigned char *bp, *op;
62 for (op = buf, cc = occ; cc-- > 0;)
68 for (row = buf; occ > 0; occ -= scanline, row += scanline) {
87 off = (bp[0] * 256) + bp[1];
88 n = (bp[2] * 256) + bp[3];
89 if (cc < 4+n || off+n > scanline)
97 uint32 npixels = 0, grey;
115 while (n-- > 0 && npixels < imagewidth)
117 if (npixels >= imagewidth)
TIFFCodeMethod tif_decoderow
int TIFFInitNeXT(TIFF *tif, int scheme)
void _TIFFmemcpy(tdata_t d, const tdata_t s, tsize_t c)
TIFFCodeMethod tif_decodestrip
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
TIFFCodeMethod tif_decodetile