Definition at line 187 of file huffman.h.
References counts, i, MAX_SYMBOLS, size, and Huffman::TreeNode::TreeNode().
193 for (
const uint16_t *p=bufin; p<bufin+bufinlen; p++)
197 std::multiset<TreeNode*, TreeNode>
set;
200 set.insert(
new TreeNode(i, counts[i]));
205 auto it =
set.begin();
210 TreeNode *nn =
new TreeNode(*it1, *it2);
212 set.erase(it1, ++it2);
218 const TreeNode *root = *
set.begin();
bool CreateEncoder(const TreeNode *n, size_t bits=0, uint8_t nbits=0)