#ifndef VPX_VP9_COMMON_VP9_PRED_COMMON_H_
#define VPX_VP9_COMMON_VP9_PRED_COMMON_H_
#include "vp9/common/vp9_blockd.h"
#include "vp9/common/vp9_onyxc_int.h"
#include "vpx_dsp/vpx_dsp_common.h"
#ifdef __cplusplus
extern "C" {
#endif
static INLINE int get_segment_id(const VP9_COMMON *cm,
const uint8_t *segment_ids, BLOCK_SIZE bsize,
int mi_row, int mi_col) { … }
static INLINE int vp9_get_pred_context_seg_id(const MACROBLOCKD *xd) { … }
static INLINE vpx_prob vp9_get_pred_prob_seg_id(const struct segmentation *seg,
const MACROBLOCKD *xd) { … }
static INLINE int vp9_get_skip_context(const MACROBLOCKD *xd) { … }
static INLINE vpx_prob vp9_get_skip_prob(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
static INLINE int get_pred_context_switchable_interp(const MACROBLOCKD *xd) { … }
static INLINE int get_intra_inter_context(const MACROBLOCKD *xd) { … }
static INLINE vpx_prob vp9_get_intra_inter_prob(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
int vp9_get_reference_mode_context(const VP9_COMMON *cm, const MACROBLOCKD *xd);
static INLINE vpx_prob vp9_get_reference_mode_prob(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
int vp9_get_pred_context_comp_ref_p(const VP9_COMMON *cm,
const MACROBLOCKD *xd);
static INLINE vpx_prob vp9_get_pred_prob_comp_ref_p(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
int vp9_get_pred_context_single_ref_p1(const MACROBLOCKD *xd);
static INLINE vpx_prob vp9_get_pred_prob_single_ref_p1(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
int vp9_get_pred_context_single_ref_p2(const MACROBLOCKD *xd);
static INLINE vpx_prob vp9_get_pred_prob_single_ref_p2(const VP9_COMMON *cm,
const MACROBLOCKD *xd) { … }
int vp9_compound_reference_allowed(const VP9_COMMON *cm);
void vp9_setup_compound_reference_mode(VP9_COMMON *cm);
static INLINE int get_tx_size_context(const MACROBLOCKD *xd) { … }
static INLINE const vpx_prob *get_tx_probs(TX_SIZE max_tx_size, int ctx,
const struct tx_probs *tx_probs) { … }
static INLINE unsigned int *get_tx_counts(TX_SIZE max_tx_size, int ctx,
struct tx_counts *tx_counts) { … }
#ifdef __cplusplus
}
#endif
#endif