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 VPX_VP9_COMMON_VP9_FILTER_H_ 12 #define VPX_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 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #define EIGHTTAP 0 24 #define EIGHTTAP_SMOOTH 1 25 #define EIGHTTAP_SHARP 2 26 #define SWITCHABLE_FILTERS 3 /* Number of switchable filters */ 27 #define BILINEAR 3 28 #define FOURTAP 4 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[5]; 37 38 #ifdef __cplusplus 39 } // extern "C" 40 #endif 41 42 #endif // VPX_VP9_COMMON_VP9_FILTER_H_ 43