Commit 801fef26 authored by Jingning Han's avatar Jingning Han
Browse files

Skip comp inter mode test in RD loop with same frame bias signs

This commit allows the encoder to skip check on compound inter
modes in the rate-distortion optimization loop, if the reference
frame bias signs are the same.

Change-Id: Ib753e6bb11cbdd338aee69dbe2b649671f75a6b0
parent 33176fef
......@@ -2779,8 +2779,7 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
comp_pred = second_ref_frame > INTRA_FRAME;
if (comp_pred) {
if (cpi->sf.alt_ref_search_fp)
if (!cm->show_frame)
if (!cm->allow_comp_inter_inter)
if ((mode_search_skip_flags & FLAG_SKIP_COMP_BESTINTRA) &&
......@@ -3384,6 +3383,9 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
comp_pred = second_ref_frame > INTRA_FRAME;
if (comp_pred) {
if (!cm->allow_comp_inter_inter)
if (!(cpi->ref_frame_flags & flag_list[second_ref_frame]))
// Do not allow compound prediction if the segment level reference frame
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment