Call aom_convolve_copy_c in aom_upsampled_pred_c Call aom_highbd_convolve_copy_c in aom_highbd_upsampled_pred_c. Change-Id: I8b355ce9a8ef5f2ccc4f4e99d7c2ea697cd9dcbc
diff --git a/av1/encoder/reconinter_enc.c b/av1/encoder/reconinter_enc.c index a395a2f..95af194 100644 --- a/av1/encoder/reconinter_enc.c +++ b/av1/encoder/reconinter_enc.c
@@ -472,11 +472,7 @@ const InterpFilterParams *filter = av1_get_filter(subpel_search); if (!subpel_x_q3 && !subpel_y_q3) { - for (int i = 0; i < height; i++) { - memcpy(comp_pred, ref, width * sizeof(*comp_pred)); - comp_pred += width; - ref += ref_stride; - } + aom_convolve_copy_c(ref, ref_stride, comp_pred, width, width, height); } else if (!subpel_y_q3) { const int16_t *const kernel = av1_get_interp_filter_subpel_kernel(filter, subpel_x_q3 << 1); @@ -557,11 +553,8 @@ if (!subpel_x_q3 && !subpel_y_q3) { const uint16_t *ref = CONVERT_TO_SHORTPTR(ref8); uint16_t *comp_pred = CONVERT_TO_SHORTPTR(comp_pred8); - for (int i = 0; i < height; i++) { - memcpy(comp_pred, ref, width * sizeof(*comp_pred)); - comp_pred += width; - ref += ref_stride; - } + aom_highbd_convolve_copy_c(ref, ref_stride, comp_pred, width, width, + height); } else if (!subpel_y_q3) { const int16_t *const kernel = av1_get_interp_filter_subpel_kernel(filter, subpel_x_q3 << 1);