Use a constant rdmult in tpl pass
The inter/intra cost uses rdcost. Hence the tpl pass needs a
constant rdmult across the sub-gop.
BUG=b/257303751
Change-Id: I2a2aa2c39b7bc6db624d529cba4318358578466b
diff --git a/av1/qmode_rc/ratectrl_qmode.cc b/av1/qmode_rc/ratectrl_qmode.cc
index cff7514..f560b1f 100644
--- a/av1/qmode_rc/ratectrl_qmode.cc
+++ b/av1/qmode_rc/ratectrl_qmode.cc
@@ -1399,7 +1399,10 @@
// Use constant QP for TPL pass encoding. Keep the functionality
// that allows QP changes across sub-gop.
param.q_index = rc_param_.base_q_index;
- param.rdmult = GetRDMult(gop_frame, param.q_index);
+ param.rdmult = av1_compute_rd_mult_based_on_qindex(AOM_BITS_8, LF_UPDATE,
+ rc_param_.base_q_index);
+ // TODO(jingning): gop_frame is needed in two pass tpl later.
+ (void)gop_frame;
gop_encode_info.param_list.push_back(param);
}
return gop_encode_info;