43 memset(state, 128,
sizeof(state));
45 for (i = 0; i <
SIZE; i++)
48 for (i = 0; i <
SIZE; i++)
55 memset(state, 128,
sizeof(state));
57 for (i = 0; i <
SIZE; i++)
58 if ((r[i] & 1) !=
get_rac(&c, state)) {
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
int ff_rac_terminate(RangeCoder *c)
static int get_rac(RangeCoder *c, uint8_t *const state)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void ff_build_rac_states(RangeCoder *c, int factor, int max_p)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size)
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)