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,
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;
// 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);
}
}
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) {
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;
// 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);
}