OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 BILINEAR = 3, | 34 BILINEAR = 3, |
35 SWITCHABLE = 4 /* should be the last one */ | 35 SWITCHABLE = 4 /* should be the last one */ |
36 } INTERP_FILTER; | 36 } INTERP_FILTER; |
37 | 37 |
38 typedef int16_t InterpKernel[SUBPEL_TAPS]; | 38 typedef int16_t InterpKernel[SUBPEL_TAPS]; |
39 | 39 |
40 const InterpKernel *vp9_get_interp_kernel(INTERP_FILTER filter); | 40 const InterpKernel *vp9_get_interp_kernel(INTERP_FILTER filter); |
41 | 41 |
42 DECLARE_ALIGNED(256, extern const InterpKernel, | 42 DECLARE_ALIGNED(256, extern const InterpKernel, |
43 vp9_bilinear_filters[SUBPEL_SHIFTS]); | 43 vp9_bilinear_filters[SUBPEL_SHIFTS]); |
44 DECLARE_ALIGNED(256, extern const InterpKernel, | |
45 vp9_sub_pel_filters_8[SUBPEL_SHIFTS]); | |
46 DECLARE_ALIGNED(256, extern const InterpKernel, | |
47 vp9_sub_pel_filters_8s[SUBPEL_SHIFTS]); | |
48 DECLARE_ALIGNED(256, extern const InterpKernel, | |
49 vp9_sub_pel_filters_8lp[SUBPEL_SHIFTS]); | |
50 | 44 |
51 // The VP9_BILINEAR_FILTERS_2TAP macro returns a pointer to the bilinear | 45 // The VP9_BILINEAR_FILTERS_2TAP macro returns a pointer to the bilinear |
52 // filter kernel as a 2 tap filter. | 46 // filter kernel as a 2 tap filter. |
53 #define BILINEAR_FILTERS_2TAP(x) \ | 47 #define BILINEAR_FILTERS_2TAP(x) \ |
54 (vp9_bilinear_filters[(x)] + SUBPEL_TAPS/2 - 1) | 48 (vp9_bilinear_filters[(x)] + SUBPEL_TAPS/2 - 1) |
55 | 49 |
56 #ifdef __cplusplus | 50 #ifdef __cplusplus |
57 } // extern "C" | 51 } // extern "C" |
58 #endif | 52 #endif |
59 | 53 |
60 #endif // VP9_COMMON_VP9_FILTER_H_ | 54 #endif // VP9_COMMON_VP9_FILTER_H_ |
OLD | NEW |