Resolve declaration and implementation.
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
This commit is contained in:
parent
ac980b71cf
commit
7af58d4338
@ -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
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user