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

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

?? inftrees.c

?? p2p技術C源代碼.rar
?? 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一区二区三区免费野_久草精品视频
国产丝袜美腿一区二区三区| 欧美猛男gaygay网站| 亚洲国产毛片aaaaa无费看| 日韩欧美专区在线| 欧美曰成人黄网| av电影在线不卡| 国产成人免费视频| 久久99热这里只有精品| 国产亚洲精久久久久久| 日韩网站在线看片你懂的| 欧美影院精品一区| 91论坛在线播放| 91亚洲大成网污www| 福利91精品一区二区三区| 亚洲午夜日本在线观看| 亚洲在线观看免费视频| 午夜精品福利在线| 久久99精品久久久久久动态图| 国内精品不卡在线| 成人开心网精品视频| 在线亚洲一区观看| 欧美一卡2卡3卡4卡| 国产欧美一区二区精品性色| 中文字幕一区在线| 午夜精品福利在线| 国内精品伊人久久久久av一坑| 成人午夜视频免费看| 欧美日韩精品一区二区| 久久久久国产精品厨房| 亚洲在线视频免费观看| 精品一二线国产| 一本大道综合伊人精品热热| 欧美一级淫片007| 最近中文字幕一区二区三区| 日韩制服丝袜av| 成人avav影音| 69成人精品免费视频| 国产精品美女久久久久久| 亚洲国产精品自拍| 成人综合婷婷国产精品久久免费| 精品视频一区三区九区| 中文字幕av资源一区| 石原莉奈一区二区三区在线观看| 丁香一区二区三区| 欧美va在线播放| 亚洲综合偷拍欧美一区色| 国产一区二区三区蝌蚪| 在线播放欧美女士性生活| 亚洲色图欧美在线| 国产精品亚洲а∨天堂免在线| 欧美日韩极品在线观看一区| 国产精品免费aⅴ片在线观看| 人人超碰91尤物精品国产| 91蝌蚪porny| 久久免费看少妇高潮| 美女网站色91| 777久久久精品| 亚洲一区二区三区不卡国产欧美| 成人免费av网站| 欧美精品一区二区在线播放| 日本一区中文字幕| 欧美日韩另类一区| 亚洲午夜av在线| 色88888久久久久久影院野外| 国产精品丝袜91| 成人综合日日夜夜| 中文字幕国产一区二区| 国产v综合v亚洲欧| 欧美激情中文字幕| 盗摄精品av一区二区三区| 久久夜色精品国产噜噜av| 裸体歌舞表演一区二区| 欧美一级xxx| 麻豆视频一区二区| 日韩美女视频在线| 激情综合色播激情啊| 精品国产一区二区三区av性色| 日韩高清一区二区| 欧美成人女星排行榜| 国产一区二区三区日韩| 国产亚洲婷婷免费| 99久久久久久| 亚洲与欧洲av电影| 69p69国产精品| 狠狠色综合色综合网络| 久久久久国产一区二区三区四区| 大桥未久av一区二区三区中文| 国产精品每日更新在线播放网址| www.亚洲免费av| 亚洲欧美激情小说另类| 欧美日本国产视频| 麻豆精品在线播放| 国产色婷婷亚洲99精品小说| 成人app在线观看| 亚洲国产va精品久久久不卡综合 | 日韩女优av电影| 国产一区二三区好的| 中文字幕av在线一区二区三区| 色综合天天综合网天天狠天天| 亚洲午夜免费视频| 久久久久国产免费免费| 97精品久久久午夜一区二区三区 | 亚洲精品v日韩精品| 欧美精品乱码久久久久久按摩| 老司机午夜精品| 国产视频911| 欧美日韩一级二级三级| 韩国女主播一区二区三区| 亚洲丝袜精品丝袜在线| 欧美一区二区在线免费播放| 国产精品一线二线三线| 夜夜嗨av一区二区三区四季av| 日韩一区二区免费视频| 97国产一区二区| 久久9热精品视频| 玉米视频成人免费看| 久久天堂av综合合色蜜桃网| 欧美视频中文一区二区三区在线观看| 久久成人免费电影| 一区二区三区欧美日| 国产日韩欧美综合在线| 3d动漫精品啪啪1区2区免费| 99久久久免费精品国产一区二区| 麻豆一区二区三区| 亚洲综合精品自拍| 国产精品久久久久9999吃药| 欧美成人一区二区三区片免费| 欧美性猛交xxxxxx富婆| 高清不卡在线观看av| 精品亚洲国产成人av制服丝袜 | 国产清纯白嫩初高生在线观看91| 欧美三级中文字| 99vv1com这只有精品| 国产一区二区视频在线播放| 三级在线观看一区二区| 亚洲高清不卡在线观看| 亚洲欧美日韩成人高清在线一区| 国产日韩精品一区二区浪潮av| 欧美成人video| 日韩一区二区视频在线观看| 欧美日韩成人高清| 欧美性三三影院| 在线观看av不卡| 在线视频亚洲一区| 91免费视频观看| 91在线观看下载| 99久久99久久精品国产片果冻| 精品一区二区三区免费视频| 蜜臀久久99精品久久久画质超高清| 亚洲国产一区二区在线播放| 亚洲中国最大av网站| 亚洲成人在线免费| 午夜一区二区三区视频| 五月天婷婷综合| 视频一区欧美精品| 美女网站一区二区| 国产自产高清不卡| 国产成人亚洲综合色影视 | 国产精品久久久久永久免费观看 | 色香蕉久久蜜桃| 日本道免费精品一区二区三区| 97久久精品人人做人人爽50路 | 亚洲成人免费影院| 午夜av区久久| 久国产精品韩国三级视频| 久久99精品久久久久久动态图| 国产传媒日韩欧美成人| 成人黄色免费短视频| 色悠悠亚洲一区二区| 精品1区2区3区| 欧美tickling网站挠脚心| 国产色产综合产在线视频| 中文字幕一区在线| 午夜精品久久久久久久蜜桃app| 麻豆精品蜜桃视频网站| 国产精品夜夜爽| 色呦呦日韩精品| 欧美电影免费观看高清完整版在线观看| 日韩一区二区三区观看| 亚洲国产精品成人综合| 怡红院av一区二区三区| 免费看欧美美女黄的网站| 成人短视频下载| 欧美电影在线免费观看| 国产欧美日韩精品在线| 亚洲最大色网站| 国产精品一区二区在线看| 色婷婷国产精品| 亚洲精品一区二区三区影院 | 精品视频色一区| 久久色视频免费观看| 亚洲动漫第一页| 国产成人免费av在线| 欧美剧在线免费观看网站 | 性做久久久久久免费观看| 国产一区视频网站| 欧美午夜一区二区| 欧美国产一区视频在线观看| 午夜伦理一区二区| av爱爱亚洲一区|