]> granicus.if.org Git - libvpx/commitdiff
Resolve declaration and implementation.
authorJohann <johann.koenig@duck.com>
Tue, 23 Apr 2013 17:10:10 +0000 (10:10 -0700)
committerJohann <johann.koenig@duck.com>
Tue, 23 Apr 2013 19:42:31 +0000 (12:42 -0700)
Clean Windows build warnings:
warning C4028: formal parameter <N> different from declaration

This was fixed independently in master and experimental but the fixes
were in opposite directions. One added const to the declaration and the
other removed it from the implementation.

Also update the variable names. This doesn't modify the data so call it
ref, matching the functions in the vicinity, rather than dst.

Change-Id: I2ffc6b4a874cb98c26487b909d20a5e099b5582c

vp9/common/vp9_findnearmv.c
vp9/common/vp9_rtcd_defs.sh

index f6d6932cc5ba5b39a6b78480a1e3bad20ec58b6f..a063ca4778fdfe62992821b4ad3b0b6a524d8991 100644 (file)
@@ -77,11 +77,11 @@ unsigned int vp9_variance16x2_c(const uint8_t *src_ptr,
 }
 
 unsigned int vp9_sub_pixel_variance16x2_c(const uint8_t *src_ptr,
-                                          int  src_pixels_per_line,
+                                          int  source_stride,
                                           int  xoffset,
                                           int  yoffset,
-                                          const uint8_t *dst_ptr,
-                                          int dst_pixels_per_line,
+                                          const uint8_t *ref_ptr,
+                                          int ref_stride,
                                           unsigned int *sse) {
   uint16_t FData3[16 * 3];  // Temp data buffer used in filtering
   uint8_t temp2[2 * 16];
@@ -91,18 +91,18 @@ unsigned int vp9_sub_pixel_variance16x2_c(const uint8_t *src_ptr,
   VFilter = VP9_BILINEAR_FILTERS_2TAP(yoffset);
 
   var_filter_block2d_bil_first_pass(src_ptr, FData3,
-                                    src_pixels_per_line, 1, 3, 16, HFilter);
+                                    source_stride, 1, 3, 16, HFilter);
   var_filter_block2d_bil_second_pass(FData3, temp2, 16, 16, 2, 16, VFilter);
 
-  return vp9_variance16x2_c(temp2, 16, dst_ptr, dst_pixels_per_line, sse);
+  return vp9_variance16x2_c(temp2, 16, ref_ptr, ref_stride, sse);
 }
 
 unsigned int vp9_sub_pixel_variance2x16_c(const uint8_t *src_ptr,
-                                          int  src_pixels_per_line,
+                                          int  source_stride,
                                           int  xoffset,
                                           int  yoffset,
-                                          const uint8_t *dst_ptr,
-                                          int dst_pixels_per_line,
+                                          const uint8_t *ref_ptr,
+                                          int ref_stride,
                                           unsigned int *sse) {
   uint16_t FData3[2 * 17];  // Temp data buffer used in filtering
   uint8_t temp2[2 * 16];
@@ -112,10 +112,10 @@ unsigned int vp9_sub_pixel_variance2x16_c(const uint8_t *src_ptr,
   VFilter = VP9_BILINEAR_FILTERS_2TAP(yoffset);
 
   var_filter_block2d_bil_first_pass(src_ptr, FData3,
-                                    src_pixels_per_line, 1, 17, 2, HFilter);
+                                    source_stride, 1, 17, 2, HFilter);
   var_filter_block2d_bil_second_pass(FData3, temp2, 2, 2, 16, 2, VFilter);
 
-  return vp9_variance2x16_c(temp2, 2, dst_ptr, dst_pixels_per_line, sse);
+  return vp9_variance2x16_c(temp2, 2, ref_ptr, ref_stride, sse);
 }
 
 #if CONFIG_USESELECTREFMV
index 46495cb118af1b8a042e95f5bd8765dbc993ca6a..43bc3cb1fc2520c40dc63577903e9828bc7fddbf 100644 (file)
@@ -252,7 +252,7 @@ specialize vp9_sad16x3 sse2
 prototype unsigned int vp9_sad3x16 "const uint8_t *src_ptr, int  src_stride, const uint8_t *ref_ptr, int ref_stride"
 specialize vp9_sad3x16 sse2
 
-prototype unsigned int vp9_sub_pixel_variance16x2 "const uint8_t *src_ptr, const int source_stride, const int xoffset, const int  yoffset, const uint8_t *ref_ptr, const int ref_stride, unsigned int *sse"
+prototype unsigned int vp9_sub_pixel_variance16x2 "const uint8_t *src_ptr, int source_stride, int xoffset, int yoffset, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse"
 specialize vp9_sub_pixel_variance16x2 sse2
 
 #