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

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

?? infcodes.c

?? Evc編的一個在wince5.0上運行的flash播放器
?? C
字號:
/* infcodes.c -- process literals and length/distance pairs
 * Copyright (C) 1995-1998 Mark Adler
 * For conditions of distribution and use, see copyright notice in zlib.h 
 */

#include "zutil.h"
#include "inftrees.h"
#include "infblock.h"
#include "infcodes.h"
#include "infutil.h"
#include "inffast.h"

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

typedef enum {        /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
      START,    /* x: set up for LEN */
      LEN,      /* i: get length/literal/eob next */
      LENEXT,   /* i: getting length extra (have base) */
      DIST,     /* i: get distance next */
      DISTEXT,  /* i: getting distance extra */
      COPY,     /* o: copying bytes in window, waiting for space */
      LIT,      /* o: got literal, waiting for output space */
      WASH,     /* o: got eob, possibly still output waiting */
      END,      /* x: got eob and all data flushed */
      BADCODE}  /* x: got error */
inflate_codes_mode;

/* inflate codes private state */
struct inflate_codes_state {

  /* mode */
  inflate_codes_mode mode;      /* current inflate_codes mode */

  /* mode dependent information */
  uInt len;
  union {
    struct {
      inflate_huft *tree;       /* pointer into tree */
      uInt need;                /* bits needed */
    } code;             /* if LEN or DIST, where in tree */
    uInt lit;           /* if LIT, literal */
    struct {
      uInt get;                 /* bits to get for extra */
      uInt dist;                /* distance back to copy from */
    } copy;             /* if EXT or COPY, where and how much */
  } sub;                /* submode */

  /* mode independent information */
  Byte lbits;           /* ltree bits decoded per branch */
  Byte dbits;           /* dtree bits decoder per branch */
  inflate_huft *ltree;          /* literal/length/eob tree */
  inflate_huft *dtree;          /* distance tree */

};


inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z)
uInt bl, bd;
inflate_huft *tl;
inflate_huft *td; /* need separate declaration for Borland C++ */
z_streamp z;
{
  inflate_codes_statef *c;

  if ((c = (inflate_codes_statef *)
       ZALLOC(z,1,sizeof(struct inflate_codes_state))) != Z_NULL)
  {
    c->mode = START;
    c->lbits = (Byte)bl;
    c->dbits = (Byte)bd;
    c->ltree = tl;
    c->dtree = td;
    Tracev((stderr, "inflate:       codes new\n"));
  }
  return c;
}


