• 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 DEQUANTIZE_ARM_H
13 #define DEQUANTIZE_ARM_H
14 
15 #if HAVE_ARMV6
16 extern prototype_dequant_block(vp8_dequantize_b_v6);
17 extern prototype_dequant_idct_add(vp8_dequant_idct_add_v6);
18 extern prototype_dequant_dc_idct_add(vp8_dequant_dc_idct_add_v6);
19 extern prototype_dequant_dc_idct_add_y_block(vp8_dequant_dc_idct_add_y_block_v6);
20 extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_v6);
21 extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_v6);
22 
23 #if !CONFIG_RUNTIME_CPU_DETECT
24 #undef  vp8_dequant_block
25 #define vp8_dequant_block vp8_dequantize_b_v6
26 
27 #undef vp8_dequant_idct_add
28 #define vp8_dequant_idct_add vp8_dequant_idct_add_v6
29 
30 #undef vp8_dequant_dc_idct_add
31 #define vp8_dequant_dc_idct_add vp8_dequant_dc_idct_add_v6
32 
33 #undef vp8_dequant_dc_idct_add_y_block
34 #define vp8_dequant_dc_idct_add_y_block vp8_dequant_dc_idct_add_y_block_v6
35 
36 #undef vp8_dequant_idct_add_y_block
37 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_v6
38 
39 #undef vp8_dequant_idct_add_uv_block
40 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_v6
41 #endif
42 #endif
43 
44 #if HAVE_ARMV7
45 extern prototype_dequant_block(vp8_dequantize_b_neon);
46 extern prototype_dequant_idct_add(vp8_dequant_idct_add_neon);
47 extern prototype_dequant_dc_idct_add(vp8_dequant_dc_idct_add_neon);
48 extern prototype_dequant_dc_idct_add_y_block(vp8_dequant_dc_idct_add_y_block_neon);
49 extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_neon);
50 extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_neon);
51 
52 #if !CONFIG_RUNTIME_CPU_DETECT
53 #undef  vp8_dequant_block
54 #define vp8_dequant_block vp8_dequantize_b_neon
55 
56 #undef vp8_dequant_idct_add
57 #define vp8_dequant_idct_add vp8_dequant_idct_add_neon
58 
59 #undef vp8_dequant_dc_idct_add
60 #define vp8_dequant_dc_idct_add vp8_dequant_dc_idct_add_neon
61 
62 #undef vp8_dequant_dc_idct_add_y_block
63 #define vp8_dequant_dc_idct_add_y_block vp8_dequant_dc_idct_add_y_block_neon
64 
65 #undef vp8_dequant_idct_add_y_block
66 #define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon
67 
68 #undef vp8_dequant_idct_add_uv_block
69 #define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon
70 #endif
71 #endif
72 
73 #endif
74