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

◆ loadAndScale() [4/4]

template<EOrder RGB_ORDER, int LANES = 1, uint32_t MASK = 0xFFFFFFFF>
template<int SLOT>
static FASTLED_FORCE_INLINE uint8_t PixelController< RGB_ORDER, LANES, MASK >::loadAndScale ( PixelController< RGB_ORDER, LANES, MASK > & pc,
int lane,
uint8_t scale )
inlinestatic

Loads and scales a single byte for a given output slot and lane.

Template Parameters
SLOTThe data slot in the output stream. This is used to select which byte of the output stream is being processed.
Parameters
pcreference to the pixel controller
lanethe parallel output lane to read the byte for
scalethe scale data for the byte

Definition at line 400 of file pixel_controller.h.

400{ return scale8(pc.loadByte<SLOT>(pc, lane), scale); }
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:34
static FASTLED_FORCE_INLINE uint8_t scale(PixelController &pc, uint8_t b)
Scale a value using the per-channel scale data.
static FASTLED_FORCE_INLINE uint8_t loadByte(PixelController &pc)
Read a byte of LED data.
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, loadByte(), scale(), and scale8().

+ Here is the call graph for this function: