shithub: libvpx

Download patch

ref: 93edd79f0e7b61910e1bdb270e33ead5f623801a
parent: 796478a8c9ef4004d919bb695934fb352793a2ad
parent: 7cc12cbe0e8989a770d1411062154d4f410e8af4
author: Jingning Han <jingning@google.com>
date: Thu Sep 20 23:32:08 EDT 2018

Merge "Skip checking compound modes with same sign bias for sub8x8"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3985,6 +3985,11 @@
     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.