Go to the documentation of this file.
29 const uint8_t table_run[],
30 const uint8_t table_level[],
33 memset(index_run, n,
MAX_RUN + 1);
34 for (
int i = 0;
i < n;
i++) {
35 int run = table_run[
i];
36 int level = table_level[
i];
37 if (index_run[
run] == n)
50 for (last = 0; last < 2; last++) {
51 int8_t *max_level = static_store[last];
52 int8_t *max_run = static_store[last] +
MAX_RUN + 1;
62 memset(index_run, rl->
n,
MAX_RUN + 1);
63 for (
i = start;
i < end;
i++) {
66 if (index_run[
run] == rl->
n)
89 for (q = 0; q < 32; q++) {
91 int qadd = (q - 1) | 1;
108 }
else if (
len < 0) {
uint8_t * index_run[2]
encoding only
av_cold void ff_rl_init_level_run(uint8_t max_level[MAX_LEVEL+1], uint8_t index_run[MAX_RUN+1], const uint8_t table_run[], const uint8_t table_level[], int n)
Initialize max_level and index_run from table_run and table_level; this is equivalent to initializing...
static const uint16_t table[]
av_cold void ff_rl_init_vlc(RLTable *rl, unsigned static_size)
Initialize rl_vlc from n, last, table_vlc, table_run and table_level.
int n
number of entries of table_vlc minus 1
#define FF_ARRAY_ELEMS(a)
int8_t * max_level[2]
encoding & decoding
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define vlc_init(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags)
av_cold void ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
Initialize index_run, max_level and max_run from n, last, table_vlc, table_run and table_level.
const uint16_t(* table_vlc)[2]
const int8_t * table_level
#define i(width, name, range_min, range_max)
and forward the test the status of outputs and forward it to the corresponding return FFERROR_NOT_READY If the filters stores internally one or a few frame for some it can consider them to be part of the FIFO and delay acknowledging a status change accordingly Example code
int8_t * max_run[2]
encoding & decoding
int last
number of values for last = 0
#define VLC_INIT_USE_STATIC
RL_VLC_ELEM * rl_vlc[32]
decoding only