FastLED 3.10.6
Loading...
Searching...
No Matches

◆ quantize_lut_cell()

i16 fl::colorimetric_response::quantize_lut_cell ( float v)
inline

Definition at line 310 of file colorimetric_response.h.

310 {
311 const float scaled = v * static_cast<float>(kLutQ) + 0.5f;
312 if (scaled <= -32768.0f) return -32768;
313 if (scaled >= 32767.0f) return 32767;
314 return static_cast<i16>(scaled);
315}

References fl::FL_NO_EXCEPT, and kLutQ.