Home
last modified time | relevance | path

Searched refs:windowBits (Results 1 – 3 of 3) sorted by relevance

/lib/zlib_deflate/
Ddeflate.c171 int windowBits, in zlib_deflateInit2() argument
194 if (windowBits < 0) { /* undocumented feature: suppress zlib header */ in zlib_deflateInit2()
196 windowBits = -windowBits; in zlib_deflateInit2()
199 windowBits < 9 || windowBits > 15 || level < 0 || level > 9 || in zlib_deflateInit2()
211 next += zlib_deflate_window_memsize(windowBits); in zlib_deflateInit2()
213 next += zlib_deflate_prev_memsize(windowBits); in zlib_deflateInit2()
223 s->w_bits = windowBits; in zlib_deflateInit2()
1123 int zlib_deflate_workspacesize(int windowBits, int memLevel) in zlib_deflate_workspacesize() argument
1125 if (windowBits < 0) /* undocumented feature: suppress zlib header */ in zlib_deflate_workspacesize()
1126 windowBits = -windowBits; in zlib_deflate_workspacesize()
[all …]
Ddefutil.h250 #define zlib_deflate_window_memsize(windowBits) \ argument
251 (2 * (1 << (windowBits)) * sizeof(Byte))
252 #define zlib_deflate_prev_memsize(windowBits) \ argument
253 ((1 << (windowBits)) * sizeof(Pos))
/lib/zlib_inflate/
Dinflate.c48 int zlib_inflateInit2(z_streamp strm, int windowBits) in zlib_inflateInit2() argument
58 if (windowBits < 0) { in zlib_inflateInit2()
60 windowBits = -windowBits; in zlib_inflateInit2()
63 state->wrap = (windowBits >> 4) + 1; in zlib_inflateInit2()
65 if (windowBits < 8 || windowBits > 15) { in zlib_inflateInit2()
68 state->wbits = (unsigned)windowBits; in zlib_inflateInit2()