Speed up keyframe encoding with model RD

model_rd_for_sb() can quickly compute an approximated RD cost. We
use the estimated RD cost to skip running full RD for some bad
mode candidates.

This only affects keyframe encoding. Observed 22% encoding time
reduction, and 0.03% compression loss.

Change-Id: I793f1eda98d67e8da9bc1648dcf272222b30a556
1 file changed