FastLED 3.10.8
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 517 of file pixel_controller.h.

519 {
520#ifdef FL_IS_AVR
522 // No RGBW conversion on AVR; W stays black, as in loadAndScaleRGBW.
526 *w_out = 0;
527#else
528 const CRGB rgb(mData[0], mData[1], mData[2]);
529 *w_out = 0;
531 rgb.r, rgb.g, rgb.b,
532 mColorAdjustment.premixed.r, mColorAdjustment.premixed.g, mColorAdjustment.premixed.b,
534#endif
535 }
#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:406
FASTLED_FORCE_INLINE fl::u8 loadAndScaleChannel(fl::u8 c) FL_NO_EXCEPT
One source channel, loaded, dithered and scaled – loadAndScale<SLOT> with RO(SLOT) replaced by a runt...
ColorAdjustment mColorAdjustment
const fl::u8 * mData
pointer to the underlying LED data
Pixel controller class.

References FASTLED_FORCE_INLINE, FL_NO_EXCEPT, 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: