Review Request: KColorSpace::KHCY::KHCY(const & QColor)	constructor floating point precision error
    Matthew Woehlke 
    mw_triad at users.sourceforge.net
       
    Fri Jun 26 17:06:16 BST 2009
    
    
  
Johannes Sixt wrote:
> gamma() is a strictly monotonic function. Therefore, you can look at the
> integer RGB values of QColor in order to decide which branch to take.
No I can't. I consider redF() more canonical than red() (higher 
precision, and QColor might become HDR in the future).
I could look at the pre-gamma-corrected values, but is that worth 
keeping more variables around (or trusting the compiler to optimize 
multiple calls to redF() and friends)?
-- 
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
-- 
 > pinotree uses the large trout on tsdgeos and PutHuhn :)
 > PutHuhn runs
 > tsdgeos lights a fire and eats the trout
(with apologies to Pino Toscano, PutHuhn and Albert Astals Cid, who came 
up with this entirely on their own)
    
    
More information about the kde-core-devel
mailing list