]> granicus.if.org Git - libvpx/commitdiff
idct32x32_1_add_neon: clear a couple conv warnings
authorJames Zern <jzern@google.com>
Tue, 1 Nov 2016 01:56:34 +0000 (18:56 -0700)
committerJames Zern <jzern@google.com>
Tue, 1 Nov 2016 01:56:34 +0000 (18:56 -0700)
int16_t -> uint8_t

Change-Id: I3c5e0985bc3584dce289c35b5973de24cdc73b76

vpx_dsp/arm/idct32x32_1_add_neon.c

index 8aad4c579aedc8ea5c98619681064f1190610235..6be4b01229b4bb49accd0b606e0db3f01ca1c937 100644 (file)
@@ -103,7 +103,7 @@ void vpx_idct32x32_1_add_neon(const tran_low_t *input, uint8_t *dest,
   dest_stride8 = dest_stride * 8;
   if (a1 >= 0) {  // diff_positive_32_32
     a1 = a1 < 0 ? 0 : a1 > 255 ? 255 : a1;
-    q0u8 = vdupq_n_u8(a1);
+    q0u8 = vdupq_n_u8((uint8_t)a1);
     for (i = 0; i < 2; i++, dest += 16) {  // diff_positive_32_32_loop
       d = dest;
       for (j = 0; j < 4; j++) {
@@ -119,7 +119,7 @@ void vpx_idct32x32_1_add_neon(const tran_low_t *input, uint8_t *dest,
   } else {  // diff_negative_32_32
     a1 = -a1;
     a1 = a1 < 0 ? 0 : a1 > 255 ? 255 : a1;
-    q0u8 = vdupq_n_u8(a1);
+    q0u8 = vdupq_n_u8((uint8_t)a1);
     for (i = 0; i < 2; i++, dest += 16) {  // diff_negative_32_32_loop
       d = dest;
       for (j = 0; j < 4; j++) {