vp9_quantize_arm.h 1.33 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5
6
 *  that can be found in the LICENSE file in the root of the source
 *  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.
John Koleszar's avatar
John Koleszar committed
9
10
11
 */


12
13
#ifndef VP9_ENCODER_ARM_VP9_QUANTIZE_ARM_H_
#define VP9_ENCODER_ARM_VP9_QUANTIZE_ARM_H_
John Koleszar's avatar
John Koleszar committed
14

Tero Rintaluoma's avatar
Tero Rintaluoma committed
15
16
17
18
#if HAVE_ARMV6

extern prototype_quantize_block(vp8_fast_quantize_b_armv6);

19
#if !CONFIG_RUNTIME_CPU_DETECT
Tero Rintaluoma's avatar
Tero Rintaluoma committed
20
21
#undef  vp8_quantize_fastquantb
#define vp8_quantize_fastquantb vp8_fast_quantize_b_armv6
22
#endif
Tero Rintaluoma's avatar
Tero Rintaluoma committed
23
24
25
26

#endif /* HAVE_ARMV6 */


John Koleszar's avatar
John Koleszar committed
27
#if HAVE_ARMV7
Tero Rintaluoma's avatar
Tero Rintaluoma committed
28

John Koleszar's avatar
John Koleszar committed
29
extern prototype_quantize_block(vp8_fast_quantize_b_neon);
30
extern prototype_quantize_block_pair(vp8_fast_quantize_b_pair_neon);
John Koleszar's avatar
John Koleszar committed
31

32
#if !CONFIG_RUNTIME_CPU_DETECT
Tero Rintaluoma's avatar
Tero Rintaluoma committed
33
34
#undef  vp8_quantize_fastquantb
#define vp8_quantize_fastquantb vp8_fast_quantize_b_neon
John Koleszar's avatar
John Koleszar committed
35

36
37
38
39
40
41
42
43
44
45
46
47
48
#undef  vp8_quantize_fastquantb_pair
#define vp8_quantize_fastquantb_pair vp8_fast_quantize_b_pair_neon

#undef vp8_quantize_mb
#define vp8_quantize_mb vp8_quantize_mb_neon

#undef vp8_quantize_mbuv
#define vp8_quantize_mbuv vp8_quantize_mbuv_neon

#undef vp8_quantize_mby
#define vp8_quantize_mby vp8_quantize_mby_neon
#endif

Tero Rintaluoma's avatar
Tero Rintaluoma committed
49
#endif /* HAVE_ARMV7 */
John Koleszar's avatar
John Koleszar committed
50
51

#endif
Tero Rintaluoma's avatar
Tero Rintaluoma committed
52