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

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

?? inftrees.c

?? Evc編的一個在wince5.0上運行的flash播放器
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* inftrees.c -- generate Huffman trees for efficient decoding
 * Copyright (C) 1995-1998 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.3 Copyright 1995-1998 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), Z_DATA_ERROR if the input is invalid (an over-subscribed set of
   lengths), or Z_MEM_ERROR if not enough memory. */
{

  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一区二区三区免费野_久草精品视频
精品久久人人做人人爽| 欧美日本在线播放| 精一区二区三区| 天堂精品中文字幕在线| 亚洲国产欧美一区二区三区丁香婷| 亚洲国产精品v| 久久精品一区二区三区四区| 久久老女人爱爱| 久久久久免费观看| 国产亚洲精品中文字幕| 久久综合九色综合久久久精品综合| 日韩精品一区二区三区视频| 欧美一级理论性理论a| 日韩午夜在线播放| 久久亚洲精华国产精华液 | 欧美电影免费观看高清完整版在 | 丝袜美腿高跟呻吟高潮一区| 午夜欧美2019年伦理| 日韩高清在线电影| 麻豆精品视频在线观看免费| 国产真实乱对白精彩久久| 国产精品99久久久久久有的能看 | 成人国产精品视频| 97se亚洲国产综合自在线观| 欧美视频第二页| 911精品产国品一二三产区| 日韩欧美国产三级| 国产精品久久久久久亚洲毛片 | 亚洲午夜久久久久久久久电影网| 天天色天天操综合| 国产精品538一区二区在线| 99在线精品免费| 欧美肥妇bbw| 国产精品色一区二区三区| 亚洲国产综合91精品麻豆| 美女视频一区在线观看| 高清日韩电视剧大全免费| 欧美性xxxxx极品少妇| 日韩网站在线看片你懂的| 国产精品每日更新| 午夜私人影院久久久久| 国产精品自拍网站| 欧美日韩在线三级| 久久精品一区二区三区不卡| 亚洲一二三四区| 国产精品中文字幕一区二区三区| 在线欧美小视频| 久久久久免费观看| 亚洲va韩国va欧美va| 成人做爰69片免费看网站| 欧美男生操女生| 亚洲婷婷在线视频| 国产一区啦啦啦在线观看| 欧美综合在线视频| 中文字幕欧美激情一区| 奇米色777欧美一区二区| 大尺度一区二区| 欧美一区二区女人| 亚洲一区二区三区四区中文字幕| 国产毛片精品国产一区二区三区| 欧美二区三区91| 亚洲日本一区二区三区| 成人免费视频一区| 欧美精品一区二区久久久| 天天爽夜夜爽夜夜爽精品视频| av不卡在线观看| www国产精品av| 蜜桃av一区二区三区电影| 欧美色网站导航| 亚洲欧美日韩在线| 国产精品1024| 久久久久久久久岛国免费| 久久99精品久久只有精品| 欧美日韩国产免费一区二区| 亚洲一区二区三区四区在线免费观看 | 国产亚洲精品bt天堂精选| 免费亚洲电影在线| 欧美一区二区三区色| 亚洲成av人片一区二区梦乃| 欧美午夜精品一区| 亚洲影视在线播放| 欧美色手机在线观看| 一区二区三区免费网站| 色狠狠色狠狠综合| 一个色妞综合视频在线观看| 欧美最猛黑人xxxxx猛交| 一区二区三区自拍| 色综合久久88色综合天天6| 亚洲天堂精品视频| 欧洲色大大久久| 一区二区国产盗摄色噜噜| 欧美吻胸吃奶大尺度电影 | 亚洲夂夂婷婷色拍ww47| 91丝袜美腿高跟国产极品老师 | 亚洲不卡av一区二区三区| 91天堂素人约啪| 亚洲国产综合在线| 91精品免费在线| 狠狠色综合播放一区二区| 国产日韩欧美精品在线| 北岛玲一区二区三区四区| 亚洲欧美一区二区三区极速播放| 91黄色免费观看| 丝袜美腿一区二区三区| 26uuu精品一区二区| 成人黄页毛片网站| 亚洲最快最全在线视频| 日韩一区二区三区电影| 国产传媒一区在线| 一区二区三区av电影| 日韩视频免费观看高清完整版在线观看| 久久精品二区亚洲w码| 国产日韩欧美高清| 欧美三级韩国三级日本三斤| 激情六月婷婷综合| 国产精品人成在线观看免费| 欧美三日本三级三级在线播放| 三级欧美在线一区| 国产精品久久看| 777xxx欧美| 成人性生交大合| 蜜桃一区二区三区在线| 亚洲视频每日更新| 亚洲精品一区二区精华| 色88888久久久久久影院野外| 精彩视频一区二区三区 | 在线一区二区三区| 韩国中文字幕2020精品| 一区二区三区不卡在线观看 | 成人免费视频一区二区| 蜜桃av噜噜一区| 一区二区三区精品在线| 日本一区二区三区高清不卡| 欧美一级高清大全免费观看| 在线观看成人小视频| 国产精品性做久久久久久| 三级在线观看一区二区| 亚洲另类中文字| 中文字幕免费不卡在线| 欧美va亚洲va国产综合| 欧美一区二区三区小说| 精品视频一区三区九区| 一本一道综合狠狠老| 大尺度一区二区| 国产电影一区二区三区| 激情国产一区二区| 日韩精品亚洲一区| 午夜精品一区二区三区免费视频| 亚洲人成网站影音先锋播放| 欧美激情一区二区| 久久免费午夜影院| 2019国产精品| 久久综合九色综合欧美98| 欧美成人aa大片| 精品日韩99亚洲| 久久综合九色综合97婷婷女人 | 欧美不卡123| 日韩欧美中文字幕制服| 日韩一区二区电影| 欧美高清精品3d| 欧美精品国产精品| 91精品婷婷国产综合久久| 777a∨成人精品桃花网| 69堂国产成人免费视频| 日韩一级欧美一级| 精品欧美一区二区久久| 久久蜜桃一区二区| 国产精品视频第一区| 国产精品国产三级国产aⅴ中文 | 91麻豆精东视频| 91成人免费电影| 欧美一区二区三区免费视频 | 国产一区二区三区蝌蚪| 国产福利精品导航| 97se狠狠狠综合亚洲狠狠| 在线观看欧美黄色| 3d动漫精品啪啪一区二区竹菊| 日韩欧美中文字幕精品| 久久久久久免费| 亚洲女爱视频在线| 日韩黄色小视频| 精品一区二区在线视频| www.亚洲免费av| 欧美自拍偷拍一区| 精品国免费一区二区三区| 国产精品网站在线| 亚洲自拍都市欧美小说| 另类中文字幕网| 成人97人人超碰人人99| 欧美日韩一区二区三区视频| 亚洲精品一区二区三区99| 亚洲欧美在线aaa| 亚洲一二三四久久| 国产一区二区三区在线看麻豆| 国产精品99久| 欧美在线一二三四区| 精品91自产拍在线观看一区| 亚洲欧美日韩国产综合在线| 男女视频一区二区| www.欧美精品一二区|