AV1 RT: Add bias for NEWMV for speed 7
Overall BDRate and Speed impact is small (0.047%), but for high motion
clip we see better MV field and some PSNR gain
Change-Id: I82314f7e7fa8aae104c677a4ba50b304ad2e57f1
diff --git a/av1/encoder/nonrd_pickmode.c b/av1/encoder/nonrd_pickmode.c
index b23a231..3060a36 100644
--- a/av1/encoder/nonrd_pickmode.c
+++ b/av1/encoder/nonrd_pickmode.c
@@ -1020,8 +1020,8 @@
}
row_diff = al_mv_average_row - mv_row;
col_diff = al_mv_average_col - mv_col;
- if (row_diff > 48 || row_diff < -48 || col_diff > 48 || col_diff < -48) {
- if (bsize > BLOCK_32X32)
+ if (row_diff > 80 || row_diff < -80 || col_diff > 80 || col_diff < -80) {
+ if (bsize >= BLOCK_32X32)
this_rdc->rdcost = this_rdc->rdcost << 1;
else
this_rdc->rdcost = 5 * this_rdc->rdcost >> 2;
@@ -1828,7 +1828,7 @@
this_rdc.rate += ref_costs_single[ref_frame];
this_rdc.rdcost = RDCOST(x->rdmult, this_rdc.rate, this_rdc.dist);
- if (cpi->oxcf.rc_mode == AOM_CBR && cpi->oxcf.speed >= 8) {
+ if (cpi->oxcf.rc_mode == AOM_CBR) {
newmv_diff_bias(xd, this_mode, &this_rdc, bsize,
frame_mv[this_mode][ref_frame].as_mv.row,
frame_mv[this_mode][ref_frame].as_mv.col);