Commit 70bd0583 authored by Alex Converse's avatar Alex Converse Committed by Gerrit Code Review
Browse files

Merge "Fix the tree diagram comment." into nextgenv2

parents c1729d12 af562991
......@@ -218,14 +218,16 @@ void build_tree(vpx_tree_index *tree, int num_syms) {
tree[2 * i - 1] = sym;
}
// treep are the probabilites of tree nodes like:
// *
// / \
// -sym0 *
// / \
// -sym1 *
// / \
// -sym2 -sym3
/* The treep array contains the probabilities of nodes of a tree structured
* like:
* *
* / \
* -sym0 *
* / \
* -sym1 *
* / \
* -sym2 -sym3
*/
void tab2tree(const rans_sym *tab, int tab_size, vpx_prob *treep) {
const unsigned basep = 256;
unsigned pleft = basep;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment