Mercurial > libavcodec.hg
comparison bitstream.h @ 3024:67d3bb5a4ce1 libavcodec
get_vlc -> get_vlc2 transition and get_vlc() removed from bitstream.h
author | banan |
---|---|
date | Sun, 08 Jan 2006 21:19:39 +0000 |
parents | bfabfdf9ce55 |
children | b9a0ca749833 |
comparison
equal
deleted
inserted
replaced
3023:80fc42ba85b7 | 3024:67d3bb5a4ce1 |
---|---|
788 }\ | 788 }\ |
789 run= table[index].run;\ | 789 run= table[index].run;\ |
790 SKIP_BITS(name, gb, n)\ | 790 SKIP_BITS(name, gb, n)\ |
791 } | 791 } |
792 | 792 |
793 // deprecated, dont use get_vlc for new code, use get_vlc2 instead or use GET_VLC directly | |
794 static inline int get_vlc(GetBitContext *s, VLC *vlc) | |
795 { | |
796 int code; | |
797 VLC_TYPE (*table)[2]= vlc->table; | |
798 | |
799 OPEN_READER(re, s) | |
800 UPDATE_CACHE(re, s) | |
801 | |
802 GET_VLC(code, re, s, table, vlc->bits, 3) | |
803 | |
804 CLOSE_READER(re, s) | |
805 return code; | |
806 } | |
807 | 793 |
808 /** | 794 /** |
809 * parses a vlc code, faster then get_vlc() | 795 * parses a vlc code, faster then get_vlc() |
810 * @param bits is the number of bits which will be read at once, must be | 796 * @param bits is the number of bits which will be read at once, must be |
811 * identical to nb_bits in init_vlc() | 797 * identical to nb_bits in init_vlc() |