26#ifdef PACKBITS_SUPPORT
53PackBitsPostEncode(
TIFF* tif)
66 unsigned char* bp = (
unsigned char*)
buf;
86 for (;
cc > 0 &&
b == *bp;
cc--, bp++)
97 slop = (
long)(
op - lastliteral);
103 *
op++ = *lastliteral++;
143 if (++(*lastliteral) == 127)
172 if (
n == 1 &&
op[-2] == (
uint8) -1 &&
173 *lastliteral < 126) {
174 state = (((*lastliteral) += 2) == 127 ?
205 if (PackBitsEncode(tif, bp,
chunk,
s) < 0)
216 static const char module[] =
"PackBitsDecode";
241 "Discarding %lu bytes to avoid buffer overrun",
248 "Terminating PackBitsDecode due to lack of data.");
260 "Discarding %lu bytes to avoid buffer overrun",
261 (
unsigned long) ((
tmsize_t)
n - occ + 1));
267 "Terminating PackBitsDecode due to lack of data.");
279 "Not enough data for scanline %lu",
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei const GLchar * buf
TIFFCodeMethod tif_encodestrip
TIFFCodeMethod tif_encodetile
TIFFPreMethod tif_preencode
TIFFCodeMethod tif_decodestrip
TIFFCodeMethod tif_decoderow
TIFFBoolMethod tif_postencode
TIFFCodeMethod tif_encoderow
TIFFCodeMethod tif_decodetile
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
tmsize_t TIFFScanlineSize(TIFF *tif)
tmsize_t TIFFTileRowSize(TIFF *tif)
void * _TIFFmalloc(tmsize_t s)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
void TIFFWarningExt(thandle_t fd, const char *module, const char *fmt,...)
int TIFFFlushData1(TIFF *tif)