ref: a18946fbed5798f7f1cda5857669a9861afae960
parent: 4a8c248744500f9caf00588ca312efce5659e45e
author: Jingning Han <jingning@google.com>
date: Fri Nov 2 07:31:38 EDT 2018
Skip ACL recode loop for intermediate ARF layers Speed up the encoding time by ~20% for multi-layer ARF system. Change-Id: I16de1cfed7cd1815cf0269eb4f90ad74fdf087ee
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4013,9 +4013,9 @@
set_size_independent_vars(cpi);
- enable_acl = cpi->sf.allow_acl
- ? (cm->frame_type == KEY_FRAME) || (cm->show_frame == 0)
- : 0;
+ enable_acl = cpi->sf.allow_acl ? (cm->frame_type == KEY_FRAME) ||
+ (cpi->twopass.gf_group.index == 1)
+ : 0;
do {
vpx_clear_system_state();