L2E: properly init two pass rc parameters
authorCheng Chen <chengchen@google.com>
Thu, 27 May 2021 22:38:28 +0000 (15:38 -0700)
committerCheng Chen <chengchen@google.com>
Tue, 8 Jun 2021 00:41:23 +0000 (17:41 -0700)
commit463d33145de28770f815466db0ffc85d14442043
tree9104b49cfb54568655b85b6610298c40fa469712
parentb8273e8ae5c14bccefde96170507336a4f15c98c
L2E: properly init two pass rc parameters

Two pass rc parameters are only initialized in the second pass
in vp9 normal two pass encoding.
However, the simple_encode API queries the keyframe group, arf group,
and number of coding frames without going throught the two pass
route.
Since recent libvpx rc changes, parameters in the TWO_PASS
struct have a great influence on the determination of the above
information.
We therefore need to properly init two pass rc parameters in
the simple_encode related environment.

Change-Id: Ie14b86d6e7ebf171b638d2da24a7fdcf5a15c3d9
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.h
vp9/simple_encode.cc