]> granicus.if.org Git - libvpx/blob - vp8/encoder/arm/variance_arm.h
safety check to avoid divide by 0s
[libvpx] / vp8 / encoder / arm / variance_arm.h
1 /*
2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3  *
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  */
10
11
12 #ifndef VARIANCE_ARM_H
13 #define VARIANCE_ARM_H
14
15 #if HAVE_ARMV7
16 extern prototype_sad(vp8_sad4x4_neon);
17 extern prototype_sad(vp8_sad8x8_neon);
18 extern prototype_sad(vp8_sad8x16_neon);
19 extern prototype_sad(vp8_sad16x8_neon);
20 extern prototype_sad(vp8_sad16x16_neon);
21
22 //extern prototype_variance(vp8_variance4x4_c);
23 extern prototype_variance(vp8_variance8x8_neon);
24 extern prototype_variance(vp8_variance8x16_neon);
25 extern prototype_variance(vp8_variance16x8_neon);
26 extern prototype_variance(vp8_variance16x16_neon);
27
28 //extern prototype_subpixvariance(vp8_sub_pixel_variance4x4_c);
29 extern prototype_subpixvariance(vp8_sub_pixel_variance8x8_neon);
30 //extern prototype_subpixvariance(vp8_sub_pixel_variance8x16_c);
31 //extern prototype_subpixvariance(vp8_sub_pixel_variance16x8_c);
32 extern prototype_subpixvariance(vp8_sub_pixel_variance16x16_neon);
33
34 //extern prototype_getmbss(vp8_get_mb_ss_c);
35 extern prototype_variance(vp8_mse16x16_neon);
36 extern prototype_sad(vp8_get16x16pred_error_neon);
37 //extern prototype_variance2(vp8_get8x8var_c);
38 //extern prototype_variance2(vp8_get16x16var_c);
39 extern prototype_sad(vp8_get4x4sse_cs_neon);
40
41 #undef  vp8_variance_sad4x4
42 #define vp8_variance_sad4x4 vp8_sad4x4_neon
43
44 #undef  vp8_variance_sad8x8
45 #define vp8_variance_sad8x8 vp8_sad8x8_neon
46
47 #undef  vp8_variance_sad8x16
48 #define vp8_variance_sad8x16 vp8_sad8x16_neon
49
50 #undef  vp8_variance_sad16x8
51 #define vp8_variance_sad16x8 vp8_sad16x8_neon
52
53 #undef  vp8_variance_sad16x16
54 #define vp8_variance_sad16x16 vp8_sad16x16_neon
55
56 //#undef  vp8_variance_var4x4
57 //#define vp8_variance_var4x4 vp8_variance4x4_c
58
59 #undef  vp8_variance_var8x8
60 #define vp8_variance_var8x8 vp8_variance8x8_neon
61
62 #undef  vp8_variance_var8x16
63 #define vp8_variance_var8x16 vp8_variance8x16_neon
64
65 #undef  vp8_variance_var16x8
66 #define vp8_variance_var16x8 vp8_variance16x8_neon
67
68 #undef  vp8_variance_var16x16
69 #define vp8_variance_var16x16 vp8_variance16x16_neon
70
71 //#undef  vp8_variance_subpixvar4x4
72 //#define vp8_variance_subpixvar4x4 vp8_sub_pixel_variance4x4_c
73
74 #undef  vp8_variance_subpixvar8x8
75 #define vp8_variance_subpixvar8x8 vp8_sub_pixel_variance8x8_neon
76
77 //#undef  vp8_variance_subpixvar8x16
78 //#define vp8_variance_subpixvar8x16 vp8_sub_pixel_variance8x16_c
79
80 //#undef  vp8_variance_subpixvar16x8
81 //#define vp8_variance_subpixvar16x8 vp8_sub_pixel_variance16x8_c
82
83 #undef  vp8_variance_subpixvar16x16
84 #define vp8_variance_subpixvar16x16 vp8_sub_pixel_variance16x16_neon
85
86 //#undef  vp8_variance_getmbss
87 //#define vp8_variance_getmbss vp8_get_mb_ss_c
88
89 #undef  vp8_variance_mse16x16
90 #define vp8_variance_mse16x16 vp8_mse16x16_neon
91
92 #undef  vp8_variance_get16x16prederror
93 #define vp8_variance_get16x16prederror vp8_get16x16pred_error_neon
94
95 //#undef  vp8_variance_get8x8var
96 //#define vp8_variance_get8x8var vp8_get8x8var_c
97
98 //#undef  vp8_variance_get16x16var
99 //#define vp8_variance_get16x16var vp8_get16x16var_c
100
101 #undef  vp8_variance_get4x4sse_cs
102 #define vp8_variance_get4x4sse_cs vp8_get4x4sse_cs_neon
103
104 #endif
105
106 #endif