Mercurial > libavcodec.hg
comparison asv1.c @ 9397:0fa22c289cb2 libavcodec
Get rid of INIT_VLC_USE_STATIC in asv1.
author | michael |
---|---|
date | Sat, 11 Apr 2009 13:40:39 +0000 |
parents | 25b3650b4db5 |
children | 4cb7c65fc775 |
comparison
equal
deleted
inserted
replaced
9396:bb9f74aa37ee | 9397:0fa22c289cb2 |
---|---|
117 static int done = 0; | 117 static int done = 0; |
118 | 118 |
119 if (!done) { | 119 if (!done) { |
120 done = 1; | 120 done = 1; |
121 | 121 |
122 init_vlc(&ccp_vlc, VLC_BITS, 17, | 122 INIT_VLC_STATIC(&ccp_vlc, VLC_BITS, 17, |
123 &ccp_tab[0][1], 2, 1, | 123 &ccp_tab[0][1], 2, 1, |
124 &ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC); | 124 &ccp_tab[0][0], 2, 1, 64); |
125 init_vlc(&dc_ccp_vlc, VLC_BITS, 8, | 125 INIT_VLC_STATIC(&dc_ccp_vlc, VLC_BITS, 8, |
126 &dc_ccp_tab[0][1], 2, 1, | 126 &dc_ccp_tab[0][1], 2, 1, |
127 &dc_ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC); | 127 &dc_ccp_tab[0][0], 2, 1, 64); |
128 init_vlc(&ac_ccp_vlc, VLC_BITS, 16, | 128 INIT_VLC_STATIC(&ac_ccp_vlc, VLC_BITS, 16, |
129 &ac_ccp_tab[0][1], 2, 1, | 129 &ac_ccp_tab[0][1], 2, 1, |
130 &ac_ccp_tab[0][0], 2, 1, INIT_VLC_USE_STATIC); | 130 &ac_ccp_tab[0][0], 2, 1, 64); |
131 init_vlc(&level_vlc, VLC_BITS, 7, | 131 INIT_VLC_STATIC(&level_vlc, VLC_BITS, 7, |
132 &level_tab[0][1], 2, 1, | 132 &level_tab[0][1], 2, 1, |
133 &level_tab[0][0], 2, 1, INIT_VLC_USE_STATIC); | 133 &level_tab[0][0], 2, 1, 64); |
134 init_vlc(&asv2_level_vlc, ASV2_LEVEL_VLC_BITS, 63, | 134 INIT_VLC_STATIC(&asv2_level_vlc, ASV2_LEVEL_VLC_BITS, 63, |
135 &asv2_level_tab[0][1], 2, 1, | 135 &asv2_level_tab[0][1], 2, 1, |
136 &asv2_level_tab[0][0], 2, 1, INIT_VLC_USE_STATIC); | 136 &asv2_level_tab[0][0], 2, 1, 1024); |
137 } | 137 } |
138 } | 138 } |
139 | 139 |
140 //FIXME write a reversed bitstream reader to avoid the double reverse | 140 //FIXME write a reversed bitstream reader to avoid the double reverse |
141 static inline int asv2_get_bits(GetBitContext *gb, int n){ | 141 static inline int asv2_get_bits(GetBitContext *gb, int n){ |