Use the updated struct for delta-q interface Bug: b/256852795 Change-Id: Id0b96f64553ad7d0c930f27cf652cbb8cc707a81
diff --git a/av1/qmode_rc/ratectrl_qmode.cc b/av1/qmode_rc/ratectrl_qmode.cc index 40fcab0..1de1ea5 100644 --- a/av1/qmode_rc/ratectrl_qmode.cc +++ b/av1/qmode_rc/ratectrl_qmode.cc
@@ -1412,9 +1412,13 @@ active_best_quality = param.q_index; if (rc_param_.max_distinct_q_indices_per_frame > 1) { - param.superblock_q_indices = SetupDeltaQ( + std::vector<uint8_t> superblock_q_indices = SetupDeltaQ( frame_dep_stats, rc_param_.frame_width, rc_param_.frame_height, param.q_index, frame_importance); + for (auto &qindex : superblock_q_indices) { + // TODO(jianj): Calcualte rdmult per SB. + param.superblock_encode_params.push_back({ qindex, 0 }); + } // TODO(b/256852795): Implement K-means to restrict the numbers of q // indices to rc_param_.max_distinct_q_indices_per_frame }