comparison vp6.c @ 6472:e39e03d99d24 libavcodec

huffman: pass hnode_first as a flag instead of as an argument on its own
author aurel
date Sat, 08 Mar 2008 17:57:13 +0000
parents 7fa807dd7958
children 48759bfbd073
comparison
equal deleted inserted replaced
6471:b72f6c4cee12 6472:e39e03d99d24
222 nodes[map[2*i ]].count = a + !a; 222 nodes[map[2*i ]].count = a + !a;
223 nodes[map[2*i+1]].count = b + !b; 223 nodes[map[2*i+1]].count = b + !b;
224 } 224 }
225 225
226 /* then build the huffman tree accodring to probabilities */ 226 /* then build the huffman tree accodring to probabilities */
227 ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp, 1); 227 ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp,
228 FF_HUFFMAN_FLAG_HNODE_FIRST);
228 } 229 }
229 230
230 static void vp6_parse_coeff_models(vp56_context_t *s) 231 static void vp6_parse_coeff_models(vp56_context_t *s)
231 { 232 {
232 vp56_range_coder_t *c = &s->c; 233 vp56_range_coder_t *c = &s->c;