FastLED
3.10.8
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
}
fl::colorimetric_detail::matvec3
void matvec3(const float M[3][3], const float v[3], float out[3]) FL_NO_EXCEPT
Definition
colorimetric_response.h:165
fl::colorimetric_response::RgbColorimetricCache::P_R
float P_R[3]
Definition
colorimetric_response.h:439
fl::colorimetric_response::RgbColorimetricCache::P_B
float P_B[3]
Definition
colorimetric_response.h:439
fl::colorimetric_response::RgbColorimetricCache::has_source_space
bool has_source_space
Definition
colorimetric_response.h:442
fl::colorimetric_response::RgbColorimetricCache::P_G
float P_G[3]
Definition
colorimetric_response.h:439
fl::colorimetric_response::RgbColorimetricCache::M_src
float M_src[3][3]
Definition
colorimetric_response.h:441
fl
colorimetric_detail
Generated on Sun Oct 18 2026 00:57:11 for FastLED by
1.13.2