60 #if !defined(Z_NO_COMPRESSION) || !defined(Z_DEFLATED) 61 #error "Antiquated ZLIB software; you must use version 1.0 or later" 73 #define ZSTATE_INIT 0x1 79 #define ZState(tif) ((ZIPState*) (tif)->tif_data) 80 #define DecoderState(tif) ZState(tif) 81 #define EncoderState(tif) ZState(tif) 87 ZIPSetupDecode(
TIFF* tif)
90 static const char module[] =
"ZIPSetupDecode";
121 static const char module[] =
"ZIPDecode";
125 sp->stream.next_out = op;
126 sp->stream.avail_out = occ;
133 "%s: Decoding error at scanline %d, %s",
144 }
while (sp->stream.avail_out > 0);
145 if (sp->stream.avail_out != 0) {
147 "%s: Not enough data at scanline %d (short %d bytes)",
155 ZIPSetupEncode(
TIFF* tif)
158 static const char module[] =
"ZIPSetupEncode";
192 static const char module[] =
"ZIPEncode";
195 sp->stream.next_in = bp;
196 sp->stream.avail_in = cc;
203 if (sp->stream.avail_out == 0) {
209 }
while (sp->stream.avail_in > 0);
218 ZIPPostEncode(
TIFF* tif)
221 static const char module[] =
"ZIPPostEncode";
224 sp->stream.avail_in = 0;
249 ZIPCleanup(
TIFF* tif)
251 ZIPState* sp =
ZState(tif);
274 ZIPVSetField(
TIFF* tif,
ttag_t tag, va_list ap)
276 ZIPState* sp =
ZState(tif);
277 static const char module[] =
"ZIPVSetField";
281 sp->zipquality = va_arg(ap,
int);
292 return (*sp->vsetparent)(tif, tag, ap);
298 ZIPVGetField(
TIFF* tif,
ttag_t tag, va_list ap)
300 ZIPState* sp =
ZState(tif);
304 *va_arg(ap,
int*) = sp->zipquality;
307 return (*sp->vgetparent)(tif, tag, ap);
332 sp->stream.zalloc =
NULL;
333 sp->stream.zfree =
NULL;
334 sp->stream.opaque =
NULL;
373 "No space for ZIP state block");
TIFFCodeMethod tif_decoderow
TIFFTagMethods tif_tagmethods
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
int TIFFInitZIP(TIFF *tif, int scheme)
TIFFPreMethod tif_predecode
TIFFCodeMethod tif_encodestrip
TIFFCodeMethod tif_encoderow
#define DecoderState(tif)
#define Z_DEFAULT_COMPRESSION
int ZEXPORT inflateReset(z_streamp strm)
int TIFFPredictorCleanup(TIFF *tif)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
int ZEXPORT deflateEnd(z_streamp strm)
#define COMPRESSION_DEFLATE
TIFFCodeMethod tif_decodestrip
#define inflateInit(strm)
TIFFCodeMethod tif_encodetile
TIFFPreMethod tif_preencode
TIFFBoolMethod tif_postencode
int ZEXPORT inflateSync(z_streamp strm)
#define deflateInit(strm, level)
int ZEXPORT inflate(z_streamp strm, int flush)
void _TIFFMergeFieldInfo(TIFF *tif, const TIFFFieldInfo info[], int n)
#define Z_DEFAULT_STRATEGY
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
TIFFCodeMethod tif_decodetile
int ZEXPORT deflate(z_streamp strm, int flush)
TIFFVoidMethod tif_cleanup
#define TIFFArrayCount(a)
#define TIFFTAG_ZIPQUALITY
void _TIFFSetDefaultCompressionState(TIFF *tif)
int TIFFPredictorInit(TIFF *tif)
#define COMPRESSION_ADOBE_DEFLATE
int(* TIFFVGetMethod)(TIFF *, ttag_t, va_list)
void * _TIFFmalloc(tsize_t s)
int ZEXPORT deflateReset(z_streamp strm)
void _TIFFfree(tdata_t p)
int(* TIFFVSetMethod)(TIFF *, ttag_t, va_list)
TIFFBoolMethod tif_setupencode
int TIFFFlushData1(TIFF *tif)
int ZEXPORT inflateEnd(z_streamp strm)
#define EncoderState(tif)
TIFFBoolMethod tif_setupdecode