Lines Matching +full:zlib +full:- +full:level
31 // Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don…
35 // Return status codes. MZ_PARAM_ERROR is non-standard.
40 MZ_ERRNO = -1,
41 MZ_STREAM_ERROR = -2,
42 MZ_DATA_ERROR = -3,
43 MZ_MEM_ERROR = -4,
44 MZ_BUF_ERROR = -5,
45 MZ_VERSION_ERROR = -6,
46 MZ_PARAM_ERROR = -10000
55 // ------------------- zlib-style API Definitions.
61 // mz_adler32() returns the initial adler-32 value to use when called with ptr==NULL.
65 // mz_crc32() returns the initial CRC-32 value to use when called with ptr==NULL.
77 // Note that mz_alloc_func parameter types purpsosely differ from zlib's: items/size is size_t, not…
89 …nly need MZ_NO_FLUSH and MZ_FINISH. The other values are for advanced use (refer to the zlib docs).
92 // Compression levels: 0-9 are the standard zlib-style levels, 10 is best possible compression (not…
93 …EST_COMPRESSION = 9, MZ_UBER_COMPRESSION = 10, MZ_DEFAULT_LEVEL = 6, MZ_DEFAULT_COMPRESSION = -1 };
131 // level must be between [MZ_NO_COMPRESSION, MZ_BEST_COMPRESSION].
132 // level 1 enables a specially optimized compression function that's been optimized purely for per…
139 int mz_deflateInit(mz_streamp pStream, int level);
144 … be MZ_DEFAULT_WINDOW_BITS (to wrap the deflate stream with zlib header/adler-32 footer) or -MZ_DE…
146 int mz_deflateInit2(mz_streamp pStream, int level, int method, int window_bits, int mem_level, int …
172 // Single-call compression functions mz_compress() and mz_compress2():
175 …ed char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level);
183 … controls the window size and whether or not the stream has been wrapped with a zlib header/footer:
184 // window_bits must be MZ_DEFAULT_WINDOW_BITS (to parse zlib header/footer) or -MZ_DEFAULT_WINDOW_B…
195 …t has been consumed and all output bytes have been written. For zlib streams, the adler-32 of the …
206 // Single-call decompression.
213 // Redefine zlib-compatible names to miniz equivalents, so miniz.c can be used as a drop-in replace…
214 // Define MINIZ_NO_ZLIB_COMPATIBLE_NAMES to disable zlib-compatibility if you use zlib in the same …
290 // ------------------- Types and macros
311 // ------------------- ZIP archive reading/writing
415 // Returns -1 if the file cannot be found.
456 // Converts a ZIP archive reader object into a writer object, to allow efficient in-place file appe…
460 // Note: In-place archive modification is not recommended unless you know what you're doing, becaus…
466 // level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logical…
472 // level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logical…
490 // Misc. high-level helper functions:
493 // level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logical…
504 // ------------------- Low-level Decompression API Definitions
507 …_ZLIB_HEADER: If set, the input has a valid zlib header and ends with an adler32 checksum (it's a …
510 // TINFL_FLAG_COMPUTE_ADLER32: Force adler-32 checksum computation of the decompressed bytes.
519 // High level decompression functions:
522 // pSrc_buf, src_buf_len: Pointer and size of the Deflate or zlib source data to decompress.
531 #define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED ((size_t)(-1))
547 TINFL_STATUS_BAD_PARAM = -3,
548 TINFL_STATUS_ADLER32_MISMATCH = -2,
549 TINFL_STATUS_FAILED = -1,
556 #define tinfl_init(r) do { (r)->m_state = 0; } MZ_MACRO_END
557 #define tinfl_get_adler32(r) (r)->m_check_adler32
559 … low-level decompressor coroutine function. This is the only function actually needed for decompre…
560 … API, i.e. it can be used as a building block to build any desired higher level decompression API.…
597 // ------------------- Low-level Compression API Definitions
609 …RITE_ZLIB_HEADER: If set, the compressor outputs a zlib header before the deflate data, and the Ad…
610 // TDEFL_COMPUTE_ADLER32: Always compute the adler-32 of the input data (even when not writing zlib…
630 // High level compression functions:
649 // level may range from [0,10], use MZ_NO_COMPRESSION, MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc. or…
655 …ex(const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool flip);
664 …9, TDEFL_LZ_DICT_SIZE = 32768, TDEFL_LZ_DICT_SIZE_MASK = TDEFL_LZ_DICT_SIZE - 1, TDEFL_MIN_MATCH_L…
673 // The low-level tdefl functions below may be used directly if the above helper functions aren't fl…
676 TDEFL_STATUS_BAD_PARAM = -2,
677 TDEFL_STATUS_PUT_BUF_FAILED = -1,
709 mz_uint8 m_dict[TDEFL_LZ_DICT_SIZE + TDEFL_MAX_MATCH_LEN - 1];
729 // tdefl_compress_buffer() is only usable when the tdefl_init() is called with a non-NULL tdefl_put…
738 // Create tdefl_compress() flags given zlib-style compression parameters.
739 // level may range from [0,10] (where 10 is absolute max compression, but may be much slower on som…
740 // window_bits may be -15 (raw deflate) or 15 (zlib)
742 mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy);