Adapt GOP size threshold to the allowed layer depth
authorJingning Han <jingning@google.com>
Wed, 26 Sep 2018 23:34:16 +0000 (16:34 -0700)
committerJingning Han <jingning@google.com>
Thu, 27 Sep 2018 17:45:26 +0000 (10:45 -0700)
commit59993f16611a67b3d74c3f5babee5009e3669392
treed2f66641b973560a848cc53dd4a4ba61f9626f94
parentf6ddb92a33aac1081348df1e2f899b3c1f55028d
Adapt GOP size threshold to the allowed layer depth

Increase the total prediction error budget linearly with the
allowed ARF layer depth. This in general improves the compression
performance, but does hit corner cases on a few clips at very
low bit-rate range (corresponding to 26 - 28 dB range). To mitigate
such problem, we temporarily work around this problem by limiting
the first GOP size to be ~8 so as to not drain up the bit resource.

The overall compression performance improvements over the current
multi-layer ARF system in speed 0 are:

           overall PSNR      avg PSNR        SSIM
lowres     -0.47%            -0.13%         -1.51%
midres     -1.30%            -1.16%         -2.80%
hdres      -0.91%            -0.84%         -2.15%

Change-Id: Ia4880ab63e98e15a9db99aea6eabfd3d1da9270d
vp9/encoder/vp9_firstpass.c