• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ENCODEMB_ARM_H
13 #define ENCODEMB_ARM_H
14 
15 #if HAVE_ARMV6
16 extern prototype_subb(vp8_subtract_b_armv6);
17 extern prototype_submby(vp8_subtract_mby_armv6);
18 extern prototype_submbuv(vp8_subtract_mbuv_armv6);
19 
20 #if !CONFIG_RUNTIME_CPU_DETECT
21 #undef  vp8_encodemb_subb
22 #define vp8_encodemb_subb vp8_subtract_b_armv6
23 
24 #undef  vp8_encodemb_submby
25 #define vp8_encodemb_submby vp8_subtract_mby_armv6
26 
27 #undef  vp8_encodemb_submbuv
28 #define vp8_encodemb_submbuv vp8_subtract_mbuv_armv6
29 #endif
30 
31 #endif /* HAVE_ARMV6 */
32 
33 #if HAVE_ARMV7
34 //extern prototype_berr(vp8_block_error_c);
35 //extern prototype_mberr(vp8_mbblock_error_c);
36 //extern prototype_mbuverr(vp8_mbuverror_c);
37 
38 extern prototype_subb(vp8_subtract_b_neon);
39 extern prototype_submby(vp8_subtract_mby_neon);
40 extern prototype_submbuv(vp8_subtract_mbuv_neon);
41 
42 //#undef  vp8_encodemb_berr
43 //#define vp8_encodemb_berr vp8_block_error_c
44 
45 //#undef  vp8_encodemb_mberr
46 //#define vp8_encodemb_mberr vp8_mbblock_error_c
47 
48 //#undef  vp8_encodemb_mbuverr
49 //#define vp8_encodemb_mbuverr vp8_mbuverror_c
50 
51 #if !CONFIG_RUNTIME_CPU_DETECT
52 #undef  vp8_encodemb_subb
53 #define vp8_encodemb_subb vp8_subtract_b_neon
54 
55 #undef  vp8_encodemb_submby
56 #define vp8_encodemb_submby vp8_subtract_mby_neon
57 
58 #undef  vp8_encodemb_submbuv
59 #define vp8_encodemb_submbuv vp8_subtract_mbuv_neon
60 #endif
61 
62 #endif
63 
64 #endif
65