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

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

?? inftree9.c

?? 一款用來進行網絡模擬的軟件
?? C
字號:
/* inftree9.c -- generate Huffman trees for efficient decoding * Copyright (C) 1995-2005 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */#include "zutil.h"#include "inftree9.h"#define MAXBITS 15const char inflate9_copyright[] =   " inflate9 1.2.3 Copyright 1995-2005 Mark Adler ";/*  If you use the zlib library in a product, an acknowledgment is welcome  in the documentation of your product. If for some reason you cannot  include such an acknowledgment, I would appreciate that you keep this  copyright string in the executable of your product. *//*   Build a set of tables to decode the provided canonical Huffman code.   The code lengths are lens[0..codes-1].  The result starts at *table,   whose indices are 0..2^bits-1.  work is a writable array of at least   lens shorts, which is used as a work area.  type is the type of code   to be generated, CODES, LENS, or DISTS.  On return, zero is success,   -1 is an invalid code, and +1 means that ENOUGH isn't enough.  table   on return points to the next available entry's address.  bits is the   requested root table index bits, and on return it is the actual root   table index bits.  It will differ if the request is greater than the   longest code or if it is less than the shortest code. */int inflate_table9(type, lens, codes, table, bits, work)codetype type;unsigned short FAR *lens;unsigned codes;code FAR * FAR *table;unsigned FAR *bits;unsigned short FAR *work;{    unsigned len;               /* a code's length in bits */    unsigned sym;               /* index of code symbols */    unsigned min, max;          /* minimum and maximum code lengths */    unsigned root;              /* number of index bits for root table */    unsigned curr;              /* number of index bits for current table */    unsigned drop;              /* code bits to drop for sub-table */    int left;                   /* number of prefix codes available */    unsigned used;              /* code entries in table used */    unsigned huff;              /* Huffman code */    unsigned incr;              /* for incrementing code, index */    unsigned fill;              /* index for replicating entries */    unsigned low;               /* low bits for current root entry */    unsigned mask;              /* mask for low root bits */    code this;                  /* table entry for duplication */    code FAR *next;             /* next available space in table */    const unsigned short FAR *base;     /* base value table to use */    const unsigned short FAR *extra;    /* extra bits table to use */    int end;                    /* use base and extra for symbol > end */    unsigned short count[MAXBITS+1];    /* number of codes of each length */    unsigned short offs[MAXBITS+1];     /* offsets in table for each length */    static const unsigned short lbase[31] = { /* Length codes 257..285 base */        3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17,        19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115,        131, 163, 195, 227, 3, 0, 0};    static const unsigned short lext[31] = { /* Length codes 257..285 extra */        128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,        130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,        133, 133, 133, 133, 144, 201, 196};    static const unsigned short dbase[32] = { /* Distance codes 0..31 base */        1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,        65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,        4097, 6145, 8193, 12289, 16385, 24577, 32769, 49153};    static const unsigned short dext[32] = { /* Distance codes 0..31 extra */        128, 128, 128, 128, 129, 129, 130, 130, 131, 131, 132, 132,        133, 133, 134, 134, 135, 135, 136, 136, 137, 137, 138, 138,        139, 139, 140, 140, 141, 141, 142, 142};    /*       Process a set of code lengths to create a canonical Huffman code.  The       code lengths are lens[0..codes-1].  Each length corresponds to the       symbols 0..codes-1.  The Huffman code is generated by first sorting the       symbols by length from short to long, and retaining the symbol order       for codes with equal lengths.  Then the code starts with all zero bits       for the first code of the shortest length, and the codes are integer       increments for the same length, and zeros are appended as the length       increases.  For the deflate format, these bits are stored backwards       from their more natural integer increment ordering, and so when the       decoding tables are built in the large loop below, the integer codes       are incremented backwards.       This routine assumes, but does not check, that all of the entries in       lens[] are in the range 0..MAXBITS.  The caller must assure this.       1..MAXBITS is interpreted as that code length.  zero means that that       symbol does not occur in this code.       The codes are sorted by computing a count of codes for each length,       creating from that a table of starting indices for each length in the       sorted table, and then entering the symbols in order in the sorted       table.  The sorted table is work[], with that space being provided by       the caller.       The length counts are used for other purposes as well, i.e. finding       the minimum and maximum length codes, determining if there are any       codes at all, checking for a valid set of lengths, and looking ahead       at length counts to determine sub-table sizes when building the       decoding tables.     */    /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */    for (len = 0; len <= MAXBITS; len++)        count[len] = 0;    for (sym = 0; sym < codes; sym++)        count[lens[sym]]++;    /* bound code lengths, force root to be within code lengths */    root = *bits;    for (max = MAXBITS; max >= 1; max--)        if (count[max] != 0) break;    if (root > max) root = max;    if (max == 0) return -1;            /* no codes! */    for (min = 1; min <= MAXBITS; min++)        if (count[min] != 0) break;    if (root < min) root = min;    /* check for an over-subscribed or incomplete set of lengths */    left = 1;    for (len = 1; len <= MAXBITS; len++) {        left <<= 1;        left -= count[len];        if (left < 0) return -1;        /* over-subscribed */    }    if (left > 0 && (type == CODES || max != 1))        return -1;                      /* incomplete set */    /* generate offsets into symbol table for each length for sorting */    offs[1] = 0;    for (len = 1; len < MAXBITS; len++)        offs[len + 1] = offs[len] + count[len];    /* sort symbols by length, by symbol order within each length */    for (sym = 0; sym < codes; sym++)        if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;    /*       Create and fill in decoding tables.  In this loop, the table being       filled is at next and has curr index bits.  The code being used is huff       with length len.  That code is converted to an index by dropping drop       bits off of the bottom.  For codes where len is less than drop + curr,       those top drop + curr - len bits are incremented through all values to       fill the table with replicated entries.       root is the number of index bits for the root table.  When len exceeds       root, sub-tables are created pointed to by the root entry with an index       of the low root bits of huff.  This is saved in low to check for when a       new sub-table should be started.  drop is zero when the root table is       being filled, and drop is root when sub-tables are being filled.       When a new sub-table is needed, it is necessary to look ahead in the       code lengths to determine what size sub-table is needed.  The length       counts are used for this, and so count[] is decremented as codes are       entered in the tables.       used keeps track of how many table entries have been allocated from the       provided *table space.  It is checked when a LENS table is being made       against the space in *table, ENOUGH, minus the maximum space needed by       the worst case distance code, MAXD.  This should never happen, but the       sufficiency of ENOUGH has not been proven exhaustively, hence the check.       This assumes that when type == LENS, bits == 9.       sym increments through all symbols, and the loop terminates when       all codes of length max, i.e. all codes, have been processed.  This       routine permits incomplete codes, so another loop after this one fills       in the rest of the decoding tables with invalid code markers.     */    /* set up for code type */    switch (type) {    case CODES:        base = extra = work;    /* dummy value--not used */        end = 19;        break;    case LENS:        base = lbase;        base -= 257;        extra = lext;        extra -= 257;        end = 256;        break;    default:            /* DISTS */        base = dbase;        extra = dext;        end = -1;    }    /* initialize state for loop */    huff = 0;                   /* starting code */    sym = 0;                    /* starting code symbol */    len = min;                  /* starting code length */    next = *table;              /* current table to fill in */    curr = root;                /* current table index bits */    drop = 0;                   /* current bits to drop from code for index */    low = (unsigned)(-1);       /* trigger new sub-table when len > root */    used = 1U << root;          /* use root table entries */    mask = used - 1;            /* mask for comparing low */    /* check available table space */    if (type == LENS && used >= ENOUGH - MAXD)        return 1;    /* process all codes and make table entries */    for (;;) {        /* create table entry */        this.bits = (unsigned char)(len - drop);        if ((int)(work[sym]) < end) {            this.op = (unsigned char)0;            this.val = work[sym];        }        else if ((int)(work[sym]) > end) {            this.op = (unsigned char)(extra[work[sym]]);            this.val = base[work[sym]];        }        else {            this.op = (unsigned char)(32 + 64);         /* end of block */            this.val = 0;        }        /* replicate for those indices with low len bits equal to huff */        incr = 1U << (len - drop);        fill = 1U << curr;        do {            fill -= incr;            next[(huff >> drop) + fill] = this;        } while (fill != 0);        /* backwards increment the len-bit code huff */        incr = 1U << (len - 1);        while (huff & incr)            incr >>= 1;        if (incr != 0) {            huff &= incr - 1;            huff += incr;        }        else            huff = 0;        /* go to next symbol, update count, len */        sym++;        if (--(count[len]) == 0) {            if (len == max) break;            len = lens[work[sym]];        }        /* create new sub-table if needed */        if (len > root && (huff & mask) != low) {            /* if first time, transition to sub-tables */            if (drop == 0)                drop = root;            /* increment past last table */            next += 1U << curr;            /* determine length of next table */            curr = len - drop;            left = (int)(1 << curr);            while (curr + drop < max) {                left -= count[curr + drop];                if (left <= 0) break;                curr++;                left <<= 1;            }            /* check for enough space */            used += 1U << curr;            if (type == LENS && used >= ENOUGH - MAXD)                return 1;            /* point entry in root table to sub-table */            low = huff & mask;            (*table)[low].op = (unsigned char)curr;            (*table)[low].bits = (unsigned char)root;            (*table)[low].val = (unsigned short)(next - *table);        }    }    /*       Fill in rest of table for incomplete codes.  This loop is similar to the       loop above in incrementing huff for table indices.  It is assumed that       len is equal to curr + drop, so there is no loop needed to increment       through high index bits.  When the current sub-table is filled, the loop       drops back to the root table to fill in any remaining entries there.     */    this.op = (unsigned char)64;                /* invalid code marker */    this.bits = (unsigned char)(len - drop);    this.val = (unsigned short)0;    while (huff != 0) {        /* when done with sub-table, drop back to root table */        if (drop != 0 && (huff & mask) != low) {            drop = 0;            len = root;            next = *table;            curr = root;            this.bits = (unsigned char)len;        }        /* put invalid code marker in table */        next[huff >> drop] = this;        /* backwards increment the len-bit code huff */        incr = 1U << (len - 1);        while (huff & incr)            incr >>= 1;        if (incr != 0) {            huff &= incr - 1;            huff += incr;        }        else            huff = 0;    }    /* set return parameters */    *table += used;    *bits = root;    return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美洲天堂一区二卡三卡四卡视频| 国产欧美日韩三级| 欧美在线你懂的| 91一区二区三区在线播放| 国产一区二区福利| 经典三级一区二区| 国产成人亚洲综合色影视| 国产一二精品视频| 成人福利在线看| 色婷婷亚洲综合| 在线观看日韩高清av| 欧美日韩情趣电影| 日韩欧美精品三级| 久久婷婷综合激情| 国产精品成人一区二区艾草 | 国产成人自拍高清视频在线免费播放| 丝袜美腿一区二区三区| 久久99精品国产麻豆婷婷| 狠狠色综合播放一区二区| 国产最新精品精品你懂的| 国产99久久久精品| 欧美在线一二三| 日韩午夜电影av| 精品国产乱码久久久久久久| 国产亚洲综合在线| 一区二区三区四区在线播放| 午夜精品爽啪视频| 国产一区二区在线免费观看| 成人在线综合网| 欧美色精品在线视频| 精品日韩在线观看| 欧美国产激情二区三区| 亚洲人妖av一区二区| 亚洲不卡在线观看| 国产精品一品视频| 欧美图片一区二区三区| 久久青草国产手机看片福利盒子 | 亚洲激情男女视频| 美日韩一区二区| 色综合久久中文综合久久97| 欧美一级搡bbbb搡bbbb| 国产精品黄色在线观看| 石原莉奈在线亚洲二区| proumb性欧美在线观看| 欧美一级夜夜爽| 亚洲精品欧美激情| 粉嫩aⅴ一区二区三区四区五区| 在线精品观看国产| 国产欧美日韩麻豆91| 日本不卡视频一二三区| 在线观看免费亚洲| 中文字幕国产精品一区二区| 日本成人在线电影网| 97久久超碰国产精品| 久久久久一区二区三区四区| 亚洲va韩国va欧美va精品| 99这里只有精品| 久久久噜噜噜久久人人看| 亚洲电影在线播放| 色综合av在线| 国产精品美女www爽爽爽| 精品一区二区三区免费视频| 91.麻豆视频| 亚洲国产精品尤物yw在线观看| 成人少妇影院yyyy| 国产精品午夜在线| 国产精品18久久久久久久久| 日韩手机在线导航| 日韩在线一二三区| 欧美精品乱码久久久久久按摩| 一区二区三区久久| 99热精品一区二区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 日韩欧美中文字幕公布| 亚洲一区二区在线免费观看视频| www.日韩精品| 国产精品久久久久久久久免费桃花| 激情综合色综合久久| 日韩视频永久免费| 美女视频免费一区| 精品噜噜噜噜久久久久久久久试看| 日韩成人免费电影| 日韩欧美国产午夜精品| 久久成人久久爱| 久久众筹精品私拍模特| 国产乱人伦精品一区二区在线观看| 久久亚洲综合av| 粉嫩嫩av羞羞动漫久久久| 欧美激情中文字幕| 一本大道久久a久久综合| 亚洲综合男人的天堂| 欧美日韩精品三区| 国产真实精品久久二三区| 久久久久国产精品人| 99久久久久免费精品国产| 亚洲美女区一区| 欧美一区二区三区啪啪| 国产一区91精品张津瑜| 最新国产の精品合集bt伙计| 在线观看一区二区视频| 日韩国产欧美一区二区三区| 久久这里都是精品| 97精品久久久久中文字幕 | 日韩欧美国产高清| 国产成人午夜精品影院观看视频 | 亚洲成a人片在线观看中文| 精品国产污污免费网站入口| 岛国一区二区三区| 亚洲成人av免费| 久久伊人中文字幕| 一本色道久久综合狠狠躁的推荐| 首页国产欧美日韩丝袜| 国产精品三级电影| 欧美一二三在线| 91小视频在线| 久久99久久精品欧美| 亚洲美女视频一区| 国产喂奶挤奶一区二区三区| 一本久久综合亚洲鲁鲁五月天| 乱一区二区av| 亚洲国产视频一区二区| 中文字幕av一区二区三区免费看| 欧美系列亚洲系列| av不卡一区二区三区| 韩国av一区二区三区| 午夜精品福利在线| 国产精品国产三级国产普通话蜜臀| 日韩区在线观看| 在线观看成人小视频| 成熟亚洲日本毛茸茸凸凹| 久草这里只有精品视频| 亚洲国产精品欧美一二99| 国产精品你懂的在线欣赏| 日韩免费在线观看| 欧美肥胖老妇做爰| 在线免费不卡视频| 色综合久久中文字幕综合网| 大尺度一区二区| 韩国视频一区二区| 日韩av网站在线观看| 午夜在线成人av| 亚洲一区二区黄色| 亚洲一区二区三区四区在线观看 | 亚洲成国产人片在线观看| 亚洲美女屁股眼交3| 国产免费久久精品| 国产日韩视频一区二区三区| 精品少妇一区二区三区在线视频| 欧美亚洲国产一区二区三区va| 91色.com| 日本电影亚洲天堂一区| 在线观看视频一区二区欧美日韩| 91免费观看视频| 91久久精品一区二区二区| 色一情一乱一乱一91av| 色综合久久中文字幕| 91蝌蚪porny九色| 色香蕉成人二区免费| 在线视频欧美精品| 欧美少妇bbb| 91精品国产欧美一区二区18| 337p亚洲精品色噜噜| 精品免费视频.| 久久这里只有精品首页| 国产精品少妇自拍| 亚洲黄网站在线观看| 日韩精品久久久久久| 久久精品国产秦先生| 国产精品一区专区| 99久久综合99久久综合网站| 91麻豆产精品久久久久久| 在线观看欧美黄色| 日韩一级精品视频在线观看| 久久看人人爽人人| 亚洲靠逼com| 青青草国产精品亚洲专区无| 久久99国产精品麻豆| 成人av一区二区三区| 欧美伊人久久久久久久久影院 | 精品一区二区三区久久| 国产一区二区三区| 色偷偷88欧美精品久久久| 欧美日韩黄色影视| 久久综合久久综合九色| ...xxx性欧美| 日韩电影一二三区| 波波电影院一区二区三区| 欧美日韩一级黄| 国产亚洲欧美激情| 亚洲精品成人精品456| 麻豆精品久久久| 99久久777色| 日韩手机在线导航| 亚洲免费伊人电影| 国内精品在线播放| 欧美午夜精品久久久久久超碰| 久久久一区二区| 日韩在线卡一卡二| 91丨porny丨蝌蚪视频| 精品国产精品网麻豆系列|