43 if (
c->bytestream ==
tmp.bytestream &&
c->bytestream >
c->bytestream_start)
44 tmp.low -= *--
tmp.bytestream;
45 tmp.bytestream_end =
tmp.bytestream;
50 if (
c->bytestream_end !=
c->bytestream)
59 uint8_t
b[9 *
SIZE] = {0};
67 for (p = 0; p< 1024; p++) {
95 if (
c.bytestream -
c.bytestream_start - actual_length !=
version) {
#define i(width, name, range_min, range_max)
static struct @346255127015250356166251341105367306144006377143 state
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
int ff_rac_terminate(RangeCoder *c, int version)
Terminates the range coder.
av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf, int buf_size)
void ff_build_rac_states(RangeCoder *c, int factor, int max_p)
av_cold void ff_init_range_encoder(RangeCoder *c, uint8_t *buf, int buf_size)
static int get_rac(RangeCoder *c, uint8_t *const state)
Context structure for the Lagged Fibonacci PRNG.
static void prng(CheckasmRand *restrict xs, uint8_t *restrict buf, size_t size)
static int rac_check_termination(RangeCoder *c, int version)
Check if at the current position there is a valid looking termination.