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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user