FastLED 3.9.15
Loading...
Searching...
No Matches

◆ five_bit_hd_gamma_function()

void fl::five_bit_hd_gamma_function ( CRGB color,
uint16_t * r16,
uint16_t * g16,
uint16_t * b16 )

Definition at line 28 of file five_bit_hd_gamma.cpp.

29 {
30 uint16_t _r16 = map8_to_16(color.r);
31 uint16_t _g16 = map8_to_16(color.g);
32 uint16_t _b16 = map8_to_16(color.b);
33 *r16 = scale16by8(_r16, color.r);
34 *g16 = scale16by8(_g16, color.g);
35 *b16 = scale16by8(_b16, color.b);
36}
LIB8STATIC_ALWAYS_INLINE uint16_t scale16by8(uint16_t i, fract8 scale)
Scale a 16-bit unsigned value by an 8-bit value, which is treated as the numerator of a fraction whos...
Definition scale8.h:468
LIB8STATIC_ALWAYS_INLINE uint16_t map8_to_16(uint8_t x)
Definition intmap.h:25

References map8_to_16(), and scale16by8().

Referenced by __builtin_five_bit_hd_gamma_bitshift().

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