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

◆ refreshWireOrder()

void fl::PixelIterator::refreshWireOrder ( )
inlineprivate

Recompute the cached source channel of each wire RGB byte: this iterator's order on top of the source's own (identity for PixelController<RGB>).

Loop-invariant, so done here, not per pixel.

Definition at line 328 of file pixel_iterator.h.

328 {
329 for (int i = 0; i < 3; ++i) {
330 mWireOrder[i] = static_cast<u8>(
331 (static_cast<fl::i32>(mSourceOrder) >> (3 * (2 - mOrder[i]))) & 0x3);
332 }
333 }
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT, mOrder, mSourceOrder, and mWireOrder.

Referenced by PixelIterator(), and setColorOrder().

+ Here is the caller graph for this function: