From: James Zern Date: Mon, 24 Oct 2022 22:28:47 +0000 (-0700) Subject: vp9_highbd_quantize_fp*_neon: normalize fn param name X-Git-Tag: accepted/tizen/7.0/unified/20240521.012539~1^2~376^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d667193e6a36629746faa1e29e8fb17573eea893;p=platform%2Fupstream%2Flibvpx.git 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 --- diff --git a/vp9/encoder/arm/neon/vp9_quantize_neon.c b/vp9/encoder/arm/neon/vp9_quantize_neon.c index b9bd1eb..c2b55fc 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); }