Only do uv intra-mode evaluation when intra mode is checked
authorYunqing Wang <yunqingwang@google.com>
Mon, 27 Feb 2012 22:38:53 +0000 (17:38 -0500)
committerYunqing Wang <yunqingwang@google.com>
Tue, 28 Feb 2012 18:08:17 +0000 (13:08 -0500)
commit019384f2d365e4265b554e235c7d669b69ef35c0
tree2ba900f2338aad5397987c43382f1927de423827
parentb5ce9456db8626e69e4aa30519dafdf7e397619f
Only do uv intra-mode evaluation when intra mode is checked

When we encode slide-show clips, for the majority of the time,
only ZEROMV mode is checked, and all other modes are skipped.
This change delayed uv intra-mode evaluation until intra mode is
actually checked. This gave big performance gain for slide-show
video encoding (2nd pass gain: 18% to 28%). But, this change
doesn't help other types of videos.

Also, zbin_mode_boost is adjusted in mode-checking loop, which
causes bitstream mismatch before/after this change when --best
or --good with --cpu-used=0 are used.

Change-Id: I582b3e69fd384039994360e870e6e059c36a64cc
vp8/encoder/rdopt.c