Searched refs:bitlengths (Results 1 – 4 of 4) sorted by relevance
/external/zopfli/src/zopfli/ |
D | tree.c | 71 void ZopfliCalculateEntropy(const size_t* count, size_t n, double* bitlengths) { in ZopfliCalculateEntropy() argument 84 if (count[i] == 0) bitlengths[i] = log2sum; in ZopfliCalculateEntropy() 85 else bitlengths[i] = log2sum - log(count[i]) * kInvLog2; in ZopfliCalculateEntropy() 91 if (bitlengths[i] < 0 && bitlengths[i] > -1e-5) bitlengths[i] = 0; in ZopfliCalculateEntropy() 92 assert(bitlengths[i] >= 0); in ZopfliCalculateEntropy() 97 unsigned* bitlengths) { in ZopfliCalculateBitLengths() argument 98 int error = ZopfliLengthLimitedCodeLengths(count, n, maxbits, bitlengths); in ZopfliCalculateBitLengths()
|
D | katajainen.c | 163 static void ExtractBitLengths(Node* chain, Node* leaves, unsigned* bitlengths) { in ExtractBitLengths() argument 168 bitlengths[leaves[i].count]++; in ExtractBitLengths() 181 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths) { in ZopfliLengthLimitedCodeLengths() argument 196 bitlengths[i] = 0; in ZopfliLengthLimitedCodeLengths() 218 bitlengths[leaves[0].count] = 1; in ZopfliLengthLimitedCodeLengths() 245 ExtractBitLengths(lists[maxbits - 1][1], leaves, bitlengths); in ZopfliLengthLimitedCodeLengths()
|
D | tree.h | 34 unsigned *bitlengths); 49 void ZopfliCalculateEntropy(const size_t* count, size_t n, double* bitlengths);
|
D | katajainen.h | 40 const size_t* frequencies, int n, int maxbits, unsigned* bitlengths);
|