Adjust parameters of the customized GF structure
Tweak the parameters for the customized GF structure (GF = 4)
so that the coding perfromance of the new structure can match
the performance of the old structure.
This patch is to identify the places we need to take extra
care of when building a longer GF structure.
Change-Id: I5412109db037655b7d692c7915580a28817b3ca0
diff --git a/av1/encoder/ratectrl.c b/av1/encoder/ratectrl.c
index 6aa3d76..5e6536f 100644
--- a/av1/encoder/ratectrl.c
+++ b/av1/encoder/ratectrl.c
@@ -930,11 +930,14 @@
ASSIGN_MINQ_TABLE(cm->bit_depth, inter_minq);
#if CUSTOMIZED_GF
- const int is_intrl_arf_boost =
+ int is_intrl_arf_boost =
gf_group->update_type[gf_group->index] == INTNL_ARF_UPDATE;
+#if MATCH_OLD_BITRATE
+ if (cpi->new_bwdref_update_rule == 1) is_intrl_arf_boost = 0;
+#endif
#else
const int is_intrl_arf_boost = cpi->refresh_alt2_ref_frame;
-#endif
+#endif // CUSTOMIZED_GF
if (frame_is_intra_only(cm)) {
// Handle the special case for key frames forced when we have reached