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

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

?? deflate.c

?? 一個本地database引擎,支持中文T_Sql查詢,兼容DELPHI標準數據庫控件
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* ===========================================================================
 * 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->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->strategy != Z_RLE) {
                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->strategy != Z_RLE) {
                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 */

#if 0
/* ===========================================================================
 * For Z_RLE, simply look for runs of bytes, generate matches only of distance
 * one.  Do not maintain a hash table.  (It will be regenerated if this run of
 * deflate switches away from Z_RLE.)
 */
local block_state deflate_rle(s, flush)
    deflate_state *s;
    int flush;
{
    int bflush;         /* set if current block must be flushed */
    uInt run;           /* length of run */
    uInt max;           /* maximum length of run */
    uInt prev;          /* byte at distance one to match */
    Bytef *scan;        /* scan for end of run */

    for (;;) {
        /* Make sure that we always have enough lookahead, except
         * at the end of the input file. We need MAX_MATCH bytes
         * for the longest encodable run.
         */
        if (s->lookahead < MAX_MATCH) {
            fill_window(s);
            if (s->lookahead < MAX_MATCH && flush == Z_NO_FLUSH) {
                return need_more;
            }
            if (s->lookahead == 0) break; /* flush the current block */
        }

        /* See how many times the previous byte repeats */
        run = 0;
        if (s->strstart > 0) {      /* if there is a previous byte, that is */
            max = s->lookahead < MAX_MATCH ? s->lookahead : MAX_MATCH;
            scan = s->window + s->strstart - 1;
            prev = *scan++;
            do {
                if (*scan++ != prev)
                    break;
            } while (++run < max);
        }

        /* Emit match if have run of MIN_MATCH or longer, else emit literal */
        if (run >= MIN_MATCH) {
            check_match(s, s->strstart, s->strstart - 1, run);
            _tr_tally_dist(s, 1, run - MIN_MATCH, bflush);
            s->lookahead -= run;
            s->strstart += run;
        } else {
            /* No match, output a li

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲品质自拍视频| 国产一本一道久久香蕉| 日本欧美一区二区| 高清不卡在线观看av| 亚洲视频一区二区免费在线观看 | 久久久一区二区三区捆绑**| 国产精品美女久久久久av爽李琼 | 国产精品乱码妇女bbbb| 亚洲国产综合91精品麻豆| 国产精品亚洲专一区二区三区 | 欧美大白屁股肥臀xxxxxx| 国产欧美日韩在线| 久久精品国产在热久久| 91丨porny丨国产| 2023国产精品自拍| 秋霞午夜鲁丝一区二区老狼| 92精品国产成人观看免费| 久久一区二区视频| 日本成人在线一区| 欧美性一二三区| 亚洲欧美一区二区不卡| 成人涩涩免费视频| 久久综合视频网| 久久99精品久久久久婷婷| 欧美视频中文字幕| 亚洲精品五月天| 国产成人av一区二区三区在线观看| 欧美电影影音先锋| 五月婷婷欧美视频| 91久久奴性调教| 亚洲免费在线观看视频| 不卡影院免费观看| 成人免费一区二区三区视频 | 国产婷婷一区二区| 国产在线精品一区二区三区不卡| 欧美一级欧美三级| 免费在线看成人av| 日韩一区二区在线观看视频| 首页国产欧美久久| 91精品免费在线观看| 五月天亚洲婷婷| 69久久99精品久久久久婷婷 | 亚洲免费在线视频| 欧洲色大大久久| 亚洲国产精品一区二区久久恐怖片 | 色婷婷综合久久久中文一区二区| 国产精品久久久久久一区二区三区| 成人免费高清在线| 亚洲精品日韩综合观看成人91| 94-欧美-setu| 天堂影院一区二区| 亚洲精品一区二区精华| 成人免费高清在线观看| 亚洲精品精品亚洲| 欧美剧情片在线观看| 蜜臀国产一区二区三区在线播放| 精品久久久影院| 成人美女在线观看| 亚洲国产成人va在线观看天堂| 欧美精品日韩精品| 国产一区三区三区| 亚洲自拍偷拍图区| 日韩免费看的电影| 亚洲电影在线播放| 亚洲成人手机在线| 欧美videossexotv100| 国产精品一区在线观看你懂的| 国产精品九色蝌蚪自拍| 欧美日韩国产美| 国产一区二区三区不卡在线观看 | 中文字幕亚洲欧美在线不卡| 在线观看免费成人| 久久99国产精品尤物| 中文字幕一区二区三区视频| 欧美日韩视频在线第一区 | 午夜一区二区三区视频| www欧美成人18+| 欧美日韩色一区| 国产成人在线色| 日本亚洲一区二区| 中文字幕日韩av资源站| 91麻豆精品国产91久久久久久 | 91美女视频网站| 九九**精品视频免费播放| 亚洲精品久久7777| 国产日韩成人精品| 日韩欧美国产1| 色吊一区二区三区| 成人av影院在线| 久久精工是国产品牌吗| 亚洲一区二区三区在线看| 中文乱码免费一区二区| 欧美成人精品3d动漫h| 色欧美88888久久久久久影院| 九九国产精品视频| 青青青爽久久午夜综合久久午夜| 亚洲三级在线播放| 国产精品三级av| 337p日本欧洲亚洲大胆精品| 欧美疯狂做受xxxx富婆| 在线视频亚洲一区| 9久草视频在线视频精品| 国产一区二区三区免费在线观看| 一区二区三区日韩欧美精品| 欧美激情一区在线| 久久五月婷婷丁香社区| 91精品国产综合久久久久久久久久 | 狠狠色丁香久久婷婷综合丁香| 亚洲成人av免费| 一区二区三区**美女毛片| 亚洲视频在线一区二区| 中文字幕亚洲不卡| 亚洲三级视频在线观看| 亚洲视频在线一区| 亚洲天堂2014| 亚洲乱码一区二区三区在线观看| 国产精品欧美一区二区三区| 久久久久久97三级| 国产三级精品在线| 国产欧美一区二区精品性色 | 91精品国产高清一区二区三区蜜臀| 欧美视频在线一区| 欧美三级中文字| |精品福利一区二区三区| 欧美电影免费观看完整版| 欧美日韩国产一级| 欧美精品黑人性xxxx| 777午夜精品视频在线播放| 在线不卡中文字幕播放| 777欧美精品| 欧美α欧美αv大片| 久久综合九色综合97婷婷女人| 久久综合九色综合欧美就去吻| 欧美成人精品二区三区99精品| 久久久国产综合精品女国产盗摄| 久久久精品tv| 亚洲视频小说图片| 午夜精品aaa| 免费看欧美女人艹b| 国产激情一区二区三区四区| 豆国产96在线|亚洲| 91久久国产综合久久| 在线播放视频一区| 久久精品亚洲一区二区三区浴池| 中文字幕亚洲在| 午夜精品久久久久久久久| 九色综合狠狠综合久久| 成人精品国产免费网站| 欧洲激情一区二区| 精品sm在线观看| 亚洲欧美另类小说视频| 日韩av网站在线观看| 成人午夜在线免费| 欧美在线三级电影| 2020国产精品| 亚洲一区在线视频| 国产精品12区| 欧美午夜电影网| 久久久www免费人成精品| 亚洲一区日韩精品中文字幕| 久久综合综合久久综合| 91蝌蚪porny九色| 欧美成人a∨高清免费观看| 亚洲日本欧美天堂| 精品在线播放午夜| 欧美日韩综合色| 国产精品的网站| 免费人成精品欧美精品| 91丝袜美女网| 国产亚洲欧美一级| 午夜精品影院在线观看| 成人黄色免费短视频| 91精品国产综合久久小美女| ...av二区三区久久精品| 久久国产精品一区二区| 欧美在线free| 国产精品久久久久久亚洲伦| 久久99热国产| 欧美肥妇bbw| 亚洲一区二区在线免费观看视频| 国产乱子伦一区二区三区国色天香| 欧美日韩精品欧美日韩精品| 最新国产成人在线观看| 国产乱码一区二区三区| 欧美电视剧免费全集观看| 手机精品视频在线观看| 在线观看91视频| 亚洲精品视频观看| 99riav久久精品riav| 亚洲国产精品成人综合 | 国产精一区二区三区| 日韩一区二区在线观看视频播放| 亚洲午夜免费电影| 91国产视频在线观看| 亚洲欧洲日韩在线| 成人av网址在线| 国产精品久线在线观看| 成人av动漫网站| 亚洲欧洲日产国产综合网| eeuss鲁片一区二区三区在线观看|