133 {
134
135 if (global_brightness == 0) {
136 *out_colors =
CRGB(0, 0, 0);
137 *out_power_5bit = 0;
138 return;
139 }
140
141
142 uint16_t r16, g16, b16;
144
145
146
147 if (colors_scale.r != 0xff) {
149 }
150 if (colors_scale.g != 0xff) {
152 }
153 if (colors_scale.b != 0xff) {
155 }
156
158 out_power_5bit);
159}
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)