Revised RGB16 color mapping algorithm.