adjusting the calculation of errorperbit
authorYaowu Xu <yaowu@google.com>
Mon, 20 Jun 2011 23:30:26 +0000 (16:30 -0700)
committerYaowu Xu <yaowu@google.com>
Mon, 20 Jun 2011 23:32:30 +0000 (16:32 -0700)
commit10ed60dc718aa6133508c2fb5183cfc7dc67e920
tree461fd7ecb88dfe2a643da8a8dd7cd20cf79ce4dd
parenta60fc419f50eefbef568ceecb93233471e894fa5
adjusting the calculation of errorperbit

RDMULT/RDDIV defines a bit worth of distortion in term of sum squared
difference. This has also been used as errorperbit in subpixel motion
search, where the distortions computed as variance of the difference.
The variance of differences is different from sum squared differences
by amount of DC squared. Typically, for inter predicted MBs, this
difference averages around 10% between the two distortion, so this patch
introduces a 110% constant in deriving errorperbit from RDMULT/RDDIV.

Test on CIF set shows small but positive gain on overall PSNR (.03%)
and SSIM (.07%), overall impact on average PSNR is 0.

Change-Id: I95425f922d037b4d96083064a10c7cdd4948ee62
vp8/encoder/encodeframe.c
vp8/encoder/rdopt.c