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

◆ chromaCandidateXyz()

void fl::anonymous_namespace{gamut_map.cpp.hpp}::chromaCandidateXyz ( const i32(&) lab[3],
i32 lightness,
i32 factor,
i32(&) out_xyz[3] )

XYZ of the candidate at factor of the target's chroma.

Definition at line 108 of file gamut_map.cpp.hpp.

109 {
110 const i32 candidate_lab[3] = {
111 lightness,
112 scaleGamutQ16(lab[1], factor),
113 scaleGamutQ16(lab[2], factor),
114 };
115 oklabToXyzQ16(candidate_lab, out_xyz);
116}
i32 scaleGamutQ16(i32 value, i32 factor) FL_NO_EXCEPT
Scale an s16.16 value by an s16.16 factor, rounding to nearest.
void oklabToXyzQ16(const i32(&lab)[3], i32(&out_xyz)[3]) FL_NO_EXCEPT
OKLab (s16.16) -> XYZ (s16.16).

References chromaCandidateXyz(), fl::FL_NO_EXCEPT, fl::oklabToXyzQ16(), and scaleGamutQ16().

Referenced by chromaCandidateXyz(), feasibleChromaInterval(), and largestFeasibleChroma().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: