dequantize_arm.h 2.54 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 15 16
 */


#ifndef DEQUANTIZE_ARM_H
#define DEQUANTIZE_ARM_H

#if HAVE_ARMV6
extern prototype_dequant_block(vp8_dequantize_b_v6);
Johann's avatar
Johann committed
17 18
extern prototype_dequant_idct_add(vp8_dequant_idct_add_v6);
extern prototype_dequant_dc_idct_add(vp8_dequant_dc_idct_add_v6);
Fritz Koenig's avatar
Fritz Koenig committed
19 20 21
extern prototype_dequant_dc_idct_add_y_block(vp8_dequant_dc_idct_add_y_block_v6);
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
22

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

Johann's avatar
Johann committed
27 28 29 30 31
#undef vp8_dequant_idct_add
#define vp8_dequant_idct_add vp8_dequant_idct_add_v6

#undef vp8_dequant_dc_idct_add
#define vp8_dequant_dc_idct_add vp8_dequant_dc_idct_add_v6
Fritz Koenig's avatar
Fritz Koenig committed
32 33 34 35 36 37 38 39 40

#undef vp8_dequant_dc_idct_add_y_block
#define vp8_dequant_dc_idct_add_y_block vp8_dequant_dc_idct_add_y_block_v6

#undef vp8_dequant_idct_add_y_block
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_v6

#undef vp8_dequant_idct_add_uv_block
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_v6
Johann's avatar
Johann committed
41
#endif
42
#endif
Johann's avatar
Johann committed
43

John Koleszar's avatar
John Koleszar committed
44 45
#if HAVE_ARMV7
extern prototype_dequant_block(vp8_dequantize_b_neon);
Johann's avatar
Johann committed
46 47
extern prototype_dequant_idct_add(vp8_dequant_idct_add_neon);
extern prototype_dequant_dc_idct_add(vp8_dequant_dc_idct_add_neon);
Fritz Koenig's avatar
Fritz Koenig committed
48 49 50
extern prototype_dequant_dc_idct_add_y_block(vp8_dequant_dc_idct_add_y_block_neon);
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
51

52
#if !CONFIG_RUNTIME_CPU_DETECT
John Koleszar's avatar
John Koleszar committed
53 54 55
#undef  vp8_dequant_block
#define vp8_dequant_block vp8_dequantize_b_neon

Johann's avatar
Johann committed
56 57 58 59 60
#undef vp8_dequant_idct_add
#define vp8_dequant_idct_add vp8_dequant_idct_add_neon

#undef vp8_dequant_dc_idct_add
#define vp8_dequant_dc_idct_add vp8_dequant_dc_idct_add_neon
Fritz Koenig's avatar
Fritz Koenig committed
61 62 63 64 65 66 67 68 69

#undef vp8_dequant_dc_idct_add_y_block
#define vp8_dequant_dc_idct_add_y_block vp8_dequant_dc_idct_add_y_block_neon

#undef vp8_dequant_idct_add_y_block
#define vp8_dequant_idct_add_y_block vp8_dequant_idct_add_y_block_neon

#undef vp8_dequant_idct_add_uv_block
#define vp8_dequant_idct_add_uv_block vp8_dequant_idct_add_uv_block_neon
Johann's avatar
Johann committed
70
#endif
71
#endif
Johann's avatar
Johann committed
72

John Koleszar's avatar
John Koleszar committed
73
#endif