Fix msvc compiler warnings

There were a number of compiler warnings:
1. int16_t to uint8_t in recon_intra.c;
2. double to float conversions in psnrhvs.c
3. intptr_t to int in quantize.c
4. size_t to int32_t in decoder.c

Change-Id: Id95423b17779dcfa6cf39d9a90fe8cb8b910f5df
This commit is contained in:
Yaowu Xu
2016-02-08 09:41:43 -08:00
parent ac898d221f
commit 3c28b4a8ff
5 changed files with 30 additions and 29 deletions

View File

@@ -62,11 +62,10 @@ void vp10_quantize_dc_facade(const tran_low_t *coeff_ptr, intptr_t n_coeffs,
const scan_order *sc) {
// obsolete skip_block
const int skip_block = 0;
(void)sc;
vpx_quantize_dc(coeff_ptr, n_coeffs, skip_block, p->round, p->quant_fp[0],
qcoeff_ptr, dqcoeff_ptr, pd->dequant[0], eob_ptr);
vpx_quantize_dc(coeff_ptr, (int)n_coeffs, skip_block, p->round,
p->quant_fp[0], qcoeff_ptr, dqcoeff_ptr, pd->dequant[0],
eob_ptr);
}
#if CONFIG_VP9_HIGHBITDEPTH
@@ -105,7 +104,7 @@ void vp10_highbd_quantize_dc_facade(
(void)sc;
vpx_highbd_quantize_dc(coeff_ptr, n_coeffs, skip_block, p->round,
vpx_highbd_quantize_dc(coeff_ptr, (int)n_coeffs, skip_block, p->round,
p->quant_fp[0], qcoeff_ptr, dqcoeff_ptr,
pd->dequant[0], eob_ptr);
}