ref: 7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa
parent: 22d67c346fde9630b9accfdd3b3abe9840a061fe
author: Jingning Han <[email protected]>
date: Wed Oct 17 12:04:21 EDT 2018
Replace MAX_LAG_BUFFERS with MAX_ARF_GOP_SIZE for gop size MAX_ARF_GOP_SIZE accurately reflects the maximum frame operated per group of pictures. Use that to replace MAX_LAG_BUFFERS in such use cases. Change-Id: Id26f9b1b2b0c38f255dee19795356c387d06d033
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3578,7 +3578,7 @@
if (cpi->common.show_frame) return orig_rdmult;
- if (cpi->twopass.gf_group.index >= MAX_LAG_BUFFERS) return orig_rdmult;
+ if (cpi->twopass.gf_group.index >= MAX_ARF_GOP_SIZE) return orig_rdmult;
for (row = mi_row; row < mi_row + mi_high; ++row) {
for (col = mi_col; col < mi_col + mi_wide; ++col) {
@@ -5708,7 +5708,7 @@
if (sf->partition_search_type == SOURCE_VAR_BASED_PARTITION)
source_var_based_partition_search_method(cpi);
- } else if (gf_group_index && gf_group_index < MAX_LAG_BUFFERS &&
+ } else if (gf_group_index && gf_group_index < MAX_ARF_GOP_SIZE &&
cpi->sf.enable_tpl_model) {
TplDepFrame *tpl_frame = &cpi->tpl_stats[cpi->twopass.gf_group.index];
TplDepStats *tpl_stats = tpl_frame->tpl_stats_ptr;