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

◆ scale() [2/2]

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

Scale a value using the per-channel scale data.

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
bthe color byte to scale
See also
PixelController::mScale

Definition at line 361 of file pixel_controller.h.

361{ return scale8(b, pc.mColorAdjustment.premixed.raw[RO(SLOT)]); }
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
ColorAdjustment mColorAdjustment
Pixel controller class.

References PixelController(), FASTLED_FORCE_INLINE, mColorAdjustment, ColorAdjustment::premixed, RO, and scale8().

Referenced by advanceAndLoadAndScale(), advanceAndLoadAndScale0(), loadAndScale(), loadAndScale(), loadAndScale0(), loadAndScale1(), loadAndScale2(), loadAndScale_APA102_HD(), loadAndScale_WS2816_HD(), scale(), and stepAdvanceAndLoadAndScale0().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: