亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inftrees.c

?? 這是一個將文件壓縮為gzip的元代嗎。在vc++2005下調試通過
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* inftrees.c -- generate Huffman trees for efficient decoding
 * Copyright (C) 1995-2002 Mark Adler
 * For conditions of distribution and use, see copyright notice in zlib.h 
 */

#include "zutil.h"
#include "inftrees.h"

#if !defined(BUILDFIXED) && !defined(STDC)
#  define BUILDFIXED   /* non ANSI compilers may not accept inffixed.h */
#endif

const char inflate_copyright[] =
   " inflate 1.1.4 Copyright 1995-2002 Mark Adler ";
/*
  If you use the zlib library in a product, an acknowledgment is welcome
  in the documentation of your product. If for some reason you cannot
  include such an acknowledgment, I would appreciate that you keep this
  copyright string in the executable of your product.
 */
struct internal_state  {int dummy;}; /* for buggy compilers */

/* simplify the use of the inflate_huft type with some defines */
#define exop word.what.Exop
#define bits word.what.Bits


local int huft_build OF((
    uIntf *,            /* code lengths in bits */
    uInt,               /* number of codes */
    uInt,               /* number of "simple" codes */
    const uIntf *,      /* list of base values for non-simple codes */
    const uIntf *,      /* list of extra bits for non-simple codes */
    inflate_huft * FAR*,/* result: starting table */
    uIntf *,            /* maximum lookup bits (returns actual) */
    inflate_huft *,     /* space for trees */
    uInt *,             /* hufts used in space */
    uIntf * ));         /* space for values */

