rtc: Set candidate refresh to seg2 for compound mode
avg_psnr/ovr_psnr/ssim bdrate gain for sp9: ~0.6/0.5/0.8
most clips show small gain, a few clips ~2% gain
No speed change observed.
Change-Id: I78873f3afe8d04409cccbca319a55e1c294ae445
diff --git a/av1/encoder/aq_cyclicrefresh.c b/av1/encoder/aq_cyclicrefresh.c
index 1f9b11f..04df183 100644
--- a/av1/encoder/aq_cyclicrefresh.c
+++ b/av1/encoder/aq_cyclicrefresh.c
@@ -69,9 +69,9 @@
mv.col > cr->motion_thresh || mv.col < -cr->motion_thresh ||
!is_inter_block(mbmi)))
return CR_SEGMENT_ID_BASE;
- else if (bsize >= BLOCK_16X16 && rate < cr->thresh_rate_sb &&
- is_inter_block(mbmi) && mbmi->mv[0].as_int == 0 &&
- cr->rate_boost_fac > 10)
+ else if (is_compound || (bsize >= BLOCK_16X16 && rate < cr->thresh_rate_sb &&
+ is_inter_block(mbmi) && mbmi->mv[0].as_int == 0 &&
+ cr->rate_boost_fac > 10))
// More aggressive delta-q for bigger blocks with zero motion.
return CR_SEGMENT_ID_BOOST2;
else