Fix a bug in best RD cost updating
authorsdeng <sdeng@google.com>
Tue, 4 Jun 2019 20:54:18 +0000 (13:54 -0700)
committersdeng <sdeng@google.com>
Thu, 6 Jun 2019 03:39:03 +0000 (20:39 -0700)
commit1f11352c071da81c2f65ae7673415910f7110755
treeb5d169894ca3afc975033a11a3efaeb3942b4450
parent1d13a6c321b3af595adb59f175894ebb9c36c1d6
Fix a bug in best RD cost updating

This CL fixed a bug that sometimes we calculate the best rd cost using
uninitialized rd_div. This CL also includes a small refactoring of
rd_pick_partition().

Speed change: (the smaller the better)
 Performance counter stats for './vpxenc park_joy_480p.y4m --limit=50
 -o output.webm':

with this CL:       297,086,181,136      instructions:u
without this CL:    299,285,835,104      instructions:u

Quality change: (negative is better)
          avg_psnr ovr_psnr  ssim
(low_res)  0.007     0.005  -0.002
(mid_res)  0.022     0.028   0.007
(hd_res)  -0.008    -0.003  -0.014

Change-Id: I8924d8426364304212bcef3aba13346783e6f1a8
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_rd.c