42 const uint16_t (*table_vlc)[2];
43 const int8_t *table_run;
44 const int8_t *table_level;
56 void ff_rl_init_vlc(
RLTable *rl,
unsigned static_size);
63 #define INIT_VLC_RL(rl, static_size)\ 66 static RL_VLC_ELEM rl_vlc_table[32][static_size];\ 70 rl.rl_vlc[q]= rl_vlc_table[q];\ 72 ff_rl_init_vlc(&rl, static_size);\ 76 static inline int get_rl_index(
const RLTable *rl,
int last,
int run,
int level)
84 return index + level - 1;
int last
number of values for last = 0
Definition: rl.h:41
RLTable.
Definition: rl.h:39
int8_t * max_run[2]
encoding & decoding
Definition: rl.h:47
int ff_rl_init(RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
Definition: rl.c:39
int8_t * max_level[2]
encoding & decoding
Definition: rl.h:46
int n
number of entries of table_vlc minus 1
Definition: rl.h:40
RL_VLC_ELEM * rl_vlc[32]
decoding only
Definition: rl.h:48
void ff_rl_free(RLTable *rl)
Free the contents of a dynamically allocated table.
Definition: rl.c:28
struct RLTable RLTable
RLTable.
uint8_t * index_run[2]
encoding only
Definition: rl.h:45