Commit cc9302fdc6 for aom
commit cc9302fdc6ad33d49b8c1106b4eb7e240e2561b1
Author: Jingning Han <jingning@google.com>
Date: Tue Dec 9 15:37:47 2025 -0800
Set qp values for arf generation
Change-Id: Id13cc4510f7230961eb5d8a14c31ac45182cb4d6
diff --git a/av1/encoder/temporal_filter.c b/av1/encoder/temporal_filter.c
index 1fab6bf976..4437110e3a 100644
--- a/av1/encoder/temporal_filter.c
+++ b/av1/encoder/temporal_filter.c
@@ -87,6 +87,13 @@ static inline void get_log_var_4x4sub_blk(
static int get_q(const AV1_COMP *cpi) {
const GF_GROUP *gf_group = &cpi->ppi->gf_group;
const FRAME_TYPE frame_type = gf_group->frame_type[cpi->gf_frame_index];
+
+ if (cpi->oxcf.rc_cfg.mode == AOM_Q) {
+ int cq_level = cpi->oxcf.rc_cfg.cq_level;
+ return (int)av1_convert_qindex_to_q(cq_level,
+ cpi->common.seq_params->bit_depth);
+ }
+
const int q =
(int)av1_convert_qindex_to_q(cpi->ppi->p_rc.avg_frame_qindex[frame_type],
cpi->common.seq_params->bit_depth);