#ifndef AOM_AV1_COMMON_PRED_COMMON_H_
#define AOM_AV1_COMMON_PRED_COMMON_H_
#include <stdint.h>
#include "av1/common/av1_common_int.h"
#include "av1/common/blockd.h"
#include "av1/common/mvref_common.h"
#include "aom_dsp/aom_dsp_common.h"
#ifdef __cplusplus
extern "C" {
#endif
static inline uint8_t get_segment_id(
const CommonModeInfoParams *const mi_params, const uint8_t *segment_ids,
BLOCK_SIZE bsize, int mi_row, int mi_col) { … }
static inline uint8_t av1_get_spatial_seg_pred(const AV1_COMMON *const cm,
const MACROBLOCKD *const xd,
int *cdf_index,
int skip_over4x4) { … }
static inline uint8_t av1_get_pred_context_seg_id(const MACROBLOCKD *xd) { … }
static inline int get_comp_index_context(const AV1_COMMON *cm,
const MACROBLOCKD *xd) { … }
static inline int get_comp_group_idx_context(const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_seg_id(
struct segmentation_probs *segp, const MACROBLOCKD *xd) { … }
static inline int av1_get_skip_mode_context(const MACROBLOCKD *xd) { … }
static inline int av1_get_skip_txfm_context(const MACROBLOCKD *xd) { … }
int av1_get_pred_context_switchable_interp(const MACROBLOCKD *xd, int dir);
int av1_get_palette_cache(const MACROBLOCKD *const xd, int plane,
uint16_t *cache);
static inline int av1_get_palette_bsize_ctx(BLOCK_SIZE bsize) { … }
static inline int av1_get_palette_mode_ctx(const MACROBLOCKD *xd) { … }
int av1_get_intra_inter_context(const MACROBLOCKD *xd);
int av1_get_reference_mode_context(const MACROBLOCKD *xd);
static inline aom_cdf_prob *av1_get_reference_mode_cdf(const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_skip_txfm_cdf(const MACROBLOCKD *xd) { … }
int av1_get_comp_reference_type_context(const MACROBLOCKD *xd);
int av1_get_pred_context_uni_comp_ref_p(const MACROBLOCKD *xd);
int av1_get_pred_context_uni_comp_ref_p1(const MACROBLOCKD *xd);
int av1_get_pred_context_uni_comp_ref_p2(const MACROBLOCKD *xd);
static inline aom_cdf_prob *av1_get_comp_reference_type_cdf(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_uni_comp_ref_p(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_uni_comp_ref_p1(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_uni_comp_ref_p2(
const MACROBLOCKD *xd) { … }
int av1_get_pred_context_comp_ref_p(const MACROBLOCKD *xd);
int av1_get_pred_context_comp_ref_p1(const MACROBLOCKD *xd);
int av1_get_pred_context_comp_ref_p2(const MACROBLOCKD *xd);
int av1_get_pred_context_comp_bwdref_p(const MACROBLOCKD *xd);
int av1_get_pred_context_comp_bwdref_p1(const MACROBLOCKD *xd);
static inline aom_cdf_prob *av1_get_pred_cdf_comp_ref_p(const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_comp_ref_p1(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_comp_ref_p2(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_comp_bwdref_p(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_comp_bwdref_p1(
const MACROBLOCKD *xd) { … }
int av1_get_pred_context_single_ref_p1(const MACROBLOCKD *xd);
int av1_get_pred_context_single_ref_p2(const MACROBLOCKD *xd);
int av1_get_pred_context_single_ref_p3(const MACROBLOCKD *xd);
int av1_get_pred_context_single_ref_p4(const MACROBLOCKD *xd);
int av1_get_pred_context_single_ref_p5(const MACROBLOCKD *xd);
int av1_get_pred_context_single_ref_p6(const MACROBLOCKD *xd);
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p1(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p2(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p3(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p4(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p5(
const MACROBLOCKD *xd) { … }
static inline aom_cdf_prob *av1_get_pred_cdf_single_ref_p6(
const MACROBLOCKD *xd) { … }
static inline int get_tx_size_context(const MACROBLOCKD *xd) { … }
#ifdef __cplusplus
}
#endif
#endif