move new neon subpixel function
[libvpx.git] / vp8 / encoder / arm / variance_arm.c
blob4c7248543a3f6fa6069f111ed5d3ecf15095f00a
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
11 #include "vpx_config.h"
13 #if HAVE_ARMV7
15 unsigned int vp8_sub_pixel_variance16x16_neon
17 const unsigned char *src_ptr,
18 int src_pixels_per_line,
19 int xoffset,
20 int yoffset,
21 const unsigned char *dst_ptr,
22 int dst_pixels_per_line,
23 unsigned int *sse
26 if (xoffset == 4 && yoffset == 0)
27 return vp8_variance_halfpixvar16x16_h_neon(src_ptr, src_pixels_per_line, dst_ptr, dst_pixels_per_line, sse);
28 else if (xoffset == 0 && yoffset == 4)
29 return vp8_variance_halfpixvar16x16_v_neon(src_ptr, src_pixels_per_line, dst_ptr, dst_pixels_per_line, sse);
30 else if (xoffset == 4 && yoffset == 4)
31 return vp8_variance_halfpixvar16x16_hv_neon(src_ptr, src_pixels_per_line, dst_ptr, dst_pixels_per_line, sse);
32 else
33 return vp8_sub_pixel_variance16x16_neon_func(src_ptr, src_pixels_per_line, xoffset, yoffset, dst_ptr, dst_pixels_per_line, sse);
36 #endif