summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_treecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp9/common/vp9_treecoder.c')
-rw-r--r--vp9/common/vp9_treecoder.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/vp9/common/vp9_treecoder.c b/vp9/common/vp9_treecoder.c
index 6e2597954..3f049b5b3 100644
--- a/vp9/common/vp9_treecoder.c
+++ b/vp9/common/vp9_treecoder.c
@@ -18,32 +18,27 @@
#include "vp9/common/vp9_treecoder.h"
-static void tree2tok(
- struct vp9_token_struct *const p,
- vp9_tree t,
- int i,
- int v,
- int L
-) {
+static void tree2tok(struct vp9_token *const p, vp9_tree t,
+ int i, int v, int l) {
v += v;
- ++L;
+ ++l;
do {
const vp9_tree_index j = t[i++];
if (j <= 0) {
p[-j].value = v;
- p[-j].Len = L;
+ p[-j].len = l;
} else
- tree2tok(p, t, j, v, L);
+ tree2tok(p, t, j, v, l);
} while (++v & 1);
}
-void vp9_tokens_from_tree(struct vp9_token_struct *p, vp9_tree t) {
+void vp9_tokens_from_tree(struct vp9_token *p, vp9_tree t) {
tree2tok(p, t, 0, 0, 0);
}
-void vp9_tokens_from_tree_offset(struct vp9_token_struct *p, vp9_tree t,
+void vp9_tokens_from_tree_offset(struct vp9_token *p, vp9_tree t,
int offset) {
tree2tok(p - offset, t, 0, 0, 0);
}