Lines Matching refs:maxbits
67 static Node* GetFreeNode(Node* (*lists)[2], int maxbits, NodePool* pool) { in GetFreeNode() argument
76 for (i = 0; i < maxbits * 2; i++) { in GetFreeNode()
105 static void BoundaryPM(Node* (*lists)[2], int maxbits, in BoundaryPM() argument
113 newchain = GetFreeNode(lists, maxbits, pool); in BoundaryPM()
134 BoundaryPM(lists, maxbits, leaves, numsymbols, pool, index - 1, 0); in BoundaryPM()
135 BoundaryPM(lists, maxbits, leaves, numsymbols, pool, index - 1, 0); in BoundaryPM()
146 NodePool* pool, const Node* leaves, int maxbits, Node* (*lists)[2]) { in InitLists() argument
148 Node* node0 = GetFreeNode(0, maxbits, pool); in InitLists()
149 Node* node1 = GetFreeNode(0, maxbits, pool); in InitLists()
152 for (i = 0; i < maxbits; i++) { in InitLists()
181 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths) { in ZopfliLengthLimitedCodeLengths() argument
209 if ((1 << maxbits) < numsymbols) { in ZopfliLengthLimitedCodeLengths()
227 pool.size = 2 * maxbits * (maxbits + 1); in ZopfliLengthLimitedCodeLengths()
234 lists = (Node* (*)[2])malloc(maxbits * sizeof(*lists)); in ZopfliLengthLimitedCodeLengths()
235 InitLists(&pool, leaves, maxbits, lists); in ZopfliLengthLimitedCodeLengths()
242 BoundaryPM(lists, maxbits, leaves, numsymbols, &pool, maxbits - 1, final); in ZopfliLengthLimitedCodeLengths()
245 ExtractBitLengths(lists[maxbits - 1][1], leaves, bitlengths); in ZopfliLengthLimitedCodeLengths()