31 for (i = 0; i < 2; i++) {
50 for (last = 0; last < 2; last++) {
59 memset(max_level, 0,
MAX_RUN + 1);
61 memset(index_run, rl->
n,
MAX_RUN + 1);
62 for (i = start; i < end; i++) {
65 if (index_run[run] == rl->
n)
67 if (level > max_level[run])
69 if (run > max_run[level])
95 memcpy(rl->
index_run[last], index_run, MAX_RUN + 1);
108 for (q = 0; q < 32; q++) {
110 int qadd = (q - 1) | 1;
124 }
else if (len < 0) {
134 if (code >= rl->
last) run += 192;
int last
number of values for last = 0
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
memory handling functions
const int8_t * table_level
Macro definitions for various function/variable attributes.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
int8_t * max_run[2]
encoding & decoding
int8_t * max_level[2]
encoding & decoding
av_cold void ff_rl_init_vlc(RLTable *rl)
VLC vlc
decoding only deprecated FIXME remove
int n
number of entries of table_vlc minus 1
void ff_rl_free(RLTable *rl)
Free the contents of a dynamically allocated table.
RL_VLC_ELEM * rl_vlc[32]
decoding only
av_cold int ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
uint8_t * index_run[2]
encoding only
VLC_TYPE(* table)[2]
code, bits