OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 } | 996 } |
997 | 997 |
998 unsigned int vp8_sub_pixel_variance8x8_neon( | 998 unsigned int vp8_sub_pixel_variance8x8_neon( |
999 const unsigned char *src, | 999 const unsigned char *src, |
1000 int src_stride, | 1000 int src_stride, |
1001 int xoffset, | 1001 int xoffset, |
1002 int yoffset, | 1002 int yoffset, |
1003 const unsigned char *dst, | 1003 const unsigned char *dst, |
1004 int dst_stride, | 1004 int dst_stride, |
1005 unsigned int *sse) { | 1005 unsigned int *sse) { |
1006 DECLARE_ALIGNED_ARRAY(kAlign16, uint8_t, temp2, kHeight8 * kWidth8); | 1006 DECLARE_ALIGNED_ARRAY(kAlign16, uint8_t, temp2, kHeight8PlusOne * kWidth8); |
1007 DECLARE_ALIGNED_ARRAY(kAlign16, uint8_t, fdata3, kHeight8PlusOne * kWidth8); | 1007 DECLARE_ALIGNED_ARRAY(kAlign16, uint8_t, fdata3, kHeight8PlusOne * kWidth8); |
1008 if (xoffset == 0) { | 1008 if (xoffset == 0) { |
1009 var_filter_block2d_bil_w8(src, temp2, src_stride, kWidth8, kHeight8, | 1009 var_filter_block2d_bil_w8(src, temp2, src_stride, kWidth8, kHeight8, |
1010 kWidth8, bilinear_taps_coeff[yoffset]); | 1010 kWidth8, bilinear_taps_coeff[yoffset]); |
1011 } else if (yoffset == 0) { | 1011 } else if (yoffset == 0) { |
1012 var_filter_block2d_bil_w8(src, temp2, src_stride, kPixelStepOne, | 1012 var_filter_block2d_bil_w8(src, temp2, src_stride, kPixelStepOne, |
1013 kHeight8PlusOne, kWidth8, | 1013 kHeight8PlusOne, kWidth8, |
1014 bilinear_taps_coeff[xoffset]); | 1014 bilinear_taps_coeff[xoffset]); |
1015 } else { | 1015 } else { |
1016 var_filter_block2d_bil_w8(src, fdata3, src_stride, kPixelStepOne, | 1016 var_filter_block2d_bil_w8(src, fdata3, src_stride, kPixelStepOne, |
1017 kHeight8PlusOne, kWidth8, | 1017 kHeight8PlusOne, kWidth8, |
1018 bilinear_taps_coeff[xoffset]); | 1018 bilinear_taps_coeff[xoffset]); |
1019 var_filter_block2d_bil_w8(fdata3, temp2, kWidth8, kWidth8, kHeight8, | 1019 var_filter_block2d_bil_w8(fdata3, temp2, kWidth8, kWidth8, kHeight8, |
1020 kWidth8, bilinear_taps_coeff[yoffset]); | 1020 kWidth8, bilinear_taps_coeff[yoffset]); |
1021 } | 1021 } |
1022 return variance8x8_neon(temp2, kWidth8, dst, dst_stride, sse); | 1022 return variance8x8_neon(temp2, kWidth8, dst, dst_stride, sse); |
1023 } | 1023 } |
1024 | |
OLD | NEW |