[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

James Cloos cloos at jhcloos.com
Wed Aug 30 07:37:29 PDT 2006


>>>>> “Carl” == Carl Worth <cworth at cworth.org> writes:

Carl> channel value in [0.0, 1.0] to an integer value in [0, 65535].

One minor comment:

shouldn’t cairo (and anything else using floats for intensities,
for that matter) really target [0.0, 1.0)?  And document that.

Ie, x ≥ 1.0 are /defined/ as the HDR values, not just x > 1.0?

Obviously, from the rest of the post, cairo is doing that de facto.

The question is:  why isn’t that also the case de jure?

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 0xED7DAEA6


More information about the cairo mailing list