EC_ADAPT: minor simplification to adaptation mechanism.
This removes an instruction from the HW path. It also improves
BDR by 0.02% on all metrics (AWCY, High Latency,
objective-1-fast).
Change-Id: I9f8a86871e1c0db4a0704dee297acd6977abcbe4
diff --git a/aom_dsp/prob.h b/aom_dsp/prob.h
index 6bdcd0b..a7fc544 100644
--- a/aom_dsp/prob.h
+++ b/aom_dsp/prob.h
@@ -148,7 +148,7 @@
#if CONFIG_EC_ADAPT
static INLINE void update_cdf(aom_cdf_prob *cdf, int val, int nsymbs) {
const int rate = 4 + (cdf[nsymbs] > 31) + get_msb(nsymbs);
- const int rate2 = 12 - rate;
+ const int rate2 = 5;
int i, tmp;
int diff;
#if 1