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

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

?? deflate.c

?? 許多壓縮算法都用到了ZLIP算法
?? C
?? 第 1 頁 / 共 4 頁
字號:
    ds->strm = dest;    ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));    ds->prev   = (Posf *)  ZALLOC(dest, ds->w_size, sizeof(Pos));    ds->head   = (Posf *)  ZALLOC(dest, ds->hash_size, sizeof(Pos));    overlay = (ushf *) ZALLOC(dest, ds->lit_bufsize, sizeof(ush)+2);    ds->pending_buf = (uchf *) overlay;    if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||        ds->pending_buf == Z_NULL) {        deflateEnd (dest);        return Z_MEM_ERROR;    }    /* following zmemcpy do not work for 16-bit MSDOS */    zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));    zmemcpy(ds->prev, ss->prev, ds->w_size * sizeof(Pos));    zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));    zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);    ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);    ds->d_buf = overlay + ds->lit_bufsize/sizeof(ush);    ds->l_buf = ds->pending_buf + (1+sizeof(ush))*ds->lit_bufsize;    ds->l_desc.dyn_tree = ds->dyn_ltree;    ds->d_desc.dyn_tree = ds->dyn_dtree;    ds->bl_desc.dyn_tree = ds->bl_tree;    return Z_OK;#endif /* MAXSEG_64K */}/* =========================================================================== * Read a new buffer from the current input stream, update the adler32 * and total number of bytes read.  All deflate() input goes through * this function so some applications may wish to modify it to avoid * allocating a large strm->next_in buffer and copying from it. * (See also flush_pending()). */local int read_buf(strm, buf, size)    z_streamp strm;    Bytef *buf;    unsigned size;{    unsigned len = strm->avail_in;    if (len > size) len = size;    if (len == 0) return 0;    strm->avail_in  -= len;    if (strm->state->wrap == 1) {        strm->adler = adler32(strm->adler, strm->next_in, len);    }#ifdef GZIP    else if (strm->state->wrap == 2) {        strm->adler = crc32(strm->adler, strm->next_in, len);    }#endif    zmemcpy(buf, strm->next_in, len);    strm->next_in  += len;    strm->total_in += len;    return (int)len;}/* =========================================================================== * Initialize the "longest match" routines for a new zlib stream */local void lm_init (s)    deflate_state *s;{    s->window_size = (ulg)2L*s->w_size;    CLEAR_HASH(s);    /* Set the default configuration parameters:     */    s->max_lazy_match   = configuration_table[s->level].max_lazy;    s->good_match       = configuration_table[s->level].good_length;    s->nice_match       = configuration_table[s->level].nice_length;    s->max_chain_length = configuration_table[s->level].max_chain;    s->strstart = 0;    s->block_start = 0L;    s->lookahead = 0;    s->match_length = s->prev_length = MIN_MATCH-1;    s->match_available = 0;    s->ins_h = 0;#ifdef ASMV    match_init(); /* initialize the asm code */#endif}#ifndef FASTEST/* =========================================================================== * Set match_start to the longest match starting at the given string and * return its length. Matches shorter or equal to prev_length are discarded, * in which case the result is equal to prev_length and match_start is * garbage. * IN assertions: cur_match is the head of the hash chain for the current *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1 * OUT assertion: the match length is not greater than s->lookahead. */#ifndef ASMV/* For 80x86 and 680x0, an optimized version will be provided in match.asm or * match.S. The code will be functionally equivalent. */local uInt longest_match(s, cur_match)    deflate_state *s;    IPos cur_match;                             /* current match */{    unsigned chain_length = s->max_chain_length;/* max hash chain length */    register Bytef *scan = s->window + s->strstart; /* current string */    register Bytef *match;                       /* matched string */    register int len;                           /* length of current match */    int best_len = s->prev_length;              /* best match length so far */    int nice_match = s->nice_match;             /* stop if match long enough */    IPos limit = s->strstart > (IPos)MAX_DIST(s) ?        s->strstart - (IPos)MAX_DIST(s) : NIL;    /* Stop when cur_match becomes <= limit. To simplify the code,     * we prevent matches with the string of window index 0.     */    Posf *prev = s->prev;    uInt wmask = s->w_mask;#ifdef UNALIGNED_OK    /* Compare two bytes at a time. Note: this is not always beneficial.     * Try with and without -DUNALIGNED_OK to check.     */    register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;    register ush scan_start = *(ushf*)scan;    register ush scan_end   = *(ushf*)(scan+best_len-1);#else    register Bytef *strend = s->window + s->strstart + MAX_MATCH;    register Byte scan_end1  = scan[best_len-1];    register Byte scan_end   = scan[best_len];#endif    /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.     * It is easy to get rid of this optimization if necessary.     */    Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");    /* Do not waste too much time if we already have a good match: */    if (s->prev_length >= s->good_match) {        chain_length >>= 2;    }    /* Do not look for matches beyond the end of the input. This is necessary     * to make deflate deterministic.     */    if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;    Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");    do {        Assert(cur_match < s->strstart, "no future");        match = s->window + cur_match;        /* Skip to next match if the match length cannot increase         * or if the match length is less than 2:         */#if (defined(UNALIGNED_OK) && MAX_MATCH == 258)        /* This code assumes sizeof(unsigned short) == 2. Do not use         * UNALIGNED_OK if your compiler uses a different size.         */        if (*(ushf*)(match+best_len-1) != scan_end ||            *(ushf*)match != scan_start) continue;        /* It is not necessary to compare scan[2] and match[2] since they are         * always equal when the other bytes match, given that the hash keys         * are equal and that HASH_BITS >= 8. Compare 2 bytes at a time at         * strstart+3, +5, ... up to strstart+257. We check for insufficient         * lookahead only every 4th comparison; the 128th check will be made         * at strstart+257. If MAX_MATCH-2 is not a multiple of 8, it is         * necessary to put more guard bytes at the end of the window, or         * to check more often for insufficient lookahead.         */        Assert(scan[2] == match[2], "scan[2]?");        scan++, match++;        do {        } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&                 scan < strend);        /* The funny "do {}" generates better code on most compilers */        /* Here, scan <= window+strstart+257 */        Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");        if (*scan == *match) scan++;        len = (MAX_MATCH - 1) - (int)(strend-scan);        scan = strend - (MAX_MATCH-1);#else /* UNALIGNED_OK */        if (match[best_len]   != scan_end  ||            match[best_len-1] != scan_end1 ||            *match            != *scan     ||            *++match          != scan[1])      continue;        /* The check at best_len-1 can be removed because it will be made         * again later. (This heuristic is not always a win.)         * It is not necessary to compare scan[2] and match[2] since they         * are always equal when the other bytes match, given that         * the hash keys are equal and that HASH_BITS >= 8.         */        scan += 2, match++;        Assert(*scan == *match, "match[2]?");        /* We check for insufficient lookahead only every 8th comparison;         * the 256th check will be made at strstart+258.         */        do {        } while (*++scan == *++match && *++scan == *++match &&                 *++scan == *++match && *++scan == *++match &&                 *++scan == *++match && *++scan == *++match &&                 *++scan == *++match && *++scan == *++match &&                 scan < strend);        Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");        len = MAX_MATCH - (int)(strend - scan);        scan = strend - MAX_MATCH;#endif /* UNALIGNED_OK */        if (len > best_len) {            s->match_start = cur_match;            best_len = len;            if (len >= nice_match) break;#ifdef UNALIGNED_OK            scan_end = *(ushf*)(scan+best_len-1);#else            scan_end1  = scan[best_len-1];            scan_end   = scan[best_len];#endif        }    } while ((cur_match = prev[cur_match & wmask]) > limit             && --chain_length != 0);    if ((uInt)best_len <= s->lookahead) return (uInt)best_len;    return s->lookahead;}#endif /* ASMV */#endif /* FASTEST *//* --------------------------------------------------------------------------- * Optimized version for level == 1 or strategy == Z_RLE only */local uInt longest_match_fast(s, cur_match)    deflate_state *s;    IPos cur_match;                             /* current match */{    register Bytef *scan = s->window + s->strstart; /* current string */    register Bytef *match;                       /* matched string */    register int len;                           /* length of current match */    register Bytef *strend = s->window + s->strstart + MAX_MATCH;    /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.     * It is easy to get rid of this optimization if necessary.     */    Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");    Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");    Assert(cur_match < s->strstart, "no future");    match = s->window + cur_match;    /* Return failure if the match length is less than 2:     */    if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;    /* The check at best_len-1 can be removed because it will be made     * again later. (This heuristic is not always a win.)     * It is not necessary to compare scan[2] and match[2] since they     * are always equal when the other bytes match, given that     * the hash keys are equal and that HASH_BITS >= 8.     */    scan += 2, match += 2;    Assert(*scan == *match, "match[2]?");    /* We check for insufficient lookahead only every 8th comparison;     * the 256th check will be made at strstart+258.     */    do {    } while (*++scan == *++match && *++scan == *++match &&             *++scan == *++match && *++scan == *++match &&             *++scan == *++match && *++scan == *++match &&             *++scan == *++match && *++scan == *++match &&             scan < strend);    Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");    len = MAX_MATCH - (int)(strend - scan);    if (len < MIN_MATCH) return MIN_MATCH - 1;    s->match_start = cur_match;    return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;}#ifdef DEBUG/* =========================================================================== * Check that the match at match_start is indeed a match. */local void check_match(s, start, match, length)    deflate_state *s;    IPos start, match;    int length;{    /* check that the match is indeed a match */    if (zmemcmp(s->window + match,                s->window + start, length) != EQUAL) {        fprintf(stderr, " start %u, match %u, length %d\n",                start, match, length);        do {            fprintf(stderr, "%c%c", s->window[match++], s->window[start++]);        } while (--length != 0);        z_error("invalid match");    }    if (z_verbose > 1) {        fprintf(stderr,"\\[%d,%d]", start-match, length);        do { putc(s->window[start++], stderr); } while (--length != 0);    }}#else#  define check_match(s, start, match, length)#endif /* DEBUG *//* =========================================================================== * Fill the window when the lookahead becomes insufficient. * Updates strstart and lookahead. * * IN assertion: lookahead < MIN_LOOKAHEAD * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD *    At least one byte has been read, or avail_in == 0; reads are *    performed for at least two bytes (required for the zip translate_eol *    option -- not supported here). */local void fill_window(s)    deflate_state *s;{    register unsigned n, m;    register Posf *p;    unsigned more;    /* Amount of free space at the end of the window. */    uInt wsize = s->w_size;    do {        more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);        /* Deal with !@#$% 64K limit: */        if (sizeof(int) <= 2) {            if (more == 0 && s->strstart == 0 && s->lookahead == 0) {                more = wsize;            } else if (more == (unsigned)(-1)) {                /* Very unlikely, but possible on 16 bit machine if                 * strstart == 0 && lookahead == 1 (input done a byte at time)                 */                more--;            }        }        /* If the window is almost full and there is insufficient lookahead,         * move the upper half to the lower one to make room in the upper half.         */        if (s->strstart >= wsize+MAX_DIST(s)) {            zmemcpy(s->window, s->window+wsize, (unsigned)wsize);            s->match_start -= wsize;            s->strstart    -= wsize; /* we now have strstart >= MAX_DIST */            s->block_start -= (long) wsize;            /* Slide the hash table (could be avoided with 32 bit values

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产a| 国产精品一线二线三线精华| a亚洲天堂av| 欧美国产日本视频| aaa国产一区| 亚洲成精国产精品女| 国产精品人人做人人爽人人添| 国产精品一区二区你懂的| 欧美韩国日本不卡| 色综合久久综合| 午夜久久久久久| 欧美精品一区二区蜜臀亚洲| 成人av动漫网站| 亚洲一区二区视频| 日韩三区在线观看| 国产91综合一区在线观看| 亚洲人成伊人成综合网小说| 欧美精品日韩精品| 国产乱人伦精品一区二区在线观看 | 日韩视频在线观看一区二区| 国产美女一区二区三区| 亚洲三级在线免费观看| 欧美精品黑人性xxxx| 国产毛片精品视频| 亚洲一区自拍偷拍| 久久夜色精品国产欧美乱极品| av在线一区二区| 天天综合日日夜夜精品| 国产性做久久久久久| 欧美天堂亚洲电影院在线播放| 久久国产成人午夜av影院| 国产精品二三区| 日韩一区二区三区在线视频| 成人黄色小视频| 欧美a级理论片| 亚洲人成精品久久久久久| 精品人在线二区三区| 99re视频精品| 激情综合五月婷婷| 亚洲女同一区二区| 久久久精品黄色| 91精品国产免费| 99riav久久精品riav| 裸体歌舞表演一区二区| 亚洲综合免费观看高清完整版在线| www久久久久| 正在播放一区二区| 在线免费亚洲电影| 国产成人免费9x9x人网站视频| 日韩av中文字幕一区二区| 亚洲免费观看高清完整版在线| 欧美成人猛片aaaaaaa| 欧美亚洲一区二区在线| av不卡在线观看| 国产精品一品视频| 久久电影网站中文字幕| 亚洲不卡av一区二区三区| 日韩伦理av电影| 中文字幕一区免费在线观看| 欧美白人最猛性xxxxx69交| 欧美三级欧美一级| 色妞www精品视频| 成人精品电影在线观看| 国产自产高清不卡| 99国产精品久久久久| 高清日韩电视剧大全免费| 久久成人免费网| 日本大胆欧美人术艺术动态| 亚洲国产精品麻豆| 亚洲在线视频免费观看| 亚洲欧洲在线观看av| 国产精品伦一区| 国产精品久久三| 中文字幕一区二区三区视频| 中文字幕+乱码+中文字幕一区| 国产亚洲欧洲997久久综合| 久久综合九色综合97_久久久| 精品欧美一区二区三区精品久久| 欧美妇女性影城| 91精品国产乱码久久蜜臀| 欧美疯狂性受xxxxx喷水图片| 91麻豆精品国产自产在线观看一区| 欧美日韩一区高清| 8x福利精品第一导航| 日韩一级片网址| 精品国产电影一区二区 | 国产亚洲人成网站| 国产色综合久久| 亚洲视频 欧洲视频| 一区二区三区在线免费播放| 亚洲一级片在线观看| 亚洲自拍偷拍麻豆| 日韩专区一卡二卡| 久久99久久久欧美国产| 国产成人啪午夜精品网站男同| 国产高清视频一区| 99国产精品国产精品毛片| 欧美亚洲日本国产| 精品区一区二区| 国产精品久久久久毛片软件| 亚洲综合在线五月| 麻豆国产精品一区二区三区| 国产精品一线二线三线精华| 91视频91自| 91精品国产欧美一区二区成人| 欧美xxxxxxxx| 亚洲视频网在线直播| 日本亚洲天堂网| 成人黄色大片在线观看| 欧美日韩第一区日日骚| 久久亚洲一区二区三区明星换脸 | 日韩女优视频免费观看| 国产欧美综合在线| 亚洲国产精品视频| 国产a区久久久| 欧美色图片你懂的| 久久综合色一综合色88| 夜夜嗨av一区二区三区四季av| 免费一级欧美片在线观看| 国产精品1024久久| 欧美日韩久久不卡| 日本一区二区成人| 日本午夜精品视频在线观看| 成人av影院在线| 欧美一区二区人人喊爽| 中文字幕一区二区三区精华液| 日韩成人精品在线| 91蝌蚪porny九色| 久久夜色精品一区| 婷婷国产v国产偷v亚洲高清| av电影天堂一区二区在线观看| 欧美一区二区国产| 一区二区久久久久| 成人av第一页| 精品国产免费一区二区三区四区| 亚洲一区电影777| 成人av中文字幕| 精品1区2区在线观看| 亚洲成av人影院在线观看网| 99免费精品视频| 久久久综合视频| 美女视频免费一区| 欧美日韩一区国产| 亚洲精品少妇30p| 97精品国产97久久久久久久久久久久| 欧美精品一区二区三区蜜臀| 日韩精品午夜视频| 欧美三级日韩三级国产三级| 日韩理论在线观看| 99视频国产精品| 国产精品天天摸av网| 国产精品夜夜嗨| 精品福利视频一区二区三区| 天天亚洲美女在线视频| 在线精品视频一区二区三四| 国产精品不卡在线观看| 国产一区在线观看麻豆| 欧美一级在线视频| 五月天欧美精品| 欧美日韩精品一区视频| 亚洲午夜在线电影| 精品污污网站免费看| 亚洲一卡二卡三卡四卡 | av一区二区不卡| 国产精品丝袜黑色高跟| 成人性视频免费网站| 国产目拍亚洲精品99久久精品| 国产真实乱子伦精品视频| 久久综合久久99| 国产成a人无v码亚洲福利| 国产欧美精品一区二区色综合朱莉 | 欧美性感一区二区三区| 亚洲永久精品大片| 在线看日韩精品电影| 亚洲444eee在线观看| 欧美一区在线视频| 美腿丝袜亚洲三区| 久久精品亚洲一区二区三区浴池| 国产成人在线观看免费网站| 中文字幕电影一区| 91网站在线播放| 亚洲国产视频a| 欧美一区二区三区视频免费| 蜜桃av一区二区在线观看| 久久先锋资源网| 成人黄色777网| 一区二区三区国产豹纹内裤在线| 欧美色图免费看| 精品一区二区三区久久| 久久免费看少妇高潮| 99精品久久只有精品| 亚洲无人区一区| 精品三级在线看| av激情综合网| 婷婷久久综合九色国产成人| 精品国产91乱码一区二区三区| 成人黄页在线观看| 三级欧美韩日大片在线看| 久久久久久免费毛片精品| 91免费看`日韩一区二区|