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

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

?? trees.c

?? tftp client sorser code,Please download it and compolie it ,byebye
?? C
?? 第 1 頁 / 共 3 頁
字號:
        } else if (count <= 10) {            bl_tree[REPZ_3_10].Freq++;        } else {            bl_tree[REPZ_11_138].Freq++;        }        count = 0; prevlen = curlen;        if (nextlen == 0) {            max_count = 138, min_count = 3;        } else if (curlen == nextlen) {            max_count = 6, min_count = 3;        } else {            max_count = 7, min_count = 4;        }    }}/* =========================================================================== * Send a literal or distance tree in compressed form, using the codes in * bl_tree. */local void send_tree (tree, max_code)    ct_data near *tree; /* the tree to be scanned */    int max_code;       /* and its largest code of non zero frequency */{    int n;                     /* iterates over all tree elements */    int prevlen = -1;          /* last emitted length */    int curlen;                /* length of current code */    int nextlen = tree[0].Len; /* length of next code */    int count = 0;             /* repeat count of the current code */    int max_count = 7;         /* max repeat count */    int min_count = 4;         /* min repeat count */    /* tree[max_code+1].Len = -1; */  /* guard already set */    if (nextlen == 0) max_count = 138, min_count = 3;    for (n = 0; n <= max_code; n++) {        curlen = nextlen; nextlen = tree[n+1].Len;        if (++count < max_count && curlen == nextlen) {            continue;        } else if (count < min_count) {            do { send_code(curlen, bl_tree); } while (--count != 0);        } else if (curlen != 0) {            if (curlen != prevlen) {                send_code(curlen, bl_tree); count--;            }            Assert(count >= 3 && count <= 6, " 3_6?");            send_code(REP_3_6, bl_tree); send_bits(count-3, 2);        } else if (count <= 10) {            send_code(REPZ_3_10, bl_tree); send_bits(count-3, 3);        } else {            send_code(REPZ_11_138, bl_tree); send_bits(count-11, 7);        }        count = 0; prevlen = curlen;        if (nextlen == 0) {            max_count = 138, min_count = 3;        } else if (curlen == nextlen) {            max_count = 6, min_count = 3;        } else {            max_count = 7, min_count = 4;        }    }}/* =========================================================================== * Construct the Huffman tree for the bit lengths and return the index in * bl_order of the last bit length code to send. */local int build_bl_tree(){    int max_blindex;  /* index of last bit length code of non zero freq */    /* Determine the bit length frequencies for literal and distance trees */    scan_tree((ct_data near *)dyn_ltree, l_desc.max_code);    scan_tree((ct_data near *)dyn_dtree, d_desc.max_code);    /* Build the bit length tree: */    build_tree((tree_desc near *)(&bl_desc));    /* opt_len now includes the length of the tree representations, except     * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.     */    /* Determine the number of bit length codes to send. The pkzip format     * requires that at least 4 bit length codes be sent. (appnote.txt says     * 3 but the actual value used is 4.)     */    for (max_blindex = BL_CODES-1; max_blindex >= 3; max_blindex--) {        if (bl_tree[bl_order[max_blindex]].Len != 0) break;    }    /* Update opt_len to include the bit length tree and counts */    opt_len += 3*(max_blindex+1) + 5+5+4;    Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld", opt_len, static_len));    return max_blindex;}/* =========================================================================== * Send the header for a block using dynamic Huffman trees: the counts, the * lengths of the bit length codes, the literal tree and the distance tree. * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4. */local void send_all_trees(lcodes, dcodes, blcodes)    int lcodes, dcodes, blcodes; /* number of codes for each tree */{    int rank;                    /* index in bl_order */    Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");    Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,            "too many codes");    Tracev((stderr, "\nbl counts: "));    send_bits(lcodes-257, 5); /* not +255 as stated in appnote.txt */    send_bits(dcodes-1,   5);    send_bits(blcodes-4,  4); /* not -3 as stated in appnote.txt */    for (rank = 0; rank < blcodes; rank++) {        Tracev((stderr, "\nbl code %2d ", bl_order[rank]));        send_bits(bl_tree[bl_order[rank]].Len, 3);    }    Tracev((stderr, "\nbl tree: sent %ld", bits_sent));    send_tree((ct_data near *)dyn_ltree, lcodes-1); /* send the literal tree */    Tracev((stderr, "\nlit tree: sent %ld", bits_sent));    send_tree((ct_data near *)dyn_dtree, dcodes-1); /* send the distance tree */    Tracev((stderr, "\ndist tree: sent %ld", bits_sent));}/* =========================================================================== * Determine the best encoding for the current block: dynamic trees, static * trees or store, and output the encoded block to the zip file. This function * returns the total compressed length for the file so far. */ulg flush_block(buf, stored_len, eof)    char *buf;        /* input block, or NULL if too old */    ulg stored_len;   /* length of input block */    int eof;          /* true if this is the last block for a file */{    ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */    int max_blindex;  /* index of last bit length code of non zero freq */    flag_buf[last_flags] = flags; /* Save the flags for the last 8 items */     /* Check if the file is ascii or binary */    if (*file_type == (ush)UNKNOWN) set_file_type();    /* Construct the literal and distance trees */    build_tree((tree_desc near *)(&l_desc));    Tracev((stderr, "\nlit data: dyn %ld, stat %ld", opt_len, static_len));    build_tree((tree_desc near *)(&d_desc));    Tracev((stderr, "\ndist data: dyn %ld, stat %ld", opt_len, static_len));    /* At this point, opt_len and static_len are the total bit lengths of     * the compressed block data, excluding the tree representations.     */    /* Build the bit length tree for the above two trees, and get the index     * in bl_order of the last bit length code to send.     */    max_blindex = build_bl_tree();    /* Determine the best encoding. Compute first the block length in bytes */    opt_lenb = (opt_len+3+7)>>3;    static_lenb = (static_len+3+7)>>3;    input_len += stored_len; /* for debugging only */    Trace((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u dist %u ",            opt_lenb, opt_len, static_lenb, static_len, stored_len,            last_lit, last_dist));    if (static_lenb <= opt_lenb) opt_lenb = static_lenb;    /* If compression failed and this is the first and last block,     * and if the zip file can be seeked (to rewrite the local header),     * the whole file is transformed into a stored file:     */#ifdef FORCE_METHOD    if (level == 1 && eof && compressed_len == 0L) { /* force stored file */#else    if (stored_len <= opt_lenb && eof && compressed_len == 0L && seekable()) {#endif        /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */        if (buf == (char*)0) error ("block vanished");        copy_block(buf, (unsigned)stored_len, 0); /* without header */        compressed_len = stored_len << 3;        *file_method = STORED;#ifdef FORCE_METHOD    } else if (level == 2 && buf != (char*)0) { /* force stored block */#else    } else if (stored_len+4 <= opt_lenb && buf != (char*)0) {                       /* 4: two words for the lengths */#endif        /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.         * Otherwise we can't have processed more than WSIZE input bytes since         * the last block flush, because compression would have been         * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to         * transform a block into a stored block.         */        send_bits((STORED_BLOCK<<1)+eof, 3);  /* send block type */        compressed_len = (compressed_len + 3 + 7) & ~7L;        compressed_len += (stored_len + 4) << 3;        copy_block(buf, (unsigned)stored_len, 1); /* with header */#ifdef FORCE_METHOD    } else if (level == 3) { /* force static trees */#else    } else if (static_lenb == opt_lenb) {#endif        send_bits((STATIC_TREES<<1)+eof, 3);        compress_block((ct_data near *)static_ltree, (ct_data near *)static_dtree);        compressed_len += 3 + static_len;    } else {        send_bits((DYN_TREES<<1)+eof, 3);        send_all_trees(l_desc.max_code+1, d_desc.max_code+1, max_blindex+1);        compress_block((ct_data near *)dyn_ltree, (ct_data near *)dyn_dtree);        compressed_len += 3 + opt_len;    }    Assert (compressed_len == bits_sent, "bad compressed size");    init_block();    if (eof) {        Assert (input_len == isize, "bad input size");        bi_windup();        compressed_len += 7;  /* align on byte boundary */    }    Tracev((stderr,"\ncomprlen %lu(%lu) ", compressed_len>>3,           compressed_len-7*eof));    return compressed_len >> 3;}/* =========================================================================== * Save the match info and tally the frequency counts. Return true if * the current block must be flushed. */int ct_tally (dist, lc)    int dist;  /* distance of matched string */    int lc;    /* match length-MIN_MATCH or unmatched char (if dist==0) */{    l_buf[last_lit++] = (uch)lc;    if (dist == 0) {        /* lc is the unmatched char */        dyn_ltree[lc].Freq++;    } else {        /* Here, lc is the match length - MIN_MATCH */        dist--;             /* dist = match distance - 1 */        Assert((ush)dist < (ush)MAX_DIST &&               (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&               (ush)d_code(dist) < (ush)D_CODES,  "ct_tally: bad match");        dyn_ltree[length_code[lc]+LITERALS+1].Freq++;        dyn_dtree[d_code(dist)].Freq++;        d_buf[last_dist++] = (ush)dist;        flags |= flag_bit;    }    flag_bit <<= 1;    /* Output the flags if they fill a byte: */    if ((last_lit & 7) == 0) {        flag_buf[last_flags++] = flags;        flags = 0, flag_bit = 1;    }    /* Try to guess if it is profitable to stop the current block here */    if (level > 2 && (last_lit & 0xfff) == 0) {        /* Compute an upper bound for the compressed length */        ulg out_length = (ulg)last_lit*8L;        ulg in_length = (ulg)strstart-block_start;        int dcode;        for (dcode = 0; dcode < D_CODES; dcode++) {            out_length += (ulg)dyn_dtree[dcode].Freq*(5L+extra_dbits[dcode]);        }        out_length >>= 3;        Trace((stderr,"\nlast_lit %u, last_dist %u, in %ld, out ~%ld(%ld%%) ",               last_lit, last_dist, in_length, out_length,               100L - out_length*100L/in_length));        if (last_dist < last_lit/2 && out_length < in_length/2) return 1;    }    return (last_lit == LIT_BUFSIZE-1 || last_dist == DIST_BUFSIZE);    /* We avoid equality with LIT_BUFSIZE because of wraparound at 64K     * on 16 bit machines and because stored blocks are restricted to     * 64K-1 bytes.     */}/* =========================================================================== * Send the block data compressed using the given Huffman trees */local void compress_block(ltree, dtree)    ct_data near *ltree; /* literal tree */    ct_data near *dtree; /* distance tree */{    unsigned dist;      /* distance of matched string */    int lc;             /* match length or unmatched char (if dist == 0) */    unsigned lx = 0;    /* running index in l_buf */    unsigned dx = 0;    /* running index in d_buf */    unsigned fx = 0;    /* running index in flag_buf */    uch flag = 0;       /* current flags */    unsigned code;      /* the code to send */    int extra;          /* number of extra bits to send */    if (last_lit != 0) do {        if ((lx & 7) == 0) flag = flag_buf[fx++];        lc = l_buf[lx++];        if ((flag & 1) == 0) {            send_code(lc, ltree); /* send a literal byte */            Tracecv(isgraph(lc), (stderr," '%c' ", lc));        } else {            /* Here, lc is the match length - MIN_MATCH */            code = length_code[lc];            send_code(code+LITERALS+1, ltree); /* send the length code */            extra = extra_lbits[code];            if (extra != 0) {                lc -= base_length[code];                send_bits(lc, extra);        /* send the extra length bits */            }            dist = d_buf[dx++];            /* Here, dist is the match distance - 1 */            code = d_code(dist);            Assert (code < D_CODES, "bad d_code");            send_code(code, dtree);       /* send the distance code */            extra = extra_dbits[code];            if (extra != 0) {                dist -= base_dist[code];                send_bits(dist, extra);   /* send the extra distance bits */            }        } /* literal or match pair ? */        flag >>= 1;    } while (lx < last_lit);    send_code(END_BLOCK, ltree);}/* =========================================================================== * Set the file type to ASCII or BINARY, using a crude approximation: * binary if more than 20% of the bytes are <= 6 or >= 128, ascii otherwise. * IN assertion: the fields freq of dyn_ltree are set and the total of all * frequencies does not exceed 64K (to fit in an int on 16 bit machines). */local void set_file_type(){    int n = 0;    unsigned ascii_freq = 0;    unsigned bin_freq = 0;    while (n < 7)        bin_freq += dyn_ltree[n++].Freq;    while (n < 128)    ascii_freq += dyn_ltree[n++].Freq;    while (n < LITERALS) bin_freq += dyn_ltree[n++].Freq;    *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;    if (*file_type == BINARY && translate_eol) {        warn("-l used on binary file", "");    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本道免费精品一区二区三区| 日韩电影在线一区二区| 色狠狠色噜噜噜综合网| 日韩**一区毛片| 亚洲欧美日韩国产手机在线| 欧美一区二区在线不卡| 色综合色综合色综合| 精品一区在线看| 国产精品第一页第二页第三页| 久久69国产一区二区蜜臀| 国产精品理论片| 欧美日韩精品免费| 国产91清纯白嫩初高中在线观看| 亚洲精品欧美激情| 日韩精品一区二区三区在线| av动漫一区二区| 人人狠狠综合久久亚洲| 国产视频一区二区三区在线观看| 色天使久久综合网天天| 国模一区二区三区白浆| 亚洲免费av高清| 精品国产91亚洲一区二区三区婷婷 | 精品国产精品一区二区夜夜嗨| 91色综合久久久久婷婷| 黄色小说综合网站| 午夜精品福利一区二区三区蜜桃| 日本一区二区免费在线| 在线不卡欧美精品一区二区三区| 粉嫩av亚洲一区二区图片| 日韩成人免费电影| 亚洲欧美成人一区二区三区| 久久女同互慰一区二区三区| 欧美日韩国产区一| 在线视频观看一区| 成人国产亚洲欧美成人综合网 | 欧美三级资源在线| 成人黄色大片在线观看| 日本特黄久久久高潮| 亚洲一区二区三区四区五区黄| 国产精品久久夜| 日韩免费看网站| 777色狠狠一区二区三区| 色综合久久99| 99久久综合狠狠综合久久| 国产一区三区三区| 美女一区二区视频| 天天综合网天天综合色| 亚洲精品视频在线观看网站| 精品国精品国产| 91麻豆精品国产91久久久资源速度| 色av综合在线| 91免费精品国自产拍在线不卡| 成人av午夜影院| 美女性感视频久久| 免费av网站大全久久| 日韩一区精品视频| 丝袜a∨在线一区二区三区不卡| 亚洲精品中文字幕乱码三区| 国产无遮挡一区二区三区毛片日本| 91精品国产综合久久精品麻豆| 欧美视频一区二区三区在线观看| 色婷婷一区二区三区四区| www.欧美日韩国产在线| 处破女av一区二区| 国产精品一线二线三线精华| 国产一区二区三区美女| 国产米奇在线777精品观看| 国内精品免费**视频| 国产一区二区三区久久悠悠色av| 国产精品一区三区| 成人一区二区视频| 成人福利视频在线看| 成人免费毛片aaaaa**| 成人福利视频网站| 北岛玲一区二区三区四区| 99精品在线免费| 在线亚洲+欧美+日本专区| 欧美性猛交xxxxxx富婆| 91精品在线观看入口| 精品成人佐山爱一区二区| 国产亚洲人成网站| 国产精品白丝在线| 亚洲激情中文1区| 一区二区视频免费在线观看| 亚洲欧美日韩在线| 亚洲天堂网中文字| 免费在线一区观看| 国产成人精品一区二区三区四区 | 欧美亚一区二区| 91精品国产91久久综合桃花| 日韩欧美国产综合一区 | 欧美一级理论片| 久久精品亚洲麻豆av一区二区| 国产精品嫩草久久久久| 一区二区在线观看av| 日本欧洲一区二区| 国产盗摄视频一区二区三区| 国产精品一级片| 91激情五月电影| 欧美成人一区二区三区| 精品福利在线导航| 亚洲女同女同女同女同女同69| 日韩中文字幕麻豆| 国产91富婆露脸刺激对白| 久久嫩草精品久久久精品一| 欧美在线影院一区二区| 国产在线播精品第三| 在线视频欧美精品| 日韩一区二区三区观看| 中文字幕乱码亚洲精品一区| 亚洲中国最大av网站| 韩国视频一区二区| 91久久精品日日躁夜夜躁欧美| 欧美三区在线观看| 国产欧美综合在线观看第十页| 亚洲va欧美va人人爽| 丁香六月综合激情| 日韩三级免费观看| 亚洲天堂成人在线观看| 久久9热精品视频| 欧美午夜精品久久久久久超碰| 国产免费成人在线视频| 天堂成人国产精品一区| av亚洲精华国产精华| 精品国产sm最大网站免费看| 亚洲成av人片一区二区| jlzzjlzz亚洲日本少妇| 久久久五月婷婷| 免费久久99精品国产| 91黄色激情网站| 国产精品动漫网站| 国产老女人精品毛片久久| 精品视频免费在线| 久久九九全国免费| 另类调教123区| 欧美亚洲国产一区二区三区va | av成人老司机| 国产亚洲欧美一区在线观看| 另类小说一区二区三区| 欧美日韩在线播放一区| 最新国产の精品合集bt伙计| 国产美女精品人人做人人爽| 日韩欧美国产三级电影视频| 视频一区中文字幕| 欧美日韩国产在线观看| 一二三四区精品视频| 色猫猫国产区一区二在线视频| 日本一二三四高清不卡| 国产精品影视在线观看| 久久免费偷拍视频| 国产成人午夜精品影院观看视频 | 91免费在线看| 国产精品热久久久久夜色精品三区| 久久国产麻豆精品| 26uuu另类欧美| 国产原创一区二区三区| 久久久久国产精品人| 国产一区二区在线影院| 精品久久久三级丝袜| 日本免费在线视频不卡一不卡二| 欧美日韩亚洲综合| 午夜精品成人在线视频| 欧美精选一区二区| 日本麻豆一区二区三区视频| 这里只有精品99re| 秋霞午夜鲁丝一区二区老狼| 91精品国产综合久久久蜜臀图片| 日韩电影在线一区二区三区| 欧美成人精精品一区二区频| 奇米亚洲午夜久久精品| 精品999在线播放| 国产成人一级电影| 一区二区三区在线不卡| 欧美日韩电影在线| 极品少妇一区二区三区精品视频| 欧美日韩国产bt| 蜜臀av一级做a爰片久久| 久久婷婷国产综合国色天香| 国产精品18久久久久久久网站| 国产精品电影一区二区| 欧美三级欧美一级| 蜜桃av一区二区三区电影| 久久久久久一级片| 不卡av在线网| 亚洲国产视频一区| 欧美一区二区精品在线| 国产一区二区精品久久91| 国产精品免费av| 在线成人免费观看| 国产伦理精品不卡| 亚洲视频一区二区在线观看| 91电影在线观看| 日本不卡视频一二三区| 精品国产乱码久久久久久闺蜜 | 国产精品成人在线观看| 欧美日本精品一区二区三区| 久久精品国产成人一区二区三区| 欧美激情综合五月色丁香小说| 欧美视频在线观看一区二区| 国产乱码一区二区三区|