From: Yaowu Xu Date: Wed, 10 Aug 2016 00:59:47 +0000 (-0700) Subject: vp10_highbd_quantize_fp: use const consistently X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9efcb345a6a4195e51aab3093c4f56b3f259002;p=libvpx vp10_highbd_quantize_fp: use const consistently Remove a few extra ones that are consistent with the definitions, this fixes some MSVC warnings. Change-Id: I4b26de4cca71f0ac85667bd641c448b44315941b --- diff --git a/vp10/encoder/quantize.c b/vp10/encoder/quantize.c index a55c812b0..22863e2e2 100644 --- a/vp10/encoder/quantize.c +++ b/vp10/encoder/quantize.c @@ -982,7 +982,7 @@ void vp10_highbd_quantize_fp_c(const tran_low_t *coeff_ptr, const int16_t *dequant_ptr, uint16_t *eob_ptr, const int16_t *scan, - const int16_t *iscan, const int log_scale) { + const int16_t *iscan, int log_scale) { int i; int eob = -1; const int scale = 1 << log_scale; @@ -1069,7 +1069,7 @@ void vp10_highbd_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, 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, const int log_scale) { + const int16_t *iscan, int log_scale) { int i, non_zero_count = (int)n_coeffs, eob = -1; int zbins[2] = {zbin_ptr[0], zbin_ptr[1]}; int round[2] = {round_ptr[0], round_ptr[1]}; diff --git a/vp10/encoder/x86/vp10_highbd_quantize_sse4.c b/vp10/encoder/x86/vp10_highbd_quantize_sse4.c index a2ed7a935..c9ad5d025 100644 --- a/vp10/encoder/x86/vp10_highbd_quantize_sse4.c +++ b/vp10/encoder/x86/vp10_highbd_quantize_sse4.c @@ -119,7 +119,7 @@ void vp10_highbd_quantize_fp_sse4_1(const tran_low_t *coeff_ptr, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan, - const int log_scale) { + int log_scale) { __m128i coeff[2], qcoeff[2], dequant[2], qparam[3], coeff_sign; __m128i eob = _mm_setzero_si128(); const tran_low_t *src = coeff_ptr;