Home
last modified time | relevance | path

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

/lvgl-3.6.0/src/extra/libs/png/
Dlodepng.c810 unsigned* blcount; in HuffmanTree_makeFromLengths2() local
816 blcount = (unsigned*)lodepng_malloc((tree->maxbitlen + 1) * sizeof(unsigned)); in HuffmanTree_makeFromLengths2()
818 if(!tree->codes || !blcount || !nextcode) error = 83; /*alloc fail*/ in HuffmanTree_makeFromLengths2()
821 for(n = 0; n != tree->maxbitlen + 1; n++) blcount[n] = nextcode[n] = 0; in HuffmanTree_makeFromLengths2()
823 for(bits = 0; bits != tree->numcodes; ++bits) ++blcount[tree->lengths[bits]]; in HuffmanTree_makeFromLengths2()
826 nextcode[bits] = (nextcode[bits - 1] + blcount[bits - 1]) << 1u; in HuffmanTree_makeFromLengths2()
838 lodepng_free(blcount); in HuffmanTree_makeFromLengths2()