remove some magic weights associated with sad_per_bit
authorYaowu Xu <yaowu@google.com>
Thu, 1 Jul 2010 01:58:54 +0000 (18:58 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 1 Jun 2011 17:10:44 +0000 (10:10 -0700)
commit50916c6a7da357eeee43c36b4d6ab6a723ddbe1e
tree93e3ce05f72964c33dee4e32e02de136919dde1f
parent9e4f76c154a355bac2a3e005e47882219801bdae
remove some magic weights associated with sad_per_bit

sad_per_bit has been used for a number of motion vector search routines
with different magic weights: 1, 1/2 and 1/4. This commit remove these
magic numbers and use 1/2 for all motion search routines, also reformat
a number of source code lines to within 80 column limit.

Test on cif set shows overall effect is neutral on all metrics. <=0.01%

Change-Id: I8a382821fa4cffc9c0acf8e8431435a03df74885
vp8/encoder/mcomp.c
vp8/encoder/pickinter.c
vp8/encoder/rdopt.c