]> granicus.if.org Git - libvpx/commitdiff
Skip ACL recode loop for intermediate ARF layers
authorJingning Han <jingning@google.com>
Fri, 2 Nov 2018 18:31:38 +0000 (11:31 -0700)
committerJingning Han <jingning@google.com>
Tue, 13 Nov 2018 17:03:23 +0000 (09:03 -0800)
Speed up the encoding time by ~20% for multi-layer ARF system.

Change-Id: I16de1cfed7cd1815cf0269eb4f90ad74fdf087ee

vp9/encoder/vp9_encoder.c

index b0ad5e334cda3e92c3b4132c334a0462fe66f6c4..e269955c11bf396a645cf200716656b8a39b538d 100644 (file)
@@ -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();