Non-hdri Float support?
Posted: 2007-08-31T08:06:49-07:00
I am looking to include floating point support for an update to the IPLab coder (ipl.c). The code as it stands now is very clean and uses ExportQuantumPixels. For integer data during a normal Q32 build, this solution works fine. For float or double data, the procedure rounds down all fractional values. This is caused by inline function RoundToQuantum, which during a standard, build returns an integer (type Quantum).
Enabling hdri support fixes this issue with the caveat that scales get all messed up because it is an unscaled format. This can be tuned by adding a provision changing the scales if double Quantum is detected. So here is my question for seasoned IM programmers: Should I fix this with cpp routines, should I hardcode the solution, or should I make noise for a "--with-quantum-double" option in the configure script?
Sorry for the protracted posting. I hope I got my question across.
Best,
Sean
Enabling hdri support fixes this issue with the caveat that scales get all messed up because it is an unscaled format. This can be tuned by adding a provision changing the scales if double Quantum is detected. So here is my question for seasoned IM programmers: Should I fix this with cpp routines, should I hardcode the solution, or should I make noise for a "--with-quantum-double" option in the configure script?
Sorry for the protracted posting. I hope I got my question across.
Best,
Sean