Fixing a couple bugs in HColor. usurp had a typo resulting in the wrong
average and possibly pushing values out of the valid range.
The other bug was to fix the Hue calculation which in certain cases resulted
in negative values.
Also inlined the compare operator because it was getting called a lot in
sorting a color collection.
A whole bunch of performance improvements for the decoder.
These improvements take decode time on my test device (Galaxy Nexus)
from 22733 ms to 4423 ms (reduced 80%) for 6 sides of a cube.
Improvements include:
 - Cache pixels in int[] to reduce getPixels cost (28.48%)
 - Cache sobel result per target pixel so we reduce recalcs (15.84%)
 - Remvoe get pixel calls in Q1-4 calcs (6.97%)
 - Remove new call in sobel method (pass temp array in) (5.6%)
 - Precalc luminance for entire image (4.61%)
TODO: Remvove some timing code from sobel now that it is dominating the call.
Format nit
Enable auto-focus.
Merge branch 'master' of https://github.com/briangbrown/Android-Rubik-s-Cube-Solver