ref: 069b772915215c11d87ed41d96aa9bf9f9c398d1
parent: 4ba20da8b11c4c633a0f48ae1db1b683929c169a
author: Johann <[email protected]>
date: Fri Apr 14 10:37:58 EDT 2017
sad avg: align intermediate buffer comp_avg_pred has started declaring a requirement for aligned buffers. BUG=webm:1390 Change-Id: Idaf6667498ea343e8d49b32bc9d8b9d0aa43ef5c
--- a/vpx_dsp/sad.c
+++ b/vpx_dsp/sad.c
@@ -39,7 +39,7 @@
unsigned int vpx_sad##m##x##n##_avg_c(const uint8_t *src, int src_stride, \
const uint8_t *ref, int ref_stride, \
const uint8_t *second_pred) { \
- uint8_t comp_pred[m * n]; \
+ DECLARE_ALIGNED(16, uint8_t, comp_pred[m * n]); \
vpx_comp_avg_pred_c(comp_pred, second_pred, m, n, ref, ref_stride); \
return sad(src, src_stride, comp_pred, m, m, n); \
}
@@ -178,7 +178,7 @@
unsigned int vpx_highbd_sad##m##x##n##_avg_c( \
const uint8_t *src, int src_stride, const uint8_t *ref, int ref_stride, \
const uint8_t *second_pred) { \
- uint16_t comp_pred[m * n]; \
+ DECLARE_ALIGNED(16, uint16_t, comp_pred[m * n]); \
vpx_highbd_comp_avg_pred_c(comp_pred, second_pred, m, n, ref, ref_stride); \
return highbd_sadb(src, src_stride, comp_pred, m, m, n); \
}