|
FastLED 3.9.15
|
| 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 whose denominator is 256.
In other words, it computes i * (scale / 256)
| i | input value to scale |
| scale | scale factor, in n/256 units |
Definition at line 478 of file scale8.h.
References LIB8STATIC_ALWAYS_INLINE, and scale.
Referenced by fl::five_bit_bitshift(), fl::internal_builtin_five_bit_hd_gamma_bitshift(), lerp15by8(), lerp16by8(), and PixelController< RGB_ORDER, LANES, MASK >::loadAndScale_WS2816_HD().
Here is the caller graph for this function: