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

◆ rgb_source_to_XYZ()

void fl::colorimetric_response::rgb_source_to_XYZ ( const RgbColorimetricCache & cache,
float s_r,
float s_g,
float s_b,
float X_t[3] )
inline

Definition at line 522 of file colorimetric_response.h.

524 {
525 if (cache.has_source_space) {
526 const float s[3] = { s_r, s_g, s_b };
527 matvec3(cache.M_src, s, X_t);
528 } else {
529 X_t[0] = cache.P_R[0] * s_r + cache.P_G[0] * s_g + cache.P_B[0] * s_b;
530 X_t[1] = cache.P_R[1] * s_r + cache.P_G[1] * s_g + cache.P_B[1] * s_b;
531 X_t[2] = cache.P_R[2] * s_r + cache.P_G[2] * s_g + cache.P_B[2] * s_b;
532 }
533}
void matvec3(const float M[3][3], const float v[3], float out[3]) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and matvec3().

Referenced by solve_rgb_colorimetric().

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