/* Tables for deflate from PKZIP's appnote.txt. */
local const uInt cplens[31] = { /* Copy lengths for literal codes 257..285 */
        3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
        35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
        /* see note #13 above about 258 */
local const uInt cplext[31] = { /* Extra bits for literal codes 257..285 */
        0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
        3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 112, 112}; /* 112==invalid */
local const uInt cpdist[30] = { /* Copy offsets for distance codes 0..29 */
        1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
        257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
        8193, 12289, 16385, 24577};
local const uInt cpdext[30] = { /* Extra bits for distance codes */
        0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
        7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
        12, 12, 13, 13};

/*
   Huffman code decoding is performed using a multi-level table lookup.
   The fastest way to decode is to simply build a lookup table whose
   size is determined by the longest code.  However, the time it takes
   to build this table can also be a factor if the data being decoded
   is not very long.  The most common codes are necessarily the
   shortest codes, so those codes dominate the decoding time, and hence
   the speed.  The idea is you can have a shorter table that decodes the
   shorter, more probable codes, and then point to subsidiary tables for
   the longer codes.  The time it costs to decode the longer codes is
   then traded against the time it takes to make longer tables.

   This results of this trade are in the variables lbits and dbits
   below.  lbits is the number of bits the first level table for literal/
   length codes can decode in one step, and dbits is the same thing for
   the distance codes.  Subsequent tables are also less than or equal to
   those sizes.  These values may be adjusted either when all of the
   codes are shorter than that, in which case the longest code length in
   bits is used, or when the shortest code is *longer* than the requested
   table size, in which case the length of the shortest code in bits is
   used.

   There are two different values for the two tables, since they code a
   different number of possibilities each.  The literal/length table
   codes 286 possible values, or in a flat code, a little over eight
   bits.  The distance table codes 30 possible values, or a little less
   than five bits, flat.  The optimum values for speed end up being
   about one bit more than those, so lbits is 8+1 and dbits is 5+1.
   The optimum values may differ though from machine to machine, and
   possibly even between compilers.  Your mileage may vary.
 */


/* If BMAX needs to be larger than 16, then h and x[] should be uLong. */
#define BMAX 15         /* maximum bit length of any code */

local int huft_build(b, n, s, d, e, t, m, hp, hn, v)
uIntf *b;               /* code lengths in bits (all assumed <= BMAX) */
uInt n;                 /* number of codes (assumed <= 288) */
uInt s;                 /* number of simple-valued codes (0..s-1) */
const uIntf *d;         /* list of base values for non-simple codes */
const uIntf *e;         /* list of extra bits for non-simple codes */
inflate_huft * FAR *t;  /* result: starting table */
uIntf *m;               /* maximum lookup bits, returns actual */
inflate_huft *hp;       /* space for trees */
uInt *hn;               /* hufts used in space */
uIntf *v;               /* working area: values in order of bit length */
/* Given a list of code lengths and a maximum table size, make a set of
   tables to decode that set of codes.  Return Z_OK on success, Z_BUF_ERROR
   if the given code set is incomplete (the tables are still built in this
   case), or Z_DATA_ERROR if the input is invalid. */
{

  uInt a;                       /* counter for codes of length k */
  uInt c[BMAX+1];               /* bit length count table */
  uInt f;                       /* i repeats in table every f entries */
  int g;                        /* maximum code length */
  int h;                        /* table level */
  register uInt i;              /* counter, current code */
  register uInt j;              /* counter */
  register int k;               /* number of bits in current code */
  int l;                        /* bits per table (returned in m) */
  uInt mask;                    /* (1 << w) - 1, to avoid cc -O bug on HP */
  register uIntf *p;            /* pointer into c[], b[], or v[] */
  inflate_huft *q;              /* points to current table */
  struct inflate_huft_s r;      /* table entry for structure assignment */
  inflate_huft *u[BMAX];        /* table stack */
  register int w;               /* bits before this table == (l * h) */
  uInt x[BMAX+1];               /* bit offsets, then code stack */
  uIntf *xp;                    /* pointer into x */
  int y;                        /* number of dummy codes added */
  uInt z;                       /* number of entries in current table */


  /* Generate counts for each bit length */
  p = c;
#define C0 *p++ = 0;
#define C2 C0 C0 C0 C0
#define C4 C2 C2 C2 C2
  C4                            /* clear c[]--assume BMAX+1 is 16 */
  p = b;  i = n;
  do {
    c[*p++]++;                  /* assume all entries <= BMAX */
  } while (--i);
  if (c[0] == n)                /* null input--all zero length codes */
  {
    *t = (inflate_huft *)Z_NULL;
    *m = 0;
    return Z_OK;
  }


  /* Find minimum and maximum length, bound *m by those */
  l = *m;
  for (j = 1; j <= BMAX; j++)
    if (c[j])
      break;
  k = j;                        /* minimum code length */
  if ((uInt)l < j)
    l = j;
  for (i = BMAX; i; i--)
    if (c[i])
      break;
  g = i;                        /* maximum code length */
  if ((uInt)l > i)
    l = i;
  *m = l;


  /* Adjust last length count to fill out codes, if needed */
  for (y = 1 << j; j < i; j++, y <<= 1)
    if ((y -= c[j]) < 0)
      return Z_DATA_ERROR;
  if ((y -= c[i]) < 0)
    return Z_DATA_ERROR;
  c[i] += y;


  /* Generate starting offsets into the value table for each length */
  x[1] = j = 0;
  p = c + 1;  xp = x + 2;
  while (--i) {                 /* note that i == g from above */
    *xp++ = (j += *p++);
  }


  /* Make a table of values in order of bit lengths */
  p = b;  i = 0;
  do {
    if ((j = *p++) != 0)
      v[x[j]++] = i;
  } while (++i < n);
  n = x[g];                     /* set n to length of v */


  /* Generate the Huffman codes and for each, make the table entries */
  x[0] = i = 0;                 /* first Huffman code is zero */
  p = v;                        /* grab values in bit order */
  h = -1;                       /* no tables yet--level -1 */
  w = -l;                       /* bits decoded == (l * h) */
  u[0] = (inflate_huft *)Z_NULL;        /* just to keep compilers happy */
  q = (inflate_huft *)Z_NULL;   /* ditto */
  z = 0;                        /* ditto */

  /* go through the bit lengths (k already is bits in shortest code) */
  for (; k <= g; k++)
  {
    a = c[k];
    while (a--)
    {
      /* here i is the Huffman code of length k bits for value *p */
      /* make tables up to required level */
      while (k > w + l)
      {
        h++;
        w += l;                 /* previous table always l bits */

        /* compute minimum size table less than or equal to l bits */
        z = g - w;
        z = z > (uInt)l ? l : z;        /* table size upper limit */
        if ((f = 1 << (j = k - w)) > a + 1)     /* try a k-w bit table */
        {                       /* too few codes for k-w bit table */
          f -= a + 1;           /* deduct codes from patterns left */
          xp = c + k;
          if (j < z)
            while (++j < z)     /* try smaller tables up to z bits */
            {
              if ((f <<= 1) <= *++xp)
                break;          /* enough codes to use up j bits */
              f -= *xp;         /* else deduct codes from patterns */
            }
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人福利电影精品一区二区在线观看| 欧美日韩成人激情| 在线看日本不卡| 欧美成人精品高清在线播放| 一区二区三区四区在线免费观看| 蜜臀av一区二区在线观看| 色先锋资源久久综合| 久久伊人蜜桃av一区二区| 亚洲码国产岛国毛片在线| 国产精选一区二区三区| 欧美一区二区三区视频在线观看| 亚洲欧美在线视频| 国产一区二区三区最好精华液| 99re热这里只有精品视频| 日韩美女一区二区三区| 亚洲成国产人片在线观看| 欧美日韩一区不卡| 国产精品人成在线观看免费| 国产综合久久久久久久久久久久| 3d动漫精品啪啪1区2区免费 | 黄色小说综合网站| 欧美日韩精品一区二区| 亚洲欧美另类综合偷拍| 成人av先锋影音| 中文字幕乱码亚洲精品一区| 国产精品主播直播| 精品国产乱码久久久久久牛牛| 日本三级韩国三级欧美三级| 欧美日韩精品是欧美日韩精品| 一区二区三区在线不卡| 99久久国产综合精品麻豆| 中文字幕va一区二区三区| 国产成人自拍网| 国产欧美中文在线| 国产91精品一区二区麻豆网站 | 91精品国产综合久久蜜臀| 亚洲成人资源网| 欧美精品 日韩| 日产精品久久久久久久性色| 日韩欧美的一区| 国产一区二区三区四区在线观看| 久久无码av三级| 国产精品自拍一区| 国产亚洲精品精华液| 国产成人av电影在线| 国产精品入口麻豆原神| 99精品视频一区二区| 一区二区三区在线影院| 欧美三级日韩三级国产三级| 日产国产欧美视频一区精品| 久久综合精品国产一区二区三区 | 国产电影精品久久禁18| 国产蜜臀97一区二区三区| a美女胸又www黄视频久久| 中文字幕亚洲视频| 在线一区二区观看| 日韩av不卡在线观看| 久久美女高清视频| 99精品久久只有精品| 亚洲精品美腿丝袜| 7777精品伊人久久久大香线蕉超级流畅 | 国产精品美女久久久久高潮| 色综合天天做天天爱| 日韩黄色免费电影| 久久午夜电影网| 色婷婷综合久久久中文字幕| 香蕉乱码成人久久天堂爱免费| 精品剧情v国产在线观看在线| 成人久久视频在线观看| 日韩精品欧美精品| 国产精品五月天| 欧美日本在线视频| 高清shemale亚洲人妖| 亚洲国产精品精华液网站| 精品99久久久久久| 色婷婷香蕉在线一区二区| 裸体在线国模精品偷拍| 亚洲欧美一区二区三区久本道91| 91精品综合久久久久久| 成人av电影在线| 久久99久久99| 亚洲高清三级视频| 国产女人18水真多18精品一级做| 7799精品视频| av电影天堂一区二区在线| 日本不卡免费在线视频| 亚洲精选一二三| 国产亚洲精品免费| 欧美xxxxxxxx| 欧美日韩激情一区| caoporen国产精品视频| 国产精品亚洲第一| 日韩av电影免费观看高清完整版 | 国产精品视频一二三区| 51久久夜色精品国产麻豆| 色婷婷久久久亚洲一区二区三区 | 国产成人免费视频一区| 日本vs亚洲vs韩国一区三区二区| 亚洲激情综合网| 亚洲欧美影音先锋| 亚洲国产高清不卡| 国产视频在线观看一区二区三区 | 性久久久久久久| 亚洲综合色丁香婷婷六月图片| 国产精品久久99| 国产日韩欧美不卡| 精品国产乱码久久久久久蜜臀 | 国产福利视频一区二区三区| 久久国产乱子精品免费女| 日韩影视精彩在线| 五月天国产精品| 天天操天天干天天综合网| 亚洲成av人片在线| 天堂影院一区二区| 石原莉奈在线亚洲二区| 日本美女一区二区三区| 麻豆视频一区二区| 久草这里只有精品视频| 国产精品自产自拍| 成人精品视频一区| 97se亚洲国产综合在线| 在线日韩av片| 欧美日韩三级一区| 欧美一区欧美二区| 欧美videos大乳护士334| 久久先锋影音av鲁色资源| 久久先锋影音av| 国产精品九色蝌蚪自拍| 亚洲男人的天堂在线aⅴ视频| 一区二区三区免费在线观看| 亚洲国产一区视频| 日韩精品高清不卡| 国产一区二区三区免费观看| 成人h版在线观看| 欧美亚洲动漫制服丝袜| 宅男在线国产精品| 欧美精品一区二区三区高清aⅴ| 亚洲国产精品成人久久综合一区| 国产精品久久久一区麻豆最新章节| 亚洲欧美偷拍另类a∨色屁股| 亚洲成人第一页| 国产麻豆成人传媒免费观看| 色综合天天综合网天天狠天天| 欧美丝袜自拍制服另类| 精品美女在线观看| 成人免费在线观看入口| 日本欧美一区二区三区乱码| 国产精品资源在线看| 色婷婷亚洲婷婷| 精品国产成人在线影院| 亚洲欧美日韩人成在线播放| 蜜桃视频一区二区三区在线观看 | 亚洲另类中文字| 伦理电影国产精品| 99精品在线免费| 精品毛片乱码1区2区3区| 亚洲精选免费视频| 国产一区二区导航在线播放| 欧美视频在线观看一区| 国产无遮挡一区二区三区毛片日本| 亚洲一线二线三线视频| 国产毛片精品视频| 欧美日本在线看| 国产精品成人免费精品自在线观看| 婷婷开心激情综合| 成人精品一区二区三区四区| 欧美一级久久久| 一区二区三区免费看视频| 国产精品亚洲成人| 欧美一级理论片| 亚洲国产精品视频| 97aⅴ精品视频一二三区| 2020国产精品久久精品美国| 亚瑟在线精品视频| 色偷偷久久一区二区三区| 国产香蕉久久精品综合网| 日韩激情视频在线观看| 在线看国产一区| 一区二区中文字幕在线| 国产精华液一区二区三区| 欧美一二三区在线观看| 亚洲成人综合在线| 91国产福利在线| 亚洲男人的天堂在线aⅴ视频| 成人sese在线| 欧美高清在线一区二区| 国产精品羞羞答答xxdd| 久久综合久久久久88| 丝袜a∨在线一区二区三区不卡| 色八戒一区二区三区| 国产精品麻豆一区二区| 丁香亚洲综合激情啪啪综合| 国产网站一区二区| 韩国欧美一区二区| 精品国产污污免费网站入口 | 在线视频你懂得一区二区三区| 国产精品成人网| 91女厕偷拍女厕偷拍高清| 成人免费一区二区三区视频 | 国产三级欧美三级|