Rework two_pass_first_group_inter()
authorJingning Han <jingning@google.com>
Mon, 10 Sep 2018 18:55:10 +0000 (11:55 -0700)
committerJingning Han <jingning@google.com>
Mon, 10 Sep 2018 19:00:08 +0000 (12:00 -0700)
commit9868499e4b6a2f986017c62a5adc6f1933fe992f
tree21c9d3379476b7381ba873170c81eefb3ab49daf
parent740083a97bb3ef0a11e45977611402a047099cfb
Rework two_pass_first_group_inter()

This function is used to in part decide if to trigger recode loop
for the first normal P frame in a GOP. Rework its design logic to
support the GOP with multi-layer ARF. Allow recode when there is
a transition from ARF/OVERLAY/USE_BUF to normal P frame.

The overall coding performance for multi-ARF gets slightly better
(less than 0.1% for show_existing_frame case). Tested on a few
clips, the encoding speed remains similar too. This change primarily
serves to help integration of multi-layer ARF and dual-ARF systems.

Change-Id: Ia44e44526b05029b1546985b3eb649e767d5444f
vp9/encoder/vp9_encoder.c