From d667193e6a36629746faa1e29e8fb17573eea893 Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 24 Oct 2022 15:28:47 -0700 Subject: [PATCH] vp9_highbd_quantize_fp*_neon: normalize fn param name count -> n_coeffs. aligns the name with the rtcd header; clears a clang-tidy warning Change-Id: I36545ff479df92b117c95e494f16002e6990f433 --- vp9/encoder/arm/neon/vp9_quantize_neon.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vp9/encoder/arm/neon/vp9_quantize_neon.c b/vp9/encoder/arm/neon/vp9_quantize_neon.c index b9bd1eba3..c2b55fcba 100644 --- a/vp9/encoder/arm/neon/vp9_quantize_neon.c +++ b/vp9/encoder/arm/neon/vp9_quantize_neon.c @@ -257,7 +257,7 @@ highbd_quantize_fp_4(const tran_low_t *coeff_ptr, tran_low_t *qcoeff_ptr, return vmovn_u32(vceqq_s32(v_abs_qcoeff, vdupq_n_s32(0))); } -void vp9_highbd_quantize_fp_neon(const tran_low_t *coeff_ptr, intptr_t count, +void vp9_highbd_quantize_fp_neon(const tran_low_t *coeff_ptr, intptr_t n_coeffs, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoeff_ptr, @@ -294,7 +294,7 @@ void vp9_highbd_quantize_fp_neon(const tran_low_t *coeff_ptr, intptr_t count, v_eobmax = get_max_lane_eob(iscan, v_eobmax, vcombine_u16(v_mask_lo, v_mask_hi)); - count -= 8; + n_coeffs -= 8; do { coeff_ptr += 8; qcoeff_ptr += 8; @@ -308,8 +308,8 @@ void vp9_highbd_quantize_fp_neon(const tran_low_t *coeff_ptr, intptr_t count, // Find the max lane eob for 8 coeffs. v_eobmax = get_max_lane_eob(iscan, v_eobmax, vcombine_u16(v_mask_lo, v_mask_hi)); - count -= 8; - } while (count); + n_coeffs -= 8; + } while (n_coeffs); *eob_ptr = get_max_eob(v_eobmax); } @@ -349,7 +349,7 @@ highbd_quantize_fp_32x32_4(const tran_low_t *coeff_ptr, tran_low_t *qcoeff_ptr, } void vp9_highbd_quantize_fp_32x32_neon( - const tran_low_t *coeff_ptr, intptr_t count, const int16_t *round_ptr, + const tran_low_t *coeff_ptr, intptr_t n_coeffs, const int16_t *round_ptr, const int16_t *quant_ptr, tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan) { @@ -385,7 +385,7 @@ void vp9_highbd_quantize_fp_32x32_neon( v_eobmax = get_max_lane_eob(iscan, v_eobmax, vcombine_u16(v_mask_lo, v_mask_hi)); - count -= 8; + n_coeffs -= 8; do { coeff_ptr += 8; qcoeff_ptr += 8; @@ -400,8 +400,8 @@ void vp9_highbd_quantize_fp_32x32_neon( // Find the max lane eob for 8 coeffs. v_eobmax = get_max_lane_eob(iscan, v_eobmax, vcombine_u16(v_mask_lo, v_mask_hi)); - count -= 8; - } while (count); + n_coeffs -= 8; + } while (n_coeffs); *eob_ptr = get_max_eob(v_eobmax); } -- 2.40.0