MCPcopy Create free account
hub / github.com/FastLED/FastLED / advance

Method advance

src/fl/chipsets/encoders/pixel_iterator.h:398–414  ·  view source on GitHub ↗

ScaledPixelIteratorRGB implementation

Source from the content-addressed store, hash-verified

396
397// ScaledPixelIteratorRGB implementation
398inline void ScaledPixelIteratorRGB::advance() FL_NOEXCEPT {
399 if (!mPixels) {
400 mHasValue = false;
401 return;
402 }
403
404 if (mPixels->has(1)) {
405 u8 b0, b1, b2;
406 mPixels->loadAndScaleRGB(&b0, &b1, &b2);
407 mCurrent = array<u8, 3>{{b0, b1, b2}}; // Wire order bytes
408 mPixels->stepDithering();
409 mPixels->advanceData();
410 mHasValue = true;
411 } else {
412 mHasValue = false;
413 }
414}
415
416// ScaledPixelIteratorRGBW implementation
417inline void ScaledPixelIteratorRGBW::advance() FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 9

map8_to_16Function · 0.85
scale16by8Function · 0.50
hasMethod · 0.45
loadAndScaleRGBMethod · 0.45
stepDitheringMethod · 0.45
advanceDataMethod · 0.45
loadAndScaleRGBWMethod · 0.45
loadAndScaleRGBWWMethod · 0.45

Tested by

no test coverage detected