Commit 0006e96cdb for aom
commit 0006e96cdb595ff88950a2c664115335ca5517bf
Author: Wan-Teh Chang <wtc@google.com>
Date: Wed Aug 12 15:01:13 2026 -0700
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 a395a2f078..95af1945fb 100644
--- a/av1/encoder/reconinter_enc.c
+++ b/av1/encoder/reconinter_enc.c
@@ -472,11 +472,7 @@ void aom_upsampled_pred_c(MACROBLOCKD *xd, const AV1_COMMON *const cm,
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 @@ void aom_highbd_upsampled_pred_c(MACROBLOCKD *xd,
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);