dequantize_arm.h 1.85 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 14
 */


#ifndef DEQUANTIZE_ARM_H
#define DEQUANTIZE_ARM_H

15
#if HAVE_MEDIA
John Koleszar's avatar
John Koleszar committed
16
extern prototype_dequant_block(vp8_dequantize_b_v6);
Johann's avatar
Johann committed
17
extern prototype_dequant_idct_add(vp8_dequant_idct_add_v6);
Fritz Koenig's avatar
Fritz Koenig committed
18 19
extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_v6);
extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_v6);
John Koleszar's avatar
John Koleszar committed
20

21
#if !CONFIG_RUNTIME_CPU_DETECT
John Koleszar's avatar
John Koleszar committed
22 23 24
#undef  vp8_dequant_block
#define vp8_dequant_block vp8_dequantize_b_v6

25
#undef  vp8_dequant_idct_add
Johann's avatar
Johann committed
26 27
#define vp8_dequant_idct_add vp8_dequant_idct_add_v6

28
#undef  vp8_dequant_idct_add_y_block
Fritz Koenig's avatar
Fritz Koenig committed
29 30
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_v6

31
#undef  vp8_dequant_idct_add_uv_block
Fritz Koenig's avatar
Fritz Koenig committed
32
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_v6
Johann's avatar
Johann committed
33
#endif
34
#endif
Johann's avatar
Johann committed
35

36
#if HAVE_NEON
John Koleszar's avatar
John Koleszar committed
37
extern prototype_dequant_block(vp8_dequantize_b_neon);
Johann's avatar
Johann committed
38
extern prototype_dequant_idct_add(vp8_dequant_idct_add_neon);
Fritz Koenig's avatar
Fritz Koenig committed
39 40
extern prototype_dequant_idct_add_y_block(vp8_dequant_idct_add_y_block_neon);
extern prototype_dequant_idct_add_uv_block(vp8_dequant_idct_add_uv_block_neon);
John Koleszar's avatar
John Koleszar committed
41

42

43
#if !CONFIG_RUNTIME_CPU_DETECT
John Koleszar's avatar
John Koleszar committed
44 45 46
#undef  vp8_dequant_block
#define vp8_dequant_block vp8_dequantize_b_neon

47
#undef  vp8_dequant_idct_add
Johann's avatar
Johann committed
48 49
#define vp8_dequant_idct_add vp8_dequant_idct_add_neon

50
#undef  vp8_dequant_idct_add_y_block
Fritz Koenig's avatar
Fritz Koenig committed
51 52
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon

53
#undef  vp8_dequant_idct_add_uv_block
Fritz Koenig's avatar
Fritz Koenig committed
54
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon
Johann's avatar
Johann committed
55
#endif
56

57
#endif
Johann's avatar
Johann committed
58

John Koleszar's avatar
John Koleszar committed
59
#endif