comparison rl.h @ 4668:1f1a0e67b961 libavcodec

kill av_mallocz_static() calls in init_rl()
author michael
date Wed, 14 Mar 2007 13:19:19 +0000
parents b3f099adfb36
children 4394344397d8
comparison
equal deleted inserted replaced
4667:b3f099adfb36 4668:1f1a0e67b961
18 int8_t *max_run[2]; ///< encoding & decoding 18 int8_t *max_run[2]; ///< encoding & decoding
19 VLC vlc; ///< decoding only deprected FIXME remove 19 VLC vlc; ///< decoding only deprected FIXME remove
20 RL_VLC_ELEM *rl_vlc[32]; ///< decoding only 20 RL_VLC_ELEM *rl_vlc[32]; ///< decoding only
21 } RLTable; 21 } RLTable;
22 22
23 void init_rl(RLTable *rl, int use_static); 23 /**
24 *
25 * @param static_store static uint8_t array[2][2*MAX_RUN + MAX_LEVEL + 3] which will hold
26 * the level and run tables, if this is NULL av_malloc() will be used
27 */
28 void init_rl(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]);
24 void init_vlc_rl(RLTable *rl, int use_static); 29 void init_vlc_rl(RLTable *rl, int use_static);
25 30
26 static inline int get_rl_index(const RLTable *rl, int last, int run, int level) 31 static inline int get_rl_index(const RLTable *rl, int last, int run, int level)
27 { 32 {
28 int index; 33 int index;