webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Macros | |
#define | LAPLACE_LOG_MINP (0) |
#define | LAPLACE_MINP (1<<LAPLACE_LOG_MINP) |
#define | LAPLACE_NMIN (16) |
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) |
#define LAPLACE_LOG_MINP (0) |
#define LAPLACE_MINP (1<<LAPLACE_LOG_MINP) |
#define LAPLACE_NMIN (16) |
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 |