Re: Imf::Chromaticities::operator==

Phil Barrett
 


bool
Chromaticities::operator == (const Chromaticities & c) const
{
    return red == c.red && green == c.green && blue == c.blue;
}


FYI we ignore this operator because floating-point equality is a slippery beast. Instead we manually compare the chromaticity coordinates (red, green, blue and white) - and also adoptedWhite if present - read from a file against those of a set of known gamuts with a 4-decimal-place tolerance.

Phil
-- 
Phil Barrett
FilmLight

Join openexr-dev@lists.aswf.io to automatically receive all group messages.