FastLED 3.10.8
Loading...
Searching...
No Matches

◆ loadAndScaleRGB()

void fl::PixelIterator::loadAndScaleRGB ( u8 * r_out,
u8 * g_out,
u8 * b_out )
inline

Definition at line 405 of file pixel_iterator.h.

405 {
406 // The source's own order first (identity for PixelController<RGB>),
407 // then this iterator's. `loadAndScale<SLOT>` is per source channel --
408 // data, dither table and scale all indexed by the same channel -- so
409 // reordering after the fact is the same bytes.
410 u8 c[3];
411 mLoadAndScaleRGB(mPixelController, &c[0], &c[1], &c[2]);
412 *r_out = c[mOrder[0]];
413 *g_out = c[mOrder[1]];
414 *b_out = c[mOrder[2]];
415 }
loadAndScaleRGBFunction mLoadAndScaleRGB
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT, mLoadAndScaleRGB, mOrder, and mPixelController.

Referenced by loadAndScaleRGB16(), and writeHD108().

+ Here is the caller graph for this function: