Use distortion and rate of best_rd as the params
authorsdeng <sdeng@google.com>
Fri, 31 May 2019 21:35:02 +0000 (14:35 -0700)
committersdeng <sdeng@google.com>
Sat, 1 Jun 2019 22:11:24 +0000 (15:11 -0700)
commit5cfaf561d9928261f3ff49d744239cc0dcf877b9
treed69eb2c946c3042213024a247d4834b2fff1d2d2
parent7d670d88fe11a73191101b2c2e0b92493136024f
Use distortion and rate of best_rd as the params

Also added rd calculation for negative rates and distortions.
This CL is a preparation for implementing hierarchical SSIM rdmult scaling.

Little impact on quality and speed:
            avg_psnr  ovr_psnr   ssim
(mid_res)    -0.015    -0.009   -0.018

perf stat -e instructions:u ./vpxenc park_joy_480p.y4m --limit=50
with this cl: 317,700,108,619
before:       317,669,279,763

Change-Id: I01588758b7be2aab32236440ec0e57d7af56e920
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_rd.c
vp9/encoder/vp9_rd.h