ref: 4640a0c4804b49f1870d5a2d17df0c7d0a77af2f
parent: e52109158aab3109db76c36117445f8d0e521244
parent: c932584f0f96f4d088e1726ec530d6b48c1bfb95
author: Jingning Han <[email protected]>
date: Tue Mar 17 18:53:49 EDT 2015
Merge "Fix the C version of column vector projection"
--- a/vp9/encoder/vp9_avg.c
+++ b/vp9/encoder/vp9_avg.c
@@ -46,10 +46,9 @@
int16_t vp9_int_pro_col_c(uint8_t const *ref, const int width) {
int idx;
int16_t sum = 0;
- const int norm_factor = MAX(8, width >> 1);
for (idx = 0; idx < width; ++idx)
sum += ref[idx];
- return sum / norm_factor;
+ return sum;
}
int vp9_vector_var_c(int16_t const *ref, int16_t const *src,