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

◆ loadAndScaleRGB()

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

Definition at line 299 of file pixel_iterator.h.

299 {
300 // The source's own order first (identity for PixelController<RGB>),
301 // then this iterator's. `loadAndScale<SLOT>` is per source channel --
302 // data, dither table and scale all indexed by the same channel -- so
303 // reordering after the fact is the same bytes.
304 u8 c[3];
305 mLoadAndScaleRGB(mPixelController, &c[0], &c[1], &c[2]);
306 *r_out = c[mOrder[0]];
307 *g_out = c[mOrder[1]];
308 *b_out = c[mOrder[2]];
309 }
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: