]> git.sesse.net Git - ffmpeg/commitdiff
get_vlc2() "docs"
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2003 09:41:02 +0000 (09:41 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2003 09:41:02 +0000 (09:41 +0000)
Originally committed as revision 1599 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/common.h

index 64014296636f06a6bc6a35f67ae60e67cdcdd880..e0d1a86e65e78d5d96c08020bf6ddeb4d94fc6eb 100644 (file)
@@ -752,6 +752,14 @@ static inline int get_vlc(GetBitContext *s, VLC *vlc)
     return code;
 }
 
+/**
+ * parses a vlc code, faster then get_vlc()
+ * @param bits is the number of bits which will be read at once, must be 
+ *             identical to nb_bits in init_vlc()
+ * @param max_depth is the number of times bits bits must be readed to completly
+ *                  read the longest vlc code 
+ *                  = (max_vlc_length + bits - 1) / bits
+ */
 static always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
                                   int bits, int max_depth)
 {