94 {
95
96 if (global_brightness == 0) {
97 *out_colors =
CRGB(0, 0, 0);
98 *out_power_5bit = 0;
99 return;
100 }
101
102
103 u16 r16, g16, b16;
105
106
107
108 if (colors_scale.r != 0xff) {
110 }
111 if (colors_scale.g != 0xff) {
113 }
114 if (colors_scale.b != 0xff) {
116 }
117
119 out_power_5bit);
120}
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...
void five_bit_hd_gamma_function(CRGB color, u16 *r16, u16 *g16, u16 *b16)
void five_bit_bitshift(u16 r16, u16 g16, u16 b16, fl::u8 brightness, CRGB *out, fl::u8 *out_power_5bit)
Representation of an RGB pixel (Red, Green, Blue)