#include <assert.h>
#include <stdio.h>
#include "vp8/common/treecoder.h"
#include "vpx/vpx_integer.h"
static void tree2tok(struct vp8_token_struct *const p, vp8_tree t, int i, int v,
int L) { … }
void vp8_tokens_from_tree(struct vp8_token_struct *p, vp8_tree t) { … }
void vp8_tokens_from_tree_offset(struct vp8_token_struct *p, vp8_tree t,
int offset) { … }
static void branch_counts(int n,
vp8_token tok[], vp8_tree tree,
unsigned int branch_ct[][2],
const unsigned int num_events[]) { … }
void vp8_tree_probs_from_distribution(int n,
vp8_token tok[], vp8_tree tree,
vp8_prob probs[],
unsigned int branch_ct[][2],
const unsigned int num_events[],
unsigned int Pfactor, int Round) { … }