Refactor perceptual brightness The code to calculate the perceived brightness of tv_color has been moved into a new function perceivedBrightness(). It can therefore be used for other colors later.
Refactor perceptual brightness
The code to calculate the perceived brightness of tv_color has been
moved into a new function perceivedBrightness(). It can therefore be
used for other colors later.

Signed-off-by: Ryan Hodin <23b3d53bb65077a11c65513a2c3810592027129e@gmail.com>
za419/Eugene