131 {
132
133 if (global_brightness == 0) {
134 *out_colors =
CRGB(0, 0, 0);
135 *out_power_5bit = 0;
136 return;
137 }
138
139
140 uint16_t r16, g16, b16;
142
143
144
145 if (colors_scale.r != 0xff) {
147 }
148 if (colors_scale.g != 0xff) {
150 }
151 if (colors_scale.b != 0xff) {
153 }
154
156 out_power_5bit);
157}
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...
uint8_t five_bit_bitshift(uint16_t r16, uint16_t g16, uint16_t b16, uint8_t brightness, CRGB *out, uint8_t *out_power_5bit)
void five_bit_hd_gamma_function(CRGB color, uint16_t *r16, uint16_t *g16, uint16_t *b16)
Representation of an RGB pixel (Red, Green, Blue)