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

◆ PixelIteratorAny() [2/2]

template<typename PIXEL_CONTROLLER>
fl::PixelIteratorAny::PixelIteratorAny ( PIXEL_CONTROLLER & controller,
EOrder newOrder,
Rgbw rgbw,
Rgbww rgbww = RgbwwInvalid::value() )
inline

Definition at line 38 of file pixel_iterator_any.h.

40 : mRgbw(rgbw), mRgbww(rgbww) {
41 // (#2558) Bugfix surfaced by CodeRabbit on PR #2560: the previous
42 // implementation constructed rgbController for normalization but then
43 // called init(controller, ...) — passing the un-normalized original
44 // controller. init() takes a PixelController<RGB>&, so a non-RGB
45 // PIXEL_CONTROLLER would have failed to compile if this branch was
46 // ever instantiated; the bug stayed latent until now.
47 PixelController<RGB> rgbController(controller); // Normalize to RGB order.
48 init(rgbController, newOrder);
49 }
CLEDController * controller
Rgbw rgbw
void init(PixelController< RGB > &controller, EOrder newOrder)
Initialize the adapter with color order conversion.

References controller, init(), mRgbw, mRgbww, rgbw, and fl::RgbwwInvalid::value().

+ Here is the call graph for this function: