Commit 1f80f78d authored by Yaowu Xu's avatar Yaowu Xu

Revert changes that breaks build

Change-Id: Ic836798f6e582ee82964fa36ac778eef0c301eb3
parent b0be6411
...@@ -451,50 +451,44 @@ void av1_highbd_convolve(const uint8_t *src8, int src_stride, uint8_t *dst8, ...@@ -451,50 +451,44 @@ void av1_highbd_convolve(const uint8_t *src8, int src_stride, uint8_t *dst8,
filter_params, subpel_y_q4, y_step_q4, filter_params, subpel_y_q4, y_step_q4,
ref_idx, bd); ref_idx, bd);
} else { } else {
#if CONFIG_DUAL_FILTER // temp's size is set to (maximum possible intermediate_height) *
if (filter_params_y.taps < filter_params_x.taps) { // MAX_BLOCK_WIDTH
} else uint16_t temp[((((MAX_BLOCK_HEIGHT - 1) * MAX_STEP + 15) >> SUBPEL_BITS) +
#endif // CONFIG_DUAL_FILTER MAX_FILTER_TAP) *
{ MAX_BLOCK_WIDTH];
// temp's size is set to (maximum possible intermediate_height) * uint8_t *temp8 = CONVERT_TO_BYTEPTR(temp);
// MAX_BLOCK_WIDTH int temp_stride = MAX_BLOCK_WIDTH;
uint16_t temp[((((MAX_BLOCK_HEIGHT - 1) * MAX_STEP + 15) >> SUBPEL_BITS) +
MAX_FILTER_TAP) *
MAX_BLOCK_WIDTH];
uint8_t *temp8 = CONVERT_TO_BYTEPTR(temp);
int temp_stride = MAX_BLOCK_WIDTH;
#if CONFIG_DUAL_FILTER #if CONFIG_DUAL_FILTER
InterpFilterParams filter_params_x = InterpFilterParams filter_params_x =
av1_get_interp_filter_params(interp_filter[1 + 2 * ref_idx]); av1_get_interp_filter_params(interp_filter[1 + 2 * ref_idx]);
InterpFilterParams filter_params_y = InterpFilterParams filter_params_y =
av1_get_interp_filter_params(interp_filter[0 + 2 * ref_idx]); av1_get_interp_filter_params(interp_filter[0 + 2 * ref_idx]);
InterpFilterParams filter_params = filter_params_x; InterpFilterParams filter_params = filter_params_x;
int filter_size = filter_params_y.taps; int filter_size = filter_params_y.taps;
#else #else
InterpFilterParams filter_params = InterpFilterParams filter_params =
av1_get_interp_filter_params(interp_filter); av1_get_interp_filter_params(interp_filter);
int filter_size = filter_params.taps; int filter_size = filter_params.taps;
#endif #endif
int intermediate_height = int intermediate_height =
(((h - 1) * y_step_q4 + subpel_y_q4) >> SUBPEL_BITS) + filter_size; (((h - 1) * y_step_q4 + subpel_y_q4) >> SUBPEL_BITS) + filter_size;
av1_highbd_convolve_horiz_facade( av1_highbd_convolve_horiz_facade(src8 - src_stride * (filter_size / 2 - 1),
src8 - src_stride * (filter_size / 2 - 1), src_stride, temp8, src_stride, temp8, temp_stride, w,
temp_stride, w, intermediate_height, filter_params, subpel_x_q4, intermediate_height, filter_params,
x_step_q4, 0, bd); subpel_x_q4, x_step_q4, 0, bd);
#if CONFIG_DUAL_FILTER #if CONFIG_DUAL_FILTER
filter_params = filter_params_y; filter_params = filter_params_y;
#endif #endif
filter_size = filter_params.taps; filter_size = filter_params.taps;
assert(filter_params.taps <= MAX_FILTER_TAP); assert(filter_params.taps <= MAX_FILTER_TAP);
av1_highbd_convolve_vert_facade( av1_highbd_convolve_vert_facade(
temp8 + temp_stride * (filter_size / 2 - 1), temp_stride, dst8, temp8 + temp_stride * (filter_size / 2 - 1), temp_stride, dst8,
dst_stride, w, h, filter_params, subpel_y_q4, y_step_q4, ref_idx, bd); dst_stride, w, h, filter_params, subpel_y_q4, y_step_q4, ref_idx, bd);
}
} }
} }
#endif // CONFIG_AOM_HIGHBITDEPTH #endif // CONFIG_AOM_HIGHBITDEPTH
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