diff 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
line wrap: on
line diff
--- a/rl.h	Wed Mar 14 12:29:32 2007 +0000
+++ b/rl.h	Wed Mar 14 13:19:19 2007 +0000
@@ -20,7 +20,12 @@
     RL_VLC_ELEM *rl_vlc[32];       ///< decoding only
 } RLTable;
 
-void init_rl(RLTable *rl, int use_static);
+/**
+ *
+ * @param static_store static uint8_t array[2][2*MAX_RUN + MAX_LEVEL + 3] which will hold
+ *                     the level and run tables, if this is NULL av_malloc() will be used
+ */
+void init_rl(RLTable *rl, uint8_t static_store[2][2*MAX_RUN + MAX_LEVEL + 3]);
 void init_vlc_rl(RLTable *rl, int use_static);
 
 static inline int get_rl_index(const RLTable *rl, int last, int run, int level)