speed up of ~6-7% if luminance contrast option is used. Use a table lookup
into a precomputed at init time table. Courtesy of Richard Ellis (rellis9 at yahoo dot com)
Authored by: sms00 2003-09-30
Parent: [r1949]
Child: [r1951]