Function ADS::limitedHuffmanLengths
Defined in File HuffmanCoder.h
Function Documentation
-
inline std::array<std::uint8_t, 256> ADS::limitedHuffmanLengths(const std::array<std::uint64_t, 256> &f, int L)
the optimal lengths of at most L bits of the codes of the 256 bytes of frequencies f, 0 for a byte of frequency 0, by package-merge
- Pre:
2^L is at least the number of the bytes of positive frequency