Commit 44aac61c authored by Yaowu Xu's avatar Yaowu Xu

Add and remove explicit type conversions

Change-Id: I8b791fda7c64a0363549add99dc9fcae3b29beae
parent 3826383c
...@@ -120,13 +120,13 @@ void vp10_highbd_iadst16_c(const tran_low_t *input, tran_low_t *output, int bd); ...@@ -120,13 +120,13 @@ void vp10_highbd_iadst16_c(const tran_low_t *input, tran_low_t *output, int bd);
static INLINE uint16_t highbd_clip_pixel_add(uint16_t dest, tran_high_t trans, static INLINE uint16_t highbd_clip_pixel_add(uint16_t dest, tran_high_t trans,
int bd) { int bd) {
trans = HIGHBD_WRAPLOW(trans, bd); trans = HIGHBD_WRAPLOW(trans, bd);
return clip_pixel_highbd(dest + trans, bd); return clip_pixel_highbd(dest + (int)trans, bd);
} }
#endif #endif
static INLINE uint8_t clip_pixel_add(uint8_t dest, tran_high_t trans) { static INLINE uint8_t clip_pixel_add(uint8_t dest, tran_high_t trans) {
trans = WRAPLOW(trans); trans = WRAPLOW(trans);
return clip_pixel(dest + trans); return clip_pixel(dest + (int)trans);
} }
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
......
...@@ -37,7 +37,7 @@ static INLINE tran_high_t check_range(tran_high_t input) { ...@@ -37,7 +37,7 @@ static INLINE tran_high_t check_range(tran_high_t input) {
static INLINE tran_high_t dct_const_round_shift(tran_high_t input) { static INLINE tran_high_t dct_const_round_shift(tran_high_t input) {
tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
return (tran_high_t)rv; return rv;
} }
#if CONFIG_VP9_HIGHBITDEPTH #if CONFIG_VP9_HIGHBITDEPTH
...@@ -61,7 +61,7 @@ static INLINE tran_high_t highbd_check_range(tran_high_t input, ...@@ -61,7 +61,7 @@ static INLINE tran_high_t highbd_check_range(tran_high_t input,
static INLINE tran_high_t highbd_dct_const_round_shift(tran_high_t input) { static INLINE tran_high_t highbd_dct_const_round_shift(tran_high_t input) {
tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS);
return (tran_high_t)rv; return rv;
} }
#endif // CONFIG_VP9_HIGHBITDEPTH #endif // CONFIG_VP9_HIGHBITDEPTH
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment