Removing redundant call of vp9_init_mbmode_probs().
This function is called from vp9_setup_past_independence() which is called before the modified piece of code. Moving reset of inter_mode_probs into vp9_init_mbmode_probs() for consistency. Change-Id: Ib188e8798e1fbe15407fd501406761b746fdda95
This commit is contained in:
parent
44dd3274da
commit
c90b6bb101
@ -329,6 +329,7 @@ void vp9_init_mbmode_probs(VP9_COMMON *cm) {
|
||||
vp9_copy(cm->fc.single_ref_prob, default_single_ref_p);
|
||||
cm->fc.tx_probs = default_tx_probs;
|
||||
vp9_copy(cm->fc.mbskip_probs, default_mbskip_probs);
|
||||
vp9_copy(cm->fc.inter_mode_probs, default_inter_mode_probs);
|
||||
}
|
||||
|
||||
const vp9_tree_index vp9_switchable_interp_tree
|
||||
@ -466,7 +467,6 @@ void vp9_setup_past_independence(VP9_COMMON *cm) {
|
||||
vp9_default_coef_probs(cm);
|
||||
vp9_init_mbmode_probs(cm);
|
||||
vp9_init_mv_probs(cm);
|
||||
vp9_copy(cm->fc.inter_mode_probs, default_inter_mode_probs);
|
||||
|
||||
if (cm->frame_type == KEY_FRAME ||
|
||||
cm->error_resilient_mode || cm->reset_frame_context == 3) {
|
||||
|
@ -1868,10 +1868,6 @@ static void init_encode_frame_mb_context(VP9_COMP *cpi) {
|
||||
|
||||
xd->mode_info_stride = cm->mode_info_stride;
|
||||
|
||||
// reset intra mode contexts
|
||||
if (frame_is_intra_only(cm))
|
||||
vp9_init_mbmode_probs(cm);
|
||||
|
||||
// Copy data over into macro block data structures.
|
||||
vp9_setup_src_planes(x, cpi->Source, 0, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user