Implement the Golomb-Rice and Exponential-Golomb encoder/decoder with C++
The algorithms of Golomb-Rice and Exponential-Golomb reference from
https://en.wikipedia.org/wiki/Golomb_coding
https://en.wikipedia.org/wiki/Exponential-Golomb_coding
There also is a bitstream library that can be used to transform bit stream to byte buffer or transform byte buffer to bit stream.
The corresponding article address: http://www.cnblogs.com/wangguchangqing/p/6297792.html