vp9_subpixel_arm.h 3.04 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_COMMON_ARM_VP9_SUBPIXEL_ARM_H_
#define VP9_COMMON_ARM_VP9_SUBPIXEL_ARM_H_
John Koleszar's avatar
John Koleszar committed
14 15

#if HAVE_ARMV6
16 17 18 19 20 21 22 23
extern prototype_subpixel_predict(vp9_sixtap_predict16x16_armv6);
extern prototype_subpixel_predict(vp9_sixtap_predict8x8_armv6);
extern prototype_subpixel_predict(vp9_sixtap_predict8x4_armv6);
extern prototype_subpixel_predict(vp9_sixtap_predict_armv6);
extern prototype_subpixel_predict(vp9_bilinear_predict16x16_armv6);
extern prototype_subpixel_predict(vp9_bilinear_predict8x8_armv6);
extern prototype_subpixel_predict(vp9_bilinear_predict8x4_armv6);
extern prototype_subpixel_predict(vp9_bilinear_predict4x4_armv6);
John Koleszar's avatar
John Koleszar committed
24

25
#if !CONFIG_RUNTIME_CPU_DETECT
26 27
#undef  vp9_subpix_sixtap16x16
#define vp9_subpix_sixtap16x16 vp9_sixtap_predict16x16_armv6
John Koleszar's avatar
John Koleszar committed
28

29 30
#undef  vp9_subpix_sixtap8x8
#define vp9_subpix_sixtap8x8 vp9_sixtap_predict8x8_armv6
John Koleszar's avatar
John Koleszar committed
31

32 33
#undef  vp9_subpix_sixtap8x4
#define vp9_subpix_sixtap8x4 vp9_sixtap_predict8x4_armv6
John Koleszar's avatar
John Koleszar committed
34

35 36
#undef  vp9_subpix_sixtap4x4
#define vp9_subpix_sixtap4x4 vp9_sixtap_predict_armv6
John Koleszar's avatar
John Koleszar committed
37

38 39
#undef  vp9_subpix_bilinear16x16
#define vp9_subpix_bilinear16x16 vp9_bilinear_predict16x16_armv6
John Koleszar's avatar
John Koleszar committed
40

41 42
#undef  vp9_subpix_bilinear8x8
#define vp9_subpix_bilinear8x8 vp9_bilinear_predict8x8_armv6
John Koleszar's avatar
John Koleszar committed
43

44 45
#undef  vp9_subpix_bilinear8x4
#define vp9_subpix_bilinear8x4 vp9_bilinear_predict8x4_armv6
John Koleszar's avatar
John Koleszar committed
46

47 48
#undef  vp9_subpix_bilinear4x4
#define vp9_subpix_bilinear4x4 vp9_bilinear_predict4x4_armv6
John Koleszar's avatar
John Koleszar committed
49
#endif
50
#endif
John Koleszar's avatar
John Koleszar committed
51 52

#if HAVE_ARMV7
53 54 55 56 57 58 59 60
extern prototype_subpixel_predict(vp9_sixtap_predict16x16_neon);
extern prototype_subpixel_predict(vp9_sixtap_predict8x8_neon);
extern prototype_subpixel_predict(vp9_sixtap_predict8x4_neon);
extern prototype_subpixel_predict(vp9_sixtap_predict_neon);
extern prototype_subpixel_predict(vp9_bilinear_predict16x16_neon);
extern prototype_subpixel_predict(vp9_bilinear_predict8x8_neon);
extern prototype_subpixel_predict(vp9_bilinear_predict8x4_neon);
extern prototype_subpixel_predict(vp9_bilinear_predict4x4_neon);
John Koleszar's avatar
John Koleszar committed
61

62
#if !CONFIG_RUNTIME_CPU_DETECT
63 64
#undef  vp9_subpix_sixtap16x16
#define vp9_subpix_sixtap16x16 vp9_sixtap_predict16x16_neon
John Koleszar's avatar
John Koleszar committed
65

66 67
#undef  vp9_subpix_sixtap8x8
#define vp9_subpix_sixtap8x8 vp9_sixtap_predict8x8_neon
John Koleszar's avatar
John Koleszar committed
68

69 70
#undef  vp9_subpix_sixtap8x4
#define vp9_subpix_sixtap8x4 vp9_sixtap_predict8x4_neon
John Koleszar's avatar
John Koleszar committed
71

72 73
#undef  vp9_subpix_sixtap4x4
#define vp9_subpix_sixtap4x4 vp9_sixtap_predict_neon
John Koleszar's avatar
John Koleszar committed
74

75 76
#undef  vp9_subpix_bilinear16x16
#define vp9_subpix_bilinear16x16 vp9_bilinear_predict16x16_neon
John Koleszar's avatar
John Koleszar committed
77

78 79
#undef  vp9_subpix_bilinear8x8
#define vp9_subpix_bilinear8x8 vp9_bilinear_predict8x8_neon
John Koleszar's avatar
John Koleszar committed
80

81 82
#undef  vp9_subpix_bilinear8x4
#define vp9_subpix_bilinear8x4 vp9_bilinear_predict8x4_neon
John Koleszar's avatar
John Koleszar committed
83

84 85
#undef  vp9_subpix_bilinear4x4
#define vp9_subpix_bilinear4x4 vp9_bilinear_predict4x4_neon
John Koleszar's avatar
John Koleszar committed
86
#endif
87
#endif
John Koleszar's avatar
John Koleszar committed
88 89

#endif