Rename OC_SAD_SHIFT to OC_SATD_SHIFT.
authorRalph Giles <giles@xiph.org>
Wed, 24 Nov 2010 20:51:36 +0000 (20:51 +0000)
committerRalph Giles <giles@xiph.org>
Wed, 24 Nov 2010 20:51:36 +0000 (20:51 +0000)
commit52c9a03846c10510515a8c9a0780cae00bd08eb3
treebe783835baa29e0ab146d009c9802d7e80369d8c
parent3fb66222af1dd93e1c4af0d3489e8bbb7fda99b6
Rename OC_SAD_SHIFT to OC_SATD_SHIFT.

The SAD and SADT metrics have different ranges, so it is
necessary to use different scale factors when comparing
them.

Originally we used SAD, and when SATD was added, the
scale factor was updated without changing the name.
This commit finally does so. However, it is intended
that the code switch back to the SAD metric at higher
speed levels, we also keep OC_SAD_SHIFT with its
appropriate value, 6 according to Tim.

Likewise, OC_SAD_BINS is renamed OC_COMP_BINS in
expectation of supporting mode tables for both
metrics.

svn path=/trunk/theora/; revision=17645
lib/analyze.c
lib/collect.c
lib/collect.h
lib/encint.h
lib/modedec.h
tools/process_modedec_stats.c