Commit b3c189b9 authored by Jingning Han's avatar Jingning Han

Customize prob model control for lv-map

Make the probability model update system better customized for the
level map coding scheme. This improves the level map coding
performance by 0.2% for lowres and 0.1% for midres.

Change-Id: Ib6d3abb36d50ff7485c4ceb411fe94e8fb060416
parent 24d2d5db
......@@ -153,7 +153,11 @@ static INLINE void av1_tree_to_cdf(const aom_tree_index *tree,
void av1_indices_from_tree(int *ind, int *inv, const aom_tree_index *tree);
static INLINE void update_cdf(aom_cdf_prob *cdf, int val, int nsymbs) {
const int rate = 4 + (cdf[nsymbs] > 31) + get_msb(nsymbs);
int rate = 4 + (cdf[nsymbs] > 31) + get_msb(nsymbs);
#if CONFIG_LV_MAP
if (nsymbs == 2)
rate = 4 + (cdf[nsymbs] > 7) + (cdf[nsymbs] > 15) + get_msb(nsymbs);
#endif
const int rate2 = 5;
int i, tmp;
int diff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment