亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩综合一区二区| 在线精品国精品国产尤物884a| 成人免费视频免费观看| 欧美三级电影在线观看| 国产精品免费久久| 毛片一区二区三区| 在线观看中文字幕不卡| 中文字幕欧美激情| 久久99久久99| 91精品国产色综合久久ai换脸 | 日韩电影在线观看网站| 成人sese在线| 国产视频一区二区在线| 精品在线观看免费| 欧美久久久久免费| 亚洲综合色视频| 91美女视频网站| 国产精品亲子乱子伦xxxx裸| 久久99精品国产.久久久久| 欧美午夜寂寞影院| 亚洲一区在线观看视频| 色综合久久99| 亚洲欧美日本在线| 国产成a人亚洲精品| 久久亚洲影视婷婷| 国产一区激情在线| 26uuu亚洲综合色| 激情综合色丁香一区二区| 欧美一级高清大全免费观看| 午夜婷婷国产麻豆精品| 欧美这里有精品| 亚洲中国最大av网站| 欧美在线免费视屏| 性做久久久久久免费观看| 91福利在线导航| 亚洲国产成人porn| 91精品久久久久久久久99蜜臂| 日韩二区在线观看| 日韩视频在线永久播放| 久久精工是国产品牌吗| 精品欧美黑人一区二区三区| 激情综合网最新| 国产亚洲一区二区三区| 大胆欧美人体老妇| 亚洲欧美在线高清| 在线观看日韩毛片| 亚洲18影院在线观看| 欧美一区二区免费| 国产一区二区按摩在线观看| 亚洲国产精品成人综合| 91论坛在线播放| 午夜一区二区三区视频| 日韩精品资源二区在线| 国产精品1区二区.| 一区二区三区影院| 日韩一本二本av| 成人国产在线观看| 亚洲二区在线视频| 欧美tickling挠脚心丨vk| 成人一级黄色片| 亚洲一区二区免费视频| 精品国内二区三区| 97se狠狠狠综合亚洲狠狠| 亚洲线精品一区二区三区| 久久综合九色欧美综合狠狠| 91小视频在线观看| 奇米在线7777在线精品| 国产欧美综合在线| 欧美日韩视频不卡| 国产馆精品极品| 亚洲成人免费电影| 国产精品全国免费观看高清| 欧美剧情电影在线观看完整版免费励志电影 | 日本久久精品电影| 玖玖九九国产精品| 自拍偷拍亚洲欧美日韩| 日韩视频在线观看一区二区| av在线不卡观看免费观看| 午夜日韩在线电影| 国产精品电影一区二区| 欧美一二区视频| 在线观看91视频| 东方欧美亚洲色图在线| 日韩极品在线观看| 中文字幕亚洲不卡| 久久久亚洲欧洲日产国码αv| 精品视频1区2区| 成人激情动漫在线观看| 精品一区在线看| 午夜精品久久一牛影视| 亚洲视频精选在线| 国产亚洲1区2区3区| 欧美一区二区视频在线观看 | 93久久精品日日躁夜夜躁欧美| 美国十次综合导航| 日本伊人午夜精品| 婷婷亚洲久悠悠色悠在线播放| 中文字幕一区二区日韩精品绯色| 精品欧美一区二区在线观看| 91麻豆精品国产91久久久更新时间 | 精品视频在线免费看| 成人a级免费电影| 国内精品视频666| 免费亚洲电影在线| 秋霞午夜鲁丝一区二区老狼| 亚洲最大色网站| 亚洲欧美国产77777| 国产精品美女久久福利网站| 精品国产乱码久久久久久图片 | 精品999在线播放| 欧美年轻男男videosbes| 欧美性xxxxxxxx| 在线观看免费成人| 欧美午夜电影网| 91.com在线观看| 欧美精品日日鲁夜夜添| 在线不卡的av| 日韩三级电影网址| 亚洲精品一线二线三线| 久久久久高清精品| 国产日产精品一区| 国产三级欧美三级日产三级99| 久久久久久**毛片大全| 国产情人综合久久777777| 国产精品第四页| 亚洲欧美韩国综合色| 亚洲超碰精品一区二区| 日韩国产欧美一区二区三区| 免费观看在线综合色| 国产一区二区三区四区五区入口| 国产99一区视频免费| av在线播放成人| 欧美亚洲国产一区二区三区va| 欧美色视频一区| 日韩欧美激情四射| 国产午夜亚洲精品理论片色戒| 亚洲国产高清在线| 一区二区三区精品视频在线| 日韩精品一二三区| 国产毛片精品一区| 色噜噜狠狠一区二区三区果冻| 欧美日韩国产高清一区| 欧美精品一区二区三区一线天视频| 国产亚洲一区二区三区四区| 亚洲欧美韩国综合色| 捆绑调教一区二区三区| 国产成人精品免费在线| 欧美综合天天夜夜久久| 欧美成人一区二区三区片免费 | 国产婷婷一区二区| 亚洲成人精品一区二区| 久久99精品国产.久久久久 | av电影天堂一区二区在线| 欧美亚洲综合色| 国产农村妇女毛片精品久久麻豆 | 欧美一区2区视频在线观看| 国产欧美一区二区在线观看| 亚洲成人精品一区| 成人午夜在线播放| 91精品国产一区二区人妖| 日韩美女精品在线| 国产乱子伦一区二区三区国色天香| 色香蕉成人二区免费| 久久久www成人免费毛片麻豆 | 国产综合色精品一区二区三区| 色妹子一区二区| 久久久久久亚洲综合| 午夜精品久久久久久久99水蜜桃| 成人综合婷婷国产精品久久免费| 欧美日韩高清影院| 成人欧美一区二区三区白人| 黄色资源网久久资源365| 欧美在线999| 日韩毛片精品高清免费| 国产高清久久久| 欧美一卡二卡在线观看| 亚洲制服丝袜av| 91在线国产福利| 中文字幕第一区综合| 国产精品99久| 精品久久久久久久久久久久久久久 | 日韩和欧美一区二区三区| 一本大道av一区二区在线播放| 国产欧美一区二区三区鸳鸯浴 | 91极品视觉盛宴| 国产精品乱码一区二三区小蝌蚪| 免费看黄色91| 日韩一区二区在线看| 亚洲图片自拍偷拍| 91国在线观看| 亚洲综合无码一区二区| 色哟哟亚洲精品| 最新热久久免费视频| 成人午夜av在线| 日本一区二区免费在线| 国产91精品一区二区| 国产农村妇女毛片精品久久麻豆| 国产精品一区二区三区99| 久久精品视频在线免费观看| 国产一区二区三区香蕉|