int inflate_codes(s, z, r)
inflate_blocks_statef *s;
z_streamp z;
int r;
{
  uInt j;               /* temporary storage */
  inflate_huft *t;      /* temporary pointer */
  uInt e;               /* extra bits or operation */
  uLong b;              /* bit buffer */
  uInt k;               /* bits in bit buffer */
  Bytef *p;             /* input data pointer */
  uInt n;               /* bytes available there */
  Bytef *q;             /* output window write pointer */
  uInt m;               /* bytes to end of window or read pointer */
  Bytef *f;             /* pointer to copy strings from */
  inflate_codes_statef *c = s->sub.decode.codes;  /* codes state */

  /* copy input/output information to locals (UPDATE macro restores) */
  LOAD

  /* process input and output based on current state */
  while (1) switch (c->mode)
  {             /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
    case START:         /* x: set up for LEN */
#ifndef SLOW
      if (m >= 258 && n >= 10)
      {
        UPDATE
        r = inflate_fast(c->lbits, c->dbits, c->ltree, c->dtree, s, z);
        LOAD
        if (r != Z_OK)
        {
          c->mode = r == Z_STREAM_END ? WASH : BADCODE;
          break;
        }
      }
#endif /* !SLOW */
      c->sub.code.need = c->lbits;
      c->sub.code.tree = c->ltree;
      c->mode = LEN;
    case LEN:           /* i: get length/literal/eob next */
      j = c->sub.code.need;
      NEEDBITS(j)
      t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
      DUMPBITS(t->bits)
      e = (uInt)(t->exop);
      if (e == 0)               /* literal */
      {
        c->sub.lit = t->base;
        Tracevv((stderr, t->base >= 0x20 && t->base < 0x7f ?
                 "inflate:         literal '%c'\n" :
                 "inflate:         literal 0x%02x\n", t->base));
        c->mode = LIT;
        break;
      }
      if (e & 16)               /* length */
      {
        c->sub.copy.get = e & 15;
        c->len = t->base;
        c->mode = LENEXT;
        break;
      }
      if ((e & 64) == 0)        /* next table */
      {
        c->sub.code.need = e;
        c->sub.code.tree = t + t->base;
        break;
      }
      if (e & 32)               /* end of block */
      {
        Tracevv((stderr, "inflate:         end of block\n"));
        c->mode = WASH;
        break;
      }
      c->mode = BADCODE;        /* invalid code */
      z->msg = (char*)"invalid literal/length code";
      r = Z_DATA_ERROR;
      LEAVE
    case LENEXT:        /* i: getting length extra (have base) */
      j = c->sub.copy.get;
      NEEDBITS(j)
      c->len += (uInt)b & inflate_mask[j];
      DUMPBITS(j)
      c->sub.code.need = c->dbits;
      c->sub.code.tree = c->dtree;
      Tracevv((stderr, "inflate:         length %u\n", c->len));
      c->mode = DIST;
    case DIST:          /* i: get distance next */
      j = c->sub.code.need;
      NEEDBITS(j)
      t = c->sub.code.tree + ((uInt)b & inflate_mask[j]);
      DUMPBITS(t->bits)
      e = (uInt)(t->exop);
      if (e & 16)               /* distance */
      {
        c->sub.copy.get = e & 15;
        c->sub.copy.dist = t->base;
        c->mode = DISTEXT;
        break;
      }
      if ((e & 64) == 0)        /* next table */
      {
        c->sub.code.need = e;
        c->sub.code.tree = t + t->base;
        break;
      }
      c->mode = BADCODE;        /* invalid code */
      z->msg = (char*)"invalid distance code";
      r = Z_DATA_ERROR;
      LEAVE
    case DISTEXT:       /* i: getting distance extra */
      j = c->sub.copy.get;
      NEEDBITS(j)
      c->sub.copy.dist += (uInt)b & inflate_mask[j];
      DUMPBITS(j)
      Tracevv((stderr, "inflate:         distance %u\n", c->sub.copy.dist));
      c->mode = COPY;
    case COPY:          /* o: copying bytes in window, waiting for space */
#ifndef __TURBOC__ /* Turbo C bug for following expression */
      f = (uInt)(q - s->window) < c->sub.copy.dist ?
          s->end - (c->sub.copy.dist - (q - s->window)) :
          q - c->sub.copy.dist;
#else
      f = q - c->sub.copy.dist;
      if ((uInt)(q - s->window) < c->sub.copy.dist)
        f = s->end - (c->sub.copy.dist - (uInt)(q - s->window));
#endif
      while (c->len)
      {
        NEEDOUT
        OUTBYTE(*f++)
        if (f == s->end)
          f = s->window;
        c->len--;
      }
      c->mode = START;
      break;
    case LIT:           /* o: got literal, waiting for output space */
      NEEDOUT
      OUTBYTE(c->sub.lit)
      c->mode = START;
      break;
    case WASH:          /* o: got eob, possibly more output */
      if (k > 7)        /* return unused byte, if any */
      {
        Assert(k < 16, "inflate_codes grabbed too many bytes")
        k -= 8;
        n++;
        p--;            /* can always return one */
      }
      FLUSH
      if (s->read != s->write)
        LEAVE
      c->mode = END;
    case END:
      r = Z_STREAM_END;
      LEAVE
    case BADCODE:       /* x: got error */
      r = Z_DATA_ERROR;
      LEAVE
    default:
      r = Z_STREAM_ERROR;
      LEAVE
  }
#ifdef NEED_DUMMY_RETURN
  return Z_STREAM_ERROR;  /* Some dumb compilers complain without this */
#endif
}


