Vincent Rabaud ca509a3362 Unify some entropy functions.
The code and logic is unified when computing bit entropy + Huffman cost.

Speed-wise, we gain 8% for lossless encoding.
Logic-wise, the beginning/end of the distributions are handled properly
and the compression ratio does not change much.

Change-Id: Ifa91d7d3e667c9a9a421faec4e845ecb6479a633
2015-12-17 17:00:08 +01:00
..
2015-04-15 01:56:31 -07:00
2015-04-15 01:56:31 -07:00
2015-12-17 17:00:08 +01:00
2015-12-15 22:52:12 -08:00
2015-03-03 00:48:28 +01:00
2015-10-28 23:43:40 -07:00
2015-12-17 07:03:25 +00:00