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

Method data

src/fl/gfx/corkscrew.cpp.hpp:234–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234fl::span<CRGB> Corkscrew::data() {
235 // Use variant storage if available, otherwise fall back to input surface
236 if (!mPixelStorage.empty()) {
237 if (mPixelStorage.template is<fl::span<CRGB>>()) {
238 return mPixelStorage.template get<fl::span<CRGB>>();
239 } else if (mPixelStorage.template is<fl::vector_psram<CRGB>>()) {
240 auto& vec = mPixelStorage.template get<fl::vector_psram<CRGB>>();
241 return vec;
242 }
243 }
244
245 // Fall back to input surface data as span
246 auto surface = getOrCreateInputSurface();
247 return surface->span();
248}
249
250
251void Corkscrew::readFrom(const fl::Grid<CRGB>& source_grid, bool use_multi_sampling) {

Callers 15

blurRowsFunction · 0.45
blurColumnsFunction · 0.45
blurGaussianImplFunction · 0.45
blurGaussianMappedImplFunction · 0.45
fadeLightByFunction · 0.45
fade_videoFunction · 0.45
nscale8_videoFunction · 0.45
fadeToBlackByFunction · 0.45
fade_rawFunction · 0.45
nscale8Function · 0.45
fadeUsingColorFunction · 0.45

Calls 2

emptyMethod · 0.45
spanMethod · 0.45

Tested by

no test coverage detected