Lines Matching refs:segcounts
63 static void calc_segtree_probs(int *segcounts, vpx_prob *segment_tree_probs) { in calc_segtree_probs() argument
65 const int c01 = segcounts[0] + segcounts[1]; in calc_segtree_probs()
66 const int c23 = segcounts[2] + segcounts[3]; in calc_segtree_probs()
67 const int c45 = segcounts[4] + segcounts[5]; in calc_segtree_probs()
68 const int c67 = segcounts[6] + segcounts[7]; in calc_segtree_probs()
73 segment_tree_probs[3] = get_binary_prob(segcounts[0], segcounts[1]); in calc_segtree_probs()
74 segment_tree_probs[4] = get_binary_prob(segcounts[2], segcounts[3]); in calc_segtree_probs()
75 segment_tree_probs[5] = get_binary_prob(segcounts[4], segcounts[5]); in calc_segtree_probs()
76 segment_tree_probs[6] = get_binary_prob(segcounts[6], segcounts[7]); in calc_segtree_probs()
80 static int cost_segmap(int *segcounts, vpx_prob *probs) { in cost_segmap() argument
81 const int c01 = segcounts[0] + segcounts[1]; in cost_segmap()
82 const int c23 = segcounts[2] + segcounts[3]; in cost_segmap()
83 const int c45 = segcounts[4] + segcounts[5]; in cost_segmap()
84 const int c67 = segcounts[6] + segcounts[7]; in cost_segmap()
96 cost += segcounts[0] * vp9_cost_zero(probs[3]) + in cost_segmap()
97 segcounts[1] * vp9_cost_one(probs[3]); in cost_segmap()
99 cost += segcounts[2] * vp9_cost_zero(probs[4]) + in cost_segmap()
100 segcounts[3] * vp9_cost_one(probs[4]); in cost_segmap()
107 cost += segcounts[4] * vp9_cost_zero(probs[5]) + in cost_segmap()
108 segcounts[5] * vp9_cost_one(probs[5]); in cost_segmap()
110 cost += segcounts[6] * vp9_cost_zero(probs[6]) + in cost_segmap()
111 segcounts[7] * vp9_cost_one(probs[6]); in cost_segmap()