]> granicus.if.org Git - libvpx/commitdiff
Fix a number of msvc warnings
authorYaowu Xu <yaowu@google.com>
Wed, 3 Aug 2016 21:36:23 +0000 (14:36 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 4 Aug 2016 21:42:56 +0000 (21:42 +0000)
Change-Id: Ic5ddba3ca0c87245617b6dbc78c0f13dc952ce8b

vp10/common/vp10_fwd_txfm2d.c
vp10/common/x86/vp10_fwd_txfm2d_sse4.c
vp10/common/x86/vp10_inv_txfm_sse2.c

index cddd7dc65541c324af3a6e27f17f81d36e0d129d..e03e593b7f9994716e990b3089ce1dcda15f7db2 100644 (file)
@@ -91,8 +91,7 @@ static INLINE void fwd_txfm2d_c(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_4x4_c(const int16_t *input, int32_t *output,
-                           const int stride, int tx_type,
-                           const int bd) {
+                           int stride, int tx_type, int bd) {
   int32_t txfm_buf[4 * 4];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_cfg(tx_type, TX_4X4);
   (void)bd;
@@ -100,8 +99,7 @@ void vp10_fwd_txfm2d_4x4_c(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_8x8_c(const int16_t *input, int32_t *output,
-                           const int stride, int tx_type,
-                           const int bd) {
+                           int stride, int tx_type, int bd) {
   int32_t txfm_buf[8 * 8];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_cfg(tx_type, TX_8X8);
   (void)bd;
@@ -109,8 +107,7 @@ void vp10_fwd_txfm2d_8x8_c(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_16x16_c(const int16_t *input, int32_t *output,
-                             const int stride, int tx_type,
-                             const int bd) {
+                             int stride, int tx_type, int bd) {
   int32_t txfm_buf[16 * 16];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_cfg(tx_type, TX_16X16);
   (void)bd;
@@ -118,8 +115,7 @@ void vp10_fwd_txfm2d_16x16_c(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_32x32_c(const int16_t *input, int32_t *output,
-                             const int stride, int tx_type,
-                             const int bd) {
+                             int stride, int tx_type, int bd) {
   int32_t txfm_buf[32 * 32];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_cfg(tx_type, TX_32X32);
   (void)bd;
@@ -127,8 +123,7 @@ void vp10_fwd_txfm2d_32x32_c(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_64x64_c(const int16_t *input, int32_t *output,
-                             const int stride, int tx_type,
-                             const int bd) {
+                             int stride, int tx_type, int bd) {
   int32_t txfm_buf[64 * 64];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_64x64_cfg(tx_type);
   (void)bd;
index ff04dc891fe0af55bb55156011818fdd0d512f9b..eb9662eb84bdc7554836705faa70122d4a85b27b 100644 (file)
@@ -90,8 +90,7 @@ static INLINE void fwd_txfm2d_sse4_1(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_32x32_sse4_1(const int16_t *input, int32_t *output,
-                                  const int stride, int tx_type,
-                                  const int bd) {
+                                  int stride, int tx_type, int bd) {
   int32_t txfm_buf[1024];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_cfg(tx_type, TX_32X32);
   (void)bd;
@@ -99,8 +98,7 @@ void vp10_fwd_txfm2d_32x32_sse4_1(const int16_t *input, int32_t *output,
 }
 
 void vp10_fwd_txfm2d_64x64_sse4_1(const int16_t *input, int32_t *output,
-                                  const int stride, int tx_type,
-                                  const int bd) {
+                                  int stride, int tx_type, int bd) {
   int32_t txfm_buf[4096];
   TXFM_2D_FLIP_CFG cfg = vp10_get_fwd_txfm_64x64_cfg(tx_type);
   (void)bd;
index b25e22e0ee565e952883409470a50a90cf38c6b1..0e9ee55a0d64f7730d1f8b8e8e3bb56a72235702 100644 (file)
@@ -156,8 +156,8 @@ void vp10_idct4x4_1_add_sse2(const int16_t *input, uint8_t *dest, int stride) {
   const __m128i zero = _mm_setzero_si128();
   int a;
 
-  a = dct_const_round_shift(input[0] * cospi_16_64);
-  a = dct_const_round_shift(a * cospi_16_64);
+  a = (int)dct_const_round_shift(input[0] * cospi_16_64);
+  a = (int)dct_const_round_shift(a * cospi_16_64);
   a = ROUND_POWER_OF_TWO(a, 4);
 
   dc_value = _mm_set1_epi16(a);
@@ -523,8 +523,8 @@ void vp10_idct8x8_1_add_sse2(const int16_t *input, uint8_t *dest, int stride) {
   const __m128i zero = _mm_setzero_si128();
   int a;
 
-  a = dct_const_round_shift(input[0] * cospi_16_64);
-  a = dct_const_round_shift(a * cospi_16_64);
+  a = (int)dct_const_round_shift(input[0] * cospi_16_64);
+  a = (int)dct_const_round_shift(a * cospi_16_64);
   a = ROUND_POWER_OF_TWO(a, 5);
 
   dc_value = _mm_set1_epi16(a);
@@ -1301,8 +1301,8 @@ void vp10_idct16x16_1_add_sse2(const int16_t *input,
   const __m128i zero = _mm_setzero_si128();
   int a, i;
 
-  a = dct_const_round_shift(input[0] * cospi_16_64);
-  a = dct_const_round_shift(a * cospi_16_64);
+  a = (int)dct_const_round_shift(input[0] * cospi_16_64);
+  a = (int)dct_const_round_shift(a * cospi_16_64);
   a = ROUND_POWER_OF_TWO(a, 6);
 
   dc_value = _mm_set1_epi16(a);
@@ -3473,8 +3473,8 @@ void vp10_idct32x32_1_add_sse2(const int16_t *input,
   const __m128i zero = _mm_setzero_si128();
   int a, i;
 
-  a = dct_const_round_shift(input[0] * cospi_16_64);
-  a = dct_const_round_shift(a * cospi_16_64);
+  a = (int)dct_const_round_shift(input[0] * cospi_16_64);
+  a = (int)dct_const_round_shift(a * cospi_16_64);
   a = ROUND_POWER_OF_TWO(a, 6);
 
   dc_value = _mm_set1_epi16(a);