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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? inflate.c

?? SDL文件。SDL_ERROwenjian.....
?? C
?? 第 1 頁 / 共 4 頁
字號:
        state->whave = 0;
    }

    /* copy state->wsize or less output bytes into the circular window */
    copy = out - strm->avail_out;
    if (copy >= state->wsize) {
        zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
        state->write = 0;
        state->whave = state->wsize;
    }
    else {
        dist = state->wsize - state->write;
        if (dist > copy) dist = copy;
        zmemcpy(state->window + state->write, strm->next_out - copy, dist);
        copy -= dist;
        if (copy) {
            zmemcpy(state->window, strm->next_out - copy, copy);
            state->write = copy;
            state->whave = state->wsize;
        }
        else {
            state->write += dist;
            if (state->write == state->wsize) state->write = 0;
            if (state->whave < state->wsize) state->whave += dist;
        }
    }
    return 0;
}

/* Macros for inflate(): */

/* check function to use adler32() for zlib or crc32() for gzip */
#ifdef GUNZIP
#  define UPDATE(check, buf, len) \
    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
#else
#  define UPDATE(check, buf, len) adler32(check, buf, len)
#endif

/* check macros for header crc */
#ifdef GUNZIP
#  define CRC2(check, word) \
    do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        check = crc32(check, hbuf, 2); \
    } while (0)

#  define CRC4(check, word) \
    do { \
        hbuf[0] = (unsigned char)(word); \
        hbuf[1] = (unsigned char)((word) >> 8); \
        hbuf[2] = (unsigned char)((word) >> 16); \
        hbuf[3] = (unsigned char)((word) >> 24); \
        check = crc32(check, hbuf, 4); \
    } while (0)
#endif

/* Load registers with state in inflate() for speed */
#define LOAD() \
    do { \
        put = strm->next_out; \
        left = strm->avail_out; \
        next = strm->next_in; \
        have = strm->avail_in; \
        hold = state->hold; \
        bits = state->bits; \
    } while (0)

/* Restore state from registers in inflate() */
#define RESTORE() \
    do { \
        strm->next_out = put; \
        strm->avail_out = left; \
        strm->next_in = next; \
        strm->avail_in = have; \
        state->hold = hold; \
        state->bits = bits; \
    } while (0)

/* Clear the input bit accumulator */
#define INITBITS() \
    do { \
        hold = 0; \
        bits = 0; \
    } while (0)

/* Get a byte of input into the bit accumulator, or return from inflate()
   if there is no input available. */
#define PULLBYTE() \
    do { \
        if (have == 0) goto inf_leave; \
        have--; \
        hold += (unsigned long)(*next++) << bits; \
        bits += 8; \
    } while (0)

/* Assure that there are at least n bits in the bit accumulator.  If there is
   not enough available input to do that, then return from inflate(). */
#define NEEDBITS(n) \
    do { \
        while (bits < (unsigned)(n)) \
            PULLBYTE(); \
    } while (0)

/* Return the low n bits of the bit accumulator (n < 16) */
#define BITS(n) \
    ((unsigned)hold & ((1U << (n)) - 1))

/* Remove n bits from the bit accumulator */
#define DROPBITS(n) \
    do { \
        hold >>= (n); \
        bits -= (unsigned)(n); \
    } while (0)

/* Remove zero to seven bits as needed to go to a byte boundary */
#define BYTEBITS() \
    do { \
        hold >>= bits & 7; \
        bits -= bits & 7; \
    } while (0)

/* Reverse the bytes in a 32-bit value */
#define REVERSE(q) \
    ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
     (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

/*
   inflate() uses a state machine to process as much input data and generate as
   much output data as possible before returning.  The state machine is
   structured roughly as follows:

    for (;;) switch (state) {
    ...
    case STATEn:
        if (not enough input data or output space to make progress)
            return;
        ... make progress ...
        state = STATEm;
        break;
    ...
    }

   so when inflate() is called again, the same case is attempted again, and
   if the appropriate resources are provided, the machine proceeds to the
   next state.  The NEEDBITS() macro is usually the way the state evaluates
   whether it can proceed or should return.  NEEDBITS() does the return if
   the requested bits are not available.  The typical use of the BITS macros
   is:

        NEEDBITS(n);
        ... do something with BITS(n) ...
        DROPBITS(n);

   where NEEDBITS(n) either returns from inflate() if there isn't enough
   input left to load n bits into the accumulator, or it continues.  BITS(n)
   gives the low n bits in the accumulator.  When done, DROPBITS(n) drops
   the low n bits off the accumulator.  INITBITS() clears the accumulator
   and sets the number of available bits to zero.  BYTEBITS() discards just
   enough bits to put the accumulator on a byte boundary.  After BYTEBITS()
   and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.

   NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return
   if there is no input available.  The decoding of variable length codes uses
   PULLBYTE() directly in order to pull just enough bytes to decode the next
   code, and no more.

   Some states loop until they get enough input, making sure that enough
   state information is maintained to continue the loop where it left off
   if NEEDBITS() returns in the loop.  For example, want, need, and keep
   would all have to actually be part of the saved state in case NEEDBITS()
   returns:

    case STATEw:
        while (want < need) {
            NEEDBITS(n);
            keep[want++] = BITS(n);
            DROPBITS(n);
        }
        state = STATEx;
    case STATEx:

   As shown above, if the next state is also the next case, then the break
   is omitted.

   A state may also return if there is not enough output space available to
   complete that state.  Those states are copying stored data, writing a
   literal byte, and copying a matching string.

   When returning, a "goto inf_leave" is used to update the total counters,
   update the check value, and determine whether any progress has been made
   during that inflate() call in order to return the proper return code.
   Progress is defined as a change in either strm->avail_in or strm->avail_out.
   When there is a window, goto inf_leave will update the window with the last
   output written.  If a goto inf_leave occurs in the middle of decompression
   and there is no window currently, goto inf_leave will create one and copy
   output to the window for the next call of inflate().

   In this implementation, the flush parameter of inflate() only affects the
   return code (per zlib.h).  inflate() always writes as much as possible to
   strm->next_out, given the space available and the provided input--the effect
   documented in zlib.h of Z_SYNC_FLUSH.  Furthermore, inflate() always defers
   the allocation of and copying into a sliding window until necessary, which
   provides the effect documented in zlib.h for Z_FINISH when the entire input
   stream available.  So the only thing the flush parameter actually does is:
   when flush is set to Z_FINISH, inflate() cannot return Z_OK.  Instead it
   will return Z_BUF_ERROR if it has not reached the end of the stream.
 */

int ZEXPORT inflate(strm, flush)
z_streamp strm;
int flush;
{
    struct inflate_state FAR *state;
    unsigned char FAR *next;    /* next input */
    unsigned char FAR *put;     /* next output */
    unsigned have, left;        /* available input and output */
    unsigned long hold;         /* bit buffer */
    unsigned bits;              /* bits in bit buffer */
    unsigned in, out;           /* save starting available input and output */
    unsigned copy;              /* number of stored or match bytes to copy */
    unsigned char FAR *from;    /* where to copy match bytes from */
    code this;                  /* current decoding table entry */
    code last;                  /* parent table entry */
    unsigned len;               /* length to copy for repeats, bits to drop */
    int ret;                    /* return code */
#ifdef GUNZIP
    unsigned char hbuf[4];      /* buffer for gzip header crc calculation */
#endif
    static const unsigned short order[19] = /* permutation of code lengths */
        {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15};

    if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
        (strm->next_in == Z_NULL && strm->avail_in != 0))
        return Z_STREAM_ERROR;

    state = (struct inflate_state FAR *)strm->state;
    if (state->mode == TYPE) state->mode = TYPEDO;      /* skip check */
    LOAD();
    in = have;
    out = left;
    ret = Z_OK;
    for (;;)
        switch (state->mode) {
        case HEAD:
            if (state->wrap == 0) {
                state->mode = TYPEDO;
                break;
            }
            NEEDBITS(16);
#ifdef GUNZIP
            if ((state->wrap & 2) && hold == 0x8b1f) {  /* gzip header */
                state->check = crc32(0L, Z_NULL, 0);
                CRC2(state->check, hold);
                INITBITS();
                state->mode = FLAGS;
                break;
            }
            state->flags = 0;           /* expect zlib header */
            if (state->head != Z_NULL)
                state->head->done = -1;
            if (!(state->wrap & 1) ||   /* check if zlib header allowed */
#else
            if (
#endif
                ((BITS(8) << 8) + (hold >> 8)) % 31) {
                strm->msg = (char *)"incorrect header check";
                state->mode = BAD;
                break;
            }
            if (BITS(4) != Z_DEFLATED) {
                strm->msg = (char *)"unknown compression method";
                state->mode = BAD;
                break;
            }
            DROPBITS(4);
            len = BITS(4) + 8;
            if (len > state->wbits) {
                strm->msg = (char *)"invalid window size";
                state->mode = BAD;
                break;
            }
            state->dmax = 1U << len;
            Tracev((stderr, "inflate:   zlib header ok\n"));
            strm->adler = state->check = adler32(0L, Z_NULL, 0);
            state->mode = hold & 0x200 ? DICTID : TYPE;
            INITBITS();
            break;
#ifdef GUNZIP
        case FLAGS:
            NEEDBITS(16);
            state->flags = (int)(hold);
            if ((state->flags & 0xff) != Z_DEFLATED) {
                strm->msg = (char *)"unknown compression method";
                state->mode = BAD;
                break;
            }
            if (state->flags & 0xe000) {
                strm->msg = (char *)"unknown header flags set";
                state->mode = BAD;
                break;
            }
            if (state->head != Z_NULL)
                state->head->text = (int)((hold >> 8) & 1);
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = TIME;
        case TIME:
            NEEDBITS(32);
            if (state->head != Z_NULL)
                state->head->time = hold;
            if (state->flags & 0x0200) CRC4(state->check, hold);
            INITBITS();
            state->mode = OS;
        case OS:
            NEEDBITS(16);
            if (state->head != Z_NULL) {
                state->head->xflags = (int)(hold & 0xff);
                state->head->os = (int)(hold >> 8);
            }
            if (state->flags & 0x0200) CRC2(state->check, hold);
            INITBITS();
            state->mode = EXLEN;
        case EXLEN:
            if (state->flags & 0x0400) {
                NEEDBITS(16);
                state->length = (unsigned)(hold);
                if (state->head != Z_NULL)
                    state->head->extra_len = (unsigned)hold;
                if (state->flags & 0x0200) CRC2(state->check, hold);
                INITBITS();
            }
            else if (state->head != Z_NULL)
                state->head->extra = Z_NULL;
            state->mode = EXTRA;
        case EXTRA:
            if (state->flags & 0x0400) {
                copy = state->length;
                if (copy > have) copy = have;
                if (copy) {
                    if (state->head != Z_NULL &&
                        state->head->extra != Z_NULL) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
69成人精品免费视频| 国产一区二区三区免费播放 | 中文字幕亚洲区| 一区精品在线播放| 亚洲嫩草精品久久| 一区二区在线观看免费视频播放 | 国产一区二区视频在线播放| 国产一区二区视频在线播放| 精品一区二区久久久| 极品尤物av久久免费看| 国产精品亚洲第一区在线暖暖韩国| 成人a级免费电影| 欧美三级午夜理伦三级中视频| 日韩欧美高清dvd碟片| 国产精品污污网站在线观看| 亚洲精品久久久蜜桃| 七七婷婷婷婷精品国产| 国产一区不卡视频| av一二三不卡影片| 3atv一区二区三区| 欧美国产日韩在线观看| 亚洲一区在线视频| 激情综合网激情| 色综合一个色综合亚洲| 91精品国产综合久久久蜜臀图片| 久久婷婷综合激情| 亚洲图片有声小说| 国模一区二区三区白浆| 色综合久久中文综合久久97| 欧美一级视频精品观看| 亚洲国产高清在线观看视频| 亚洲高清免费一级二级三级| 国产麻豆精品视频| 欧美影院一区二区三区| 久久精品视频一区二区| 亚洲一区二区美女| 成人免费福利片| 日韩免费性生活视频播放| 自拍偷在线精品自拍偷无码专区| 男男成人高潮片免费网站| 成人一区二区三区中文字幕| 91在线视频网址| 欧美成人女星排名| 亚洲一区二区在线视频| 国产成人av电影在线| 91精品国产91久久久久久一区二区| 国产精品美女久久久久aⅴ国产馆| 亚洲图片自拍偷拍| 97久久久精品综合88久久| 精品国产不卡一区二区三区| 一区二区激情小说| 成人黄色av电影| 欧美不卡一区二区三区| 亚洲午夜一二三区视频| 不卡的av在线| 久久久久国产免费免费| 日日夜夜免费精品| 一本一道久久a久久精品| 精品欧美乱码久久久久久1区2区| 亚洲人吸女人奶水| 国产91精品一区二区麻豆亚洲| 欧美一区二区三区四区在线观看 | 久久亚洲一区二区三区明星换脸| 午夜国产精品一区| 国产麻豆精品在线| 日韩一区二区三区av| 一二三四区精品视频| 91免费版在线看| 国产精品成人午夜| 风间由美中文字幕在线看视频国产欧美| 日韩一区二区在线观看视频| 亚洲综合色自拍一区| 成人免费看黄yyy456| 精品国产乱码91久久久久久网站| 亚洲精品乱码久久久久久久久| 成人国产视频在线观看| 精品久久人人做人人爽| 久久66热偷产精品| 欧美一区二区三区视频| 亚洲国产日产av| 欧洲一区二区三区在线| 亚洲人一二三区| 91天堂素人约啪| 亚洲视频每日更新| 91视频com| 亚洲激情av在线| 色婷婷综合久色| 亚洲精品日日夜夜| 欧美优质美女网站| 午夜精品福利在线| 欧美一区二区三区在线观看| 蜜桃av噜噜一区二区三区小说| 欧美日韩成人综合天天影院| 亚洲成人在线观看视频| 欧美日韩精品一区视频| 午夜av区久久| 91精品蜜臀在线一区尤物| 蜜桃视频在线一区| 精品国产乱子伦一区| 国产精品2024| 国产亚洲综合在线| 成人永久aaa| 亚洲精品国产成人久久av盗摄 | 成人教育av在线| 中文字幕亚洲精品在线观看| 色诱视频网站一区| 亚洲成av人片观看| 日韩免费成人网| 国产精品一区二区91| 国产精品欧美一区喷水| 91在线免费播放| 亚洲大型综合色站| 欧美日精品一区视频| 亚洲第一在线综合网站| 欧美日韩国产免费一区二区| 日产欧产美韩系列久久99| 精品久久久久一区| 成人综合在线观看| 亚洲综合一区二区| 日韩一级免费观看| 处破女av一区二区| 亚洲电影欧美电影有声小说| 亚洲电影第三页| 久久精品国产秦先生| 国产精品久久久久久久久久久免费看| 久久99国产精品成人| 日韩一二三区视频| 日韩黄色一级片| 一区二区在线免费| 亚洲主播在线观看| 一区二区三区在线免费观看| ...中文天堂在线一区| 亚洲情趣在线观看| 一区二区三区日韩欧美精品| 久久综合九色综合97婷婷女人| 欧美一二三在线| 精品久久久网站| 国产午夜精品一区二区三区视频 | 欧美日韩国产大片| 精品视频一区二区三区免费| 欧美精品一区二区三区高清aⅴ | 91精品国产日韩91久久久久久| 色狠狠桃花综合| 成人精品一区二区三区中文字幕| 国产精品一线二线三线| voyeur盗摄精品| 欧美丰满高潮xxxx喷水动漫| 日韩午夜在线观看视频| 久久久午夜精品| 亚洲一级二级三级在线免费观看| 亚洲图片你懂的| 亚洲国产美女搞黄色| 欧美日韩专区在线| 石原莉奈在线亚洲二区| 亚洲成av人片| 国产日韩v精品一区二区| 日韩午夜电影在线观看| 欧美日韩国产一二三| 在线观看成人免费视频| av电影天堂一区二区在线观看| 韩国毛片一区二区三区| 免费美女久久99| 天堂精品中文字幕在线| 一区二区三区影院| 亚洲婷婷综合色高清在线| 国产精品乱码人人做人人爱| 国产午夜亚洲精品理论片色戒| 精品国产三级电影在线观看| 欧美一区午夜视频在线观看| 欧美日韩免费观看一区二区三区| 91麻豆6部合集magnet| 成人激情免费视频| 成人午夜大片免费观看| 大桥未久av一区二区三区中文| 国产高清精品网站| 国产成都精品91一区二区三| 国产美女视频91| 国产精品亚洲午夜一区二区三区| 久久se这里有精品| 久久综合综合久久综合| 精品午夜一区二区三区在线观看| 免费人成精品欧美精品| 毛片av一区二区| 精品午夜久久福利影院| 精品一区二区久久久| 国内精品自线一区二区三区视频| 久久se精品一区精品二区| 狠狠网亚洲精品| 懂色av中文字幕一区二区三区| 国产成人精品一区二区三区四区 | 91成人看片片| 欧美午夜在线观看| 欧美四级电影在线观看| 91精品国产一区二区三区蜜臀| 日韩精品中文字幕在线一区| 26uuu另类欧美亚洲曰本| 中文字幕av一区二区三区高| 中文字幕在线不卡一区二区三区| 日韩理论电影院| 午夜精品久久久久久久|