Lines Matching refs:deflate

28   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
61 around a deflate stream, which is itself documented in RFC 1951.
66 gzip wrapper, documented in RFC 1952, wrapped around a deflate stream.
68 This library can optionally read and write gzip and raw deflate streams in
103 for deflate, or the decoding state for inflate */
175 /* Allowed flush values; see deflate() and inflate() below for details */
207 /* Possible values of the data_type field for deflate() */
210 /* The deflate compression method (the only one supported in this version) */
246 this will be done by deflate().
250 ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
252 deflate compresses as much data as possible, and stops when the input
257 The detailed semantics are as follows. deflate performs one or both of the
263 processing will resume at this point for the next call of deflate().
271 Before the call of deflate(), the application should ensure that at least
276 == 0), or after each call of deflate(). If deflate returns Z_OK and with
282 Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
292 completes the current deflate block and follows it with an empty stored block
299 This completes the current deflate block and follows it with an empty fixed
304 If flush is set to Z_BLOCK, a deflate block is completed and emitted, as
307 the next deflate block is completed. In this case, the decompressor may not
311 the emission of deflate blocks.
319 If deflate returns with avail_out == 0, this function must be called again
321 avail_out), until the flush is complete (deflate returns with non-zero
324 repeated flush markers upon calling deflate() again when avail_out == 0.
327 pending output is flushed and deflate returns with Z_STREAM_END if there was
328 enough output space. If deflate returns with Z_OK or Z_BUF_ERROR, this
331 error. After deflate has returned Z_STREAM_END, the only possible operations
334 Z_FINISH can be used in the first deflate call after deflateInit if all the
337 below). Then deflate is guaranteed to return Z_STREAM_END. If not enough
338 output space is provided, deflate will not return Z_STREAM_END, and it must
341 deflate() sets strm->adler to the Adler-32 checksum of all input read
346 deflate() may update strm->data_type if it can make a good guess about
351 deflate() returns Z_OK if some progress has been made (more input
358 deflate() can be called again with more input and more output space to
436 stop if and when it gets to the next deflate block boundary. When decoding
442 The Z_BLOCK option assists in appending to or combining deflate streams.
445 inflate() is currently decoding the last block in the deflate stream, plus
447 decoding the complete header up to just before the first byte of the deflate
457 end of each deflate block header is reached, before any actual data in that
459 deflate block header for later use in random access within a deflate block.
461 immediately after reaching the end of the deflate block header.
496 deflate data. The header type is detected automatically, if requested when
499 gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output
558 For the current implementation of deflate(), a windowBits value of 8 (a
566 windowBits can also be -8..-15 for raw deflate. In this case, -windowBits
567 determines the window size. deflate() will then generate raw deflate data
578 For raw deflate or gzip encoding, a request for a 256-byte window is
608 compression: this will be done by deflate().
618 deflateReset, and before any call of deflate. When doing raw deflate, this
619 function must be called either before any call of deflate, or immediately
620 after the completion of a deflate block, i.e. after all input has been
638 addition, the current implementation of deflate will use at most the window
645 actually used by the compressor.) If a raw deflate was requested, then the
650 inconsistent (for example if deflate has already been called for this stream
651 or if not at a block boundary for raw deflate). deflateSetDictionary does
652 not perform any compression: this will be done by deflate().
659 Returns the sliding dictionary being maintained by deflate. dictLength is
668 to 258 bytes less in that case, due to how zlib's implementation of deflate
715 strategy is changed, and if there have been any deflate() calls since the
717 compressed with the old level and strategy using deflate(strm, Z_BLOCK).
720 of deflate().
722 If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does
728 deflate stream should be flushed using deflate() with Z_BLOCK or other flush
750 Fine tune deflate's internal compression parameters. This should only be
751 used by someone who understands the algorithm used by zlib's deflate for
754 specific input data. Read the deflate.c source code for the meaning of the
758 returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream.
768 called before deflate(). If that first deflate() call is provided the
770 deflateBound(), and the flush value Z_FINISH, then deflate() is guaranteed
795 deflatePrime() inserts bits in the deflate output stream. The intent
796 is that this function is used to start off the deflate output with the bits
797 leftover from a previous deflate stream when appending to it. As such, this
798 function can only be used for raw deflate, and must be used before the first
799 deflate() call after a deflateInit2() or deflateReset(). bits must be less
814 deflate(). The text, time, os, extra field, name, and comment information
854 determines the window size. inflate() will then process raw deflate data,
857 is for use with other formats that use the deflate compressed data format
859 format is developed using the raw deflate format for compressed data, it is
929 for the description of deflate with Z_FULL_FLUSH) can be found, or until all
1085 assured that deflate was used with small window sizes, windowBits must be 15
1087 deflate streams.
1116 deflate stream with each call. inflateBackEnd() is then called to free the
1119 A raw deflate stream is one with no zlib or gzip header or trailer.
1123 the raw deflate stream to decompress. This is different from the default
1125 deflate stream.
1129 routines until it reads a complete deflate stream and writes out all of the
1161 in the deflate stream (in which case strm->msg is set to indicate the nature
1201 deflate code when not needed)
1202 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
1208 21: FASTEST -- deflate algorithm with only one, lowest compression level
1302 wrapper, documented in RFC 1952, wrapped around a deflate stream.
1538 deflate() function. The return value is the zlib error number (see function