comparison common.h @ 1079:89e233c2ef45 libavcodec

get_vlc2() "docs"
author michaelni
date Mon, 24 Feb 2003 09:41:02 +0000
parents b32afefe7d33
children b923be2fc4b5
comparison
equal deleted inserted replaced
1078:c55bffc3b84e 1079:89e233c2ef45
750 750
751 CLOSE_READER(re, s) 751 CLOSE_READER(re, s)
752 return code; 752 return code;
753 } 753 }
754 754
755 /**
756 * parses a vlc code, faster then get_vlc()
757 * @param bits is the number of bits which will be read at once, must be
758 * identical to nb_bits in init_vlc()
759 * @param max_depth is the number of times bits bits must be readed to completly
760 * read the longest vlc code
761 * = (max_vlc_length + bits - 1) / bits
762 */
755 static always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2], 763 static always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2],
756 int bits, int max_depth) 764 int bits, int max_depth)
757 { 765 {
758 int code; 766 int code;
759 767