Speed up encoding by skipping altref recode
authorCheng Chen <chengchen@google.com>
Tue, 4 Apr 2017 21:39:17 +0000 (14:39 -0700)
committerCheng Chen <chengchen@google.com>
Thu, 11 May 2017 05:15:01 +0000 (22:15 -0700)
commit76567d84cef1bd8a8dd734a70f554d80208a66fd
treea783cae85f7864ebe8d95726208fc45ba7877e84
parentf7e767d8ee584aabc2074e425186b219d564cce3
Speed up encoding by skipping altref recode

Speed up for speed 0.
Reduce 10+% of encoding time for hdres in speed 0,
with less than 0.1% PSNR loss.
Compute total difference of previous and current frame context probability
model. If the diff is less than the threshold, skip recoding the frame.

Borg test (positive number means performance loss):
lowres    midres    hdres
PSNR: 0.030     0.032     0.065

Local speed test: bitrate set at 1200
blue_sky  pedestrian  rush_hour
Encoding time:  -10.0%     -16.5%      -16.5%

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