Commit 8e3110ff authored by Yaowu Xu's avatar Yaowu Xu

Add alignment and intialization for an array

Change-Id: Ia869042ec3cc85de077a577814f742578e9ed6af
parent 5dcef7d2
......@@ -696,14 +696,16 @@ void av1_highbd_convolve_2d_scale_sse4_1(
InterpFilterParams *filter_params_y, const int subpel_x_qn,
const int x_step_qn, const int subpel_y_qn, const int y_step_qn,
ConvolveParams *conv_params, int bd) {
int32_t tmp[(2 * MAX_SB_SIZE + MAX_FILTER_TAP) * MAX_SB_SIZE];
// TODO(yaowu): Move this out of stack
DECLARE_ALIGNED(16, int32_t,
tmp[(2 * MAX_SB_SIZE + MAX_FILTER_TAP) * MAX_SB_SIZE]);
int im_h = (((h - 1) * y_step_qn + subpel_y_qn) >> SCALE_SUBPEL_BITS) +
filter_params_y->taps;
const int xtaps = filter_params_x->taps;
const int ytaps = filter_params_y->taps;
const int fo_vert = ytaps / 2 - 1;
memset(tmp, 0, sizeof(tmp));
// horizontal filter
if (xtaps == 8)
highbd_hfilter8(src - fo_vert * src_stride, src_stride, tmp, w, im_h,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment