Remove an extra vp9_encode_frame call
authorAngie Chiang <angiebird@google.com>
Thu, 26 Jul 2018 21:14:19 +0000 (14:14 -0700)
committerAngie Chiang <angiebird@google.com>
Fri, 27 Jul 2018 17:47:00 +0000 (10:47 -0700)
The coding performances drop slightly in speed 0
lowres 0.021%
midres 0.043%
hdres 0.087%

The speedups in speed 0 are observed as follow
city_cif.y4m 4.5% speedup
pamphlet.y4m 6.9% speedup

Change-Id: I2f6209964ffdf7a93919b79033d8e6f9bc44d824

vp9/encoder/vp9_encoder.c

index ed2c177..d9f8afc 100644 (file)
@@ -4471,12 +4471,6 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size,
     vp9_encode_frame(cpi);
     vpx_clear_system_state();
     restore_coding_context(cpi);
-    vp9_pack_bitstream(cpi, dest, size);
-
-    vp9_encode_frame(cpi);
-    vpx_clear_system_state();
-
-    restore_coding_context(cpi);
   }
 }