FastLED 3.9.15
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 497 of file pixel_controller.h.

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

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

+ Here is the call graph for this function: