Merge "Combining if-else branches from different conditions."
This commit is contained in:
commit
092f32cf78
@ -2724,6 +2724,7 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled,
|
|||||||
vp9_encode_intra_block_plane(x, MAX(bsize, BLOCK_8X8), plane);
|
vp9_encode_intra_block_plane(x, MAX(bsize, BLOCK_8X8), plane);
|
||||||
if (output_enabled)
|
if (output_enabled)
|
||||||
sum_intra_stats(&cm->counts, mi);
|
sum_intra_stats(&cm->counts, mi);
|
||||||
|
vp9_tokenize_sb(cpi, t, !output_enabled, MAX(bsize, BLOCK_8X8));
|
||||||
} else {
|
} else {
|
||||||
int ref;
|
int ref;
|
||||||
const int is_compound = has_second_ref(mbmi);
|
const int is_compound = has_second_ref(mbmi);
|
||||||
@ -2733,11 +2734,8 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled,
|
|||||||
setup_pre_planes(xd, ref, cfg, mi_row, mi_col, &xd->block_refs[ref]->sf);
|
setup_pre_planes(xd, ref, cfg, mi_row, mi_col, &xd->block_refs[ref]->sf);
|
||||||
}
|
}
|
||||||
vp9_build_inter_predictors_sb(xd, mi_row, mi_col, MAX(bsize, BLOCK_8X8));
|
vp9_build_inter_predictors_sb(xd, mi_row, mi_col, MAX(bsize, BLOCK_8X8));
|
||||||
}
|
|
||||||
|
|
||||||
if (!is_inter_block(mbmi)) {
|
if (!x->skip) {
|
||||||
vp9_tokenize_sb(cpi, t, !output_enabled, MAX(bsize, BLOCK_8X8));
|
|
||||||
} else if (!x->skip) {
|
|
||||||
mbmi->skip = 1;
|
mbmi->skip = 1;
|
||||||
vp9_encode_sb(x, MAX(bsize, BLOCK_8X8));
|
vp9_encode_sb(x, MAX(bsize, BLOCK_8X8));
|
||||||
vp9_tokenize_sb(cpi, t, !output_enabled, MAX(bsize, BLOCK_8X8));
|
vp9_tokenize_sb(cpi, t, !output_enabled, MAX(bsize, BLOCK_8X8));
|
||||||
@ -2747,6 +2745,7 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled,
|
|||||||
cm->counts.skip[vp9_get_skip_context(xd)][1]++;
|
cm->counts.skip[vp9_get_skip_context(xd)][1]++;
|
||||||
reset_skip_context(xd, MAX(bsize, BLOCK_8X8));
|
reset_skip_context(xd, MAX(bsize, BLOCK_8X8));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (output_enabled) {
|
if (output_enabled) {
|
||||||
if (cm->tx_mode == TX_MODE_SELECT &&
|
if (cm->tx_mode == TX_MODE_SELECT &&
|
||||||
|
Loading…
Reference in New Issue
Block a user