[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Owen Taylor otaylor at redhat.com
Wed Aug 30 07:48:07 PDT 2006


On Wed, 2006-08-30 at 10:37 -0400, James Cloos wrote:
> >>>>> “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.

So, how do you say "white"?

> 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?

Do you really want to make 1.0 do something different than
the limiting value of values slightly less than 1.0?

Or do you want to make 1.0 an illegal input value?

					- Owen




More information about the cairo mailing list