[FFmpeg-cvslog] r13562 - trunk/libavcodec/bitstream.h

michael subversion
Fri May 30 22:00:20 CEST 2008


Author: michael
Date: Fri May 30 22:00:19 2008
New Revision: 13562

Log:
Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.


Modified:
   trunk/libavcodec/bitstream.h

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	(original)
+++ trunk/libavcodec/bitstream.h	Fri May 30 22:00:19 2008
@@ -805,6 +805,15 @@ int init_vlc_sparse(VLC *vlc, int nb_bit
 #define INIT_VLC_USE_NEW_STATIC 4
 void free_vlc(VLC *vlc);
 
+#define INIT_VLC_STATIC(vlc, bits, a,b,c,d,e,f,g, static_size)\
+{\
+    static VLC_TYPE table[static_size][2];\
+    (vlc)->table= table;\
+    (vlc)->table_allocated= static_size;\
+    init_vlc(vlc, bits, a,b,c,d,e,f,g, INIT_VLC_USE_NEW_STATIC);\
+}
+
+
 /**
  *
  * if the vlc code is invalid and max_depth=1 than no bits will be removed




More information about the ffmpeg-cvslog mailing list