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

◆ advanceAndLoadAndScale() [3/3]

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 >::advanceAndLoadAndScale ( PixelController< RGB_ORDER, LANES, MASK > & pc,
int lane,
uint8_t scale )
inlinestatic

A version of loadAndScale() that advances the output data pointer without dithering.

Parameters
pcreference to the pixel controller
lanethe parallel output lane to read the byte for
scalethe scale data for the byte

Definition at line 416 of file pixel_controller.h.

416{ pc.advanceData(); return pc.loadAndScale<SLOT>(pc, lane, scale); }
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 loadAndScale(PixelController &pc)
Loads, dithers, and scales a single byte for a given output slot, using class dither and scale values...
FASTLED_FORCE_INLINE void advanceData()
Advance the data pointer forward, adjust position counter.
Pixel controller class.

References PixelController(), advanceData(), FASTLED_FORCE_INLINE, loadAndScale(), and scale().

+ Here is the call graph for this function: