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

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

?? deflate.c

?? dc++(一個曾經大量使用的p2p)的源代碼,dc++,開源的p2p源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
#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).
             */
            if (s->strategy != Z_HUFFMAN_ONLY) {
                s->match_length = longest_match (s, hash_head);
            }
            /* longest_match() 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 hash 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;
}

/* ===========================================================================
 * 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);
            }
            /* longest_match() sets match_start */

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

                /* 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;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩va欧美va亚洲va久久| 亚洲综合免费观看高清在线观看| 毛片不卡一区二区| 精品日韩一区二区三区 | 欧美成人精品福利| 激情综合网av| 中文字幕一区二区三区不卡| 色噜噜狠狠色综合中国| 午夜精品福利一区二区三区av| 日韩午夜av电影| 国产成人综合视频| 亚洲一区在线观看免费| 欧美成人免费网站| 99国产精品久久久久久久久久| 亚洲电影在线播放| 久久九九久久九九| 在线视频欧美精品| 免播放器亚洲一区| 亚洲国产精品v| 欧美区视频在线观看| 国产一区二区三区在线观看免费视频 | 国产suv一区二区三区88区| 综合自拍亚洲综合图不卡区| 欧美一区二区三区免费大片| 国产成a人无v码亚洲福利| 亚洲成人资源网| 亚洲国产电影在线观看| 91精品国产综合久久久久| 成人午夜视频在线| 日韩中文字幕av电影| 一区二区中文视频| 精品国产一区二区三区四区四| 色噜噜夜夜夜综合网| 国产一区二区三区四区五区美女| 亚洲一区二区偷拍精品| 国产精品无码永久免费888| 欧美高清视频一二三区 | 一区二区欧美在线观看| 久久品道一品道久久精品| 91国在线观看| 国产99久久久久| 美女视频一区二区| 亚洲成人av资源| 亚洲日本va午夜在线影院| 久久综合久久鬼色中文字| 亚洲电影你懂得| 欧美日韩另类一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 欧美群妇大交群中文字幕| 国产精品2024| 另类综合日韩欧美亚洲| 亚洲国产毛片aaaaa无费看| 日本一区二区三区dvd视频在线| 久久精品国产一区二区三| 亚洲欧洲精品一区二区精品久久久 | 91蜜桃网址入口| 国产成都精品91一区二区三| 久久99最新地址| 日韩不卡免费视频| 午夜精品福利一区二区蜜股av | 精品一区二区三区免费播放| 五月婷婷激情综合| 亚洲二区在线视频| 亚洲综合色在线| 一区二区三区四区不卡在线| 亚洲欧美中日韩| 国产精品电影一区二区| 国产精品污www在线观看| 欧美国产综合一区二区| 久久精品人人做| 国产欧美一区二区精品性色超碰 | 制服丝袜一区二区三区| 欧美日韩不卡在线| 91精品国产综合久久久久| 欧美精品自拍偷拍| 精品视频999| 欧美精品在欧美一区二区少妇| 欧美理论电影在线| 欧美日韩免费在线视频| 欧美精品乱人伦久久久久久| 欧美日韩国产首页| 日韩免费观看高清完整版在线观看| 欧美一区二区三区四区五区| 日韩无一区二区| 久久久精品国产免费观看同学| 国产亚洲欧美色| 中文字幕在线不卡一区| 亚洲黄色录像片| 肉色丝袜一区二区| 国产自产视频一区二区三区| 粉嫩在线一区二区三区视频| 99天天综合性| 欧美日韩国产首页| 久久综合999| 亚洲日本青草视频在线怡红院| 亚洲在线观看免费视频| 男女男精品视频网| 丁香一区二区三区| 日本韩国欧美在线| 日韩欧美电影在线| 国产精品午夜久久| 午夜免费欧美电影| 国产精品自拍一区| 日本高清成人免费播放| 777欧美精品| 欧美激情一区二区三区在线| 亚洲婷婷在线视频| 免费国产亚洲视频| av中文一区二区三区| 91.麻豆视频| 中文字幕一区二区三区在线观看| 亚洲二区在线观看| 国产成人一级电影| 欧美日本在线一区| 中文字幕的久久| 日本中文一区二区三区| 成人免费va视频| 日韩一区二区三区四区| 自拍偷拍国产精品| 黑人精品欧美一区二区蜜桃| 日本久久电影网| 国产日韩欧美激情| 日韩高清不卡一区二区| 成人精品国产福利| 精品少妇一区二区三区日产乱码| 亚洲欧美日韩一区二区| 久久aⅴ国产欧美74aaa| 日本黄色一区二区| 国产精品嫩草99a| 美女视频黄频大全不卡视频在线播放| 波多野洁衣一区| 精品第一国产综合精品aⅴ| 亚洲一区二区三区四区五区中文| 国产成人三级在线观看| 欧美一级黄色片| 亚洲国产精品一区二区尤物区| 成人午夜免费av| 2020国产精品| 久久99国产乱子伦精品免费| 欧美日韩二区三区| 亚洲综合成人网| 91无套直看片红桃| 国产精品伦理一区二区| 精品一二三四在线| 日韩小视频在线观看专区| 亚洲高清三级视频| 欧美在线观看你懂的| 国产精品国产三级国产普通话蜜臀 | 中文字幕精品—区二区四季| 久久激情综合网| 欧美视频你懂的| 夜夜嗨av一区二区三区四季av | 天天爽夜夜爽夜夜爽精品视频 | 欧美一区二区三区精品| 亚洲成人免费电影| 欧美天堂一区二区三区| 亚洲永久免费视频| 色婷婷国产精品综合在线观看| 中文字幕一区二| 91亚洲男人天堂| 亚洲人吸女人奶水| 色综合色综合色综合| 亚洲免费毛片网站| 在线亚洲精品福利网址导航| 亚洲激情第一区| 欧美亚洲国产怡红院影院| 亚洲在线一区二区三区| 欧美日韩国产首页| 日韩成人一级片| 欧美成人精品3d动漫h| 国内成人免费视频| 国产欧美日本一区视频| 成人国产精品视频| 亚洲精品成人天堂一二三| 欧美亚洲丝袜传媒另类| 日韩电影在线观看电影| 欧美变态tickling挠脚心| 国产一区二区三区四区在线观看| 久久夜色精品一区| 不卡av免费在线观看| 一区av在线播放| 欧美日韩不卡一区| 精品一区二区三区不卡| 国产精品丝袜一区| 在线免费观看日本一区| 日韩激情视频在线观看| 精品国产精品一区二区夜夜嗨| 成人午夜激情影院| 亚洲精选视频免费看| 日韩三级在线观看| 处破女av一区二区| 亚洲一区国产视频| 337p日本欧洲亚洲大胆精品| av亚洲产国偷v产偷v自拍| 午夜精品久久久久久久蜜桃app| 日韩一区二区三区观看| 成人白浆超碰人人人人| 亚洲图片有声小说| 国产亚洲精品久| 欧美日韩亚洲另类|