Searched refs:nextcode (Results 1 – 2 of 2) sorted by relevance
313 …std::vector<unsigned long> tree1d(numcodes), blcount(maxbitlen + 1, 0), nextcode(maxbitlen + 1, 0); in makeFromLengths() local318 nextcode[bits] = (nextcode[bits - 1] + blcount[bits - 1]) << 1; in makeFromLengths()321 … for(unsigned long n = 0; n < numcodes; n++) if(bitlen[n] != 0) tree1d[n] = nextcode[bitlen[n]]++; in makeFromLengths()
590 uivector nextcode; in HuffmanTree_makeFromLengths2() local594 uivector_init(&nextcode); in HuffmanTree_makeFromLengths2()600 || !uivector_resizev(&nextcode, tree->maxbitlen + 1, 0)) in HuffmanTree_makeFromLengths2()610 nextcode.data[bits] = (nextcode.data[bits - 1] + blcount.data[bits - 1]) << 1; in HuffmanTree_makeFromLengths2()615 if(tree->lengths[n] != 0) tree->tree1d[n] = nextcode.data[tree->lengths[n]]++; in HuffmanTree_makeFromLengths2()620 uivector_cleanup(&nextcode); in HuffmanTree_makeFromLengths2()