Home
last modified time | relevance | path

Searched refs:blcount (Results 1 – 2 of 2) sorted by relevance

/external/zopfli/src/zopflipng/lodepng/
Dlodepng_util.cpp313 …std::vector<unsigned long> tree1d(numcodes), blcount(maxbitlen + 1, 0), nextcode(maxbitlen + 1, 0); in makeFromLengths() local
315 for(unsigned long bits = 0; bits < numcodes; bits++) blcount[bitlen[bits]]++; in makeFromLengths()
318 nextcode[bits] = (nextcode[bits - 1] + blcount[bits - 1]) << 1; in makeFromLengths()
Dlodepng.cpp589 uivector blcount; in HuffmanTree_makeFromLengths2() local
593 uivector_init(&blcount); in HuffmanTree_makeFromLengths2()
599 if(!uivector_resizev(&blcount, tree->maxbitlen + 1, 0) in HuffmanTree_makeFromLengths2()
606 for(bits = 0; bits < tree->numcodes; bits++) blcount.data[tree->lengths[bits]]++; in HuffmanTree_makeFromLengths2()
610 nextcode.data[bits] = (nextcode.data[bits - 1] + blcount.data[bits - 1]) << 1; in HuffmanTree_makeFromLengths2()
619 uivector_cleanup(&blcount); in HuffmanTree_makeFromLengths2()