33#define SETPIXEL(op, v) \
35 switch (npixels++ & 3) \
38 op[0] = (unsigned char)((v) << 6); \
53#define LITERALROW 0x00
54#define LITERALSPAN 0x40
55#define WHITE ((1 << 2) - 1)
59 static const char module[] =
"NeXTDecode";
60 unsigned char *bp, *
op;
71 for (
op = (
unsigned char *)
buf,
cc = occ;
cc-- > 0;)
82 for (
row =
buf;
cc > 0 && occ > 0; occ -= scanline,
row += scanline)
107 off = (bp[0] * 256) + bp[1];
108 n = (bp[2] * 256) + bp[3];
109 if (cc < 4 + n || off + n > scanline)
140 while (
n-- > 0 && npixels < imagewidth &&
141 op_offset < scanline)
143 if (npixels >= imagewidth)
145 if (op_offset >= scanline)
148 "Invalid data for scanline %" PRIu32,
172 static const char module[] =
"NeXTPreDecode";
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
GLenum GLuint GLenum GLsizei const GLchar * buf
uint16_t td_bitspersample
tmsize_t tif_scanlinesize
TIFFPreMethod tif_predecode
TIFFCodeMethod tif_decodestrip
TIFFCodeMethod tif_decoderow
TIFFCodeMethod tif_decodetile
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
#define SETPIXEL(buf, x, y, p)