FastLED 3.10.6
Loading...
Searching...
No Matches

◆ loadAndScaleRGBWUnordered()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
FASTLED_FORCE_INLINE void PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGBWUnordered ( const Rgbw & rgbw,
fl::u8 * r_out,
fl::u8 * g_out,
fl::u8 * b_out,
fl::u8 * w_out )
inline

loadAndScaleRGBW before its wire reorder: RGB in source order plus W.

The templated loadAndScaleRGBW is this followed by the reorder, so the two cannot drift; the type-erased path calls this directly and applies its own order (FastLED#4402).

Definition at line 516 of file pixel_controller.h.

518 {
519#ifdef FL_IS_AVR
521 // No RGBW conversion on AVR; W stays black, as in loadAndScaleRGBW.
525 *w_out = 0;
526#else
527 const CRGB rgb(mData[0], mData[1], mData[2]);
528 *w_out = 0;
530 rgb.r, rgb.g, rgb.b,
531 mColorAdjustment.premixed.r, mColorAdjustment.premixed.g, mColorAdjustment.premixed.b,
533#endif
534 }
#define FL_UNUSED(x)
FASTLED_FORCE_INLINE void rgb_2_rgbw(const Rgbw &cfg, u8 r, u8 g, u8 b, u8 r_scale, u8 g_scale, u8 b_scale, u8 *out_r, u8 *out_g, u8 *out_b, u8 *out_w) FL_NO_EXCEPT
Converts RGB to RGBW using one of the functions.
Definition rgbw.h:380
ColorAdjustment mColorAdjustment
const fl::u8 * mData
pointer to the underlying LED data
FASTLED_FORCE_INLINE fl::u8 loadAndScaleChannel(fl::u8 c)
One source channel, loaded, dithered and scaled – loadAndScale<SLOT> with RO(SLOT) replaced by a runt...
Pixel controller class.

References FASTLED_FORCE_INLINE, FL_UNUSED, loadAndScaleChannel(), mColorAdjustment, mData, fl::rgb_2_rgbw(), and rgbw.

Referenced by loadAndScaleRGBW().

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