9 #if !defined(BUILDFIXED) && !defined(STDC)
16 " inflate 1.1.4 Copyright 1995-2002 Mark Adler ";
26 #define exop word.what.Exop
27 #define bits word.what.Bits
44 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
45 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
48 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
49 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 112, 112};
51 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
52 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
53 8193, 12289, 16385, 24577};
55 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
56 7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
140 #define C2 C0 C0 C0 C0
141 #define C4 C2 C2 C2 C2
157 for (j = 1; j <=
BMAX; j++)
163 for (i =
BMAX;
i; i--)
173 for (y = 1 << j; j <
i; j++, y <<= 1)
183 p = c + 1; xp = x + 2;
223 if ((f = 1 << (j = k - w)) > a + 1)
230 if ((f <<= 1) <= *++xp)
258 r.bits = (
Byte)(k - w);
263 r.exop = (
Byte)(*p < 256 ? 0 : 32 + 64);
268 r.exop = (
Byte)(e[*p - s] + 16 + 64);
269 r.
base = d[*p++ -
s];
274 for (j = i >> w; j <
z; j +=
f)
278 for (j = 1 << (k - 1); i &
j; j >>= 1)
284 while ((i & mask) != x[
h])
316 z->msg = (
char*)
"oversubscribed dynamic bit lengths tree";
319 z->msg = (
char*)
"incomplete dynamic bit lengths tree";
348 r =
huft_build(c, nl, 257, cplens, cplext, tl, bl, hp, &hn, v);
349 if (r !=
Z_OK || *bl == 0)
352 z->msg = (
char*)
"oversubscribed literal/length tree";
355 z->msg = (
char*)
"incomplete literal/length tree";
363 r =
huft_build(c + nl, nd, 0, cpdist, cpdext, td, bd, hp, &hn, v);
364 if (r !=
Z_OK || (*bd == 0 && nl > 257))
367 z->msg = (
char*)
"oversubscribed distance tree";
372 #ifdef PKZIP_BUG_WORKAROUND
376 z->msg = (
char*)
"incomplete distance tree";
381 z->msg = (
char*)
"empty distance tree with lengths";
405 #include "inffixed.h"
436 for (k = 0; k < 144; k++)
445 huft_build(c, 288, 257, cplens, cplext, &fixed_tl, &fixed_bl,
449 for (k = 0; k < 30; k++)
452 huft_build(c, 30, 0, cpdist, cpdext, &fixed_td, &fixed_bd,
GLfloat GLfloat GLfloat GLfloat h
local int inflate_trees_fixed(uIntf *bl, uIntf *bd, const inflate_huft *FAR *tl, const inflate_huft *FAR *td, z_streamp z)
return Display return Display Bool Bool int int e
local const uInt cplext[31]
local const uInt cpdext[30]
GLboolean GLboolean GLboolean GLboolean a
return Display return Display Bool Bool int d
local const uInt cplens[31]
const char inflate_copyright[]
local const uInt cpdist[30]
local int huft_build(uIntf *b, uInt n, uInt s, const uIntf *d, const uIntf *e, inflate_huft *FAR *t, uIntf *m, inflate_huft *hp, uInt *hn, uIntf *v)
#define ZFREE(strm, addr)
local const uInt fixed_bd
#define ZALLOC(strm, items, size)
local int inflate_trees_bits(uIntf *c, uIntf *bb, inflate_huft *FAR *tb, inflate_huft *hp, z_streamp z)
local const inflate_huft fixed_td[]
local inflate_huft fixed_mem[FIXEDH]
EGLSurface EGLint EGLint y
local const inflate_huft fixed_tl[]
GLdouble GLdouble GLdouble GLdouble q
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble b
GLint GLint GLint GLint z
GLint GLint GLint GLint GLint w
local const uInt fixed_bl
struct inflate_huft_s FAR inflate_huft
local int inflate_trees_dynamic(uInt nl, uInt nd, uIntf *c, uIntf *bl, uIntf *bd, inflate_huft *FAR *tl, inflate_huft *FAR *td, inflate_huft *hp, z_streamp z)