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
This commit is contained in:
Thomas Davies 2017-03-20 09:53:16 +00:00
Родитель 76b8963150
Коммит 5dad9a8943
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -148,7 +148,7 @@ DECLARE_ALIGNED(16, extern const uint8_t, aom_norm[256]);
#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