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

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

?? deflate.c

?? 一款最完整的工業組態軟源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
               at the expense of memory usage). We slide even when level == 0
               to keep the hash table consistent if we switch back to level > 0
               later. (Using level 0 permanently is not an optimal usage of
               zlib, so we don't care about this pathological case.)
             */
            n = s->hash_size;
            p = &s->head[n];
            do {
                m = *--p;
                *p = (Pos)(m >= wsize ? m-wsize : NIL);
            } while (--n);

            n = wsize;
#ifndef FASTEST
            p = &s->prev[n];
            do {
                m = *--p;
                *p = (Pos)(m >= wsize ? m-wsize : NIL);
                /* If n is not on any hash chain, prev[n] is garbage but
                 * its value will never be used.
                 */
            } while (--n);
#endif
            more += wsize;
        }
        if (s->strm->avail_in == 0) return;

        /* If there was no sliding:
         *    strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
         *    more == window_size - lookahead - strstart
         * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
         * => more >= window_size - 2*WSIZE + 2
         * In the BIG_MEM or MMAP case (not yet supported),
         *   window_size == input_size + MIN_LOOKAHEAD  &&
         *   strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
         * Otherwise, window_size == 2*WSIZE so more >= 2.
         * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
         */
        Assert(more >= 2, "more < 2");

        n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more);
        s->lookahead += n;

        /* Initialize the hash value now that we have some input: */
        if (s->lookahead >= MIN_MATCH) {
            s->ins_h = s->window[s->strstart];
            UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
#if MIN_MATCH != 3
            Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
        }
        /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
         * but this is not important since only literal bytes will be emitted.
         */

    } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
}

/* ===========================================================================
 * Flush the current block, with given end-of-file flag.
 * IN assertion: strstart is set to the end of the current match.
 */
#define FLUSH_BLOCK_ONLY(s, eof) { \
   _tr_flush_block(s, (s->block_start >= 0L ? \
                   (charf *)&s->window[(unsigned)s->block_start] : \
                   (charf *)Z_NULL), \
                (ulg)((long)s->strstart - s->block_start), \
                (eof)); \
   s->block_start = s->strstart; \
   flush_pending(s->strm); \
   Tracev((stderr,"[FLUSH]")); \
}

/* Same but force premature exit if necessary. */
#define FLUSH_BLOCK(s, eof) { \
   FLUSH_BLOCK_ONLY(s, eof); \
   if (s->strm->avail_out == 0) return (eof) ? finish_started : need_more; \
}

/* ===========================================================================
 * Copy without compression as much as possible from the input stream, return
 * the current block state.
 * This function does not insert new strings in the dictionary since
 * uncompressible data is probably not useful. This function is used
 * only for the level=0 compression option.
 * NOTE: this function should be optimized to avoid extra copying from
 * window to pending_buf.
 */
local block_state deflate_stored(s, flush)
    deflate_state *s;
    int flush;
{
    /* Stored blocks are limited to 0xffff bytes, pending_buf is limited
     * to pending_buf_size, and each stored block has a 5 byte header:
     */
    ulg max_block_size = 0xffff;
    ulg max_start;

    if (max_block_size > s->pending_buf_size - 5) {
        max_block_size = s->pending_buf_size - 5;
    }

    /* Copy as much as possible from input to output: */
    for (;;) {
        /* Fill the window as much as possible: */
        if (s->lookahead <= 1) {

            Assert(s->strstart < s->w_size+MAX_DIST(s) ||
                   s->block_start >= (long)s->w_size, "slide too late");

            fill_window(s);
            if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;

            if (s->lookahead == 0) break; /* flush the current block */
        }
        Assert(s->block_start >= 0L, "block gone");

        s->strstart += s->lookahead;
        s->lookahead = 0;

        /* Emit a stored block if pending_buf will be full: */
        max_start = s->block_start + max_block_size;
        if (s->strstart == 0 || (ulg)s->strstart >= max_start) {
            /* strstart == 0 is possible when wraparound on 16-bit machine */
            s->lookahead = (uInt)(s->strstart - max_start);
            s->strstart = (uInt)max_start;
            FLUSH_BLOCK(s, 0);
        }
        /* Flush if we may have to slide, otherwise block_start may become
         * negative and the data will be gone:
         */
        if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) {
            FLUSH_BLOCK(s, 0);
        }
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}

/* ===========================================================================
 * Compress as much as possible from the input stream, return the current
 * block state.
 * This function does not perform lazy evaluation of matches and inserts
 * new strings in the dictionary only for unmatched strings or for short
 * matches. It is used only for the fast compression options.
 */
local block_state deflate_fast(s, flush)
    deflate_state *s;
    int flush;
{
    IPos hash_head = NIL; /* head of the hash chain */
    int bflush;           /* set if current block must be flushed */

    for (;;) {
        /* Make sure that we always have enough lookahead, except
         * at the end of the input file. We need MAX_MATCH bytes
         * for the next match, plus MIN_MATCH bytes to insert the
         * string following the next match.
         */
        if (s->lookahead < MIN_LOOKAHEAD) {
            fill_window(s);
            if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
                return need_more;
            }
            if (s->lookahead == 0) break; /* flush the current block */
        }

        /* Insert the string window[strstart .. strstart+2] in the
         * dictionary, and set hash_head to the head of the hash chain:
         */
        if (s->lookahead >= MIN_MATCH) {
            INSERT_STRING(s, s->strstart, hash_head);
        }

        /* Find the longest match, discarding those <= prev_length.
         * At this point we have always match_length < MIN_MATCH
         */
        if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
            /* To simplify the code, we prevent matches with the string
             * of window index 0 (in particular we have to avoid a match
             * of the string with itself at the start of the input file).
             */
#ifdef FASTEST
            if ((s->strategy < Z_HUFFMAN_ONLY) ||
                (s->strategy == Z_RLE && s->strstart - hash_head == 1)) {
                s->match_length = longest_match_fast (s, hash_head);
            }
#else
            if (s->strategy < Z_HUFFMAN_ONLY) {
                s->match_length = longest_match (s, hash_head);
            } else if (s->strategy == Z_RLE && s->strstart - hash_head == 1) {
                s->match_length = longest_match_fast (s, hash_head);
            }
#endif
            /* longest_match() or longest_match_fast() sets match_start */
        }
        if (s->match_length >= MIN_MATCH) {
            check_match(s, s->strstart, s->match_start, s->match_length);

            _tr_tally_dist(s, s->strstart - s->match_start,
                           s->match_length - MIN_MATCH, bflush);

            s->lookahead -= s->match_length;

            /* Insert new strings in the hash table only if the match length
             * is not too large. This saves time but degrades compression.
             */
#ifndef FASTEST
            if (s->match_length <= s->max_insert_length &&
                s->lookahead >= MIN_MATCH) {
                s->match_length--; /* string at strstart already in table */
                do {
                    s->strstart++;
                    INSERT_STRING(s, s->strstart, hash_head);
                    /* strstart never exceeds WSIZE-MAX_MATCH, so there are
                     * always MIN_MATCH bytes ahead.
                     */
                } while (--s->match_length != 0);
                s->strstart++;
            } else
#endif
            {
                s->strstart += s->match_length;
                s->match_length = 0;
                s->ins_h = s->window[s->strstart];
                UPDATE_HASH(s, s->ins_h, s->window[s->strstart+1]);
#if MIN_MATCH != 3
                Call UPDATE_HASH() MIN_MATCH-3 more times
#endif
                /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
                 * matter since it will be recomputed at next deflate call.
                 */
            }
        } else {
            /* No match, output a literal byte */
            Tracevv((stderr,"%c", s->window[s->strstart]));
            _tr_tally_lit (s, s->window[s->strstart], bflush);
            s->lookahead--;
            s->strstart++;
        }
        if (bflush) FLUSH_BLOCK(s, 0);
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}

#ifndef FASTEST
/* ===========================================================================
 * Same as above, but achieves better compression. We use a lazy
 * evaluation for matches: a match is finally adopted only if there is
 * no better match at the next window position.
 */
local block_state deflate_slow(s, flush)
    deflate_state *s;
    int flush;
{
    IPos hash_head = NIL;    /* head of hash chain */
    int bflush;              /* set if current block must be flushed */

    /* Process the input block. */
    for (;;) {
        /* Make sure that we always have enough lookahead, except
         * at the end of the input file. We need MAX_MATCH bytes
         * for the next match, plus MIN_MATCH bytes to insert the
         * string following the next match.
         */
        if (s->lookahead < MIN_LOOKAHEAD) {
            fill_window(s);
            if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
                return need_more;
            }
            if (s->lookahead == 0) break; /* flush the current block */
        }

        /* Insert the string window[strstart .. strstart+2] in the
         * dictionary, and set hash_head to the head of the hash chain:
         */
        if (s->lookahead >= MIN_MATCH) {
            INSERT_STRING(s, s->strstart, hash_head);
        }

        /* Find the longest match, discarding those <= prev_length.
         */
        s->prev_length = s->match_length, s->prev_match = s->match_start;
        s->match_length = MIN_MATCH-1;

        if (hash_head != NIL && s->prev_length < s->max_lazy_match &&
            s->strstart - hash_head <= MAX_DIST(s)) {
            /* To simplify the code, we prevent matches with the string
             * of window index 0 (in particular we have to avoid a match
             * of the string with itself at the start of the input file).
             */
            if (s->strategy < Z_HUFFMAN_ONLY) {
                s->match_length = longest_match (s, hash_head);
            } else if (s->strategy == Z_RLE && s->strstart - hash_head == 1) {
                s->match_length = longest_match_fast (s, hash_head);
            }
            /* longest_match() or longest_match_fast() sets match_start */

            if (s->match_length <= 5 && (s->strategy == Z_FILTERED
#if TOO_FAR <= 32767
                || (s->match_length == MIN_MATCH &&
                    s->strstart - s->match_start > TOO_FAR)
#endif
                )) {

                /* If prev_match is also MIN_MATCH, match_start is garbage
                 * but we will ignore the current match anyway.
                 */
                s->match_length = MIN_MATCH-1;
            }
        }
        /* If there was a match at the previous step and the current
         * match is not better, output the previous match:
         */
        if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
            uInt max_insert = s->strstart + s->lookahead - MIN_MATCH;
            /* Do not insert strings in hash table beyond this. */

            check_match(s, s->strstart-1, s->prev_match, s->prev_length);

            _tr_tally_dist(s, s->strstart -1 - s->prev_match,
                           s->prev_length - MIN_MATCH, bflush);

            /* Insert in hash table all strings up to the end of the match.
             * strstart-1 and strstart are already inserted. If there is not
             * enough lookahead, the last two strings are not inserted in
             * the hash table.
             */
            s->lookahead -= s->prev_length-1;
            s->prev_length -= 2;
            do {
                if (++s->strstart <= max_insert) {
                    INSERT_STRING(s, s->strstart, hash_head);
                }
            } while (--s->prev_length != 0);
            s->match_available = 0;
            s->match_length = MIN_MATCH-1;
            s->strstart++;

            if (bflush) FLUSH_BLOCK(s, 0);

        } else if (s->match_available) {
            /* If there was no match at the previous position, output a
             * single literal. If there was a match but the current match
             * is longer, truncate the previous match to a single literal.
             */
            Tracevv((stderr,"%c", s->window[s->strstart-1]));
            _tr_tally_lit(s, s->window[s->strstart-1], bflush);
            if (bflush) {
                FLUSH_BLOCK_ONLY(s, 0);
            }
            s->strstart++;
            s->lookahead--;
            if (s->strm->avail_out == 0) return need_more;
        } else {
            /* There is no previous match to compare with, wait for
             * the next step to decide.
             */
            s->match_available = 1;
            s->strstart++;
            s->lookahead--;
        }
    }
    Assert (flush != Z_NO_FLUSH, "no flush?");
    if (s->match_available) {
        Tracevv((stderr,"%c", s->window[s->strstart-1]));
        _tr_tally_lit(s, s->window[s->strstart-1], bflush);
        s->match_available = 0;
    }
    FLUSH_BLOCK(s, flush == Z_FINISH);
    return flush == Z_FINISH ? finish_done : block_done;
}
#endif /* FASTEST */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利一二三区| 国产精品毛片久久久久久| 日韩精品视频网站| 欧美一区2区视频在线观看| 日韩精品三区四区| 久久久午夜精品理论片中文字幕| 久久精品国产久精国产| 精品sm捆绑视频| 国产91精品入口| 亚洲主播在线播放| 欧美一级二级在线观看| 成人一级黄色片| 偷窥少妇高潮呻吟av久久免费| 色婷婷av一区二区三区软件| 国产人伦精品一区二区| 99久久伊人精品| 肉色丝袜一区二区| 欧美极品美女视频| 91在线一区二区三区| 日韩高清国产一区在线| 欧美日韩免费视频| 成人亚洲一区二区一| 亚洲国产毛片aaaaa无费看| 精品国产乱码久久久久久夜甘婷婷| 成人一区二区三区中文字幕| 一区二区欧美国产| 欧美精品在欧美一区二区少妇| 国产精品一区二区你懂的| 国产精品少妇自拍| 欧美一区二区三区精品| 国产精品自在在线| 亚洲综合偷拍欧美一区色| 久久综合九色综合久久久精品综合| 99九九99九九九视频精品| 久国产精品韩国三级视频| 亚洲免费伊人电影| 精品国产成人系列| 日韩小视频在线观看专区| 欧美视频精品在线| 北条麻妃国产九九精品视频| 国产一区二区久久| 蜜桃av一区二区三区| 亚洲一区二区在线观看视频 | 午夜精品久久久久久久99水蜜桃 | 欧美日韩在线直播| 91猫先生在线| 一本大道av伊人久久综合| 国产传媒日韩欧美成人| 国产专区综合网| 久久99最新地址| 久久99精品国产麻豆婷婷洗澡| 丝瓜av网站精品一区二区| 午夜日韩在线观看| 日韩黄色在线观看| 美国毛片一区二区| 青娱乐精品在线视频| 五月激情综合色| 丝袜美腿亚洲一区| 经典三级视频一区| 国产精品亚洲午夜一区二区三区 | 一区在线观看免费| 亚洲色图欧洲色图| 亚洲综合免费观看高清完整版| 青椒成人免费视频| 成人av中文字幕| 91精品国产色综合久久不卡电影| 亚洲视频免费在线观看| 国产日韩一级二级三级| 在线不卡中文字幕播放| 91精品麻豆日日躁夜夜躁| 精品欧美一区二区久久| 日本一区二区三区高清不卡| 亚洲国产成人一区二区三区| 国产精品久久久久永久免费观看| 亚洲欧美一区二区三区孕妇| 亚洲大片一区二区三区| 一本久久精品一区二区| 色综合久久九月婷婷色综合| 欧美精品国产精品| 日本一区二区综合亚洲| 亚洲6080在线| 国产中文字幕一区| 欧美系列日韩一区| 国产亚洲精品aa午夜观看| 亚洲在线视频免费观看| 蜜臀av一区二区| 92精品国产成人观看免费 | 一区二区三区影院| 国产在线不卡一卡二卡三卡四卡| 色综合天天做天天爱| 欧美α欧美αv大片| 亚洲一区免费视频| 成人免费高清视频| 精品免费视频.| 亚洲成av人片在www色猫咪| av电影在线观看一区| 国产三级久久久| 美女网站视频久久| 7777精品伊人久久久大香线蕉的| 国产欧美日韩麻豆91| 蜜桃一区二区三区四区| 欧洲国内综合视频| 亚洲欧洲另类国产综合| 精品制服美女丁香| 精品免费一区二区三区| 日韩国产欧美在线视频| 日本伦理一区二区| 亚洲三级在线播放| 成人免费视频app| 久久伊人中文字幕| 免费不卡在线观看| 3d动漫精品啪啪| 亚洲六月丁香色婷婷综合久久 | 国产午夜精品一区二区三区嫩草| 亚洲一二三四区| 91国偷自产一区二区三区观看| 国产视频一区二区在线| 喷水一区二区三区| 欧美国产一区在线| 激情综合网最新| 久久一日本道色综合| 激情综合色综合久久综合| 欧美精品第一页| 天天射综合影视| 91精品国产色综合久久ai换脸| 日韩av电影免费观看高清完整版在线观看 | 国产成人免费视频一区| xfplay精品久久| 成人av网站在线观看免费| 国产喷白浆一区二区三区| 国产乱子伦视频一区二区三区| 精品欧美一区二区三区精品久久 | 日本电影欧美片| 亚洲黄网站在线观看| av福利精品导航| 亚洲精品视频自拍| 在线电影欧美成精品| 韩国精品主播一区二区在线观看 | 亚洲欧洲精品一区二区三区不卡| 波多野结衣中文字幕一区二区三区 | 一级日本不卡的影视| 91麻豆视频网站| 亚洲成人久久影院| 欧美人与禽zozo性伦| 青青青伊人色综合久久| 精品国产亚洲在线| 91麻豆精品一区二区三区| 日韩精品久久理论片| 久久精品一级爱片| 在线一区二区三区四区五区| 亚洲愉拍自拍另类高清精品| 日韩欧美中文字幕一区| 成人视屏免费看| 一区二区三区高清在线| 日韩丝袜美女视频| 国产精品主播直播| 久久精品国产秦先生| 日本一区二区高清| 欧美日韩精品电影| av电影在线不卡| 精品午夜一区二区三区在线观看 | 中文字幕一区二区三区乱码在线 | 成人黄色在线看| 亚洲最大成人网4388xx| 久久精品视频一区二区三区| 欧美性受xxxx| www.亚洲色图.com| 亚洲综合丁香婷婷六月香| 精品国产乱码久久久久久久久| www.成人在线| 高清beeg欧美| 精品在线免费视频| 亚洲理论在线观看| 亚洲美女一区二区三区| 国产精品美女久久久久av爽李琼| 欧美tk—视频vk| 日韩一区二区三区在线视频| 在线观看免费一区| 色偷偷成人一区二区三区91| 成人激情黄色小说| 极品少妇xxxx精品少妇偷拍| 免费美女久久99| 日日摸夜夜添夜夜添国产精品| 亚洲欧美乱综合| 一区二区在线观看不卡| 奇米影视一区二区三区小说| 中文字幕欧美区| 国产精品久久久久影院亚瑟| 国产三级欧美三级| 国产精品人人做人人爽人人添| 国产精品女上位| 亚洲美女视频在线| 亚洲精品亚洲人成人网| 中文字幕亚洲成人| 亚洲va天堂va国产va久| 日日摸夜夜添夜夜添亚洲女人| 免费欧美日韩国产三级电影| 日韩精品视频网站| 国产成人a级片| 色综合网色综合|