[cairo] RFC: More accurate color conversion

James Cloos cloos at jhcloos.com
Tue Oct 8 13:07:26 PDT 2013


>>>>> "WD" == Wolfgang Draxinger <wdraxinger.maillist at draxit.de> writes:

WD> I don't see where you pulled that particular 2**16 - 1 from. The paper
WD> discusses range conversions [0, 1] <-> [0, 2**n - 1] which is the
WD> typical problem when confronted with conversion between floating point
WD> and integer.

Unelss that is a different paper than I found on this thread, that
should be between [-1, 1] and [-(2**n - 1), 2**n - 1].  Ie signed
samples, as is typical in audio and other AC applications.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the cairo mailing list