Allow external arf to determine gop size

When "rate_ctrl" experiment is on, we allow the external arf
passed from outside to determine group of picture size
in define_gf_group().

Change-Id: I0b8c3e1bf3087f21a4e484354168df4967d35bba
This commit is contained in:
Cheng Chen
2020-02-18 09:57:46 -08:00
parent 7e665ec968
commit 08b01d5e05
4 changed files with 57 additions and 21 deletions

View File

@@ -851,7 +851,8 @@ int SimpleEncode::GetCodingFrameNum() const {
FIRST_PASS_INFO first_pass_info;
fps_init_first_pass_info(&first_pass_info, impl_ptr_->first_pass_stats.data(),
num_frames_);
return vp9_get_coding_frame_num(&oxcf, &frame_info, &first_pass_info,
return vp9_get_coding_frame_num(/*encode_command=*/nullptr, &oxcf,
&frame_info, &first_pass_info,
multi_layer_arf, allow_alt_ref);
}