Searched refs:num_leaves (Results 1 – 3 of 3) sorted by relevance
475 size_t num_leaves; member672 type->num_leaves = 0; in cv_type_create()681 type->num_leaves++; in cv_type_append_leaf()687 type->num_leaves*sizeof(cv_leaf *)); in cv_type_append_leaf()689 type->leaves[type->num_leaves-1] = leaf; in cv_type_append_leaf()698 for (i=0; i<type->num_leaves; i++) in cv_type_bc_destroy()723 for (i=0; i<type->num_leaves; i++) in cv_type_bc_calc_len()759 for (i=0; i<type->num_leaves; i++) in cv_type_bc_tobytes()
48 static int TreeInit(HuffmanTree* const tree, int num_leaves) { in TreeInit() argument50 if (num_leaves == 0) return 0; in TreeInit()54 tree->max_nodes_ = 2 * num_leaves - 1; in TreeInit()