Home | History | Annotate | Download | only in common
      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 #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 // The codec can operate in four possible inter prediction filter mode:
     29 // 8-tap, 8-tap-smooth, 8-tap-sharp, and switching between the three.
     30 #define SWITCHABLE_FILTER_CONTEXTS (SWITCHABLE_FILTERS + 1)
     31 #define SWITCHABLE 4 /* should be the last one */
     32 
     33 typedef uint8_t INTERP_FILTER;
     34 
     35 extern const InterpKernel *vp9_filter_kernels[4];
     36 
     37 #ifdef __cplusplus
     38 }  // extern "C"
     39 #endif
     40 
     41 #endif  // VP9_COMMON_VP9_FILTER_H_
     42