Function ADS::encodeGolomb

Function Documentation

inline void ADS::encodeGolomb(BitWriter &w, std::uint64_t x, std::uint64_t b)

Golomb’s code of modulus b, U( q + 1 ) and the remainder r in the truncated binary code, x - 1 = q b + r.

Pre:

x >= 1 and b >= 1

Post:

golombLength( x , b ) bits written