void inflate_codes_free(c, z)
inflate_codes_statef *c;
z_streamp z;
{
  ZFREE(z, c);
  Tracev((stderr, "inflate:       codes free\n"));
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米精品一区二区三区四区| 91国产免费看| 99精品偷自拍| 日韩一区国产二区欧美三区| 国产精品久久夜| 久久国产日韩欧美精品| 一本久久精品一区二区| 久久女同互慰一区二区三区| 亚洲午夜激情av| 成人精品一区二区三区四区 | 亚洲理论在线观看| 狠狠狠色丁香婷婷综合激情| 欧美日韩美少妇| 亚洲国产高清不卡| 国产一区二区三区在线观看免费视频 | 日韩一区中文字幕| 国产一区二区视频在线| 7777精品伊人久久久大香线蕉最新版| 国产精品久久久久国产精品日日| 久久电影网站中文字幕| 欧美高清dvd| 午夜一区二区三区视频| 91麻豆免费观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 一区二区三区不卡视频| 丁香激情综合国产| 国产欧美一区二区三区在线看蜜臀 | 婷婷一区二区三区| 欧美曰成人黄网| 亚洲综合丝袜美腿| 欧美性色黄大片手机版| 一区二区三区久久久| 91久久香蕉国产日韩欧美9色| 一区在线观看免费| 一本大道久久a久久综合| 亚洲视频资源在线| 色菇凉天天综合网| 亚洲永久免费视频| 在线播放国产精品二区一二区四区| 亚洲精品国产一区二区三区四区在线| 懂色av中文字幕一区二区三区| 26uuu精品一区二区| 韩国av一区二区三区在线观看| 日韩美女视频在线| 国产一区高清在线| 国产精品国模大尺度视频| 成人黄色免费短视频| 日韩理论片中文av| 91国偷自产一区二区使用方法| 亚洲自拍另类综合| 欧美一区二区在线播放| 久久91精品久久久久久秒播| 国产喂奶挤奶一区二区三区| 成人免费看片app下载| 亚洲日本欧美天堂| 制服视频三区第一页精品| 久久se精品一区精品二区| 国产亚洲欧美色| 色激情天天射综合网| 日本亚洲免费观看| 久久久激情视频| 91农村精品一区二区在线| 亚洲国产精品视频| 精品播放一区二区| 91碰在线视频| 久久99久久99| 亚洲日本va午夜在线影院| 欧美日韩国产小视频在线观看| 麻豆freexxxx性91精品| 国产精品少妇自拍| 欧美电影在哪看比较好| 国产jizzjizz一区二区| 亚洲观看高清完整版在线观看| 欧美成人一区二区三区| 一本到高清视频免费精品| 麻豆精品久久久| 亚洲猫色日本管| 久久综合狠狠综合久久综合88| 97se狠狠狠综合亚洲狠狠| 免费在线观看精品| 自拍偷拍亚洲激情| 久久久久久久久久久久久久久99 | 日韩高清在线一区| 国产精品麻豆欧美日韩ww| 678五月天丁香亚洲综合网| 粉嫩绯色av一区二区在线观看| 视频一区国产视频| 亚洲男女一区二区三区| 国产亚洲精品资源在线26u| 欧美日韩精品免费观看视频| 波多野洁衣一区| 国精产品一区一区三区mba视频| 亚洲一区二区三区国产| 中文字幕一区日韩精品欧美| 久久久久免费观看| 日韩一区二区三区视频在线观看| 91热门视频在线观看| 国产福利精品一区二区| 美女精品自拍一二三四| 亚洲一区二区偷拍精品| 国产精品乱人伦一区二区| 久久综合色之久久综合| 欧美一区二区视频在线观看 | 亚洲精品成人精品456| 国产欧美一区二区精品性色超碰 | 久久99精品国产| 日韩中文字幕一区二区三区| 一区二区三区四区不卡视频| 国产精品午夜在线观看| 欧美韩日一区二区三区| www精品美女久久久tv| 日韩欧美黄色影院| 欧美一区二区三区小说| 91精品国产免费久久综合| 欧美精品三级日韩久久| 51精品秘密在线观看| 3d动漫精品啪啪| 日韩欧美一区二区视频| 日韩一区二区免费在线观看| 91麻豆精品91久久久久同性| 欧美一级理论性理论a| 日韩一区二区三区高清免费看看| 91精品国模一区二区三区| 欧美精品丝袜久久久中文字幕| 欧美美女bb生活片| 欧美一区二区在线播放| 337p日本欧洲亚洲大胆色噜噜| 精品sm捆绑视频| 中文字幕乱码亚洲精品一区| 欧美国产一区视频在线观看| 中文字幕一区二区三区在线播放 | 不卡电影一区二区三区| 99国产精品视频免费观看| 91高清在线观看| 欧美区一区二区三区| 日韩美女视频一区二区在线观看| 久久毛片高清国产| 综合久久综合久久| 图片区小说区区亚洲影院| 久久精品国产久精国产爱| 国产99精品视频| 色婷婷久久一区二区三区麻豆| 欧美精品xxxxbbbb| 精品国产乱码久久久久久蜜臀 | 久久亚洲二区三区| 国产精品理论在线观看| 亚洲丶国产丶欧美一区二区三区| 青青国产91久久久久久| 成人av午夜电影| 欧美精品v国产精品v日韩精品 | 欧美白人最猛性xxxxx69交| 国产精品乱码一区二区三区软件| 亚洲综合色区另类av| 久久aⅴ国产欧美74aaa| 91免费在线播放| 欧美一级午夜免费电影| 一区在线中文字幕| 蜜臀av国产精品久久久久| 成人精品gif动图一区| 91.麻豆视频| 国产精品乱码人人做人人爱| 日韩av中文字幕一区二区| 成人黄色综合网站| 日韩精品一区二区三区视频播放 | 国产成人精品免费视频网站| 欧美日韩免费视频| 欧美高清在线一区| 日本成人在线不卡视频| 91免费版在线| 26uuu精品一区二区| 偷拍日韩校园综合在线| 丁香六月久久综合狠狠色| 91精品国产一区二区人妖| 亚洲欧美电影院| 风间由美性色一区二区三区| 91精品国产91热久久久做人人| 中文字幕五月欧美| 国产九色sp调教91| 日韩三级精品电影久久久| 亚洲一区二区视频在线观看| 成人免费av在线| 国产亚洲婷婷免费| 国产裸体歌舞团一区二区| 欧美一级欧美三级| 午夜日韩在线观看| 欧美亚洲免费在线一区| 亚洲色图清纯唯美| 白白色 亚洲乱淫| 欧美国产欧美综合| 成人亚洲精品久久久久软件| 精品免费一区二区三区| 久久精品国产精品青草| 91麻豆精品国产91久久久资源速度| 亚洲一区二区在线视频| 色视频一区二区| 亚洲综合色视频| 欧美丝袜丝交足nylons图片| 亚洲黄色小视频| 在线观看91视频| 亚洲成人av电影在线|