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

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

?? infcodes.c

?? 在DSPF2812下
?? 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 base more.Base
#define next more.Next
#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;
    extern char CompressMemory[131072]; 
  extern long lAllocateLength;
  if ((c = (inflate_codes_statef *)
       &CompressMemory[lAllocateLength]) != Z_NULL)
  {
    lAllocateLength +=sizeof(struct inflate_codes_state);
    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->next;
        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->next;
        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 */
      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一区二区三区免费野_久草精品视频
国产一区二区三区在线观看免费 | 大尺度一区二区| 自拍偷拍欧美激情| 337p粉嫩大胆噜噜噜噜噜91av| 欧美久久久久免费| 91精品国产福利| 亚洲精品在线免费观看视频| 2022国产精品视频| 久久久久9999亚洲精品| 中文字幕在线一区| 亚洲色图都市小说| 性做久久久久久久免费看| 日本欧美韩国一区三区| 裸体歌舞表演一区二区| 国产凹凸在线观看一区二区| 99天天综合性| 91精品久久久久久蜜臀| 精品福利一区二区三区 | 成人毛片老司机大片| 99re热这里只有精品视频| 91久久精品一区二区三区| 欧美久久婷婷综合色| 精品粉嫩aⅴ一区二区三区四区| 久久精品夜夜夜夜久久| 伊人色综合久久天天| 免费成人在线观看视频| 不卡一区二区三区四区| 欧美日韩一区二区三区不卡| 精品久久人人做人人爽| 亚洲欧洲av另类| 麻豆91精品91久久久的内涵| 不卡的av电影| 欧美变态tickle挠乳网站| 国产精品久久久久久久久晋中 | 欧美一卡二卡三卡| 国产精品青草久久| 日本sm残虐另类| av电影一区二区| 欧美成人精品二区三区99精品| 亚洲欧美综合另类在线卡通| 毛片不卡一区二区| 日本精品视频一区二区三区| 欧美精品一区二区三区在线| 一区二区三区美女| 懂色av一区二区夜夜嗨| 欧美一二三在线| 亚洲精品国产高清久久伦理二区| 久久99国产乱子伦精品免费| 在线视频你懂得一区| 国产欧美一区视频| 久久9热精品视频| 欧美性三三影院| 亚洲精选视频免费看| 风间由美一区二区av101| 日韩欧美国产一区在线观看| 亚洲一区二区三区在线播放| 93久久精品日日躁夜夜躁欧美| 精品999久久久| 麻豆91免费看| 日韩一级视频免费观看在线| 亚洲图片自拍偷拍| 日本乱人伦一区| 一区二区三区小说| 91精品福利视频| 亚洲日穴在线视频| 色妞www精品视频| 国产精品私人影院| 99久久久久久99| 国产精品免费视频观看| 成人免费毛片高清视频| 欧美高清在线视频| 不卡电影免费在线播放一区| 国产精品网曝门| av男人天堂一区| 亚洲一区二区三区在线| 欧美日韩精品电影| 日韩av在线播放中文字幕| 制服丝袜av成人在线看| 麻豆精品视频在线观看免费| 欧美一区二区三区公司| 日产精品久久久久久久性色 | 激情图片小说一区| ww亚洲ww在线观看国产| 国产成人一区在线| 国产精品视频在线看| 99riav一区二区三区| 亚洲国产视频一区| 日韩西西人体444www| 激情小说亚洲一区| 国产色爱av资源综合区| 99视频热这里只有精品免费| 亚洲三级免费电影| 欧美日韩成人综合| 国产一区视频在线看| 国产精品网站一区| 欧美日韩国产首页在线观看| 久久成人羞羞网站| 综合久久久久综合| 欧美浪妇xxxx高跟鞋交| 国产馆精品极品| 一区二区三区精品视频| 日韩你懂的在线播放| 成人毛片在线观看| 日韩成人一区二区| 中文字幕免费观看一区| 欧洲一区在线电影| 韩国理伦片一区二区三区在线播放| 国产欧美日韩精品一区| 欧美午夜电影网| 国产传媒日韩欧美成人| 亚洲国产美女搞黄色| 国产无遮挡一区二区三区毛片日本| 日本电影亚洲天堂一区| 国产九色精品成人porny| 亚洲主播在线观看| 中文在线一区二区| 日韩一级视频免费观看在线| 91蜜桃视频在线| 国产伦精品一区二区三区免费迷| 亚洲男帅同性gay1069| 久久久亚洲精品石原莉奈 | 日产欧产美韩系列久久99| 国产精品女主播在线观看| 欧美一区二区三区小说| 在线看一区二区| 成人av在线播放网址| 麻豆高清免费国产一区| 亚洲一二三四在线| 成人欧美一区二区三区1314| 日韩精品专区在线影院观看 | 国产成人av自拍| 青青草一区二区三区| 免费精品视频最新在线| 亚洲日本青草视频在线怡红院| 精品国一区二区三区| 51精品秘密在线观看| av在线不卡网| av色综合久久天堂av综合| 国产精品88av| 国产激情一区二区三区四区| 蜜臀99久久精品久久久久久软件| 午夜成人免费电影| 亚洲一区二区三区四区五区黄 | caoporm超碰国产精品| 国产最新精品精品你懂的| 日韩av一级片| 奇米影视一区二区三区| 五月激情丁香一区二区三区| 午夜不卡在线视频| 亚洲电影在线免费观看| 亚洲成人激情综合网| 亚洲成人1区2区| 日韩影视精彩在线| 日本亚洲电影天堂| 精品一二三四在线| 国产成人精品1024| 99热国产精品| 欧美在线你懂的| 在线不卡中文字幕| 日韩精品一区二区三区中文不卡| 欧美一区二区三区在| 久久综合久色欧美综合狠狠| 国产日韩综合av| 国产精品久久免费看| 亚洲激情av在线| 香蕉成人啪国产精品视频综合网| 视频在线观看国产精品| 毛片av一区二区| 国产不卡视频一区| 一本色道久久综合狠狠躁的推荐| 在线免费视频一区二区| 6080yy午夜一二三区久久| 精品久久久久久无| 国产精品五月天| 午夜精品爽啪视频| 韩国成人精品a∨在线观看| 国产河南妇女毛片精品久久久| 99久久伊人精品| 在线不卡一区二区| 亚洲国产精品激情在线观看| 亚洲综合久久久久| 国产自产视频一区二区三区| 99re视频这里只有精品| 日韩久久精品一区| 亚洲精品中文字幕在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲麻豆国产自偷在线| 偷拍与自拍一区| 成人性生交大片免费看在线播放| 色婷婷综合久色| 日韩欧美一二区| 亚洲欧美偷拍另类a∨色屁股| 水野朝阳av一区二区三区| 成人综合日日夜夜| 欧美一级一级性生活免费录像| 国产精品女同一区二区三区| 免费在线一区观看| 91视频免费观看| 国产无人区一区二区三区| 日韩精品高清不卡|