26#ifdef PACKBITS_SUPPORT
34#ifndef PACKBITS_READ_ONLY
53static int PackBitsPostEncode(
TIFF *tif)
65 unsigned char *bp = (
unsigned char *)
buf;
92 for (;
cc > 0 &&
b == *bp;
cc--, bp++)
105 slop = (
long)(
op - lastliteral);
111 *
op++ = *lastliteral++;
162 if (++(*lastliteral) == 127)
195 if (
n == 1 &&
op[-2] == (
uint8_t)-1 && *lastliteral < 126)
228 if (PackBitsEncode(tif, bp,
chunk,
s) < 0)
240 static const char module[] =
"PackBitsDecode";
262 " bytes to avoid buffer overrun",
270 "Terminating PackBitsDecode due to lack of data.");
285 " bytes to avoid buffer overrun",
293 "Terminating PackBitsDecode due to lack of data.");
321#ifndef PACKBITS_READ_ONLY
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
#define TIFF_SSIZE_FORMAT
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
void _TIFFfreeExt(TIFF *tif, void *p)
void * _TIFFmallocExt(TIFF *tif, tmsize_t s)
tmsize_t TIFFScanlineSize(TIFF *tif)
tmsize_t TIFFTileRowSize(TIFF *tif)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
void TIFFWarningExtR(TIFF *tif, const char *module, const char *fmt,...)
int TIFFFlushData1(TIFF *tif)