Move show_existing_alt_ref to AV1_PRIMARY
Moved show_existing_alt_ref from AV1_COMP to AV1_PRIMARY.
Change-Id: Ida9590a294ea84d10419ee12b23c5b3caa7b0653
diff --git a/av1/encoder/encode_strategy.c b/av1/encoder/encode_strategy.c
index af01945..52dba95 100644
--- a/av1/encoder/encode_strategy.c
+++ b/av1/encoder/encode_strategy.c
@@ -985,7 +985,7 @@
// Currently INTNL_ARF_UPDATE only do show_existing.
if (update_type == ARF_UPDATE &&
gf_group->frame_type[cpi->gf_frame_index] != KEY_FRAME) {
- cpi->show_existing_alt_ref = show_existing_alt_ref;
+ cpi->ppi->show_existing_alt_ref = show_existing_alt_ref;
}
}
#if CONFIG_COLLECT_COMPONENT_TIMING
@@ -1538,7 +1538,7 @@
frame_params.show_existing_frame = 1;
} else {
frame_params.show_existing_frame =
- (cpi->show_existing_alt_ref &&
+ (cpi->ppi->show_existing_alt_ref &&
gf_group->update_type[cpi->gf_frame_index] == OVERLAY_UPDATE) ||
gf_group->update_type[cpi->gf_frame_index] == INTNL_OVERLAY_UPDATE;
}
@@ -1546,7 +1546,7 @@
// Reset show_existing_alt_ref decision to 0 after it is used.
if (gf_group->update_type[cpi->gf_frame_index] == OVERLAY_UPDATE) {
- cpi->show_existing_alt_ref = 0;
+ cpi->ppi->show_existing_alt_ref = 0;
}
} else {
frame_params.show_existing_frame = 0;