webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Go to the source code of this file.
Functions | |
void | ec_laplace_encode (ec_enc *enc, int *value, unsigned fs, int decay) |
int | ec_laplace_decode (ec_dec *dec, unsigned fs, int decay) |
int ec_laplace_decode | ( | ec_dec * | dec, |
unsigned | fs, | ||
int | decay | ||
) |
Decode a value that is assumed to be the realisation of a Laplace-distributed random process
dec | Entropy decoder state |
fs | Probability of 0, multiplied by 32768 |
decay | Probability of the value +/- 1, multiplied by 16384 |
Encode a value that is assumed to be the realisation of a Laplace-distributed random process
enc | Entropy encoder state |
value | Value to encode |
fs | Probability of 0, multiplied by 32768 |
decay | Probability of the value +/- 1, multiplied by 16384 |