FastLED 3.10.8
Loading...
Searching...
No Matches

◆ advanceAndLoadAndScale() [3/3]

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
template<int SLOT>
static FASTLED_FORCE_INLINE fl::u8 PixelController< RGB_ORDER, LANES, MASK >::advanceAndLoadAndScale ( PixelController< RGB_ORDER, LANES, MASK > & pc,
int lane,
fl::u8 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 409 of file pixel_controller.h.

409{ pc.advanceData(); return pc.loadAndScale<SLOT>(pc, lane, scale); }
static FASTLED_FORCE_INLINE fl::u8 loadAndScale(PixelController &pc) FL_NO_EXCEPT
Complete pipeline: load → dither → scale (THE MAGIC HAPPENS HERE!) Order is critical: pixel + dit...
static FASTLED_FORCE_INLINE fl::u8 scale(PixelController &pc, fl::u8 b) FL_NO_EXCEPT
Scale a value using the per-channel scale data.
FASTLED_FORCE_INLINE void advanceData() FL_NO_EXCEPT
Advance the data pointer forward, adjust position counter.
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, FL_NO_EXCEPT, and scale().

+ Here is the call graph for this function: