projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3097a
)
Fix the C version of column vector projection
author
Jingning Han
<jingning@google.com>
Wed, 18 Mar 2015 01:50:53 +0000
(18:50 -0700)
committer
Jingning Han
<jingning@google.com>
Wed, 18 Mar 2015 01:50:53 +0000
(18:50 -0700)
Make the C and SSE2 versions consistent.
Change-Id: I03c405d22a36bd1a97480efb96dc5af230667424
vp9/encoder/vp9_avg.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_avg.c
b/vp9/encoder/vp9_avg.c
index
90d113c
..
dc5cfe2
100644
(file)
--- a/
vp9/encoder/vp9_avg.c
+++ b/
vp9/encoder/vp9_avg.c
@@
-46,10
+46,9
@@
void vp9_int_pro_row_c(int16_t *hbuf, uint8_t const *ref,
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,