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

◆ getscale()

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

Gets the scale data for the provided output slot.

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
Returns
scale data for the given channel
See also
PixelController::mScale

Definition at line 438 of file pixel_controller.h.

438{ return pc.mColorAdjustment.premixed.raw[RO(SLOT)]; }
#define RO(X)
Gets the assigned color channel for a byte's position in the output, using the color order (EOrder) t...
ColorAdjustment mColorAdjustment
Pixel controller class.

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

Referenced by getScale0(), getScale1(), and getScale2().

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