From: Jingning Han Date: Fri, 2 Nov 2018 18:31:38 +0000 (-0700) Subject: Skip ACL recode loop for intermediate ARF layers X-Git-Tag: v1.8.0~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a18946fbed5798f7f1cda5857669a9861afae960;p=libvpx Skip ACL recode loop for intermediate ARF layers Speed up the encoding time by ~20% for multi-layer ARF system. Change-Id: I16de1cfed7cd1815cf0269eb4f90ad74fdf087ee --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index b0ad5e334..e269955c1 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -4013,9 +4013,9 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size, 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();