shithub: libvpx

Download patch

ref: 0524f33108d30f7aaa8e2701daf88121f96bf01c
parent: 8b22a9d377890f1ccf4e5729dfdaa1dde74e3cff
author: Frank Galligan <fgalligan@google.com>
date: Mon Jan 28 11:59:10 EST 2013

libvpx: Fix warnings on windows.

Warnings found when tyring to build libvpx in Chromium.

Change-Id: I5824d9e2c06351e0cf46e9f5fa102cc8b04cf963

--- a/vp9/common/vp9_findnearmv.c
+++ b/vp9/common/vp9_findnearmv.c
@@ -57,9 +57,9 @@
 
 
 unsigned int vp9_variance2x16_c(const uint8_t *src_ptr,
-                                const int  source_stride,
+                                int  source_stride,
                                 const uint8_t *ref_ptr,
-                                const int  recon_stride,
+                                int  recon_stride,
                                 unsigned int *sse) {
   int sum;
   variance(src_ptr, source_stride, ref_ptr, recon_stride, 2, 16, sse, &sum);
@@ -67,9 +67,9 @@
 }
 
 unsigned int vp9_variance16x2_c(const uint8_t *src_ptr,
-                                const int  source_stride,
+                                int  source_stride,
                                 const uint8_t *ref_ptr,
-                                const int  recon_stride,
+                                int  recon_stride,
                                 unsigned int *sse) {
   int sum;
   variance(src_ptr, source_stride, ref_ptr, recon_stride, 16, 2, sse, &sum);
@@ -77,11 +77,11 @@
 }
 
 unsigned int vp9_sub_pixel_variance16x2_c(const uint8_t *src_ptr,
-                                          const int  src_pixels_per_line,
-                                          const int  xoffset,
-                                          const int  yoffset,
+                                          int  src_pixels_per_line,
+                                          int  xoffset,
+                                          int  yoffset,
                                           const uint8_t *dst_ptr,
-                                          const int dst_pixels_per_line,
+                                          int dst_pixels_per_line,
                                           unsigned int *sse) {
   uint16_t FData3[16 * 3];  // Temp data buffer used in filtering
   uint8_t temp2[2 * 16];
@@ -98,11 +98,11 @@
 }
 
 unsigned int vp9_sub_pixel_variance2x16_c(const uint8_t *src_ptr,
-                                          const int  src_pixels_per_line,
-                                          const int  xoffset,
-                                          const int  yoffset,
+                                          int  src_pixels_per_line,
+                                          int  xoffset,
+                                          int  yoffset,
                                           const uint8_t *dst_ptr,
-                                          const int dst_pixels_per_line,
+                                          int dst_pixels_per_line,
                                           unsigned int *sse) {
   uint16_t FData3[2 * 17];  // Temp data buffer used in filtering
   uint8_t temp2[2 * 16];
--