ref: f13a37cbf7e5936a425498d0f5f9d96a1f6eff45
parent: 3ef16b45e61bf6e573a48e9c97562b551d966efd
author: Jingning Han <jingning@google.com>
date: Tue Jul 10 10:40:56 EDT 2018
Fix the denominator in tpl model The factor mc_dep_cost includes intra_cost additiona already. Hence no need to add it again in the denominator. Change-Id: I750ae86e1d3019b4a3aebd03dec8db362589619e
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3648,7 +3648,7 @@
}
}
- rk = (double)intra_cost / (intra_cost + mc_dep_cost);
+ rk = (double)intra_cost / mc_dep_cost;
beta = r0 / rk;
dr = vp9_get_adaptive_rdmult(cpi, beta);
@@ -5460,8 +5460,7 @@
}
if (tpl_frame->is_valid)
- cpi->rd.r0 =
- (double)intra_cost_base / (intra_cost_base + mc_dep_cost_base);
+ cpi->rd.r0 = (double)intra_cost_base / mc_dep_cost_base;
}
{