Define RDCOST only once
[libvpx.git] / vp8 / encoder / arm / encodemb_arm.h
blobbf417fe1d99ac9f4f5bf9484f66bd5036b2ecda2
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 */
12 #ifndef ENCODEMB_ARM_H
13 #define ENCODEMB_ARM_H
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);
20 #if !CONFIG_RUNTIME_CPU_DETECT
21 #undef vp8_encodemb_subb
22 #define vp8_encodemb_subb vp8_subtract_b_armv6
24 #undef vp8_encodemb_submby
25 #define vp8_encodemb_submby vp8_subtract_mby_armv6
27 #undef vp8_encodemb_submbuv
28 #define vp8_encodemb_submbuv vp8_subtract_mbuv_armv6
29 #endif
31 #endif /* HAVE_ARMV6 */
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);
38 extern prototype_subb(vp8_subtract_b_neon);
39 extern prototype_submby(vp8_subtract_mby_neon);
40 extern prototype_submbuv(vp8_subtract_mbuv_neon);
42 //#undef vp8_encodemb_berr
43 //#define vp8_encodemb_berr vp8_block_error_c
45 //#undef vp8_encodemb_mberr
46 //#define vp8_encodemb_mberr vp8_mbblock_error_c
48 //#undef vp8_encodemb_mbuverr
49 //#define vp8_encodemb_mbuverr vp8_mbuverror_c
51 #if !CONFIG_RUNTIME_CPU_DETECT
52 #undef vp8_encodemb_subb
53 #define vp8_encodemb_subb vp8_subtract_b_neon
55 #undef vp8_encodemb_submby
56 #define vp8_encodemb_submby vp8_subtract_mby_neon
58 #undef vp8_encodemb_submbuv
59 #define vp8_encodemb_submbuv vp8_subtract_mbuv_neon
60 #endif
62 #endif
64 #endif