1 /*
2  *  Copyright (c) 2011 The WebM project authors. All Rights Reserved.
3  *
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
6  *  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.
9  */
10 
11 #ifndef VP9_COMMON_VP9_FILTER_H_
12 #define VP9_COMMON_VP9_FILTER_H_
13 
14 #include "./vpx_config.h"
15 #include "vpx/vpx_integer.h"
16 #include "vpx_dsp/vpx_filter.h"
17 #include "vpx_ports/mem.h"
18 
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #define EIGHTTAP            0
25 #define EIGHTTAP_SMOOTH     1
26 #define EIGHTTAP_SHARP      2
27 #define SWITCHABLE_FILTERS  3 /* Number of switchable filters */
28 #define BILINEAR            3
29 // The codec can operate in four possible inter prediction filter mode:
30 // 8-tap, 8-tap-smooth, 8-tap-sharp, and switching between the three.
31 #define SWITCHABLE_FILTER_CONTEXTS (SWITCHABLE_FILTERS + 1)
32 #define SWITCHABLE 4 /* should be the last one */
33 
34 typedef uint8_t INTERP_FILTER;
35 
36 extern const InterpKernel *vp9_filter_kernels[4];
37 
38 #ifdef __cplusplus
39 }  // extern "C"
40 #endif
41 
42 #endif  // VP9_COMMON_VP9_FILTER_H_
43