40 for (last = 0; last < 2; last++) {
49 memset(max_level, 0,
MAX_RUN + 1);
51 memset(index_run, rl->
n,
MAX_RUN + 1);
52 for (
i = start;
i < end;
i++) {
55 if (index_run[
run] == rl->
n)
79 for (q = 0; q < 32; q++) {
81 int qadd = (q - 1) | 1;
Macro definitions for various function/variable attributes.
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Memory handling functions.
static const uint16_t table[]
av_cold void ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
av_cold void ff_rl_init_vlc(RLTable *rl, unsigned static_size)
#define FF_ARRAY_ELEMS(a)
uint8_t * index_run[2]
encoding only
int n
number of entries of table_vlc minus 1
int last
number of values for last = 0
int8_t * max_run[2]
encoding & decoding
const uint16_t(* table_vlc)[2]
RL_VLC_ELEM * rl_vlc[32]
decoding only
const int8_t * table_level
int8_t * max_level[2]
encoding & decoding
VLC_TYPE(* table)[2]
code, bits
#define init_vlc(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags)
#define INIT_VLC_USE_NEW_STATIC