[Flac-dev] Rice coding parameter

Miroslav Lichvar lichvarm at phoenix.inf.upol.cz
Sat Oct 18 21:25:05 PDT 2003

On Sat, Oct 18, 2003 at 07:21:08PM +0000, Dan Stowell wrote:
> I asked a few questions about the flac format a couple of weeks ago.
> One more (if you don't mind) about the Rice coding. The Rice
> parameter "k" can't be zero (unless I'm mistaken), yet the FLAC spec
> says the Rice parameter can range from 0 to 15.
> I guessed, and tried adding one before using the parameter (i.e.
> assuming the range was really 1 to 16), and that didn't fix it.
> How should I interpret those four little bits?

The spec is ok, Rice parameter can be 0 to 14, 15 is escape code. And
Rice parameter 0 means that only the unary part is used. For example
000001000010001001011 is -3 2 -2 1 -1 0.

Miroslav Lichvar

More information about the Flac-dev mailing list