Lines Matching defs:cpi
90 void vp9_setup_pc_tree(VP9_COMMON *cm, VP9_COMP *cpi) {
100 vpx_free(cpi->leaf_tree);
101 CHECK_MEM_ERROR(cm, cpi->leaf_tree, vpx_calloc(leaf_nodes,
102 sizeof(*cpi->leaf_tree)));
103 vpx_free(cpi->pc_tree);
104 CHECK_MEM_ERROR(cm, cpi->pc_tree, vpx_calloc(tree_nodes,
105 sizeof(*cpi->pc_tree)));
107 this_pc = &cpi->pc_tree[0];
108 this_leaf = &cpi->leaf_tree[0];
113 alloc_mode_context(cm, 1, &cpi->leaf_tree[i]);
117 PC_TREE *const tree = &cpi->pc_tree[pc_tree_index];
129 PC_TREE *const tree = &cpi->pc_tree[pc_tree_index];
138 cpi->pc_root = &cpi->pc_tree[tree_nodes - 1];
139 cpi->pc_root[0].none.best_mode_index = 2;
142 void vp9_free_pc_tree(VP9_COMP *cpi) {
148 free_mode_context(&cpi->leaf_tree[i]);
152 free_tree_contexts(&cpi->pc_tree[i]);
154 vpx_free(cpi->pc_tree);
155 cpi->pc_tree = NULL;
156 vpx_free(cpi->leaf_tree);
157 cpi->leaf_tree = NULL;