9026293bff
Seems it will be common to print all four min/max/avg sets of errors, so move the printing code into a shared place. While 0.0-1.0 is the natural range for color values, people are often accustomed to working with 8-bit or even 10-bit pixel values. An error of +/- 1 in 8-bit is more intuitive than +/- 0.004 in floating-point. Hence 'scaling_bits' is added so the caller can determine the value scaling. This will scale both the reported error numbers, and the recorded error positions (rgb-tuples), so they are all comparable. I'm happy to get rid of those two macros as well. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>