diff options
author | Jingning Han <jingning@google.com> | 2018-09-18 15:56:03 -0700 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2018-09-20 08:58:55 -0700 |
commit | 7cc12cbe0e8989a770d1411062154d4f410e8af4 (patch) | |
tree | ae1d3a68bf6f694cd7d152f2c60837865a20e2f8 | |
parent | 4770f851a893123b76b204dad85a7a09dfb1b6ed (diff) | |
download | libvpx-7cc12cbe0e8989a770d1411062154d4f410e8af4.tar libvpx-7cc12cbe0e8989a770d1411062154d4f410e8af4.tar.gz libvpx-7cc12cbe0e8989a770d1411062154d4f410e8af4.tar.bz2 libvpx-7cc12cbe0e8989a770d1411062154d4f410e8af4.zip |
Skip checking compound modes with same sign bias for sub8x8
Drop the check of compound modes where the two reference frames
share the same reference frame sign bias in sub8x8 coding blocks.
Change-Id: I47b45256582b2b5ea1372c9130d8f28cd226a29c
-rw-r--r-- | vp9/encoder/vp9_rdopt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 3c15af368..8fa01bd68 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -3985,6 +3985,11 @@ void vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, TileDataEnc *tile_data, comp_pred = second_ref_frame > INTRA_FRAME; if (comp_pred) { if (!cpi->allow_comp_inter_inter) continue; + + if (cm->ref_frame_sign_bias[ref_frame] == + cm->ref_frame_sign_bias[second_ref_frame]) + continue; + if (!(cpi->ref_frame_flags & flag_list[second_ref_frame])) continue; // Do not allow compound prediction if the segment level reference frame // feature is in use as in this case there can only be one reference. |