]> granicus.if.org Git - libvpx/blob - vp8/common/arm/recon_arm.h
safety check to avoid divide by 0s
[libvpx] / vp8 / common / arm / recon_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 RECON_ARM_H
13 #define RECON_ARM_H
14
15 #if HAVE_ARMV6
16 extern prototype_recon_block(vp8_recon_b_armv6);
17 extern prototype_recon_block(vp8_recon2b_armv6);
18 extern prototype_recon_block(vp8_recon4b_armv6);
19
20 extern prototype_copy_block(vp8_copy_mem8x8_v6);
21 extern prototype_copy_block(vp8_copy_mem8x4_v6);
22 extern prototype_copy_block(vp8_copy_mem16x16_v6);
23
24 #undef  vp8_recon_recon
25 #define vp8_recon_recon vp8_recon_b_armv6
26
27 #undef  vp8_recon_recon2
28 #define vp8_recon_recon2 vp8_recon2b_armv6
29
30 #undef  vp8_recon_recon4
31 #define vp8_recon_recon4 vp8_recon4b_armv6
32
33 #undef  vp8_recon_copy8x8
34 #define vp8_recon_copy8x8 vp8_copy_mem8x8_v6
35
36 #undef  vp8_recon_copy8x4
37 #define vp8_recon_copy8x4 vp8_copy_mem8x4_v6
38
39 #undef  vp8_recon_copy16x16
40 #define vp8_recon_copy16x16 vp8_copy_mem16x16_v6
41 #endif
42
43 #if HAVE_ARMV7
44 extern prototype_recon_block(vp8_recon_b_neon);
45 extern prototype_recon_block(vp8_recon2b_neon);
46 extern prototype_recon_block(vp8_recon4b_neon);
47
48 extern prototype_copy_block(vp8_copy_mem8x8_neon);
49 extern prototype_copy_block(vp8_copy_mem8x4_neon);
50 extern prototype_copy_block(vp8_copy_mem16x16_neon);
51
52 #undef  vp8_recon_recon
53 #define vp8_recon_recon vp8_recon_b_neon
54
55 #undef  vp8_recon_recon2
56 #define vp8_recon_recon2 vp8_recon2b_neon
57
58 #undef  vp8_recon_recon4
59 #define vp8_recon_recon4 vp8_recon4b_neon
60
61 #undef  vp8_recon_copy8x8
62 #define vp8_recon_copy8x8 vp8_copy_mem8x8_neon
63
64 #undef  vp8_recon_copy8x4
65 #define vp8_recon_copy8x4 vp8_copy_mem8x4_neon
66
67 #undef  vp8_recon_copy16x16
68 #define vp8_recon_copy16x16 vp8_copy_mem16x16_neon
69 #endif
70
71 #endif