summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2018-10-17 16:04:21 -0700
committerJingning Han <jingning@google.com>2018-10-17 16:11:37 -0700
commit7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa (patch)
treea8bc575833b41eac731ed2444f269a9bb6b76df5
parent22d67c346fde9630b9accfdd3b3abe9840a061fe (diff)
downloadlibvpx-7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa.tar
libvpx-7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa.tar.gz
libvpx-7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa.tar.bz2
libvpx-7dfb8e18f68ac7c6f853f82c269b02859fd8c3aa.zip
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
-rw-r--r--vp9/encoder/vp9_encodeframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index bdd5b39c1..b69ee6181 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3578,7 +3578,7 @@ int get_rdmult_delta(VP9_COMP *cpi, BLOCK_SIZE bsize, int mi_row, int mi_col,
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 @@ static void encode_frame_internal(VP9_COMP *cpi) {
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;