summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-02-24 09:41:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-02-24 09:41:02 +0000
commitd4c48e48690e7040f40cbc5e4592d2e7650e59ef (patch)
tree5d9451fa1e2a64c12c05bf735fc047fba748c746 /libavcodec
parent3e499f531a4f511c6866ea508d1e19064d07b7ee (diff)
get_vlc2() "docs"
Originally committed as revision 1599 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index 6401429663..e0d1a86e65 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -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)
{