void vp9_init_mode_contexts(VP9_COMMON *pc) {
vpx_memset(pc->fc.mv_ref_ct, 0, sizeof(pc->fc.mv_ref_ct));
+ vpx_memcpy(pc->fc.vp9_mode_contexts,
+ vp9_default_mode_contexts,
+ sizeof(vp9_default_mode_contexts));
}
void vp9_accum_mv_refs(VP9_COMMON *pc,
{14, 122, 22, 164}, // strong nz candidate(s), split
{16, 70, 9, 183}, // weak nz candidate(s), split
};
-const int vp9_default_mode_contexts_a[INTER_MODE_CONTEXTS][4] = {
- {204, 1, 1, 213}, // 0,0 best: Only candidate
- {106, 139, 22, 203}, // 0,0 best: non zero candidates
- {75, 52, 15, 118}, // 0,0 best: non zero candidates, split
- {12, 148, 61, 211}, // strong nz candidate(s), no split
- {18, 98, 17, 199}, // weak nz candidate(s), no split
- {11, 91, 25, 148}, // strong nz candidate(s), split
- {10, 53, 9, 145}, // weak nz candidate(s), split
-};
#define __INC_MODECONT_H
extern const int vp9_default_mode_contexts[INTER_MODE_CONTEXTS][4];
-extern const int vp9_default_mode_contexts_a[INTER_MODE_CONTEXTS][4];
#endif
pc->ref_frame_sign_bias[ALTREF_FRAME] = 0;
vp9_init_mode_contexts(&pbi->common);
- vpx_memcpy(pbi->common.fc.vp9_mode_contexts,
- vp9_default_mode_contexts,
- sizeof(vp9_default_mode_contexts));
-
vpx_memcpy(&pc->lfc, &pc->fc, sizeof(pc->fc));
vpx_memcpy(&pc->lfc_a, &pc->fc, sizeof(pc->fc));
- vpx_memcpy(pbi->common.lfc.vp9_mode_contexts,
- vp9_default_mode_contexts_a,
- sizeof(vp9_default_mode_contexts_a));
-
vpx_memset(pc->prev_mip, 0,
(pc->mb_cols + 1) * (pc->mb_rows + 1)* sizeof(MODE_INFO));
vpx_memset(pc->mip, 0,
cpi->common.refresh_alt_ref_frame = TRUE;
vp9_init_mode_contexts(&cpi->common);
- vpx_memcpy(cpi->common.fc.vp9_mode_contexts,
- vp9_default_mode_contexts,
- sizeof(vp9_default_mode_contexts));
vpx_memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc));
vpx_memcpy(&cpi->common.lfc_a, &cpi->common.fc, sizeof(cpi->common.fc));
- vpx_memcpy(cpi->common.lfc.vp9_mode_contexts,
- vp9_default_mode_contexts_a,
- sizeof(vp9_default_mode_contexts_a));
-
vpx_memset(cm->prev_mip, 0,
(cm->mb_cols + 1) * (cm->mb_rows + 1)* sizeof(MODE_INFO));
vpx_memset(cm->mip, 0,