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

◆ loadAndScaleRGBW()

void fl::PixelIterator::loadAndScaleRGBW ( u8 * b0_out,
u8 * b1_out,
u8 * b2_out,
u8 * w_out )
inline

Definition at line 273 of file pixel_iterator.h.

273 {
274 if (mLoadAndScaleRGBWUnordered != nullptr) {
275 // Source-order RGB plus W, then the same two steps the templated
276 // `loadAndScaleRGBW` takes: permute RGB, place W.
277 u8 c[3];
278 u8 w = 0;
279 mLoadAndScaleRGBWUnordered(mPixelController, mRgbw, &c[0], &c[1], &c[2], &w);
280 rgbw_partial_reorder(mRgbw.w_placement, c[mOrder[0]], c[mOrder[1]], c[mOrder[2]], w,
281 b0_out, b1_out, b2_out, w_out);
282 return;
283 }
284 mLoadAndScaleRGBW(mPixelController, mRgbw, b0_out, b1_out, b2_out, w_out);
285 }
loadAndScaleRGBWUnorderedFunction mLoadAndScaleRGBWUnordered
loadAndScaleRGBWFunction mLoadAndScaleRGBW
unsigned char u8
Definition stdint.h:131
void rgbw_partial_reorder(EOrderW w_placement, u8 b0, u8 b1, u8 b2, u8 w, u8 *out_b0, u8 *out_b1, u8 *out_b2, u8 *out_b3)
Definition rgbw.cpp.hpp:678

References fl::FL_NO_EXCEPT, mLoadAndScaleRGBW, mLoadAndScaleRGBWUnordered, mOrder, mPixelController, mRgbw, and fl::rgbw_partial_reorder().

+ Here is the call graph for this function: